/* Phones only (up to 620px wide): every box fits on one screen, the screen minus the top bar.
   Laptop and tablet layouts are untouched. Nothing is removed: the longer case notes open with a tap. */
.pf-more,.pf-more > div{display:contents}
.pf-more-btn{display:none}
@media (max-width:620px){
  /* Home · the two services rows: a smaller poster fan, tighter lines */
  .d1-row{padding:20px 0;gap:10px}
  .d1-fan{height:190px}
  .d1-fan img{width:auto;height:80%}
  .d1-row h3{font-size:44px;margin-bottom:8px}
  .d1-line{font-size:15.5px;margin-bottom:10px}
  .d1-list{margin-bottom:14px}
  .d1-list li{padding:8px 0;gap:1px;font-size:13.5px;line-height:1.4}

  /* Graphic design · case cards: a shorter before/after viewer; "What changed" and the brief open with a tap */
  .gk-case{gap:14px}
  .gk-cmp{height:min(43svh,370px)!important;width:auto!important;max-width:100%;margin-inline:auto}
  .gk-case-copy{padding-top:0}
  .gk-case-copy h3{margin:4px 0 8px!important}
  .gk-case-desc{font-size:15px;line-height:1.45}
  .gk-view{margin:12px 0 10px!important}
  .pf-more{display:grid!important;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .55s cubic-bezier(.16,1,.3,1),opacity .35s ease}
  .pf-more > div{display:block!important;min-height:0;overflow:hidden}
  .pf-more.open{grid-template-rows:1fr;opacity:1;margin-bottom:6px}
  .pf-more > div > *{translate:0 -10px;transition:translate .55s cubic-bezier(.16,1,.3,1)}
  .pf-more.open > div > *{translate:none}
  .pf-more-btn{display:inline-flex;align-items:center;gap:10px;padding:6px 0;margin-bottom:4px;border:0;background:none;cursor:pointer;color:var(--b);font:600 15px/1 var(--display);letter-spacing:-.01em}
  .pf-more-btn span{background:linear-gradient(currentColor,currentColor) 0 100%/100% 1.5px no-repeat;padding-bottom:3px}
  .pf-more-btn i{position:relative;width:22px;height:22px;border-radius:50%;background:var(--b);transition:transform .45s cubic-bezier(.34,1.6,.64,1)}
  .pf-more-btn i::before,.pf-more-btn i::after{content:"";position:absolute;left:6px;right:6px;top:50%;height:2px;margin-top:-1px;background:#fff;border-radius:2px}
  .pf-more-btn i::after{transform:rotate(90deg);transition:transform .35s ease}
  .pf-more-btn[aria-expanded="true"] i::after{transform:rotate(0)}
  .pf-more-btn:focus-visible{outline:2px solid var(--b);outline-offset:3px;border-radius:6px}
  .gk-case-foot{padding-top:10px!important}

  /* Brief box: compact option cards */
  .gk-book{padding:18px!important;gap:14px!important}
  .gk-book-t{font-size:26px!important;margin-bottom:6px!important}
  .gk-book-copy > p:not(.gk-book-t):not(.gk-quote){margin-bottom:14px!important}
  .gk-opts{gap:8px!important}
  .gk-opts button{padding:11px 14px!important;row-gap:2px!important}
  .gk-opts b{font-size:22px!important}
  .gk-opts .gk-opt-l{font-size:13px;line-height:1.35}

  /* Questions chat: the questions sit in one row you swipe, so the whole chat fits */
  .fq-sugg{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding:12px 14px 14px!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .fq-sugg::-webkit-scrollbar{display:none}
  .fq-chip{flex:none;white-space:nowrap;scroll-snap-align:start}
  .hire-faq .fq-chat{width:100%;max-width:100%;min-width:0}
  .fq-sugg{min-width:0;max-width:100%}
  .gk-lab{font-size:8.5px!important;padding:5px 8px!important;letter-spacing:.06em}
  .gk-lab-a{top:auto!important;bottom:12px}
  .fq-log{height:min(440px,calc(100svh - 64px - 111px - 72px - 24px))!important}

  /* Meta ads · placements: the stage takes the room left over, the three steps sit in one row */
  .mk-pin{padding:16px 0 14px!important}
  .mk-p6{gap:10px!important}
  .mk-p6 .tag{margin:0!important}
  .mk-p6 h2{font-size:27px!important;line-height:1.05}
  .mk-stage6{height:clamp(300px,calc(100svh - 64px - 372px),520px)!important}
  .mk-steps6{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:6px;margin-top:0!important}
  .mk-steps6 li{display:contents}
  .mk-steps6 button{grid-row:1;display:flex!important;flex-direction:column;align-items:flex-start;gap:5px;padding:9px 9px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:12px}
  .mk-steps6 li.on button{border-color:#8FA2FF!important;background:rgba(143,162,255,.12)}
  .mk-steps6 .mk-s6-n{font-size:9.5px}
  .mk-steps6 .mk-s6-name{font-size:16px;gap:5px}
  .mk-steps6 .mk-plats img{width:9px!important;height:9px!important;padding:2px}
  .mk-steps6 .mk-s6-r{font-size:10px}
  .mk-steps6 li p{grid-row:2;grid-column:1/-1;padding:8px 2px 0!important;font-size:14px;line-height:1.42}
  .mk-steps6 li:not(.on) p{display:none}
  .mk-p6 .mk-pick{margin-top:2px!important}
  .mk-p6 .mk-pick > .mono{margin-bottom:6px}
  .mk-bub{width:44px!important;height:44px!important;padding:2.5px!important}
  .mk-bub-n{font-size:10px!important}

  /* Meta ads · the test board: compact header lines, smaller result panel; all four ads stay in view */
  .mk-board{padding:14px!important}
  .mk-keys{padding-bottom:8px!important;gap:6px 12px!important}
  .mk-keys .mk-key{font-size:9.5px}
  .mk-hold{gap:0 12px!important;font-size:12px;line-height:1.35}
  .mk-split{padding:6px 0!important}
  .mk-split-pill{padding:6px 10px!important;font-size:12px}
  .mk-ads{gap:8px!important}
  .mk-ad p{margin-top:4px!important;font-size:13px}
  .mk-learn{margin-top:10px!important;padding:12px 14px!important}

  /* the board header: the labels switch sits in the corner, the split note on one line, a shorter result panel,
     and the four ads sized from the screen height so the whole board fits */
  .mk-keys{position:relative}
  .mk-keys .mk-key{padding-right:112px}
  .mk-labels{position:absolute!important;right:0;top:-5px;padding:5px 10px 5px 5px!important;font-size:12px!important;gap:6px!important}
  .mk-labels i{width:28px!important;height:16px!important}
  .mk-labels i::after{width:10px!important;height:10px!important}
  .mk-labels[aria-pressed="true"] i::after{transform:translateX(12px)!important}
  .mk-split-pill{font-size:10px!important;white-space:nowrap;flex-wrap:nowrap!important;padding:5px 9px!important;gap:6px!important}
  .mk-ads{max-width:calc((((100svh - 64px - 330px) / 2) - 32px) / 1.25 * 2 + 8px);margin-inline:auto}
  .mk-learn-h{font-size:24px!important}
  .mk-learn-t{font-size:14.5px!important;line-height:1.4}
}
@media (max-width:375px){
  .gk-hero-copy{padding-top:80px!important}
  .gk-hero .pg-lede{margin:18px 0 20px!important}
  .mk-ads{max-width:calc((((100svh - 64px - 366px) / 2) - 32px) / 1.25 * 2 + 8px)}
  .mk-learn{padding:10px 12px!important}
  .mk-learn-h{font-size:22px!important}
  .mk-stage6{height:clamp(290px,calc(100svh - 64px - 404px),520px)!important}
}

/* ===== 2026-11-28 · phones: side swipes and the Graphic design hero ===== */
.pf-count{display:none}
@media (max-width:620px){
  .pf-count{display:block;margin:12px 0 0;text-align:right;font-size:11px;letter-spacing:.14em;opacity:.7}
  .pf-count b{color:var(--b);font-weight:600}

  /* Home · "A few favourites, up front": one card at a time, the next one peeking in */
  .d1-ix-list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;gap:12px;margin:0 -16px;padding:0 16px 4px!important;border-bottom:0!important;scrollbar-width:none;overscroll-behavior-x:contain}
  .d1-ix-list::-webkit-scrollbar{display:none}
  .d1-ix-row{flex:0 0 80%;min-width:0;scroll-snap-align:start;border:0!important}
  .d1-ix-row a{padding:0 0 4px!important;border-top:0!important}
  .d1-ix-row a::after{display:none}
  .d1-ix-name{font-size:40px!important}
  .d1-ix-row.on .d1-ix-name,.d1-ix-row.on .d1-ix-n,.d1-ix-row.on .d1-ix-cat{color:inherit}
  .d1-ix-row.pf-on .d1-ix-name,.d1-ix-row.pf-on .d1-ix-n,.d1-ix-row.pf-on .d1-ix-cat{color:var(--b)}

  /* Home · packages: every card open and full, swiped one at a time */
  .hire-plans{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;gap:12px!important;margin:0 -16px;padding:22px 16px 10px!important;margin-top:-16px!important;scrollbar-width:none;overscroll-behavior-x:contain}
  .hire-plans::-webkit-scrollbar{display:none}
  .hire-plans > li{flex:0 0 84%;min-width:0;scroll-snap-align:start;cursor:default!important}
  .hire-plans .pk-fold{grid-template-rows:1fr!important}
  .hire-plans .pc-art{height:190px!important}
  .hire-plans .pc-cap b{font-size:56px!important}
  .pk-plus{display:none!important}

  /* Graphic design · hero: the moving poster columns become the background, the words sit on a soft paper fade */
  .gk-hero{display:block!important;height:100svh!important;min-height:620px!important}
  .gk-cols{position:absolute!important;inset:0;height:auto!important;padding:68px 8px 0!important;z-index:0}
  .gk-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(to bottom,color-mix(in srgb,var(--paper) 95%,transparent) 0%,color-mix(in srgb,var(--paper) 90%,transparent) 52%,color-mix(in srgb,var(--paper) 55%,transparent) 66%,transparent 82%)}
  /* the words sit at the top: Mini Vicky's box and the guide switch live at the bottom of a phone screen */
  .gk-hero-copy{position:relative;z-index:2;height:100%;box-sizing:border-box;padding:92px 16px 0!important;justify-content:flex-start!important;pointer-events:none}
  .gk-hero-copy a,.gk-hero-copy button{pointer-events:auto}
}

/* ===== 2026-11-28 (b) ===== */
/* Packages: touch screens have no cursor to uncover the colour, so the posters show in colour from the start */
@media (hover:none){
  .pc-art .pc-col,.hire-plans > li .pc-art.pc-sense .pc-col{clip-path:circle(160% at 100% 0)!important;transition:none!important}
}
@media (max-width:620px){
  /* Graphic design · Selected work: the category list sits between the title and the posters */
  .gk-run-pin > .gk-run-top{order:1}
  .gk-run-pin > .gk-run-foot{order:2;margin:0 0 12px!important}
  .gk-run-pin > .gk-run-main{order:3}
  /* Home · favourites: the swipe moves in depth (phonefit.js sets the per-card values) */
  .d1-ix-list{perspective:900px}
  .d1-ix-thumb{transform-origin:50% 60%;will-change:transform}
  .d1-ix-thumb img{scale:1.22}
  .d1-ix-name{will-change:transform,opacity}
}

/* ===== 2026-11-28 · spacing, all screen sizes: the three gaps that were far bigger than the page's own rhythm
   (sections are 96px top and bottom on phones, about 173px on laptops) ===== */
/* Home · under the favourites (the list keeps its own room on laptops for the sticky preview) */
.d1 #showcase.d1-work{padding-bottom:clamp(64px,6.7vw,96px)!important}
/* Graphic design · above "Process" */
#process.gk-steps{padding-top:clamp(96px,12vw,172.8px)!important}
/* Meta ads · under the held process cards on laptops */
@media (min-width:821px){#process.mk-method2{padding-bottom:0!important}}

/* ===== 2026-11-28 (c) ===== */
/* one poster opened right where you are (Selected work, Index): the category viewer's look, without the world */
.w-peek{position:relative;z-index:130;--w-bg:#fff;--w-ink:var(--ink);--w-mute:var(--graphite);--w-hair:rgba(11,13,18,.14);--w-accent:var(--blue)}
.w-peek .wv{z-index:130}
/* Graphic design hero: the moving posters are a preview only, nothing to tap */
.gk-hero .gk-cols{pointer-events:none}

/* ===== 2026-11-28 (d) · Meta ads on phones: the test, its plan and the winner rules as visuals ===== */
.pf-short,.pf-plan-v,.pf-plan-s,.pf-meter,.pf-rules-count{display:none}
@media (max-width:620px){
  /* the test: a one-line intro (the full paragraph stays on laptops) */
  #tests .gk-head .lede:not(.pf-short){display:none}
  #tests .pf-short{display:block}
  /* the plan: a flow of five steps, each a small picture and one line */
  .mk-plan li{padding:0 0 22px 34px!important}
  .mk-plan li > p{display:none}
  .mk-plan li .mono{font-size:22px!important;margin-bottom:8px!important}
  .pf-plan-v{display:flex;align-items:center;gap:10px;margin-bottom:8px}
  .pf-plan-s{display:block;color:var(--graphite);font-size:14px;line-height:1.45}
  .pf-plan-v .pf-ad{width:38px;height:48px;border-radius:6px;object-fit:cover;box-shadow:0 6px 14px -8px rgba(11,13,18,.5)}
  .pf-plan-v .pf-tagb{padding:5px 10px;border-radius:999px;background:var(--b);color:#fff;font:600 11px/1 var(--display)}
  .pf-bars{display:flex;gap:5px;align-items:flex-end;height:44px}
  .pf-bars i{width:30px;height:0;border-radius:6px 6px 3px 3px;background:var(--b);display:grid;place-items:end center;color:#fff;font:600 9px/1 var(--display);font-style:normal;padding-bottom:4px;box-sizing:border-box;overflow:hidden;transition:height .7s cubic-bezier(.34,1.4,.64,1)}
  .pf-bars i:nth-child(2){transition-delay:.08s}.pf-bars i:nth-child(3){transition-delay:.16s}.pf-bars i:nth-child(4){transition-delay:.24s}
  .pf-in .pf-bars i{height:100%}
  .pf-bars small{align-self:center;color:var(--graphite);font-size:11px;margin-left:4px}
  .pf-steps{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  .pf-steps span{padding:6px 10px;border-radius:999px;border:1px solid rgba(31,59,255,.3);color:var(--b);font:600 11px/1 var(--display);opacity:0;translate:0 8px;transition:opacity .45s,translate .45s}
  .pf-steps b{color:var(--graphite);font-weight:400;opacity:0;transition:opacity .45s}
  .pf-steps span:last-child{background:var(--b);color:#fff;border-color:var(--b)}
  .pf-in .pf-steps span,.pf-in .pf-steps b{opacity:1;translate:none}
  .pf-steps > :nth-child(2){transition-delay:.1s}.pf-steps > :nth-child(3){transition-delay:.2s}.pf-steps > :nth-child(4){transition-delay:.3s}.pf-steps > :nth-child(5){transition-delay:.4s}
  .pf-gate-row{padding-bottom:24px}
  .pf-gate{position:relative;flex:1;max-width:250px;height:8px;border-radius:8px;background:var(--hair)}
  .pf-gate em{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:8px;background:var(--b);transition:width 1s cubic-bezier(.16,1,.3,1)}
  .pf-in .pf-gate em{width:100%}
  .pf-gate span{position:absolute;top:16px;font:600 10px/1.2 var(--display);color:var(--graphite);white-space:nowrap}
  .pf-gate span::before{content:"";position:absolute;top:-15px;width:2px;height:12px;background:var(--ink)}
  .pf-gate span.g1::before{left:0}.pf-gate span.g2::before{right:0}
  .pf-loop{display:flex;align-items:center;gap:8px;font:600 12px/1 var(--display)}
  .pf-loop span{padding:6px 10px;border-radius:999px;background:var(--mist)}
  .pf-loop span:last-child{background:var(--b);color:#fff}
  .pf-loop i{font-style:normal;color:var(--b);font-size:18px;display:inline-block;transition:rotate .8s cubic-bezier(.34,1.4,.64,1)}
  .pf-in .pf-loop i{rotate:360deg}

  /* the winner rules: a swipe row of cards, each target drawn on a scale */
  .mk-rule-list{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;gap:10px;margin:0 -16px;padding:0 16px 6px;border-top:0!important;scrollbar-width:none}
  .mk-rule-list::-webkit-scrollbar{display:none}
  .mk-rule{flex:0 0 74%;scroll-snap-align:start;padding:18px 16px 16px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:18px;background:rgba(255,255,255,.03)}
  .mk-rule b{font-size:56px!important}
  .pf-meter{display:block;position:relative;height:46px;margin:4px 0 2px}
  .pf-meter .tr{position:absolute;left:0;right:0;top:12px;height:10px;border-radius:10px;background:rgba(255,255,255,.1);overflow:hidden}
  .pf-meter .zn{position:absolute;top:0;bottom:0;background:linear-gradient(90deg,rgba(143,162,255,.35),#8FA2FF);transform:scaleX(0);transition:transform 1s cubic-bezier(.16,1,.3,1)}
  .pf-meter .zn.r{transform-origin:100% 50%}.pf-meter .zn.l{transform-origin:0 50%}
  .pf-in .pf-meter .zn{transform:none}
  .pf-meter .mk{position:absolute;top:6px;width:2px;height:22px;background:#fff;border-radius:2px}
  .pf-meter .ml{position:absolute;top:32px;translate:-50% 0;font:600 10px/1 var(--display);color:#fff;white-space:nowrap}
  .pf-meter .sc{position:absolute;top:32px;font:500 9.5px/1 var(--display);color:#6E7591}
  .pf-meter .sc.a{left:0}.pf-meter .sc.z{right:0}
  .pf-cmp{display:grid;gap:6px;margin:4px 0}
  .pf-cmp p{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:8px;margin:0;font:500 10.5px/1 var(--display);color:#9AA1B8}
  .pf-cmp i{display:block;height:10px;border-radius:10px;background:rgba(255,255,255,.22);transform:scaleX(0);transform-origin:0 50%;transition:transform .9s cubic-bezier(.16,1,.3,1)}
  .pf-cmp p:last-child i{background:#8FA2FF;transition-delay:.2s}
  .pf-in .pf-cmp i{transform:none}
  .pf-rules-count{display:block;margin-top:10px;text-align:right;color:#6E7591;font-size:11px;letter-spacing:.14em}
  .pf-rules-count b{color:#8FA2FF}

  /* process cards: the diagram replays each time its card lands */
  .mk-sc.pf-reset,.mk-sc.pf-reset *{transition:none!important;animation:none!important}
}

/* ===== 2026-11-28 (e) · Meta ads process (laptops): the step cards sit at the top of the held panel, right under the
   heading, instead of in its middle, so there is no empty band between them ===== */
@media (min-width:821px){
  .mk-mpin{justify-content:flex-start!important;padding:96px 0 64px!important;min-height:0!important;height:auto!important}   /* only as tall as its cards: no blank screen after it lets go */
  #process.mk-method2 .gk-head{margin-bottom:0!important}   /* the panel's own top room (it clears the menu while held) is the gap */
}

/* ===== 2026-11-28 (f) · category rows that run off screen: the side with more chips fades out ===== */
.pf-edge.pf-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent)}
.pf-edge.pf-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px);mask-image:linear-gradient(90deg,transparent,#000 48px)}
.pf-edge.pf-l.pf-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 64px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 64px),transparent)}

/* ===== 2026-11-28 (g) · Graphic design WORK (laptops): its held panel already has its own top room (it clears the menu),
   so the big word drops its own bottom margin and sits clearly with its section, not halfway to the hero ===== */
@media (min-width:821px){#work .d1-giant{margin-bottom:0!important}}

/* ===== 2026-11-28 (h) · Meet virtual me: his box keeps its place (nothing jumps) but stays invisible until he
   actually starts talking, then pops in. It used to sit on screen as an empty card before anything else arrived. ===== */
.meet.meet-fx .note-meet:not(.show){opacity:0!important;visibility:hidden!important;transform:translateY(12px) scale(.96)!important}
.meet.meet-fx .note-meet.show{transition:opacity .35s ease,transform .55s cubic-bezier(.34,1.45,.64,1),visibility 0s}
