:root {
  --bg: #f5f5f5; /* light gray: second section */
  --white: #fff;
  --sec-work: #f5f5f5;
  --sec-services: linear-gradient(180deg, #f5f5f5 0%, #fff 100%); /* the third section: eases from gray into white */
  --sec-exp: #fff;
  --sec-skills: #fff; --sec-words: #dfeaf6; --sec-about: #fff;
  --surface: #fff;
  --soft: #ebebe8;
  --ink: #111;
  --ink-2: rgba(17, 17, 17, .72);
  --ink-3: rgba(17, 17, 17, .5);
  --line: rgba(17, 17, 17, .08);

  --pink-50: #feebfa; --pink-70: #fdcef2; --pink-90: #62044c;
  --orange-50: #fff3e0; --orange-70: #ffebcc; --orange-90: #663d00;
  --blue-50: #edf6fc; --blue-70: #d3e8f8; --blue-90: #0e3858;
  --green-50: #e8f7ef; --green-70: #cdefe0; --green-90: #0f4d33;
  --violet-50: #f2eeff; --violet-70: #ddd3ff; --violet-90: #2f1a7a;
  --yellow-50: #fff8d6; --yellow-70: #ffefa0; --yellow-90: #5c4500;
  --hot: #7c1755;

  --r-sm: 14px; --r-md: 24px; --r-lg: 32px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(20px, 5.5vw, 100px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
b, strong { font-weight: 500; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 12px; }
.hand { font-family: "Caveat", "DM Sans", cursive; font-weight: 500; color: var(--hot); font-size: 1.15em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 26px; border-radius: var(--r-pill); font-weight: 500; font-size: 16px; line-height: 1;
  border: 0; background: var(--surface);
  transition: transform .35s var(--spring), background .25s, color .25s; will-change: transform;
}
/* header buttons: two quiet, equal pills so they never outshout the page */
.btn--small { padding: 10px 18px; font-size: 15px; background: rgba(17, 17, 17, .055); color: var(--ink-2); }
.btn--small:hover, .btn--small:focus-visible { background: var(--pink-70); color: var(--pink-90); transform: translateY(-2px); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.btn--dark { background: var(--ink); color: #fff; padding: 6px 6px 6px 26px; }
.btn--ghost { background: var(--soft); }
.btn--ghost:hover { background: #e2e2de; }
.btn__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); font-size: 18px; transition: transform .4s var(--spring), background .25s, color .25s;
}
.btn--dark:hover .btn__arrow { transform: rotate(45deg); background: var(--pink-70); color: var(--pink-90); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: var(--pad); right: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px; border-radius: var(--r-pill); background: var(--surface);
  transition: box-shadow .3s, transform .55s var(--ease), opacity .4s, background .35s, padding .35s var(--ease);
}
/* first screen: no bar, no links, just the name and the resume button */
.nav.is-top { background: transparent; padding-left: 0; padding-right: 0; }
.nav.is-top .nav__links { opacity: 0; visibility: hidden; pointer-events: none; }
.nav__links { transition: opacity .3s, visibility .3s; }
.nav.is-hidden { transform: translateY(-140%); opacity: 0; pointer-events: none; }
.nav.is-scrolled { box-shadow: 0 8px 28px -14px rgba(17, 17, 17, .22); }
.nav__logo { font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 16px; border-radius: var(--r-pill); font-size: 15px; color: var(--ink-2); transition: background .25s, color .25s; }
.nav__links a:hover { background: var(--soft); color: var(--ink); }
.nav__links a.is-active { background: var(--pink-70); color: var(--pink-90); }

/* ---------- hero ---------- */
.hero { position: sticky; top: 0; z-index: 1; height: 100svh; min-height: 620px; overflow: hidden; background: var(--white); padding: clamp(92px, 14vh, 132px) var(--pad) 0; }
.hero__inner { position: relative; z-index: 3; width: 100%; max-width: 1040px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: clamp(18px, 3.2vh, 30px); }
.hero__title { font-size: clamp(34px, min(5.8vw, 9vh), 82px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* availability pill */
.avail {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 16px; border-radius: var(--r-pill); border: 0;
  background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .07), 0 8px 24px -12px rgba(50, 38, 15, .28); font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  animation: dropin .9s var(--spring) .1s both; transition: transform .35s var(--spring), box-shadow .3s;
}
.avail:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(17, 17, 17, .1), 0 14px 28px -14px rgba(50, 38, 15, .34); }
@keyframes dropin { from { opacity: 0; transform: translateY(-18px) scale(.94); } }
.avail__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #34c759; flex: none; }
.avail__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34c759; animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.avail__sep { width: 1px; height: 18px; background: rgba(17, 17, 17, .14); }
.avail__cta { display: inline-flex; gap: 6px; color: var(--ink-3); transition: color .25s; }
.avail__cta i { font-style: normal; transition: transform .35s var(--spring); }
.avail:hover .avail__cta { color: var(--ink); }
.avail:hover .avail__cta i { transform: translateX(4px); }

/* photo fan: opens up with a bounce on hover */
.fan { --w: clamp(170px, min(21vw, 30vh), 290px); position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--w) * -.27); height: calc(var(--w) * 1.4); }
.fan__card {
  /* a polaroid: white frame, thicker at the bottom, a tall (4:5) photo inside */
  position: absolute; left: calc(50% - var(--w) / 2); bottom: 0; width: var(--w); margin: 0; background: #fff; border-radius: 4px;
  padding: calc(var(--w) * .06) calc(var(--w) * .06) calc(var(--w) * .2);
  box-shadow: 0 2px 4px rgba(40, 30, 10, .08), 0 22px 34px -14px rgba(40, 30, 10, .4); transform: var(--rest);
  transition: transform .85s cubic-bezier(.34, 1.7, .5, 1);
  animation: rise 1.1s var(--spring) both;
}
.fan__card img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 16%; }
.fan__ph { width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; font-size: calc(var(--w) * .36); }
.fan__ph--yellow { background: var(--yellow-70); }
.fan__ph--blue { background: var(--blue-70); }
.fan__card--l { --rest: translate(calc(var(--w) * -.7), 7%) rotate(-9deg); animation-delay: .55s; }
.fan__card--r { --rest: translate(calc(var(--w) * .7), 7%) rotate(9deg); animation-delay: .7s; }
.fan__card--c { --rest: translate(0, 0); z-index: 2; animation-delay: .4s; }
.fan:hover .fan__card--l { transform: translate(calc(var(--w) * -.93), 1%) rotate(-15deg); }
.fan:hover .fan__card--r { transform: translate(calc(var(--w) * .93), 1%) rotate(15deg); }
.fan:hover .fan__card--c { transform: translate(0, -18px) scale(1.03); }
@keyframes rise { from { translate: 0 60%; opacity: 0; } }

/* hand-drawn doodles that draw themselves */
.doodles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dd { position: absolute; overflow: visible; }
.dd path { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s ease-in-out forwards; animation-delay: calc(var(--t, 1s) + var(--o, 0s)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dd--1 { --c: #9b85e8; --t: 1.1s; width: 130px; left: calc(50% - min(500px, 42vw)); top: 61%; }
.dd--2 { --c: #e47cc0; --t: 1.6s; width: 52px; left: calc(50% - min(430px, 37vw)); top: 50%; }
.dd--3 { --c: #e47cc0; --t: 1.4s; width: 78px; left: calc(50% + min(390px, 34vw)); top: 57%; }
.dd--4 { --c: #f0a64a; --t: 1.9s; width: 118px; left: calc(50% + min(350px, 31vw)); top: 78%; }

/* everything after the hero slides over it */
#work { background: var(--sec-work); }
#services { background: var(--sec-services); }
#experience { background: var(--sec-exp); }
#skills { background: var(--sec-skills); }
.hscroll { background: var(--sec-about); }
.rest { position: relative; z-index: 2; background: var(--sec-work); border-radius: 36px 36px 0 0; box-shadow: 0 -26px 60px -34px rgba(50, 38, 15, .3); }
.w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); animation: word .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes word { to { opacity: 1; transform: none; } }
.w--mark { position: relative; z-index: 0; }
.w--mark::after {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .04em; height: .52em;
  background: var(--pink-70); border-radius: var(--r-pill); transform: scaleX(0); transform-origin: left;
  animation: mark .8s var(--ease) 1.3s forwards;
}
.w--mark2::after { background: var(--blue-70); animation-delay: 1.5s; }
@keyframes mark { to { transform: scaleX(1); } }
.hero__lead { max-width: 640px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-3); text-wrap: balance; }
.hero__lead b { color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 9vw, 120px) var(--pad); }
.section h2 { font-size: clamp(30px, 4vw, 48px); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }

/* ---------- selected works: sticky stack of stamp cards ---------- */
.stack { max-width: 940px; margin: 0 auto; padding-bottom: 8px; }
.work-wrap { position: sticky; top: 104px; z-index: 1; margin-bottom: 64px; }
.work-wrap:last-child { margin-bottom: 0; }
.work {
  --ty: 70px; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit;
  opacity: 0; transform: translateY(var(--ty)) rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 22px 28px rgba(60, 45, 20, .13));
  transition: transform .7s var(--ease), opacity .6s;
}
.work.is-in { --ty: 0px; opacity: 1; }
.work.is-in:hover, .work.is-in:focus-visible { transform: translateY(-8px) rotate(0deg); transition-duration: .5s; transition-timing-function: var(--spring); }
.work__card { display: grid; grid-template-columns: 5fr 6fr; height: 420px; background: #fff; border-radius: 4px; overflow: hidden; }
.work__text { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 38px 38px 40px; }
.work__label { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); line-height: 1.5; }
.work__body { display: grid; gap: 16px; justify-items: start; }
.work__body h3 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.work__body p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.work__cta { display: inline-flex; align-items: center; gap: 10px; padding: 9px 9px 9px 18px; border-radius: var(--r-pill); background: var(--c50); color: var(--c90); font-size: 14.5px; font-weight: 500; transition: background .25s, color .25s; }
.work__cta i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; font-style: normal; font-size: 14px; transition: transform .4s var(--spring); }
.work:hover .work__cta { background: var(--c70); }
.work:hover .work__cta i { transform: rotate(45deg); }
.work__art { position: relative; overflow: hidden; background: var(--c70); display: grid; place-items: center; }
.work__dot { position: absolute; border-radius: 50%; background: var(--c50); transition: transform .8s var(--ease); }
.work__dot--1 { width: 64%; aspect-ratio: 1; left: -12%; bottom: -26%; }
.work__dot--2 { width: 30%; aspect-ratio: 1; right: -6%; top: -8%; border-radius: 34%; }
.work:hover .work__dot--1 { transform: scale(1.12) translate(6%, -4%); }
.work:hover .work__dot--2 { transform: rotate(40deg) scale(1.15); }
.work__emoji { position: relative; font-size: clamp(88px, 12vw, 148px); line-height: 1; transition: transform .6s var(--spring); }
.work:hover .work__emoji { transform: scale(1.14) rotate(-7deg); }
.work__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* big heading that the cards slide over */
#work .section__head { position: sticky; top: 100px; z-index: 0; display: block; max-width: 940px; margin: 0 auto clamp(56px, 16vh, 180px); }
#work .section__head { text-align: center; }
#work .section__head h2 { font-size: clamp(52px, 10.5vw, 132px); line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.ww { display: inline-block; opacity: 0; transform: translateY(.7em) rotate(3deg); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.is-in .ww { opacity: 1; transform: none; }

/* ---------- experience ---------- */
.section--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(30px, 7vw, 120px); }
.xp__side { position: sticky; top: 120px; align-self: start; display: grid; gap: 22px; justify-items: start; max-width: 380px; }
.xp__side p { color: var(--ink-2); }

/* the first card of the timeline is the open slot: same structure, dashed outline, a heart instead of the plus */
.xp-item--next { background: #fff; border: 0; }
.xp-item--next::before { left: -41px; top: 32px; }
.xp-item--next::after { left: -35px; top: 39px; height: calc(100% + 22px); }
.xp-item--next > .xp-item__static { padding-top: 24px; padding-bottom: 28px; }
.xp-item--next .xp-item__when { padding: 0; background: none; font-size: 20px; line-height: 1.1; color: var(--hot); opacity: .7; }
.xp-item--next .xp-item__company { margin-top: 2px; font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: 0; line-height: 1; color: var(--hot); }
.xp-item--next .xp__heart { color: var(--hot); font-size: 22px; line-height: 1; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.18); } }

