@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --cream: #FBF3E4;
  --ink: #141414;
  --pad: clamp(1rem, 3.2vw, 2.5rem);
  --measure: 36rem;
  --bg: var(--cream);
  --fg: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.5 "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  transition: background-color .45s cubic-bezier(.3,.7,.2,1), color .45s;
}
/* page-level color: project pages and the live flood both set --fill/--on */
body[class*="c-"], body.flood { --bg: var(--fill); --fg: var(--on); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: .75rem; z-index: 20; background: #fff; color: var(--ink); padding: .4rem .8rem; border-radius: 99px; }

/* pills (MANA): white, so colour never fights the interface */
.pill {
  display: inline-flex; align-items: center; height: 2.4rem; padding: 0 1.05rem;
  border-radius: 99px; background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap;
  transition: transform .2s;
}
.pill:hover { transform: translateY(-2px); }
.pill.solid { background: var(--ink); color: #fff; }
.pill[aria-current] { box-shadow: inset 0 0 0 2px var(--ink); }

/* top bar */
.bar {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem var(--pad);
}
.mark { font-weight: 800; letter-spacing: -.02em; }
.meta { margin: 0; font-size: .85rem; line-height: 1.3; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tomato); margin: 0 .25rem; vertical-align: .05em; }
.clock { font-variant-numeric: tabular-nums; }
.bar nav { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 46rem) {
  .bar { grid-template-columns: auto 1fr; }
  .meta { display: none; }
}

main { padding: 0 var(--pad); }

/* hero */
.hero { min-height: calc(100svh - 4.2rem); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(1rem, 3vh, 2rem); }
.claim { margin: 0 0 auto; padding-top: clamp(3rem, 14vh, 9rem); max-width: 22ch; font-size: clamp(1.9rem, 5vw, 4.2rem); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
.cycle { display: inline-grid; vertical-align: bottom; }
.brand {
  grid-area: 1 / 1; justify-self: start;
  background: var(--fill); color: var(--on);
  padding: 0 .3em .06em; border-radius: .5em; white-space: nowrap;
  opacity: 0; transform: translateY(.35em) rotate(-2deg);
  transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.2,1.25);
}
.brand.on, .brand:first-child { opacity: 1; transform: none; }
.js .brand:first-child:not(.on) { opacity: 0; transform: translateY(.35em) rotate(-2deg); }
.wordmark {
  margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: .8;
  font-size: calc((100vw - 2 * var(--pad)) / 5.95);
  white-space: nowrap; margin-left: -.04em;
}
.wordmark .l { color: var(--fill); transition: color .45s; display: inline-block; }
body.flood .wordmark .l { color: var(--fg); }

/* labels */
.label { margin: 0 0 1rem; font-size: 1rem; font-weight: 500; }
.work, .caps, .reel { margin-top: clamp(4rem, 12vh, 8rem); }

/* work index (Adoratorio) */
.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid currentColor; }
.index li { border-bottom: 1.5px solid currentColor; }
.index li > a, .index li[tabindex] {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 16rem) 5rem; align-items: baseline; gap: 1rem;
  padding: .7rem 0 .55rem; text-decoration: none; outline-offset: -2px;
}
.num { font-size: .9rem; font-variant-numeric: tabular-nums; }
.name { font-size: clamp(1.8rem, 5.2vw, 4.4rem); font-weight: 600; letter-spacing: -.035em; line-height: .95; text-transform: uppercase; transition: transform .35s cubic-bezier(.2,.9,.2,1); }
.index li:hover .name, .index li:focus-within .name, .index li.active .name { transform: translateX(.18em); }
.tags { font-size: .95rem; }
.yr { font-size: .95rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 46rem) {
  .index li > a, .index li[tabindex] { grid-template-columns: 2rem 1fr; }
  .tags { grid-column: 2; margin-top: -.3rem; }
  .yr { display: none; }
}
.peek {
  position: fixed; z-index: 15; left: 0; top: 0; width: 13rem; pointer-events: none;
  border-radius: 1rem; overflow: hidden; opacity: 0; transform: scale(.85) rotate(-4deg);
  transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.2,1.2);
}
.peek.on { opacity: 1; transform: scale(1) rotate(-4deg); }
.peek img { display: block; width: 100%; }

/* capabilities */
.caps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.caps li { font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 500; padding: .35em .8em; border: 1.5px solid currentColor; border-radius: 99px; }