/* timeline of cards */
.xp__list { position: relative; display: grid; gap: 18px; padding-left: 46px; }
.xp-item { position: relative; border-radius: var(--r-md); background: var(--c50); transition: transform .45s var(--spring); }
.xp-item::before { content: ""; position: absolute; z-index: 1; left: -41px; top: 36px; width: 14px; height: 14px; border-radius: 50%; background: var(--c90); box-shadow: 0 0 0 5px var(--c70); transition: transform .45s var(--spring); }
.xp-item:hover::before { transform: scale(1.25); }
/* dashed line: one segment per card, from its dot to the next card's dot, so it starts and ends exactly on a dot */
.xp-item::after { content: ""; position: absolute; left: -35px; top: 43px; width: 2px; height: calc(100% + 18px); background: repeating-linear-gradient(to bottom, rgba(17, 17, 17, .2) 0 6px, transparent 6px 12px); pointer-events: none; }
.xp-item:last-child::after { display: none; }
.xp-item > button, .xp-item__static { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; text-align: left; padding: 26px 28px 26px; background: none; border: 0; }
.xp-item__when { justify-self: start; padding: 6px 14px; border-radius: var(--r-pill); background: var(--c70); color: var(--c90); font-size: 14px; font-weight: 500; line-height: 1.2; }
.xp-item__company { grid-column: 1 / -1; margin-top: 10px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.xp-item__role { grid-column: 1 / -1; font-size: 17px; font-weight: 500; color: var(--c90); line-height: 1.35; }
.xp-item__role i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.xp-item .plus { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--c90); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: transform .4s var(--spring), background .25s, color .25s; }
.xp-item.is-open .plus { transform: rotate(135deg); background: var(--ink); color: #fff; }
.xp-item > button:hover .plus, .xp-item > button:focus-visible .plus { transform: rotate(90deg) scale(1.12); background: var(--c90); color: #fff; }
.xp-item.is-open > button:hover .plus, .xp-item.is-open > button:focus-visible .plus { transform: rotate(135deg) scale(1.12); background: var(--c90); }
.xp-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.xp-item.is-open .xp-item__body { grid-template-rows: 1fr; }
.xp-item__body > div { overflow: hidden; }
.xp-item ul { padding: 2px 28px 28px; display: grid; gap: 12px; }
.xp-item li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.xp-item li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--c90); opacity: .4; }

/* ---------- skills ---------- */
.bento { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.card { border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.card h3 { font-size: 22px; }
.card--pink { background: var(--pink-50); color: var(--pink-90); }
.card--blue { background: var(--blue-50); color: var(--blue-90); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 9px 16px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; background: #fff; cursor: default; transition: transform .35s var(--spring), background .25s, color .25s; }
.tags li:hover { transform: translateY(-4px) rotate(-3deg); }
.tags[data-tone="pink"] li:hover { background: var(--pink-90); color: #fff; }
.tags[data-tone="blue"] li:hover { background: var(--blue-90); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.facts dt { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { font-size: 16px; color: var(--ink-2); }


/* ---------- about + contact: pinned, scrolls sideways ---------- */
.hscroll { position: relative; }
.hscroll__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hscroll__track { display: flex; align-items: center; gap: clamp(56px, 7vw, 120px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.hpanel { flex: none; position: relative; }
.hpanel--text { align-self: flex-start; width: clamp(340px, 34vw, 480px); display: grid; gap: 20px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.hpanel--text h2 { font-size: clamp(30px, 4vw, 48px); color: var(--ink); margin-bottom: 6px; }
.hpanel--text b { color: var(--ink); }
.hpanel--more { width: clamp(340px, 30vw, 440px); margin-top: var(--lead, 0px); }
.hpanel--photo { width: clamp(250px, 21vw, 300px); }
.hpanel--cta { width: clamp(380px, 36vw, 520px); }

/* polaroid with a peelable corner */
@property --curl { syntax: "<length>"; inherits: true; initial-value: 0px; }
.pol { --curl: 0px; margin: 0; rotate: var(--r); filter: drop-shadow(0 14px 22px rgba(60, 45, 20, .16)); transition: --curl .5s var(--ease), rotate .5s var(--spring), filter .4s; }
.pol:hover { --curl: 58px; rotate: 0deg; filter: drop-shadow(0 20px 28px rgba(60, 45, 20, .2)); }
.pol__card {
  position: relative; display: block; padding: 14px 14px 58px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--curl)), calc(100% - var(--curl)) 100%, 0 100%);
}
.pol__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }
.pol__img--empty { display: grid; place-items: center; background: var(--yellow-70); font-size: 96px; line-height: 1; }
.pol__flap {
  position: absolute; right: 0; bottom: 0; width: var(--curl); height: var(--curl);
  background: linear-gradient(135deg, #fff 8%, #e6e1d4 100%); clip-path: polygon(0 0, 100% 0, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
}
.pol__note { position: absolute; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.pol__note .hand { font-size: 24px; white-space: nowrap; }
.pol__note img { width: 76px; flex: none; }
.pol__note--a { left: -26px; bottom: -76px; rotate: 4deg; }
.pol__note--b { right: -34px; top: -66px; flex-direction: row-reverse; align-items: flex-start; rotate: -4deg; }
.pol__note--a img { rotate: -22deg; margin-bottom: 4px; }
.pol__note--b img { rotate: 180deg; }

/* ---------- CTA ---------- */
.cta { --cta-py: clamp(40px, 4.5vw, 64px); --cta-px: clamp(24px, 3vw, 44px); text-align: center; display: grid; justify-items: center; gap: 22px; padding: var(--cta-py) var(--cta-px); border-radius: var(--r-lg); background: var(--pink-50); }
.cta h2 { font-size: clamp(32px, 3.8vw, 52px); }
.cta p { max-width: 520px; color: var(--ink-2); }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.cta .btn--ghost { background: rgba(255, 255, 255, .8); }
.cta .btn--ghost:hover { background: #fff; }

/* the card grows to fill the screen at the end of the about strip */
.cta--full { --q: 0; position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0; overflow: hidden; align-content: center; visibility: hidden; }
.hscroll.is-expanding .cta--full { visibility: visible; }
.hscroll.is-expanding .hpanel--cta .cta { visibility: hidden; }
.cta--full h2 { font-size: calc(clamp(32px, 3.8vw, 52px) + var(--q) * clamp(28px, 5.2vw, 84px)); }
.cta--full > p { max-width: calc(520px + var(--q) * 220px); font-size: calc(18px + var(--q) * 4px); }
.cta--full > :not(.cta__doodles) { position: relative; z-index: 2; }
.loc { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.loc__dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; flex: none; }
.loc time { color: var(--ink-2); font-weight: 500; }
.cta__doodles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cta--full .dd path { animation: none; stroke-dashoffset: 1; stroke-width: 3; }
.cta--full.is-open .dd path { animation: draw 1.3s ease-in-out forwards; animation-delay: calc(var(--t, 0s) + var(--o, 0s)); }
.dd--f1 { --c: #9b85e8; --t: .1s; width: clamp(60px, 8vw, 130px); left: 7%; top: 13%; rotate: -8deg; }
.dd--f2 { --c: #d9569f; --t: .3s; width: clamp(80px, 11vw, 180px); right: 7%; top: 11%; }
.dd--f3 { --c: #f0a64a; --t: .5s; width: clamp(80px, 10vw, 170px); left: 6%; top: 52%; }
.dd--f4 { --c: #d9569f; --t: .7s; width: clamp(50px, 6.5vw, 110px); right: 9%; top: 50%; rotate: 8deg; }
.dd--f5 { --c: #9b85e8; --t: .9s; width: clamp(36px, 4vw, 64px); left: 24%; top: 20%; }
.dd--f6 { --c: #f0a64a; --t: 1.1s; width: clamp(30px, 3.4vw, 56px); right: 22%; bottom: 20%; }
.dd--f7 { --c: #6fa8dc; --t: 1.2s; width: clamp(80px, 10vw, 170px); right: 8%; bottom: 17%; }
.dd--f8 { --c: #e6a700; --t: 1s; width: clamp(56px, 7vw, 116px); left: 10%; bottom: 17%; rotate: -10deg; }
.dd--f9 { --c: #9b85e8; --t: 1.3s; width: clamp(40px, 5vw, 84px); right: 24%; top: 16%; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  padding: 30px var(--pad); background: var(--white); font-size: 15px;
  border-radius: 36px 36px 0 0; box-shadow: 0 -26px 60px -34px rgba(50, 38, 15, .3);
}
.footer__copy { color: var(--ink-3); }
/* the finale: the white footer slides up over the pink screen that stays pinned underneath */
@media (prefers-reduced-motion: no-preference) { .footer { margin-top: calc(var(--foot-h, 0px) * -1); } }

.loc { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.loc__dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; flex: none; }
.loc time { color: var(--ink-2); font-weight: 500; }

/* social icons: quiet circles that tilt, pop a label and take the brand-ish tint on hover */
.soc { display: flex; gap: 10px; }
.soc__a {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(17, 17, 17, .055); color: var(--ink-2);
  transition: transform .5s var(--spring), background .25s, color .25s;
}
.soc__a svg { width: 20px; height: 20px; transition: transform .5s var(--spring); }
.soc__a::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 8px) scale(.9); transition: opacity .2s, transform .45s var(--spring);
}
.soc__a:hover, .soc__a:focus-visible { background: var(--c70); color: var(--c90); transform: translateY(-5px) rotate(-9deg) scale(1.1); }
.soc li:nth-child(2) .soc__a:hover, .soc li:nth-child(2) .soc__a:focus-visible { transform: translateY(-5px) rotate(8deg) scale(1.1); }
.soc__a:hover svg, .soc__a:focus-visible svg { transform: scale(1.08) rotate(9deg); }
.soc li:nth-child(2) .soc__a:hover svg { transform: scale(1.08) rotate(-8deg); }
.soc__a:hover::after, .soc__a:focus-visible::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.soc__a:active { transform: translateY(-2px) scale(.96); }
@media (prefers-reduced-motion: reduce) { .soc__a, .soc__a svg, .soc__a::after { transition: background .2s, color .2s, opacity .2s; } .soc__a:hover, .soc__a:focus-visible { transform: none; } .soc__a:hover svg { transform: none; } }

/* ---------- case study (modal) ---------- */
.modal {
  width: min(1040px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: #fff; color: var(--ink); overflow: hidden; margin: auto;
  opacity: 0; transform: translateY(40px) scale(.97);
  transition: opacity .35s, transform .5s var(--spring), overlay .35s allow-discrete, display .35s allow-discrete;
}
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(40px) scale(.97); } }
.modal::backdrop { background: rgba(17, 17, 17, .32); }
.modal__inner { max-height: calc(100svh - 24px); overflow: auto; scroll-behavior: auto; }
.m-hero { position: relative; padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px); background: var(--c70); color: var(--c90); display: grid; gap: 14px; justify-items: start; }
.m-emoji { font-size: 56px; line-height: 1; }
.m-hero h3 { font-size: clamp(34px, 5vw, 56px); }
.m-hero p { font-size: 20px; max-width: 560px; }
.m-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.m-tags span { padding: 6px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; background: #fff; }
.m-close {
  position: sticky; z-index: 5; top: 16px; float: right; margin: 16px 16px -60px 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; font-size: 22px; line-height: 1; transition: transform .35s var(--spring);
}
.m-close:hover { transform: rotate(90deg) scale(1.08); }
.m-body { padding: clamp(24px, 5vw, 56px); display: grid; gap: clamp(36px, 5vw, 56px); }
.m-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.m-meta div { padding: 16px 18px; border-radius: var(--r-sm); background: var(--c50); color: var(--c90); display: grid; gap: 2px; font-weight: 500; font-size: 16px; line-height: 1.35; }
.m-meta small { font-size: 13px; opacity: .7; font-weight: 400; }
.m-sec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 40px; }
.m-sec > h4 { font-size: 22px; letter-spacing: -.02em; position: sticky; top: 24px; align-self: start; }
.m-blocks { display: grid; gap: 20px; min-width: 0; }
.m-blocks p, .m-blocks li { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.m-blocks b { color: var(--ink); }
.m-blocks h5 { font-size: 18px; letter-spacing: -.01em; margin-top: 8px; color: var(--ink); }
.m-blocks ul { display: grid; gap: 10px; }
.m-blocks ul li { position: relative; padding-left: 24px; }
.m-blocks ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--c70); }
.m-blocks ol { display: grid; gap: 12px; counter-reset: n; }
.m-blocks ol li { position: relative; padding-left: 44px; counter-increment: n; }
.m-blocks ol li::before { content: counter(n); position: absolute; left: 0; top: -.05em; width: 30px; height: 30px; border-radius: 50%; background: var(--c70); color: var(--c90); display: grid; place-items: center; font-size: 14px; font-weight: 500; }
.callout { padding: 22px 26px; border-radius: var(--r-md); background: var(--c50); color: var(--c90); font-size: 18px; line-height: 1.55; }
.callout b { color: inherit; }
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mcard { padding: 20px 22px; border-radius: var(--r-md); background: var(--c50); display: grid; gap: 8px; align-content: start; }
.mcard h6 { margin: 0; font-size: 17px; font-weight: 500; color: var(--c90); letter-spacing: -.01em; }
.mcard p { font-size: 15.5px !important; }
.mcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mcol { padding: 22px 24px; border-radius: var(--r-md); display: grid; gap: 14px; align-content: start; background: var(--t50); color: var(--t90); }
.mcol h6 { margin: 0; font-size: 17px; font-weight: 500; }
.mcol li { font-size: 16px !important; color: inherit !important; }
.mcol li::before { background: var(--t70) !important; }
.mpair { display: grid; gap: 12px; padding: 22px 24px; border-radius: var(--r-md); background: var(--c50); }
.mpair h6 { margin: 0; font-size: 17px; font-weight: 500; color: var(--c90); }
.mpair div { display: grid; gap: 2px; }
.mpair small { font-size: 13px; font-weight: 500; color: var(--c90); opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.funnel { display: grid; gap: 14px; }
.funnel > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 16px; align-items: center; }
.funnel span { font-size: 15px; font-weight: 500; color: var(--ink); }
.funnel i { display: flex; align-items: center; height: 30px; padding-left: 14px; width: 0; min-width: fit-content; border-radius: var(--r-pill); background: var(--c70); color: var(--c90); font-style: normal; font-weight: 500; font-size: 13px; white-space: nowrap; transition: width 1.1s var(--ease); }
.modal[open] .funnel i { width: var(--w); }
.funnel em { grid-column: 2; font-style: normal; font-size: 14px; color: var(--ink-3); }
.m-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 8px; }
.m-nav { display: flex; gap: 8px; }
.m-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--soft); font-size: 18px; transition: transform .3s var(--spring), background .25s; }
.m-nav button:hover { transform: scale(1.1); background: #e2e2de; }
.m-img { margin: 0; display: grid; gap: 8px; align-content: start; }
.m-img img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(17, 17, 17, .07); background: #fff; }
.m-img figcaption { font-size: 14px; color: var(--ink-3); }
.m-img--tall { max-width: 460px; justify-self: center; }
.m-gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 14px; align-items: start; }
.m-gallery .m-img:last-child:nth-child(odd) { grid-column: 1 / -1; }
.m-gallery[style*="--cols:3"] .m-img:last-child:nth-child(odd) { grid-column: auto; }
@media (max-width: 700px) { .m-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .section--split { grid-template-columns: 1fr; }
  .xp__side { position: static; }
  .m-sec { grid-template-columns: 1fr; }
  .m-sec > h4 { position: static; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav { padding-left: 18px; }
  .hero { padding-top: 120px; }
  .work-wrap { top: 84px; margin-bottom: 40px; }
  .work__card { grid-template-columns: 1fr; grid-template-rows: 170px auto; height: auto; }
  .work__art { order: -1; }
  .work__emoji { font-size: 84px; }
  .work__text { padding: 26px 24px 28px; gap: 18px; }
  .work__body h3 { font-size: 26px; }
  .funnel > div { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .w { opacity: 1; transform: none; }
}

/* ---------- reviews: stamp cards on a scrolling strip ---------- */
.reviews { background: var(--sec-words); padding: clamp(60px, 9vw, 120px) 0; overflow: hidden; }
.reviews .section__head { padding: 0 var(--pad); display: grid; justify-content: stretch; align-items: start; justify-items: center; text-align: center; gap: 14px; }
.reviews h2 { font-size: clamp(30px, 4vw, 48px); }
.reviews__meta { font-size: 15px; color: var(--ink-2); }
.reviews__meta a { text-decoration: underline; text-decoration-color: rgba(17, 17, 17, .25); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.reviews__meta a:hover { text-decoration-color: var(--ink); }
.marquee { overflow: hidden; padding: 28px 0 56px; }
.track { display: flex; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
.set { display: flex; gap: 26px; padding-right: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stamp { display: flex; flex: none; width: 340px; color: #2b2924; filter: drop-shadow(0 2px 3px rgba(30, 50, 90, .08)) drop-shadow(0 16px 24px rgba(30, 50, 90, .14)); transition: transform .45s var(--spring), filter .45s; }
.stamp:hover, .stamp:focus-visible { filter: drop-shadow(0 3px 4px rgba(30, 50, 90, .08)) drop-shadow(0 26px 32px rgba(30, 50, 90, .2)); }
.stamp:hover, .stamp:focus-visible { transform: translateY(-8px) rotate(-.6deg); }
.stamp__paper {
  position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; justify-items: center; text-align: center;
  padding: 44px 32px 36px; background: #fff; border-radius: 4px;
}
.stamp__paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .52 0 0 0 0 .45 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp__paper > * { position: relative; }
.stamp__go { position: absolute; right: 26px; top: 22px; font-style: normal; font-size: 18px; color: #a39e90; transition: transform .35s var(--spring), color .25s; }
.stamp:hover .stamp__go, .stamp:focus-visible .stamp__go { transform: translate(3px, -3px); color: #2b2924; }
.stamp__who { display: grid; justify-items: center; gap: 4px; }
.stamp .avatar { width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 500; background: var(--c70); color: var(--c90); font-size: 16px; }
.stamp__name { font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.stamp__role { font-size: 14px; color: #7d786a; line-height: 1.35; }
.stamp blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: #4a473f; align-self: center; }
.stamp__src { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #9a9484; font-weight: 500; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .track { animation: none; }
  .set[aria-hidden="true"] { display: none; }
}
@media (max-width: 700px) { .stamp { width: min(300px, 82vw); } .stamp__paper { padding: 36px 24px 28px; } }

@media (max-width: 900px) {
  .dd--2, .dd--4 { display: none; }
  .dd--1 { left: 2%; top: 60%; width: 92px; }
  .dd--3 { left: auto; right: 3%; top: 58%; width: 58px; }
}
@media (max-width: 700px) {
  .fan { --w: clamp(128px, 38vw, 200px); }
  .avail { font-size: 13px; gap: 10px; padding: 9px 14px; }
  .fan__card--l { --rest: translate(calc(var(--w) * -.6), 7%) rotate(-9deg); }
  .fan__card--r { --rest: translate(calc(var(--w) * .6), 7%) rotate(9deg); }
  .fan:hover .fan__card--l { transform: translate(calc(var(--w) * -.8), 1%) rotate(-14deg); }
  .fan:hover .fan__card--r { transform: translate(calc(var(--w) * .8), 1%) rotate(14deg); }
  .rest { border-radius: 26px 26px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dd path { stroke-dashoffset: 0; animation: none; }
  .fan__card, .avail { animation: none; }
}

/* reduced motion: the strip scrolls sideways by hand instead of following the page scroll */
@media (prefers-reduced-motion: reduce) {
  .hscroll__pin { position: static; height: auto; display: block; overflow: visible; padding: clamp(60px, 9vw, 100px) 0; }
  .cta--full { display: none; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 56px var(--pad) 96px; gap: 40px; align-items: center; transform: none !important; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .hpanel { scroll-snap-align: center; }
  .hpanel--text, .hpanel--more { width: min(84vw, 400px); }
  .hpanel--photo { width: min(64vw, 260px); }
  .hpanel--cta { display: block; width: min(88vw, 440px); }
}

/* ---------- case study: text + screens one by one, and the image viewer ---------- */
.screens { display: grid; gap: 44px; }
.screen { display: grid; gap: 14px; }
.screen h5 { margin-top: 0; }
.m-img img { cursor: zoom-in; transition: transform .35s var(--spring), box-shadow .3s; }
.m-img img:hover { transform: scale(1.012); box-shadow: 0 0 0 1px rgba(17, 17, 17, .1), 0 18px 36px -22px rgba(17, 17, 17, .35); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(17, 17, 17, .95); color: #fff; opacity: 0;
  transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete;
}
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lb__stage { position: absolute; inset: 0; overflow: auto; display: flex; padding: 76px 96px 88px; scrollbar-width: thin; }
.lb__stage img { margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #fff; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lightbox.is-zoomed .lb__stage img { max-width: none; max-height: none; cursor: grab; }
.lightbox.is-drag .lb__stage img { cursor: grabbing; }
.lb__btn { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: transform .35s var(--spring), background .25s; }
.lb__btn:hover { transform: scale(1.1); background: var(--pink-70); }
.lb__close { top: 20px; right: 20px; font-size: 26px; }
.lb__zoom { top: 20px; right: 78px; font-size: 24px; }
.lb__prev { left: 20px; top: 50%; margin-top: -24px; }
.lb__next { right: 20px; top: 50%; margin-top: -24px; }
.lightbox.is-single .lb__prev, .lightbox.is-single .lb__next { display: none; }
.lb__count { position: fixed; z-index: 2; top: 32px; left: 28px; font-size: 15px; font-weight: 500; opacity: .75; }
.lb__cap { position: fixed; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: 70vw; font-size: 15px; text-align: center; opacity: .85; pointer-events: none; }
@media (max-width: 700px) {
  .lb__stage { padding: 72px 12px 80px; }
  .lb__btn { width: 42px; height: 42px; }
  .lb__zoom { right: 70px; }
  .lb__prev { left: 10px; } .lb__next { right: 10px; }
}

/* ---------- services ---------- */
#services .section__head { align-items: end; margin-bottom: 44px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc { position: relative; display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: var(--c50); color: var(--c90); transition: transform .45s var(--spring), opacity .8s var(--ease) var(--d, 0s); }
.svc:hover { transform: translateY(-6px) rotate(-.4deg); }
.svc__top { display: flex; align-items: center; justify-content: space-between; }
.svc__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: #fff; transition: transform .5s var(--spring); }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.08); }
.svc__icon svg { width: 40px; height: 40px; overflow: visible; }
.svc__icon path { fill: none; stroke: var(--c90); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.svc.is-in .svc__icon path { animation: draw 1.1s ease-in-out forwards; animation-delay: calc(var(--d, 0s) + .35s + var(--o, 0s)); }
.svc__n { font-size: 15px; font-weight: 500; opacity: .5; }
.svc h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; color: var(--ink); }
.svc p { color: var(--ink-2); font-size: 17px; max-width: 460px; }
.svc .tags { margin-top: 4px; }
.svc .tags li { background: #fff; }
.svc .tags li:hover { background: var(--c90); color: #fff; }

@media (max-width: 700px) {
  .svc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .svc__icon path { stroke-dashoffset: 0; animation: none; } }


/* ---------- header: one primary action, one quiet ---------- */
.btn--small { white-space: nowrap; }
@media (max-width: 440px) { .btn--small { padding: 9px 14px; font-size: 14px; } .nav__actions { gap: 4px; } .nav { gap: 8px; } }
.btn--small.btn--primary { background: var(--ink); color: #fff; }
.btn--small.btn--primary:hover, .btn--small.btn--primary:focus-visible { background: var(--hot); color: #fff; }

/* ---------- service cards are buttons: the cursor turns into a pill ---------- */
.svc { cursor: pointer; }
.svc:focus-visible { outline: 2px solid var(--c90); outline-offset: 4px; border-radius: var(--r-md); }
@media (hover: hover) and (pointer: fine) and (min-width: 701px) { .pill-ready [data-pill] { cursor: none; } }
.cursor-pill {
  position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-pill); background: var(--c90, var(--ink)); color: #fff; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(17, 17, 17, .4); opacity: 0; will-change: transform;
}
.cursor-pill i { font-style: normal; display: inline-block; transition: transform .35s var(--spring); }
.cursor-pill.is-on { opacity: 1; }
.cursor-pill.is-on i { transform: rotate(0); }
.cursor-pill__in { display: inline-flex; align-items: center; gap: 8px; transform: scale(.4); transition: transform .45s var(--spring); }
.cursor-pill.is-on .cursor-pill__in { transform: scale(1); }
.cursor-pill.is-down .cursor-pill__in { transform: scale(.92); }
.cursor-pill { transition: opacity .2s; }

/* ---------- project request popup ---------- */
.brief { width: min(720px, calc(100% - 24px)); }
.brief__inner { padding-bottom: 4px; }
.brief__head { display: grid; gap: 10px; padding: clamp(32px, 4.5vw, 48px) clamp(24px, 5vw, 48px) 0; }
.brief__head h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.035em; padding-right: 48px; }
.brief__sub { color: var(--ink-3); font-size: 16px; }
.brief__steps { display: flex; gap: 6px; margin-bottom: 14px; }
.brief__steps i { height: 6px; width: 22px; border-radius: 6px; background: var(--soft); transition: width .45s var(--spring), background .3s; }
.brief__steps i.is-on { width: 46px; background: var(--ink); }
.brief__step { display: grid; gap: clamp(28px, 3.4vw, 38px); padding: clamp(24px, 3vw, 32px) clamp(24px, 5vw, 48px) clamp(28px, 4vw, 44px); }
.brief__step[hidden], .brief__done[hidden], .brief__error[hidden] { display: none; }
.brief__step:not([hidden]) { animation: briefIn .5s var(--ease); }
@keyframes briefIn { from { opacity: 0; transform: translateX(14px); } }
.brief__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.brief__duo { display: grid; gap: clamp(28px, 3.4vw, 38px); }
.field { display: grid; gap: 16px; min-width: 0; border: 0; padding: 0; margin: 0; align-content: start; }
.field legend, .field__l { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; padding: 0; }
.field legend { margin-bottom: 16px; }
.field small { color: var(--ink-3); font-weight: 400; font-size: 15px; letter-spacing: 0; margin-left: 8px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: 18px;
  padding: 17px 20px; resize: vertical; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 128px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--pink-90); }
.field.has-error input, .field.has-error textarea { border-color: #c23a3a; background: #fff6f6; }
.field .field__err { color: #b42b2b; font-size: 14px; margin: 0; min-height: 0; }
.field .field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 13px 21px; border-radius: var(--r-pill); background: rgba(17, 17, 17, .055); color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.1; transition: background .2s, color .2s, transform .4s var(--spring); }
.chip:hover span { transform: translateY(-2px); background: rgba(17, 17, 17, .09); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip--tone input:checked + span { background: var(--c70); color: var(--c90); }
.chip input:focus-visible + span { outline: 2px solid var(--hot); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief__fine { color: var(--ink-3); font-size: 15px; }
.brief__error { padding: 14px 18px; border-radius: var(--r-sm); background: #fff1f1; color: #8e2222; font-size: 15px; }
.brief__error a { text-decoration: underline; font-weight: 500; }
.brief__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.brief__row--end { justify-content: flex-end; }
.brief__row--center { justify-content: center; }
.brief__done { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px); }
.brief__done:not([hidden]) { animation: briefIn .5s var(--ease); }
.brief__done h3 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; }
.brief__done p { color: var(--ink-2); max-width: 380px; }
.brief__done .brief__row { margin-top: 10px; }
.brief__check { width: 88px; height: 88px; overflow: visible; }
.brief__check path { fill: none; stroke: #2e9e6b; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.brief__done:not([hidden]) .brief__check path { animation: draw .9s ease-in-out forwards; animation-delay: calc(.1s + var(--o, 0s)); }
.btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 700px) {
  .brief__grid { grid-template-columns: 1fr; }
  .brief__row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .brief__step:not([hidden]), .brief__done:not([hidden]) { animation: none; }
  .brief__check path { stroke-dashoffset: 0; animation: none !important; }
  .cursor-pill__in { transition: none; }
}

/* case study: closing prompt */
.m-ask { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 22px 26px; border-radius: var(--r-md); background: var(--c50); color: var(--c90); }
.m-ask p { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }

/* ======================= mobile refinements ======================= */

/* service cards: desktop keeps them as they were; the toggle and body wrappers only matter on phones */
.svc__toggle { display: none; }
.svc__body, .svc__body-in { display: contents; }
.svc__cta { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 10px 18px; border: 0; border-radius: var(--r-pill); background: var(--c90); color: #fff; font-size: 15px; font-weight: 500; }
.svc__cta i { font-style: normal; transition: transform .35s var(--spring); }
.svc__cta:hover i { transform: translate(2px, -2px); }
/* with a mouse the whole card is the button, so the chip only shows for keyboard focus */
@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .svc__cta:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
}

/* skills cards: "See more" */
.more { display: none; }
.more i, .svc__toggle i { position: relative; width: 12px; height: 12px; flex: none; }
.more i::before, .more i::after, .svc__toggle i::before, .svc__toggle i::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.more i::before, .svc__toggle i::before { left: 0; right: 0; top: 5px; height: 2px; }
.more i::after, .svc__toggle i::after { top: 0; bottom: 0; left: 5px; width: 2px; transition: transform .35s var(--spring); }
.card.is-open .more i::after, .svc.is-open .svc__toggle i::after { transform: scaleY(0); }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 700px) {
  /* first screen: the two buttons are the same size */
  .hero__cta { flex-direction: column; align-items: stretch; width: min(100%, 300px); gap: 10px; }
  .hero__cta .btn { width: 100%; height: 56px; padding-top: 0; padding-bottom: 0; justify-content: center; }
  .hero__cta .btn--dark { position: relative; padding: 0 60px; }
  .hero__cta .btn--dark .btn__arrow { position: absolute; right: 6px; top: 6px; }

  /* skills: only the first six chips until "See more" */
  .card { padding: 22px 20px; gap: 16px; }
  .card:not(.is-open) .tags li:nth-child(n+7) { display: none; }
  .card.is-open .tags li:nth-child(n+7) { animation: tagIn .45s var(--ease) both; }
  .more { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 2px; padding: 9px 16px 9px 18px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .72); color: inherit; font-size: 15px; font-weight: 500; transition: background .25s; }
  .more:hover, .more:active { background: #fff; }
  .facts { margin-top: 28px; gap: 16px; }

  /* services: a quiet list, one card opens at a time */
  .svc-grid { gap: 10px; }
  .svc { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 14px; padding: 14px 14px 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .svc:hover { transform: none; }
  .svc__top { display: contents; }
  .svc__n { display: none; }
  .svc__icon { width: 48px; height: 48px; border-radius: 16px; }
  .svc:hover .svc__icon { transform: none; }
  .svc__icon svg { width: 28px; height: 28px; }
  .svc h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
  .svc__toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); color: var(--c90); }
  .svc__body { display: grid; grid-column: 1 / -1; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease), visibility 0s .45s; }
  .svc.is-open .svc__body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease), visibility 0s; }
  .svc__body-in { display: grid; gap: 14px; min-height: 0; overflow: hidden; }
  .svc__body-in > :first-child { margin-top: 14px; }
  .svc__body-in > :last-child { margin-bottom: 2px; }
  .svc p { font-size: 16px; }
  .svc .tags li { font-size: 14px; padding: 8px 14px; }
}

/* request form on phones: a bottom sheet with an always-visible action bar */
@media (max-width: 700px) {
  .brief { width: 100%; max-width: none; margin: auto 0 0; max-height: 94dvh; border-radius: 28px 28px 0 0; transform: translateY(100%); }
  .brief[open] { transform: none; opacity: 1; }
  @starting-style { .brief[open] { transform: translateY(100%); opacity: 1; } }
  .brief .modal__inner { max-height: 94dvh; overscroll-behavior: contain; }
  .brief__head { position: relative; padding: 30px 20px 0; gap: 8px; }
  .brief__head::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; border-radius: 4px; background: var(--soft); translate: -50% 0; }
  .brief__head h3 { font-size: 28px; padding-right: 44px; }
  .brief__sub { font-size: 15px; }
  .brief__steps { margin-bottom: 8px; }
  .brief__step { gap: 26px; padding: 20px 20px 0; }
  .field { gap: 12px; }
  .field legend, .field__l { font-size: 19px; }
  .field legend { margin-bottom: 12px; }
  .field small { font-size: 14px; margin-left: 6px; }
  .field input[type="text"], .field input[type="email"], .field textarea { font-size: 16px; padding: 15px 16px; border-radius: 16px; }
  .field textarea { min-height: 108px; }
  .chips { gap: 8px; }
  .chip span { padding: 11px 17px; font-size: 15px; }
  .brief__grid { gap: 22px; }
  .brief__row { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; flex-wrap: nowrap; box-shadow: 0 -14px 18px -14px rgba(17, 17, 17, .12); }
  .brief__row .btn { flex: 1 1 auto; height: 52px; padding-top: 0; padding-bottom: 0; }
  .brief__row .btn--dark { padding-left: 24px; padding-right: 4px; justify-content: space-between; }
  .brief__row .btn--dark .btn__arrow { width: 44px; height: 44px; }
  .brief__row [data-back] { flex: 0 0 auto; padding-left: 24px; padding-right: 24px; }
  .brief__done { padding: 44px 20px calc(32px + env(safe-area-inset-bottom)); }
  .brief__done .brief__row { position: static; box-shadow: none; margin: 8px 0 0; padding: 0; flex-wrap: wrap; width: 100%; }
}

/* phones: no hand-drawn doodles, neither on the first screen nor on the contact screen */
@media (max-width: 700px) { .doodles, .cta__doodles { display: none; } }

/* about + contact on phones: the same pinned strip as on desktop, just sized for a narrow screen */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hscroll__track { gap: 44px; }
  .hpanel--text, .hpanel--more { width: min(84vw, 400px); font-size: 17px; gap: 16px; }
  .hpanel--text h2 { font-size: 34px; }
  .hpanel--photo { width: min(58vw, 250px); }
  .hpanel--cta { width: min(88vw, 400px); }
  .hpanel--cta .cta, .cta--full { --cta-py: 36px; --cta-px: 22px; }
  .dd--f3, .dd--f4 { display: none; }
  .dd--f1 { top: 6%; }
  .dd--f2 { top: 5%; }
  .dd--f5 { top: 9%; }
  .dd--f9 { top: 8%; }
  .dd--f6 { bottom: 25.5%; right: 40%; }
  .dd--f7 { bottom: 25%; }
  .dd--f8 { bottom: 25%; }
}

/* the two buttons of the contact block: same height everywhere, same size on phones */
.cta__row .btn--ghost { height: 56px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 700px) {
  .cta__row { flex-direction: column; align-items: stretch; width: min(100%, 300px); gap: 10px; }
  .cta__row .btn { width: 100%; height: 56px; padding-top: 0; padding-bottom: 0; justify-content: center; }
  .cta__row .btn--dark { position: relative; padding: 0 62px; }
  .cta__row .btn--dark .btn__arrow { position: absolute; right: 6px; top: 6px; }
}

/* the footer slides over the bottom of the full-screen block, so the content centres in what stays visible */
.cta--full { padding-bottom: calc(var(--cta-py) + var(--foot-h, 0px) * var(--q, 0)); }

/* phones: the footer is centred */
@media (max-width: 700px) {
  .footer { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; padding: 30px var(--pad) calc(30px + env(safe-area-inset-bottom)); }
  .footer .soc { justify-content: center; }
}