/* video */
.clips { display: grid; gap: clamp(.5rem, 1vw, .9rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.clip { margin: 0; position: relative; overflow: hidden; border-radius: 1rem; background: rgba(0,0,0,.08); }
.clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.r9x16 { aspect-ratio: 9 / 16; } .r1x1 { aspect-ratio: 1 / 1; } .r4x5 { aspect-ratio: 4 / 5; }
.r16x9 { aspect-ratio: 16 / 9; grid-column: span 2; } .r4x3 { aspect-ratio: 4 / 3; grid-column: span 2; }
@media (max-width: 34rem) { .r16x9, .r4x3 { grid-column: auto; } }
.reel .clips { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 46rem) { .reel .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; } .reel .clip { scroll-snap-align: start; } }
.reel > p { margin-top: 1rem; }

/* inner pages */
.head { padding: clamp(2.5rem, 10vh, 6rem) 0 clamp(1.5rem, 4vh, 2.5rem); }
.head h1 { margin: 0; font-size: clamp(3.2rem, 11vw, 9rem); font-weight: 600; letter-spacing: -.045em; line-height: .88; }
.lede { margin: 1rem 0 0; max-width: var(--measure); font-size: 1.1rem; }
.crumb { margin: 0 0 1.25rem; }
.case { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 2rem; margin: 2rem 0 0; max-width: 64rem; }
.case dt { font-size: .9rem; }
.case dd { margin: .2rem 0 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; }
.about { display: grid; gap: 2.5rem 4rem; grid-template-columns: minmax(0, var(--measure)) minmax(0, 22rem); }
@media (max-width: 52rem) { .about { grid-template-columns: minmax(0, 1fr); } }
.bio p { margin: 0 0 1.1rem; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.45; }
.facts { margin: 0; } .facts dt { font-size: .9rem; margin-top: 1.4rem; } .facts dt:first-child { margin-top: .3rem; }
.facts dd { margin: .25rem 0 0; font-weight: 500; } .facts ul { list-style: none; margin: 0; padding: 0; } .facts p { margin: 0; }

/* footer */
.foot { margin-top: clamp(5rem, 16vh, 10rem); padding: 2rem var(--pad) 2rem; }
.foot .big { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 5.5vw, 4.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; overflow-wrap: anywhere; }
.foot .big a { text-decoration: none; }
.foot .big a:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.foot .row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* intro loader: big DEAN, MLLER smashes in, folds to DM. (built by site.js) */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: var(--cream); color: var(--ink); will-change: transform; }
.intro .word { display: flex; align-items: baseline; font-weight: 800; letter-spacing: -.045em; font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: 1; white-space: nowrap; will-change: transform; }
.intro .grp { display: inline-flex; will-change: transform; }
.intro .dean { transform-origin: 50% 60%; }
.intro .ch { display: inline-block; overflow: hidden; }
.intro .fold { will-change: width, opacity; display: inline-flex; }
.intro .fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.intro .spark { position: absolute; width: 6px; border-radius: 6px; }
.intro .ico { position: absolute; overflow: visible; filter: drop-shadow(2px 2px 0 #141414); }
.intro .ico path, .intro .ico circle { stroke: #141414; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.intro .bolt { position: absolute; height: auto; overflow: visible; filter: drop-shadow(2px 2px 0 #141414); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro { display: none; }
}
@media (max-width: 46rem) {
  .hero { min-height: 78svh; }
  .claim { font-size: 2.55rem; padding-top: 3.5rem; }
}

/* spotlight (MANA carousel): the reel is the product in the middle */
.spot {
  position: relative; overflow: hidden; margin: clamp(3rem, 10vh, 6rem) calc(-1 * var(--pad)) 0;
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--pad) clamp(1.5rem, 4vh, 2.5rem);
  background: var(--fill); color: var(--on);
  display: grid; justify-items: center; gap: 1.1rem;
  transition: background-color .5s cubic-bezier(.3,.7,.2,1), color .5s;
}
.spot .ghost {
  position: absolute; inset: 50% 0 auto; transform: translateY(-62%); margin: 0; text-align: center;
  font-size: clamp(4rem, 17vw, 16rem); font-weight: 700; letter-spacing: -.05em; line-height: .85; text-transform: uppercase;
  color: rgba(255,255,255,.42); white-space: nowrap; pointer-events: none;
  transition: opacity .3s, transform .5s cubic-bezier(.2,.9,.2,1.15);
}
.spot.dark .ghost { color: rgba(255,255,255,.14); }
.spot.swap .ghost { opacity: 0; transform: translateY(-50%) scale(.94); }
.spot .stage { position: relative; width: min(20rem, 72vw); border-radius: 1.4rem; box-shadow: 0 1.5rem 3rem -1.5rem rgba(0,0,0,.45); transform: rotate(-1.5deg); transition: transform .5s cubic-bezier(.2,.9,.2,1.3); }
.spot.swap .stage { transform: rotate(2deg) scale(.96); }
.spot .ctrl { position: relative; display: flex; gap: .5rem; align-items: center; }
.pill.round { width: 2.9rem; height: 2.9rem; padding: 0; justify-content: center; border: 0; font: inherit; font-size: 1.2rem; cursor: pointer; }
.label-pill { height: 2.9rem; padding: 0 1.4rem; font-size: 1.05rem; }
.spot .count { position: relative; margin: 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.spot .all { position: relative; }
.spot ~ .work { margin-top: clamp(4rem, 10vh, 7rem); }

/* ===== MANA-led home ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home .bar { position: absolute; left: 0; right: 0; }
.open {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  margin: 0 calc(-1 * var(--pad)); padding: 5rem var(--pad) 4rem; background: var(--cream); color: var(--ink);
}
.headline { margin: 0; font-weight: 400; text-transform: uppercase; letter-spacing: -.035em; line-height: .86; font-size: min(11rem, calc((100vw - 2 * var(--pad)) / 8.1)); max-width: 100%; }
.headline .line { display: block; }
.headline .pop .l { display: inline-block; color: var(--fill); font-weight: 400; animation: hop 2.8s cubic-bezier(.3,1.6,.5,1) infinite; animation-delay: calc(var(--i, 0) * 90ms); }
.headline .pop .l:nth-child(1){--i:0}.headline .pop .l:nth-child(2){--i:1}.headline .pop .l:nth-child(3){--i:2}.headline .pop .l:nth-child(4){--i:3}.headline .pop .l:nth-child(5){--i:4}.headline .pop .l:nth-child(6){--i:5}.headline .pop .l:nth-child(7){--i:6}.headline .pop .l:nth-child(8){--i:7}
@keyframes hop { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-.08em) rotate(-3deg); } 86% { transform: translateY(.02em); } }
.side { position: absolute; top: 50%; font-size: clamp(.9rem, 1.4vw, 1.15rem); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.side.left { left: var(--pad); } .side.right { right: var(--pad); }
@media (max-width: 46rem) { .side { top: auto; bottom: 5.5rem; } }
.down { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; }
.down:hover { transform: translateX(-50%) translateY(-2px); }

/* spotlight becomes a full screen, like MANA's product carousel */
.home .spot { margin-top: 0; min-height: 100svh; align-content: center; }
.home .spot .stage { width: min(22rem, 70vw); }

/* full-bleed colour bands */
.band { margin: 0 calc(-1 * var(--pad)); padding: clamp(4rem, 12vh, 7.5rem) var(--pad); background: var(--fill); color: var(--on); text-align: center; }
.band-h { margin: 0 auto 2rem; max-width: 16ch; font-size: clamp(2.2rem, 6.5vw, 5.5rem); font-weight: 400; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }
.band-p { margin: 0 auto 1.5rem; max-width: 34rem; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 70rem; }
.chip {
  display: inline-block; padding: .35em .85em .4em; border-radius: 99px; background: #fff; color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 2.3rem); font-weight: 500; text-decoration: none; letter-spacing: -.02em;
  transition: background-color .25s, color .25s, transform .35s cubic-bezier(.3,1.6,.5,1);
}
.chips li:nth-child(odd) .chip { transform: rotate(-2deg); } .chips li:nth-child(even) .chip { transform: rotate(1.5deg); }
.chip:hover, a.chip:focus-visible { background: var(--fill); color: var(--on); transform: rotate(0) scale(1.08); box-shadow: inset 0 0 0 2px var(--ink); }
.band .chip.c-sunflower { --fill: var(--tomato); }
.caps ul { justify-content: center; max-width: 60rem; margin: 0 auto; }
.band.caps li { background: #fff; color: var(--ink); border: 0; }
.home .caps { margin-top: 0; }

/* footer band */
.foot { margin-top: 0; text-align: center; background: var(--fill); color: var(--on); padding: clamp(4rem, 12vh, 7rem) var(--pad) 2.5rem; }
.foot .band-h { margin-bottom: 1rem; }
.foot .big { font-weight: 500; }
.foot .row { justify-content: center; }
body:not(.home) .foot { margin-top: clamp(5rem, 14vh, 9rem); }
@media (prefers-reduced-motion: reduce) { .headline .pop .l { animation: none; } }
.band.plain { background: var(--cream); color: var(--ink); }
.band.plain .chip { background: var(--fill); color: var(--on); }
.band.plain .chip:hover, .band.plain a.chip:focus-visible { background: #fff; color: var(--ink); }
.band.plain .chip.c-sunflower { --fill: var(--sunflower); }

/* brand pills: size by tier; logos are tinted to the pill's text colour */
.chip.t1 { font-size: clamp(2rem, 5.6vw, 4.6rem); padding: .3em .75em .38em; }
.chip.t2 { font-size: clamp(1.45rem, 3.4vw, 2.7rem); }
.chip.t3 { font-size: clamp(1.05rem, 2.1vw, 1.65rem); }
.chip.has-logo { display: inline-flex; align-items: center; padding: .42em .8em; }
.lg { position: relative; display: block; height: 1.05em; max-width: 10em; }
.logo { position: absolute; inset: 0; background: currentColor; transition: opacity .2s;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; }
.chips { align-items: center; gap: .7rem .6rem; }

/* interactive pills: JS drives transform, CSS handles colour */
.chips.live .chip, .chips.live li:nth-child(odd) .chip, .chips.live li:nth-child(even) .chip { transition: background-color .2s, color .2s, box-shadow .2s; will-change: transform; }
.chips.live .chip:hover { transform: none; }
.chips.live .chip.hot { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; position: relative; }
.chips.live span.chip { cursor: default; }
.chips.live a.chip { cursor: pointer; }
.chip.pop { animation: pop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 0% { filter: none; } 40% { filter: brightness(1.15); } 100% { filter: none; } }

/* "See the work": eyes peeking out from behind the pill */
.down-wrap { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); }
.down-wrap .down { position: relative; bottom: auto; left: auto; transform: none; z-index: 1; height: 2.7rem; padding: 0 1.25rem; }
.down-wrap .down:hover { transform: translateY(-2px); }
.face { position: absolute; z-index: 0; width: 10.6rem; height: auto; left: 50%; bottom: calc(100% + .35rem); transform: translateX(-50%) rotate(-3deg); overflow: visible;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.face .pupil { fill: var(--ink); stroke: none; transition: transform .22s cubic-bezier(.3,1.3,.5,1); }
.face .glint { fill: #fff; }
.face .ball { transform-box: fill-box; transform-origin: 50% 0; transition: transform .08s ease-in; }
.face.blink .ball { transform: scaleY(.12); }
.face .brow { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.face .sk { stroke-width: 1.6; }
.face .smile { opacity: 0; } .face .mouth { transition: opacity .2s; }
.down-wrap:hover .face { transform: translateX(-50%) translateY(-4px) rotate(0deg); }
.down-wrap:hover .face .brow { transform: translateY(-3px) scaleY(1.12); }
.down-wrap:hover .face .smirk { opacity: 0; }
.down-wrap:hover .face .smile { opacity: 1; }
@media (max-width: 46rem) { .face { width: 8.4rem; } .side { top: 4.8rem; bottom: auto; } }

/* hover: the logo switches to its real brand colours on a white pill */
.logo-c { position: absolute; inset: 0; background: no-repeat center / contain; opacity: 0; transition: opacity .2s; }
.chip.has-logo:hover .logo-c, .chip.has-logo.hot .logo-c, a.chip.has-logo:focus-visible .logo-c { opacity: 1; }
.chip.has-logo:hover .logo, .chip.has-logo.hot .logo, a.chip.has-logo:focus-visible .logo { opacity: 0; }

/* brand pills: vibrant colours (same run as SCROLL), logo as one colour;
   hover/touch flips the pill white and shows the real brand colours */
.band.plain .chip.has-logo .logo { opacity: 1; }
.band.plain .chip.has-logo .logo-c { opacity: 0; }
.band.plain .chip:hover, .band.plain a.chip:focus-visible, .chips.live .chip.hot {
  background: #fff !important; color: var(--ink) !important;
  box-shadow: inset 0 0 0 2px var(--ink), 0 .5rem 1.4rem -.6rem rgba(0,0,0,.35) !important; }
.band.plain .chip.has-logo:hover .logo, .chips.live .chip.has-logo.hot .logo { opacity: 0; }
.band.plain .chip.has-logo:hover .logo-c, .chips.live .chip.has-logo.hot .logo-c { opacity: 1; }

/* ===== "Videos I've created": three phones fanned out ===== */
.phones { margin: 0 calc(-1 * var(--pad)); padding: clamp(4rem, 11vh, 7rem) var(--pad) clamp(3rem, 8vh, 5rem);
  background: #8EC2F7; color: var(--ink); text-align: center; overflow: hidden; }
.phones .band-h { margin-bottom: clamp(2rem, 6vh, 3.5rem); }
.fan { position: relative; height: calc(min(19rem, 60vw) * 2.05 + 2.5rem); max-width: 60rem; margin: 0 auto; perspective: 1400px; }
.phone { position: absolute; left: 50%; top: 0; width: min(19rem, 60vw); margin: 0; transform-origin: 50% 90%;
  transition: transform .7s cubic-bezier(.2,.9,.25,1.05), filter .5s, z-index 0s .2s; will-change: transform; }
.phone .bezel { position: relative; padding: .55rem; border-radius: 2.7rem; background: #0d0d0d;
  box-shadow: inset 0 0 0 1.5px #3a3a3a, 0 2.2rem 3.5rem -1.6rem rgba(0,0,0,.55), 0 .6rem 1.2rem -.6rem rgba(0,0,0,.4); }
.phone .bezel::before, .phone .bezel::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #0d0d0d; }
.phone .bezel::before { left: -3px; top: 22%; height: 12%; box-shadow: 0 3.2rem 0 #0d0d0d; }
.phone .bezel::after { right: -3px; top: 28%; height: 18%; }
.phone .screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 2.15rem; overflow: hidden; background: #000; }
.phone .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transform: scale(var(--zoom, 1.42)); transform-origin: 50% 50%; }
.phone .island { position: absolute; top: 1.05rem; left: 50%; width: 31%; height: 1.45rem; transform: translateX(-50%); border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; z-index: 1; }
.phone .bring { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; border-radius: 2.7rem; }
.phone.at-center .bring { display: none; }
.phone.at-center { z-index: 3; transform: translateX(-50%) translateY(0) rotate(0deg); }
.phone.at-left   { z-index: 1; transform: translateX(-122%) translateY(7%) rotate(-12deg) scale(.86); }
.phone.at-right  { z-index: 2; transform: translateX(22%) translateY(7%) rotate(12deg) scale(.86); }
.phone.at-left, .phone.at-right { filter: saturate(.85) brightness(.92); }
.phone.at-left:hover  { transform: translateX(-126%) translateY(3%) rotate(-8deg) scale(.9); filter: none; }
.phone.at-right:hover { transform: translateX(26%) translateY(3%) rotate(8deg) scale(.9); filter: none; }
.phone.at-center:hover { transform: translateX(-50%) translateY(-1.5%) rotate(0deg) scale(1.02); }
.fan.tilt .phone.at-center { transform: translateX(-50%) rotate(var(--tilt, 0deg)); }
@media (max-width: 46rem) {
  .phone.at-left  { transform: translateX(-100%) translateY(8%) rotate(-12deg) scale(.8); }
  .phone.at-right { transform: translateX(0%) translateY(8%) rotate(12deg) scale(.8); }
}
.phones .ctrl { display: flex; justify-content: center; align-items: center; gap: .9rem; margin-top: 1.5rem; }
.phones .count { margin: 0; min-width: 4.5rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.phones > p { margin: 1rem 0 0; }

/* phone UI overlay: makes each screen read like a real feed. Never blocks the video. */
.phone .ui { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: #fff; font-family: "Archivo", system-ui, sans-serif; }
.phone .ui::before, .phone .ui::after { content: ""; position: absolute; left: 0; right: 0; }
.phone .ui::before { top: 0; height: 18%; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.phone .ui::after { bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.phone .status { position: absolute; z-index: 1; top: 1.12rem; left: 1.4rem; right: 1.25rem; display: flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; }
.phone .status .t { margin-right: auto; }
.phone .sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: .62rem; }
.phone .sig i { width: 2.5px; background: #fff; border-radius: 1px; }
.phone .sig i:nth-child(1){height:35%}.phone .sig i:nth-child(2){height:55%}.phone .sig i:nth-child(3){height:78%}.phone .sig i:nth-child(4){height:100%}
.phone .wifi { width: .85rem; fill: #fff; }
.phone .bat { position: relative; width: 1.3rem; height: .62rem; border: 1.3px solid rgba(255,255,255,.85); border-radius: .2rem; padding: 1px; }
.phone .bat::after { content: ""; position: absolute; right: -3.5px; top: 30%; width: 2px; height: 40%; background: rgba(255,255,255,.85); border-radius: 0 1px 1px 0; }
.phone .bat i { display: block; height: 100%; width: 78%; background: #fff; border-radius: 1px; }
.phone .rail { position: absolute; z-index: 1; right: .7rem; bottom: 22%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.phone .rail svg { width: 1.55rem; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.phone .disc { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: conic-gradient(#FFCE4F, #F6B5D2, #8EC2F7, #A9D27E, #FFCE4F); box-shadow: inset 0 0 0 .42rem #1b1b1b; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone .cap { position: absolute; z-index: 1; left: .95rem; right: 3.4rem; bottom: 1.25rem; text-align: left; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.phone .cap b { display: block; font-size: .9rem; }
.phone .cap-t { font-size: .78rem; opacity: .9; }
.phone .island { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .phone .disc { animation: none; } }

/* ===== upgraded phone render: titanium frame, real buttons, glass sheen, studio shadow ===== */
.phone::before { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 3.05rem;
  background: linear-gradient(140deg, #f2f2f4 0%, #9a9ca1 14%, #e8e9ec 30%, #6e7075 52%, #c9cacd 70%, #8a8c91 86%, #eeeff1 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 2px 2px rgba(0,0,0,.25); }
.phone .bezel { border-radius: 2.8rem; padding: .42rem; background: #050505;
  box-shadow: inset 0 0 0 1px #2b2b2b, 0 2.6rem 3rem -1.8rem rgba(0,0,0,.6), 0 1rem 1.6rem -1rem rgba(0,0,0,.35), 0 .2rem .4rem rgba(0,0,0,.25); }
.phone .screen { border-radius: 2.42rem; }
.phone .bring { border-radius: 2.8rem; }
.phone .bezel::before, .phone .bezel::after { width: 4px; background: linear-gradient(90deg, #6e7075, #e4e5e8 45%, #8a8c91); box-shadow: none; }
.phone .bezel::before { left: -8px; top: 20%; height: 3.2%; box-shadow: 0 2.4rem 0 0 #9a9ca1, 0 4.2rem 0 0 #9a9ca1; border-radius: 2px 0 0 2px; }
.phone .bezel::after { right: -8px; top: 27%; height: 13%; border-radius: 0 2px 2px 0; }
.phone .island { top: .95rem; width: 33%; height: 1.55rem; box-shadow: none; }
.phone .island::after { content: ""; position: absolute; right: 14%; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a6b, #0b0f1a 60%); }
.phone .glass { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 22%, transparent 38%); mix-blend-mode: screen; }
/* calmer, more editorial fan */
.phone.at-left   { transform: translateX(-118%) translateY(5%) rotate(-8deg) scale(.88); }
.phone.at-right  { transform: translateX(18%) translateY(5%) rotate(8deg) scale(.88); }
.phone.at-left:hover  { transform: translateX(-121%) translateY(2%) rotate(-5deg) scale(.92); }
.phone.at-right:hover { transform: translateX(21%) translateY(2%) rotate(5deg) scale(.92); }
@media (max-width: 46rem) {
  .phone.at-left  { transform: translateX(-100%) translateY(7%) rotate(-9deg) scale(.82); }
  .phone.at-right { transform: translateX(0%) translateY(7%) rotate(9deg) scale(.82); }
}

/* deeper studio shadow */
.phone .bezel { box-shadow: inset 0 0 0 1px #2b2b2b,
  0 4.5rem 5rem -2rem rgba(0,0,0,.55), 0 2rem 2.6rem -1.2rem rgba(0,0,0,.45), 0 .6rem 1rem -.3rem rgba(0,0,0,.35), 0 .15rem .3rem rgba(0,0,0,.3); }
.fan::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1.2rem; height: 2.4rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.32), transparent); z-index: 0; pointer-events: none; }

/* doodles: the loader's bolts and glyphs, floating around the phones */
.doodles { position: absolute; inset: -2rem -1rem; z-index: 4; pointer-events: none; }
.dd { position: absolute; overflow: visible; filter: drop-shadow(2.5px 2.5px 0 #141414); animation: bob 3.6s ease-in-out infinite; }
.dd.bolt path { fill: var(--c); } .dd.star path { fill: var(--c); }
.dd.ast path, .dd.squig path, .dd.ring circle { fill: none; stroke: var(--c); stroke-width: 3.2; stroke-linecap: round; }
.d1 { --c: #FFCE4F; width: 3.2rem; left: 12%; top: 4%; --r: -16deg; animation-delay: -.4s; }
.d2 { --c: #F2643C; width: 2.3rem; right: 3%; top: 44%; --r: 18deg; animation-delay: -1.6s; }
.d3 { --c: #F6B5D2; width: 1.8rem; left: 9%; bottom: 14%; --r: 8deg; animation-delay: -2.4s; }
.d4 { --c: #FFCE4F; width: 2rem; right: 25%; top: 1%; --r: 0deg; animation: twinkle 2.4s ease-in-out infinite; }
.d5 { --c: #F6B5D2; width: 1.4rem; left: 3%; top: 66%; --r: 0deg; animation: twinkle 2.4s ease-in-out -1.2s infinite; }
.d6 { --c: #fff; width: 1.2rem; right: 9%; top: 18%; --r: 0deg; animation: twinkle 2.4s ease-in-out -.6s infinite; }
.d7 { --c: #E2416F; width: 1.9rem; left: 6%; top: 34%; --r: 0deg; animation: spin 7s linear infinite; }
.d8 { --c: #26367A; width: 4.2rem; right: 4%; bottom: 7%; --r: -8deg; animation-delay: -1s; }
.d9 { --c: #A9D27E; width: 1.6rem; left: 33%; top: -3%; --r: 0deg; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-10px) rotate(calc(var(--r) + 6deg)); } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0deg); opacity: .7; } 50% { transform: scale(1.15) rotate(25deg); opacity: 1; } }
.sticker { position: absolute; left: calc(50% + 4.5rem); top: 9%; display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .85rem .45rem .6rem; border-radius: 99px; background: #FFCE4F; color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--ink), 3px 3px 0 var(--ink); transform: rotate(7deg); animation: stick 3.2s cubic-bezier(.3,1.6,.5,1) infinite; }
.sticker svg { width: .75rem; fill: var(--ink); }
@keyframes stick { 0%, 82%, 100% { transform: rotate(7deg) scale(1); } 88% { transform: rotate(2deg) scale(1.12); } 94% { transform: rotate(9deg) scale(.98); } }
/* zap when the phones rotate */
.fan.zap .dd.bolt { animation: zap .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes zap { 0% { transform: scale(1) rotate(var(--r)); } 35% { transform: scale(1.45) rotate(calc(var(--r) - 14deg)); } 100% { transform: scale(1) rotate(var(--r)); } }
.fan .zspark { position: absolute; width: 5px; border-radius: 5px; z-index: 5; pointer-events: none; }
@media (max-width: 46rem) {
  .sticker { left: auto; right: 2%; top: 3%; font-size: .82rem; }
  .d1 { left: 3%; top: 0; width: 2.4rem; } .d8 { width: 3rem; } .d5, .d9 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dd, .sticker { animation: none !important; } }
.phones .ctrl, .phones > p { position: relative; z-index: 6; }

/* rubber phone cases: matte colour, soft lip, moulded button covers */
.phone.case-red    { --case: #E5352B; --case-d: #B0221B; --case-l: #FF6A5C; }
.phone.case-yellow { --case: #FFC93C; --case-d: #D99A0E; --case-l: #FFE48A; }
.phone.case-orange { --case: #FF7A2F; --case-d: #C9520F; --case-l: #FFAB73; }
.phone::before { inset: -12px; border-radius: 3.4rem;
  background: radial-gradient(120% 80% at 25% 10%, var(--case-l) 0%, var(--case) 38%, var(--case) 70%, var(--case-d) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12), inset 3px 4px 6px rgba(255,255,255,.35), inset -4px -6px 10px rgba(0,0,0,.22); }
.phone .bezel { box-shadow: 0 0 0 2px rgba(0,0,0,.35), inset 0 0 0 1px #2b2b2b,
  0 4.5rem 5rem -2rem rgba(0,0,0,.55), 0 2rem 2.6rem -1.2rem rgba(0,0,0,.45), 0 .6rem 1rem -.3rem rgba(0,0,0,.35); }
.phone .bezel::before, .phone .bezel::after { width: 6px; background: linear-gradient(90deg, var(--case-d), var(--case-l) 55%, var(--case)); }
.phone .bezel::before { left: -17px; box-shadow: 0 2.4rem 0 0 var(--case), 0 4.2rem 0 0 var(--case); border-radius: 4px 0 0 4px; }
.phone .bezel::after { right: -17px; border-radius: 0 4px 4px 0; }

/* phone section controls: chunky comic buttons, counter, progress, CTA */
.ctrl2 { position: relative; z-index: 6; display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.cbtn { width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #FFCE4F; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink), 4px 4px 0 var(--ink);
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s, background-color .2s; }
.cbtn.prev svg { transform: scaleX(-1); }
.cbtn svg { width: 1.6rem; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.cbtn:hover { transform: translate(-2px, -2px) rotate(-4deg); box-shadow: inset 0 0 0 2.5px var(--ink), 6px 6px 0 var(--ink); background: #fff; }
.cbtn.next:hover svg { transform: translateX(3px); }
.cbtn.prev:hover svg { transform: scaleX(-1) translateX(3px); }
.cbtn:active { transform: translate(3px, 3px); box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 var(--ink); }
.counter { min-width: 7.2rem; height: 3.6rem; padding: 0 1.2rem; border-radius: 99px; display: inline-flex; align-items: baseline; justify-content: center; gap: .35rem;
  background: var(--ink); color: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,.25); line-height: 3.6rem; font-variant-numeric: tabular-nums; }
.counter .cur { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; }
.counter .of { font-size: .95rem; opacity: .65; }
.track { position: relative; z-index: 6; width: min(15rem, 70%); height: 6px; margin: 1.1rem auto 0; border-radius: 6px; background: rgba(20,20,20,.18); overflow: hidden; }
.track i { display: block; height: 100%; width: 6.67%; border-radius: 6px; background: var(--ink); transition: width .5s cubic-bezier(.2,.9,.25,1); }
.allv { position: relative; z-index: 6; margin: 1.6rem 0 0; }
.cta { display: inline-flex; align-items: center; gap: .55rem; height: 3.1rem; padding: 0 1.5rem; border-radius: 99px; text-decoration: none; font-weight: 600;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink), 4px 4px 0 var(--ink); transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s; }
.cta svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: inset 0 0 0 2.5px var(--ink), 6px 6px 0 var(--ink); }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: translate(3px, 3px); box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 var(--ink); }

/* spread the fan out a little */
.fan { max-width: 66rem; }
.phone.at-left   { transform: translateX(-146%) translateY(5%) rotate(-8deg) scale(.88); }
.phone.at-right  { transform: translateX(46%) translateY(5%) rotate(8deg) scale(.88); }
.phone.at-left:hover  { transform: translateX(-149%) translateY(2%) rotate(-5deg) scale(.92); }
.phone.at-right:hover { transform: translateX(49%) translateY(2%) rotate(5deg) scale(.92); }
@media (max-width: 46rem) {
  .phone.at-left  { transform: translateX(-108%) translateY(7%) rotate(-9deg) scale(.8); }
  .phone.at-right { transform: translateX(8%) translateY(7%) rotate(9deg) scale(.8); }
}
/* case detail: grain, corner bumpers, edge seam */
.phone .case-tex { position: absolute; inset: -12px; z-index: -1; border-radius: 3.4rem; pointer-events: none;
  background:
    radial-gradient(2.4rem 2.4rem at 1.4rem 1.4rem, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(2.4rem 2.4rem at calc(100% - 1.4rem) 1.4rem, rgba(255,255,255,.18), transparent 70%),
    radial-gradient(2.4rem 2.4rem at 1.4rem calc(100% - 1.4rem), rgba(0,0,0,.18), transparent 70%),
    radial-gradient(2.4rem 2.4rem at calc(100% - 1.4rem) calc(100% - 1.4rem), rgba(0,0,0,.24), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .9; mix-blend-mode: soft-light;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.06), inset 0 0 0 6px rgba(255,255,255,.12); }
.phone .earpiece { position: absolute; z-index: 3; top: .17rem; left: 50%; width: 22%; height: 3px; transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(#1c1c1c, #3a3a3a); pointer-events: none; }
/* richer app UI */
.phone .apphead { position: absolute; z-index: 1; top: 2.75rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.phone .apphead svg { width: 1.35rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.phone .cap { bottom: 1.55rem; display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: .45rem; row-gap: .25rem; }
.phone .cap .av { width: 1.55rem; height: 1.55rem; border-radius: 50%; background: conic-gradient(#FFCE4F, #F2643C, #E2416F, #8EC2F7, #FFCE4F); box-shadow: 0 0 0 1.5px #fff; }
.phone .cap b { display: inline; font-size: .82rem; }
.phone .cap .follow { justify-self: start; padding: .1rem .45rem; border: 1px solid rgba(255,255,255,.85); border-radius: .4rem; font-size: .68rem; font-weight: 600; }
.phone .cap .cap-t { grid-column: 1 / -1; font-size: .76rem; }
.phone .cap .audio { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; opacity: .9; white-space: nowrap; overflow: hidden; }
.phone .cap .audio svg { width: .75rem; flex: none; fill: none; stroke: #fff; stroke-width: 2; }
.phone .prog { position: absolute; z-index: 1; left: 0; right: 0; bottom: .95rem; height: 2px; background: rgba(255,255,255,.3); }
.phone .prog i { display: block; height: 100%; width: 0; background: #fff; animation: prog 9s linear infinite; }
.phone.at-left .prog i { animation-delay: -3s; } .phone.at-right .prog i { animation-delay: -6s; }
@keyframes prog { to { width: 100%; } }
.phone .home-ind { position: absolute; z-index: 1; left: 50%; bottom: .38rem; width: 36%; height: 4px; transform: translateX(-50%); border-radius: 4px; background: rgba(255,255,255,.9); }
.phone .rail { bottom: 27%; }
@media (prefers-reduced-motion: reduce) { .phone .prog i { animation: none; width: 35%; } }

/* "made" gets crossed out and "created" is written in by hand */
@font-face { font-family: "Hand"; src: url("/static/fonts/caveat-sub.woff2") format("woff2"); font-weight: 400 700; font-display: block; }
.band-h.edit { position: relative; }
.strike { position: relative; display: inline-block; }
.strike .x { position: absolute; left: -6%; width: 112%; top: 22%; height: 55%; overflow: visible; pointer-events: none; }
.strike .x path { fill: none; stroke: #F2643C; stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.strike .x { clip-path: inset(-40% 100% -40% -5%); }
.strike .hand { position: absolute; left: 50%; bottom: 74%; transform: translateX(-46%) rotate(-7deg); transform-origin: 0 100%;
  font-family: "Hand", "Archivo", cursive; font-weight: 700; text-transform: none; letter-spacing: 0; font-size: .82em; line-height: 1;
  color: #E2416F; white-space: nowrap; clip-path: inset(-20% 100% -30% 0); }
.strike .caret { position: absolute; left: 46%; bottom: -8%; width: 22%; overflow: visible; }
.strike .caret path { fill: none; stroke: #E2416F; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; }
.edit.go .x.s1 { animation: reveal .45s cubic-bezier(.6,0,.3,1) .1s forwards; }
.edit.go .x.s2 { animation: reveal .4s cubic-bezier(.6,0,.3,1) .5s forwards; }
@keyframes reveal { to { clip-path: inset(-40% -5% -40% -5%); } }
.edit.go .caret path { animation: draw .3s ease-out .85s forwards; }
.edit.go .hand { animation: write 1.1s steps(14, end) 1s forwards, settle .5s cubic-bezier(.3,1.6,.5,1) 2.05s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes write { to { clip-path: inset(-20% -10% -30% 0); } }
@keyframes settle { 50% { transform: translateX(-46%) rotate(-3deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .strike .x { clip-path: none; } .strike .caret path { stroke-dashoffset: 0; }
  .strike .hand { clip-path: none; }
}

/* "What I do": a live cursor walks in and adds "Now: Web development" */
.band.caps { position: relative; overflow: hidden; }
.band.caps .live-add { position: relative; display: inline-flex; align-items: center; gap: .5rem; }
.live-add .now { display: inline-block; padding: .12em .5em .16em; border-radius: 99px; background: #F2643C; color: #fff; font-size: .55em; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; transform: rotate(-6deg); }
.live-add .caret { display: none; width: 2px; height: 1.05em; background: #F2643C; margin-left: -.35rem; animation: blinkc .9s steps(1) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
/* states driven by site.js; without JS the finished pill simply shows */
.caps.js-live .live-add { opacity: 0; transform: scale(.9); }
.caps.js-live .live-add.on { opacity: 1; transform: none; background: transparent !important; color: #fff !important;
  box-shadow: inset 0 0 0 2px #F2643C; outline: 2px dashed rgba(242,100,60,.0); transition: opacity .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.caps.js-live .live-add.on .now { display: none; }
.caps.js-live .live-add.on .caret { display: inline-block; }
.caps.js-live .live-add.done { background: #FFCE4F !important; color: var(--ink) !important; box-shadow: 3px 3px 0 #F2643C; transition: background-color .25s, box-shadow .25s, transform .4s cubic-bezier(.3,1.8,.5,1); transform: rotate(-2deg) scale(1.04); }
.caps.js-live .live-add.done .now { display: inline-block; animation: nowpop .5s cubic-bezier(.3,1.9,.5,1) .05s both; }
@keyframes nowpop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(-6deg); } }
.caps.js-live .live-add.done .caret { display: none; }
.live-add .sel { position: absolute; inset: -6px; border: 1.5px solid #F2643C; border-radius: 99px; pointer-events: none; }
.live-add .sel::before, .live-add .sel::after { content: ""; position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid #F2643C; border-radius: 2px; top: 50%; margin-top: -4px; }
.live-add .sel::before { left: -4px; } .live-add .sel::after { right: -4px; }

.mcur { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; will-change: transform; }
.caps:not(.js-live) .mcur { display: none; }
.mcur > svg { width: 2.1rem; display: block; overflow: visible; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.mcur > svg path { fill: #F2643C; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.mcur .tag { position: absolute; left: 1.7rem; top: 1.9rem; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  padding: .28rem .6rem .3rem .45rem; border-radius: .25rem .9rem .9rem .9rem; background: #F2643C; color: #fff; font-size: .92rem; font-weight: 700;
  box-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(0,0,0,.35); transform: rotate(-3deg); }
.mcur .tag svg { width: .8rem; fill: #fff; }
.mcur .tag em { font-style: normal; font-weight: 500; opacity: .85; margin-left: .15rem; }
.mcur.click > svg { animation: clk .28s ease-out; }
@keyframes clk { 40% { transform: scale(.82) translate(1px, 2px); } }
.mcur .ring { position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid #F2643C; pointer-events: none; }

.band.caps li.peek-sel { box-shadow: 0 0 0 2px #F2643C; transition: box-shadow .15s; }
.caps.js-live .live-add.hl .txt { background: rgba(242,100,60,.45); border-radius: .2em; }

/* ===== footer: a drawn hand pulls the sheet up as you reach the bottom ===== */
.foot { position: relative; overflow: hidden; margin-top: 0; padding: 12rem 0 0; background: transparent; color: inherit; text-align: center; }
body:not(.home) .foot { margin-top: clamp(2rem, 8vh, 5rem); }
.foot .sheet { position: relative; padding: clamp(4rem, 11vh, 6.5rem) var(--pad) 3rem; background: var(--ink); color: #fff;
  border-radius: 2.6rem 2.6rem 0 0; will-change: transform; transform: translateY(var(--lift, 0px)); }
body.dark .foot .sheet { background: #fff; color: var(--ink); }
.foot .big { margin: 0 0 1.6rem; }
.foot .hand { position: absolute; left: 50%; top: 0; width: 9.4rem; margin-left: -4.7rem; transform: translate(-3rem, calc(9.4rem * -.905)) rotate(var(--tilt, -6deg));
  transform-origin: 50% 80%; overflow: visible; pointer-events: none; }
.foot .hand path { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: #fff; }
.foot .hand .sleeve { fill: #F2643C; } .foot .hand .cuff { fill: #FFCE4F; }
.foot .hand .detail { fill: none; stroke-width: 2; }
.foot .hand .fingers { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(var(--grip, 1)); }
body.dark .foot .hand path { stroke: var(--ink); }
/* hand-drawn link buttons */
@font-face { font-family: "HandUI"; src: url("/static/fonts/caveat-sub.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.doodle-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem 1.4rem; }
.dl { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1.1rem .4rem .8rem; text-decoration: none; color: inherit;
  font-family: "HandUI", "Archivo", cursive; font-size: 1.95rem; line-height: 1; border-radius: 1.4rem 1.1rem 1.5rem 1.2rem / 1.2rem 1.5rem 1.1rem 1.4rem;
  box-shadow: inset 0 0 0 2px currentColor; transform: rotate(-2deg); transition: transform .3s cubic-bezier(.3,1.7,.5,1), background-color .2s, color .2s; }
.dl:nth-child(2) { transform: rotate(1.5deg); } .dl:nth-child(3) { transform: rotate(-1deg); }
.dl svg { width: 2.1rem; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dl:hover { transform: rotate(0deg) scale(1.08); background: #FFCE4F; color: var(--ink); }
.dl:hover svg { animation: wig .5s ease-in-out; }
@keyframes wig { 25% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
.foot .hand { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); }

/* ===== "Hi, I'm Dean" ===== */
.band.hi { position: relative; overflow: hidden; }
.hi-wrap { max-width: 64rem; margin: 0 auto; }
.hi-wrap.has-photo { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; text-align: left; }
.hi-wrap.has-photo .band-h, .hi-wrap.has-photo .band-p { margin-left: 0; }
@media (max-width: 46rem) { .hi-wrap.has-photo { grid-template-columns: 1fr; text-align: center; justify-items: center; } .hi-wrap.has-photo .band-h, .hi-wrap.has-photo .band-p { margin-left: auto; } }
.hi-copy { font-size: clamp(1.15rem, 1.9vw, 1.55rem) !important; line-height: 1.45; max-width: 36rem !important; font-weight: 400; letter-spacing: -.005em; }
.hi .dl { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.hi .dl svg { order: 2; }
/* polaroid */
.polaroid { position: relative; margin: 0; padding: .8rem .8rem 3.4rem; background: #fff; transform: rotate(-4deg);
  box-shadow: 0 1.6rem 2.4rem -1rem rgba(0,0,0,.35), 0 .3rem .6rem rgba(0,0,0,.12); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.polaroid:hover { transform: rotate(-1deg) scale(1.03); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 7; object-fit: cover; background: #eee; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: .55rem; font-family: "HandUI", cursive; font-size: 1.9rem; color: #E2416F; text-align: center; transform: rotate(-2deg); }
.tape { position: absolute; width: 5.2rem; height: 1.6rem; background: rgba(255, 206, 79, .78); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tape.t1 { top: -.7rem; left: -1.2rem; transform: rotate(-32deg); } .tape.t2 { top: -.6rem; right: -1.3rem; transform: rotate(28deg); background: rgba(246, 181, 210, .8); }
.note-arrow { position: absolute; width: 5.5rem; overflow: visible; fill: none; stroke: #E2416F; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hi-wrap.has-photo { position: relative; }
.hi-wrap.has-photo .note-arrow { left: calc(20rem - 1.5rem); top: 62%; }
@media (max-width: 46rem) { .note-arrow { display: none; } }
/* names: marker underline draws in; logo pops up as a sticker on hover */
.nm { position: relative; display: inline-block; white-space: nowrap; }
.nm-t { position: relative; z-index: 1; }
.nm .mk { position: absolute; left: -3%; bottom: .02em; width: 106%; height: .5em; overflow: visible; z-index: 0; clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.6,0,.3,1); }
.nm:nth-of-type(2) .mk { transition-delay: .35s; }
.nm .mk path { fill: none; stroke: #FFCE4F; stroke-width: 11; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.nm:nth-of-type(2) .mk path { stroke: #F6B5D2; }
.hi.go .nm .mk { clip-path: inset(-50% -5% -50% -5%); }
.nm-logo { position: absolute; left: 50%; bottom: 120%; width: 7.5rem; max-width: none; height: auto; padding: .55rem .7rem; background: #fff; border-radius: .9rem;
  box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--ink); transform: translateX(-50%) rotate(-6deg) scale(0); transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.3,1.7,.5,1); pointer-events: none; z-index: 5; }
.nm:hover .nm-logo, .nm:focus .nm-logo, .nm.pop .nm-logo { transform: translateX(-50%) rotate(-6deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .nm .mk { clip-path: none; } }


/* stick-figure polaroid */
.polaroid .pic { aspect-ratio: 6 / 7; background: #EAF4FE; display: grid; place-items: center; overflow: hidden; }
.stick { width: 92%; height: auto; overflow: visible; }
.stick path, .stick rect { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.stick .hair { fill: var(--ink); stroke-width: 2.5; }
.stick .sf-ph { fill: #F2643C; stroke-width: 3; }
.stick .sun { fill: #FFCE4F; stroke-width: 3; } .stick .ray { stroke: #F2643C; stroke-width: 3.2; }
.stick .spark { fill: #F6B5D2; stroke-width: 2.4; }
.stick .ground { stroke-width: 3; opacity: .6; }
.stick .wave-mark { stroke: #E2416F; stroke-width: 3; }
.stick .arm-wave { transform-box: view-box; transform-origin: 123px 126px; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 55%, 100% { transform: rotate(0deg); } 62% { transform: rotate(-16deg); } 70% { transform: rotate(8deg); } 78% { transform: rotate(-14deg); } 86% { transform: rotate(4deg); } }
.stick .wave-mark { animation: wavem 2.4s ease-in-out infinite; } @keyframes wavem { 0%, 55%, 92%, 100% { opacity: 0; } 62%, 86% { opacity: 1; } }
.stick .eyes2 { transform-box: fill-box; transform-origin: 50% 50%; animation: wblink 3.8s infinite; }
.stick .fig { transform-box: view-box; transform-origin: 124px 250px; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg); } }
.stick .sun { transform-box: fill-box; transform-origin: 50% 50%; animation: twinkle 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .stick * { animation: none !important; } }

/* the stick figure, drawn on a sheet of ruled notebook paper */
.paper { position: relative; margin: 0; padding: 1.4rem 1.2rem 3.2rem 2.6rem; transform: rotate(-3.5deg);
  background:
    radial-gradient(circle at 1.05rem 18%, #e4e1d8 0 .42rem, transparent .46rem),
    radial-gradient(circle at 1.05rem 50%, #e4e1d8 0 .42rem, transparent .46rem),
    radial-gradient(circle at 1.05rem 82%, #e4e1d8 0 .42rem, transparent .46rem),
    linear-gradient(90deg, transparent 2.05rem, rgba(226,65,111,.55) 2.05rem, rgba(226,65,111,.55) 2.17rem, transparent 2.17rem),
    repeating-linear-gradient(180deg, transparent 0 1.62rem, rgba(110,160,220,.42) 1.62rem 1.7rem),
    #FFFDF6;
  box-shadow: 0 1.4rem 2.2rem -1.2rem rgba(0,0,0,.35), 0 .2rem .5rem rgba(0,0,0,.1);
  clip-path: polygon(0 1.5%, 6% 0, 13% 1.2%, 21% .2%, 29% 1.4%, 37% .3%, 45% 1.1%, 54% 0, 62% 1.3%, 70% .4%, 79% 1.2%, 87% .1%, 94% 1.1%, 100% .5%, 100% 100%, 0 100%);
  transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.paper:hover { transform: rotate(-1deg) scale(1.03); }
.paper .tape.t1 { top: 0; left: 50%; margin-left: -2.6rem; transform: rotate(-4deg); background: rgba(255,206,79,.7); }
.paper .pic { aspect-ratio: 6 / 7; display: grid; place-items: center; }
.paper .stick path, .paper .stick rect { stroke: #2a2a2e; stroke-width: 3.6; }
.paper .stick .hair { fill: #2a2a2e; }
.paper .stick .ground { stroke-dasharray: 6 7; }
.paper figcaption { position: absolute; left: 2.6rem; right: 1rem; bottom: .8rem; font-family: "HandUI", cursive; font-size: 1.9rem; color: #E2416F; text-align: center; transform: rotate(-2deg); }
.hi-wrap.has-photo .note-arrow { left: calc(20rem - .5rem); }


@media (max-width: 46rem) { .paper { width: min(16rem, 78vw); } }

/* "#1 go-kart racer" badge stuck on the bottom of the drawing */
.pw { position: relative; }
.k-badge { position: absolute; right: -1.2rem; bottom: -1rem; z-index: 2; display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap;
  padding: .35rem .85rem .42rem; border-radius: 99px; background: #F2643C; color: #fff; font-family: "HandUI", cursive; font-size: 1.4rem; line-height: 1;
  box-shadow: inset 0 0 0 2px var(--ink), 3px 3px 0 var(--ink); transform: rotate(-8deg) scale(0); transform-origin: 70% 100%;
  transition: transform .5s cubic-bezier(.3,1.7,.5,1) .6s; }
.k-badge b { font-size: 1.7rem; color: #FFCE4F; }
.hi.go .k-badge { transform: rotate(-8deg) scale(1); }
.pw:hover .k-badge { transform: rotate(-3deg) scale(1.08); transition-delay: 0s; }
@media (max-width: 46rem) { .k-badge { right: -.4rem; font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .k-badge { transform: rotate(-8deg); transition: none; } }

/* floating hand-drawn icons around the phones: footballs, likes, toothbrushes, notifications */
.dd.ico path, .dd.ico circle { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dd.ico { animation-duration: 4.2s; }
.i1 { width: 3.5rem; left: 0%; top: 8%; --r: -24deg; animation-delay: -.8s; }
.i2 { width: 2.8rem; left: 24%; top: -2%; --r: -10deg; animation-delay: -2.2s; }
.i3 { width: 4rem; right: -1%; top: 26%; --r: 18deg; animation-delay: -1.4s; }
.i4 { width: 4.2rem; right: 22%; top: -5%; --r: 8deg; animation-delay: -.3s; }
.i5 { width: 2.5rem; right: 0%; bottom: 44%; --r: 14deg; animation-delay: -2.8s; }
.i6 { width: 3rem; right: 1%; bottom: 4%; --r: 30deg; animation-delay: -1.9s; }
.i7 { width: 3.3rem; left: 0%; bottom: 38%; --r: -8deg; animation-delay: -3.3s; }
.i8 { width: 3.4rem; left: 1%; bottom: 6%; --r: -38deg; animation-delay: -1.1s; }
.fan.zap .dd.ico { animation: zap .55s cubic-bezier(.2,1.6,.4,1); }
@media (max-width: 46rem) { .i2, .i5, .i6, .i8 { display: none; } .i1 { width: 2.2rem; top: 2%; } .i3 { width: 2.4rem; } .i4 { width: 2.6rem; right: 2%; top: 14%; } .i7 { width: 2.2rem; } }

/* the badge now sits where "that's me!" was: bottom centre of the sheet */
.k-badge { right: auto; left: 50%; bottom: .9rem; transform: translateX(-46%) rotate(-5deg) scale(0); transform-origin: 50% 100%; }
.hi.go .k-badge { transform: translateX(-46%) rotate(-5deg) scale(1); }
.pw:hover .k-badge { transform: translateX(-46%) rotate(-1deg) scale(1.08); }
@media (max-width: 46rem) { .k-badge { right: auto; } }
@media (prefers-reduced-motion: reduce) { .k-badge { transform: translateX(-46%) rotate(-5deg); } }

/* ===== "CALL ME RIGHT NOW" pop-up ===== */
.callme { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 40; font-family: "HandUI", "Archivo", cursive; }
.callme[hidden] { display: none; }
.cm-btn { display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer; padding: .55rem 1.15rem .62rem .8rem;
  font: inherit; font-size: 1.55rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: #fff; background: #E5352B;
  border-radius: 1.4rem 1rem 1.5rem 1.1rem / 1.1rem 1.5rem 1rem 1.4rem; box-shadow: inset 0 0 0 2.5px var(--ink), 4px 4px 0 var(--ink);
  transform: rotate(-4deg) scale(0); transform-origin: 20% 100%; transition: transform .55s cubic-bezier(.3,1.7,.5,1); }
.callme.show .cm-btn { transform: rotate(-4deg) scale(1); }
.callme.show .cm-btn { animation: ring 3.6s ease-in-out 1.2s infinite; }
@keyframes ring { 0%, 78%, 100% { transform: rotate(-4deg) scale(1); } 81% { transform: rotate(-9deg) scale(1.06); } 84% { transform: rotate(2deg) scale(1.06); }
  87% { transform: rotate(-8deg) scale(1.06); } 90% { transform: rotate(1deg) scale(1.04); } 93% { transform: rotate(-4deg) scale(1); } }
.cm-btn:hover { animation-play-state: paused; transform: rotate(-1deg) scale(1.07) !important; }
.cm-btn:active { transform: translate(3px, 3px) rotate(-1deg) !important; box-shadow: inset 0 0 0 2.5px var(--ink), 1px 1px 0 var(--ink); }
.cm-btn svg { width: 1.9rem; overflow: visible; }
.cm-btn .ph { fill: #fff; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.cm-btn .rg { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; animation: rg 1.2s ease-in-out infinite; }
@keyframes rg { 50% { opacity: .2; } }
.callme.is-open .cm-btn { display: none; }
.cm-card { display: none; position: relative; max-width: min(21rem, calc(100vw - 2.2rem)); padding: 1.1rem 1.3rem 1.2rem; background: #fff; color: var(--ink);
  border-radius: 1.6rem 1.2rem 1.7rem 1.3rem / 1.3rem 1.7rem 1.2rem 1.6rem; box-shadow: inset 0 0 0 2.5px var(--ink), 5px 5px 0 #E5352B, 5px 5px 0 2.5px var(--ink);
  transform: rotate(-2deg); transform-origin: 10% 100%; }
.callme.is-open .cm-card { display: block; animation: cmpop .5s cubic-bezier(.3,1.7,.5,1); }
@keyframes cmpop { from { transform: rotate(-12deg) scale(.3); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
.cm-card::after { content: ""; position: absolute; left: 1.6rem; bottom: -.85rem; width: 1.3rem; height: 1.3rem; background: #fff;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(40deg) skewX(10deg); }
.cm-say { margin: 0 1.6rem .5rem 0; font-size: 1.45rem; line-height: 1.12; }
.cm-num { display: inline-block; font-size: 2.3rem; line-height: 1; color: #E5352B; text-decoration: none; white-space: nowrap;
  background: linear-gradient(transparent 62%, rgba(255,206,79,.85) 62%, rgba(255,206,79,.85) 92%, transparent 92%); padding: 0 .15rem; }
.cm-num:hover { color: #B0221B; }
.cm-x { position: absolute; top: .55rem; right: .55rem; width: 2rem; height: 2rem; border: 0; background: transparent; cursor: pointer; padding: .25rem; }
.cm-x svg { width: 100%; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.cm-x:hover svg { stroke: #E5352B; }
@media (max-width: 46rem) { .cm-btn { font-size: 1.3rem; } .callme { left: .8rem; bottom: .8rem; } }
@media (prefers-reduced-motion: reduce) { .cm-btn, .callme.show .cm-btn { animation: none; transform: rotate(-4deg); transition: none; } .callme.is-open .cm-card { animation: none; } }

/* scribbled-out number */
.cm-num { margin: 0; cursor: pointer; }
.cm-num:hover .scrib svg { transform: rotate(-2deg) scale(1.04); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.scrib { position: relative; display: inline-block; }
.scrib .ghost { filter: blur(5px); opacity: .7; letter-spacing: .06em; }
.scrib svg { position: absolute; left: -4%; top: -6%; width: 110%; height: 112%; overflow: visible; }
.scrib path { fill: none; stroke: #141414; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.scrib path:nth-child(2) { stroke: #E5352B; stroke-width: 4.5; } .scrib path:nth-child(3) { stroke-width: 4; } .scrib path:nth-child(4) { stroke-width: 3.2; } .scrib path:nth-child(5) { stroke: #E5352B; stroke-width: 4; }
.scrib svg { clip-path: inset(-20% 100% -20% -10%); }
.callme.is-open .scrib svg { animation: scribin .7s cubic-bezier(.6,0,.4,1) .35s forwards; }
@keyframes scribin { to { clip-path: inset(-20% -10% -20% -10%); } }
@media (prefers-reduced-motion: reduce) { .scrib svg { clip-path: none; } }

/* ===== work page: one section per client ===== */
.wk-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.wk-jump { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 3px 3px 0 var(--ink); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.wk-jump b { font-size: .8rem; opacity: .7; }
.wk-jump:hover { transform: translate(-2px, -2px) rotate(-2deg); }
.wk-sec { padding: clamp(2.5rem, 7vh, 4rem) 0 1rem; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.wk-sec + .wk-sec { margin-top: 1rem; }
.wk-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.wk-head h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.035em; line-height: .95; text-transform: uppercase; }
.wk-head p { margin: .35rem 0 0; font-size: 1rem; opacity: .7; }
.wk-badge { flex: none; display: grid; place-items: center; width: 7.5rem; height: 4.4rem; padding: .6rem .8rem; border-radius: 1rem; background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--ink); transform: rotate(-3deg); }
.wk-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.wk-name { font-weight: 700; }
.clip .vn { position: absolute; z-index: 2; left: .5rem; top: .5rem; padding: .15rem .45rem; border-radius: .4rem; background: #FFCE4F; color: var(--ink);
  font-weight: 700; font-size: .8rem; box-shadow: inset 0 0 0 1.5px var(--ink); pointer-events: none; }
body.dark .wk-sec { border-top-color: rgba(255,255,255,.3); }
@media (max-width: 46rem) { .wk-badge { width: 5.5rem; height: 3.4rem; } }

/* ===== mobile + polish pass ===== */
.callme { transition: transform .35s cubic-bezier(.5,0,.3,1), opacity .25s; }
.callme.tuck { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (max-width: 46rem) {
  .cm-btn { font-size: 1.15rem; padding: .45rem .9rem .5rem .65rem; }
  .cm-btn svg { width: 1.5rem; }
  .cm-say { font-size: 1.3rem; } .cm-num { font-size: 2rem; }
  /* work page: two videos per row instead of one giant column */
  .wk-sec .clips, main > .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .wk-head { gap: .8rem; } .wk-head h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .wk-nav { gap: .4rem; } .wk-jump { font-size: .9rem; padding: .45rem .8rem; min-height: 2.4rem; }
  /* hero: bigger headline, less dead space */
  .headline { font-size: calc((100vw - 2 * var(--pad)) / 7.4); }
  .open { padding-bottom: 9rem; }
  /* footer email shouldn't crowd the edges */
  .foot .big { font-size: clamp(1.4rem, 7.2vw, 2.4rem); }
  .doodle-links { gap: .7rem; } .dl { font-size: 1.6rem; min-height: 2.75rem; }
  /* phone section: keep the counter controls comfortable to tap */
  .cbtn { width: 3.2rem; height: 3.2rem; } .counter { height: 3.2rem; line-height: 3.2rem; min-width: 6.2rem; }
  .band-h { font-size: clamp(2rem, 9.5vw, 3rem); }
}
@media (hover: none) { .chip:hover { transform: none; } }
@media (max-width: 46rem) {
  .bar { gap: .5rem; padding: .8rem var(--pad); }
  .bar nav { flex-wrap: nowrap; gap: .3rem; }
  .bar .pill { height: 2.25rem; padding: 0 .8rem; font-size: .9rem; }
}
@media (max-width: 340px) { .bar .pill { padding: 0 .6rem; font-size: .85rem; } .bar .mark { padding: 0 .55rem; } }
@media (max-width: 46rem) { .intro .word { font-size: 12.5vw; } }


/* live rewrite of the last line + orange letterbox */
.rw { position: relative; display: inline; }
.rw-t { position: relative; border-radius: .15em; transition: background-color .2s; }
.rw.sel .rw-t { background: linear-gradient(90deg, rgba(242,100,60,.4) var(--sel, 0%), transparent var(--sel, 0%)); }
.rw-caret { display: none; width: 2px; height: 1em; margin-left: 1px; background: #F2643C; vertical-align: -.12em; animation: blinkc .9s steps(1) infinite; }
.rw.typing .rw-caret { display: inline-block; }
.rw.lbx .rw-t { background: #F2643C; color: #fff; padding: .02em .32em .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  box-shadow: 3px 3px 0 var(--ink); border-radius: .12em; }
.rw.lbx { animation: lbxpop .45s cubic-bezier(.3,1.7,.5,1); display: inline-block; }
@keyframes lbxpop { 0% { transform: scale(.9) rotate(-2deg); } 60% { transform: scale(1.06) rotate(-1deg); } 100% { transform: none; } }
.hi:not(.js-rw) .rw .rw-t { background: #F2643C; color: #fff; padding: .02em .32em .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 3px 3px 0 var(--ink); }
.hi .hi-cur { opacity: 0; }
.hi:not(.js-rw) .hi-cur { display: none; }

/* company names scribbled out, with a note to self */
.nm .mk { display: none; }
.nm { cursor: default; }
.nm-t { transition: filter .4s .3s; }
.hi.go .nm-t { filter: blur(3.5px); }
.nm .scr { position: absolute; left: -4%; top: 4%; width: 108%; height: 92%; overflow: visible; pointer-events: none; clip-path: inset(-30% 100% -30% -10%); }
.nm .scr path { fill: none; stroke: #141414; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nm .scr path:nth-child(2) { stroke-width: 3; } .nm .scr path:nth-child(3) { stroke-width: 3.4; }
.hi.go .nm .scr { animation: scribin .75s cubic-bezier(.6,0,.4,1) .9s forwards; }
.hi.go .nm ~ .nm .scr { animation-delay: 1.45s; }
.erase { position: absolute; left: 62%; bottom: 92%; display: inline-flex; align-items: flex-end; gap: .1rem; white-space: nowrap; pointer-events: none;
  font-family: "HandUI", cursive; font-size: .72em; color: #E2416F; transform: rotate(-7deg) scale(0); transform-origin: 0 100%; opacity: 0; }
.erase svg { width: 2.1em; overflow: visible; transform: translateY(.55em) scaleX(-1); }
.erase svg path { fill: none; stroke: #E2416F; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.erase span { transform: translateY(-.15em); }
.hi.go .erase { animation: erasein .5s cubic-bezier(.3,1.7,.5,1) 2.3s forwards; }
@keyframes erasein { to { transform: rotate(-7deg) scale(1); opacity: 1; } }
@media (max-width: 46rem) { .erase { left: 30%; } }
@media (prefers-reduced-motion: reduce) { .nm .scr { clip-path: none; } .hi .nm-t { filter: blur(3.5px); } .erase { transform: rotate(-7deg); opacity: 1; } }

/* the suited-up doodle with the pug */
.stick .leaves path { fill: #A9D27E; stroke: #2a2a2e; stroke-width: 2.4; } .stick .leaves path:nth-child(even) { fill: none; stroke-width: 1.8; }
.stick .moon { fill: #FFCE4F; stroke-width: 2.6; }
.stick .spark.s2 { fill: #8EC2F7; }
.paper .stick .jacket, .paper .stick .psuit { fill: #1d1d22; stroke: #1d1d22; }
.paper .stick .shirt, .paper .stick .sq, .paper .stick .pcollar { fill: #fff; stroke-width: 2.4; }
.paper .stick .pcollar { fill: none; stroke: #fff; stroke-width: 3; }
.paper .stick .tie, .paper .stick .ptie { fill: #1d1d22; stroke-width: 1.6; }
.paper .stick .ptie { stroke: #fff; stroke-width: 1; }
.paper .stick .skin, .paper .stick .hand, .paper .stick .neck { fill: #7B5236; stroke-width: 3; }
.paper .stick .hair, .paper .stick .beard { fill: #1d1d22; stroke-width: 2; }
.paper .stick .mouth { stroke: #C98A7A; stroke-width: 2.4; }
.paper .stick .shade { fill: #111; stroke-width: 2; } .paper .stick .bridge { stroke-width: 2.4; }
.paper .stick .glint { stroke: #fff; stroke-width: 1.8; opacity: 0; animation: glint 3.6s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; } 76%, 84% { opacity: 1; } }
.paper .stick .coil { stroke: #9aa3ad; stroke-width: 1.8; }
.paper .stick .arm, .paper .stick .arm-back { stroke: #1d1d22; stroke-width: 9; }
.paper .stick .hand-b { stroke: #7B5236; stroke-width: 5; }
.paper .stick .leg { stroke: #1d1d22; stroke-width: 7; } .paper .stick .shoe { fill: #1d1d22; stroke-width: 2; }
.paper .stick .fawn { fill: #E9D2A8; stroke-width: 2.6; }
.paper .stick .ear { fill: #2a2a2e; stroke-width: 2; } .paper .stick .mask { fill: #2a2a2e; stroke-width: 2; }
.paper .stick .wrinkle { stroke-width: 2; }
.paper .stick .peyes circle { fill: #111; stroke: none; } .paper .stick .peyes .pg { fill: #7FD3F5; }
.paper .stick .tongue { fill: #F2788F; stroke-width: 1.4; }
.paper .stick .pleg { stroke: #E9D2A8; stroke-width: 7; } 
.stick .phead { transform-box: fill-box; transform-origin: 50% 90%; animation: tilt 4.4s ease-in-out infinite; }
@keyframes tilt { 0%, 40%, 100% { transform: rotate(0deg); } 50%, 62% { transform: rotate(-12deg); } 72% { transform: rotate(4deg); } }
.stick .peyes { transform-box: fill-box; transform-origin: 50% 50%; animation: wblink 3.2s infinite; }
.stick .head { transform-box: view-box; transform-origin: 120px 100px; animation: nod 5s ease-in-out infinite; }
@keyframes nod { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(3deg) translateY(1px); } 92% { transform: rotate(-1deg); } }
.stick .pleg { transform-box: fill-box; transform-origin: 50% 0; animation: dangle 2.6s ease-in-out infinite alternate; }
.stick .pleg + .pleg { animation-delay: -1.3s; }
@keyframes dangle { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

.paper .stick .jacket { fill: #3a3b45; stroke: #1d1d22; stroke-width: 3; }
.paper .stick .lapel { stroke: #5a5c68; stroke-width: 2.4; }
.paper .stick .psuit { fill: #141418; stroke: #f4f4f4; stroke-width: 1.6; }
.paper .stick .arm-o { stroke: #1d1d22; stroke-width: 12; }
.paper .stick .arm, .paper .stick .arm-back { stroke: #4a4b57; stroke-width: 8; }
/* scribbles are just there from the start: no blur, no draw-in; the name underneath is hidden */
.nm-t, .hi.go .nm-t { filter: none !important; color: transparent; transition: none; }
.nm .scr, .hi.go .nm .scr { clip-path: none !important; animation: none !important; }

/* live sketch */
.paper .pic { position: relative; }
.stick.live { width: 92%; }
.stick.live .pen { transition: none; }
.stick.live .pen.erasing path:first-child { fill: #F6B5D2; }
.sk-label { position: absolute; left: 4%; top: 5%; font-family: "HandUI", cursive; font-size: 1.35rem; color: #E2416F; transform: rotate(-6deg) scale(0); transform-origin: 0 0;
  transition: transform .4s cubic-bezier(.3,1.7,.5,1); white-space: nowrap; }
.sk-label.on { transform: rotate(-6deg) scale(1); }

/* emphasis line: bold + orange highlight (what the cursor does live) */
.hi .rw { font-weight: 700; }
.hi .rw .rw-t { background: #F2643C; color: #fff; padding: .04em .28em .1em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 3px 3px 0 var(--ink); }
.hi.js-rw .rw.pre { font-weight: 400; }
.hi.js-rw .rw.pre .rw-t { background: transparent; color: inherit; padding: 0; box-shadow: none; }
.hi.js-rw .rw.pre.sel .rw-t { background: linear-gradient(90deg, rgba(242,100,60,.35) var(--sel, 0%), transparent var(--sel, 0%)); }
.hi .rw.boldpop { animation: lbxpop .45s cubic-bezier(.3,1.7,.5,1); }
.caps.js-live .live-add.done { box-shadow: 3px 3px 0 #F2643C; }

.hi.js-rw .rw.pre.bolded { font-weight: 700; }

/* touch screens: the centre phone gets a swipe pad over the video; one tap hands control to the video player */
@media (hover: none) {
  .phone.at-center .bring { display: block; touch-action: pan-y; }
  .phone.at-center.playing .bring { display: none; }
  .phone.at-center:not(.playing) .screen::after { content: "tap to play · swipe for more"; position: absolute; left: 50%; bottom: 23%; z-index: 4; transform: translateX(-50%);
    padding: .3rem .7rem; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
}
.phone .bring { touch-action: pan-y; }

/* ===== work page: brand cards + bottom sheet ===== */
.wk2 { text-align: center; max-width: none; }
.wk2 .wk-title { text-transform: uppercase; font-weight: 400; letter-spacing: -.04em; font-size: clamp(3.4rem, 12vw, 9rem); line-height: .85; }
.wk2 .lede { margin: 1.2rem auto 0; max-width: 30rem; }
.bcards { list-style: none; margin: 1rem auto 0; padding: 0; max-width: 72rem; display: grid; gap: clamp(.7rem, 1.6vw, 1.2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); grid-auto-flow: dense; }
.bcards li.t1 { grid-column: span 2; }
.bcard { position: relative; width: 100%; height: 100%; min-height: 11rem; display: grid; grid-template-rows: 1fr auto auto; justify-items: start; gap: .35rem;
  padding: 1rem 1rem 1.05rem; border: 0; border-radius: 1.5rem; cursor: pointer; text-align: left; font: inherit;
  box-shadow: inset 0 0 0 2.5px var(--ink), 5px 5px 0 var(--ink); transform: rotate(var(--tilt, 0deg));
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; }
.bcards li:nth-child(4n+1) .bcard { --tilt: -1.4deg; } .bcards li:nth-child(4n+2) .bcard { --tilt: 1deg; }
.bcards li:nth-child(4n+3) .bcard { --tilt: -.6deg; } .bcards li:nth-child(4n) .bcard { --tilt: 1.6deg; }
.bcard:hover, .bcard:focus-visible { transform: translate(-3px, -4px) rotate(calc(var(--tilt) * -1.2)) scale(1.02); box-shadow: inset 0 0 0 2.5px var(--ink), 9px 10px 0 var(--ink); }
.bcard:active { transform: translate(3px, 3px); box-shadow: inset 0 0 0 2.5px var(--ink), 1px 1px 0 var(--ink); }
.bc-logo { align-self: center; justify-self: stretch; display: grid; place-items: center; height: 5.2rem; padding: .7rem 1rem; border-radius: 1rem; background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink); }
.bcard.t1 .bc-logo { height: 7rem; }
.bc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bc-txt { font-weight: 700; color: var(--ink); }
.bc-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin-top: .3rem; }
.bcard.t1 .bc-name { font-size: 1.6rem; }
.bc-count { font-size: .82rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; box-shadow: inset 0 0 0 1.5px currentColor; }
.workpage .phones { margin-top: clamp(4rem, 10vh, 6rem); }
@media (max-width: 46rem) {
  .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard { min-height: 9rem; padding: .75rem; border-radius: 1.2rem; } .bc-logo { height: 4rem; padding: .5rem .6rem; } .bcard.t1 .bc-logo { height: 5rem; }
  .bc-name { font-size: 1.05rem; } .bcard.t1 .bc-name { font-size: 1.25rem; }
}
/* the sheet */
.bsheet { width: min(52rem, calc(100vw - 2rem)); max-height: min(86vh, 54rem); padding: 0; border: 0; border-radius: 1.8rem; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 2.5px var(--ink), 7px 7px 0 var(--ink); overflow: hidden; }
.bsheet::backdrop { background: rgba(20,20,20,.55); }
.bsheet[open] { animation: sheetin .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes sheetin { from { transform: translateY(40px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.bs-inner { position: relative; max-height: inherit; overflow-y: auto; padding: 1.6rem 1.6rem 1.8rem; }
.bs-x { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: #FFCE4F; cursor: pointer; padding: .55rem;
  box-shadow: inset 0 0 0 2px var(--ink), 3px 3px 0 var(--ink); }
.bs-x svg { width: 100%; fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; }
.bs-head { display: flex; align-items: center; gap: 1rem; padding-right: 3.5rem; margin-bottom: 1.3rem; }
.bs-logo { flex: none; display: grid; place-items: center; width: 6.5rem; height: 3.8rem; padding: .5rem .7rem; border-radius: .9rem; box-shadow: inset 0 0 0 2px var(--ink), 3px 3px 0 var(--ink); transform: rotate(-3deg); }
.bs-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bs-title { margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; font-weight: 600; }
.bs-sub { margin: .3rem 0 0; opacity: .7; }
.bs-reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(15rem, 62vw); gap: 1rem; overflow-x: auto; padding: .3rem .3rem 1rem; scroll-snap-type: x mandatory; }
.bs-reel figure { margin: 0; aspect-ratio: 9 / 16; border-radius: 1.2rem; overflow: hidden; background: #111; scroll-snap-align: start; box-shadow: inset 0 0 0 2px var(--ink); }
.bs-reel iframe { width: 100%; height: 100%; border: 0; display: block; }
.bs-empty { padding: 1.5rem; border-radius: 1.2rem; background: #FFF6E2; box-shadow: inset 0 0 0 2px var(--ink); }
.bs-empty p { margin: 0 0 1rem; font-family: "HandUI", cursive; font-size: 1.7rem; line-height: 1.15; }
@media (max-width: 46rem) {
  .bsheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 1.6rem 1.6rem 0 0; max-height: 88vh; }
  .bsheet[open] { animation: sheetup .4s cubic-bezier(.3,1.2,.5,1); }
  @keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
  .bs-inner { padding: 1.3rem 1.1rem 1.6rem; } .bs-logo { width: 5rem; height: 3rem; }
}

.bc-logo img, .bs-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }
.bc-logo { overflow: hidden; }
@media (max-width: 46rem) {
  .bsheet { inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; }
  .bs-head { gap: .8rem; }
}
.bc-logo, .bs-logo { position: relative; }
.bc-logo img { position: absolute; inset: .6rem .9rem; width: calc(100% - 1.8rem); height: calc(100% - 1.2rem); object-fit: contain; }
.bs-logo img { position: absolute; inset: .4rem .55rem; width: calc(100% - 1.1rem); height: calc(100% - .8rem); object-fit: contain; }
/* brand pills on phones: keep the tiers distinct without one pill hogging a whole row */
@media (max-width: 46rem) {
  .chips { gap: .5rem .45rem; }
  .chip.t1 { font-size: clamp(1.35rem, 6.2vw, 1.75rem); padding: .28em .7em .34em; }
  .chip.t2 { font-size: clamp(1.02rem, 4.4vw, 1.25rem); }
  .chip.t3 { font-size: clamp(.86rem, 3.6vw, 1rem); }
  .chip.has-logo { padding: .38em .7em; }
  .chip .lg-mattel { height: 1.45em !important; }
}

/* self-hosted clips */
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.bs-reel { display: flex; }
.bs-reel figure { flex: none; width: min(15rem, 62vw); }
.bs-reel figure.wide { width: min(36rem, 84vw); aspect-ratio: 16 / 9; }
.bs-reel video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
