/* ==========================================================================
   Design system (2026-11-22). Loaded last on every page.
   The home hero and the closing call to action set the direction; this file brings every other page to it:
   - one typeface (Inter) with one type scale, line height and paragraph rhythm;
   - one radius scale, taken from the home hero thumbnails (8px on a 140px card) and growing more slowly
     than the element, so a full-width picture is rounder than a thumbnail but not bubbly;
   - one set of text colours, the hero's.
   ========================================================================== */
:root{
  --font:Inter,"SF Pro Display",-apple-system,system-ui,sans-serif;
  --mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace;

  /* radius: pick by the element's width */
  --r-xs:6px;   /* chips, inline code, small controls (< 64px) */
  --r-sm:8px;   /* thumbnails up to ~200px: the home hero cards */
  --r-md:12px;  /* cards and tiles up to ~420px */
  --r-lg:16px;  /* pictures and panels up to ~800px, dialogs */
  --r-xl:20px;  /* full-width pictures and screens */
  --r-pill:999px; /* buttons */

  /* spacing between page sections */
  --sec:128px;
}
@media (max-width:760px){:root{--sec:88px}}

body,body.dark{
  --fg:#f7f8f8;--text:#d0d6e0;--muted:#8a8f98;--faint:#62666d;
  --line:rgba(255,255,255,.08);--surface:rgba(255,255,255,.035);--surface-2:rgba(255,255,255,.06);
  --title-color:#f7f8f8;--paragraph-color:#d0d6e0;--nav-item-color:#f7f8f8;
  --pa-text:#d0d6e0;--pa-muted:#8a8f98;--pa-hairline:rgba(255,255,255,.08);--pa-surface:rgba(255,255,255,.035);--pa-sunk:#0f1011;
  --cs-title:#f7f8f8;--cs-text:#d0d6e0;--cs-muted:#8a8f98;--cs-line:rgba(255,255,255,.08);--cs-surface:rgba(255,255,255,.035);--cs-sunk:#0f1011;
}
body.light{
  --fg:#08090a;--text:#26282c;--muted:#4b4f56;--faint:#62666d;
  --line:rgba(8,9,10,.09);--surface:rgba(8,9,10,.03);--surface-2:rgba(8,9,10,.05);
  --title-color:#08090a;--paragraph-color:#26282c;--nav-item-color:#08090a;
  --pa-text:#26282c;--pa-muted:#4b4f56;--pa-hairline:rgba(8,9,10,.09);--pa-surface:rgba(8,9,10,.03);--pa-sunk:#f4f5f6;
  --cs-title:#08090a;--cs-text:#26282c;--cs-muted:#4b4f56;--cs-line:rgba(8,9,10,.09);--cs-surface:rgba(8,9,10,.03);--cs-sunk:#f4f5f6;
}

/* ---- type: one family, inherited everywhere (main.css set Poppins, 1.5 and -0.4px on every element) ---- */
html body{font-family:var(--font);font-size:16px !important;line-height:1.6;letter-spacing:-.011em;color:var(--text);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
*{font-family:inherit;line-height:inherit;letter-spacing:inherit}
code,pre,kbd,samp,pre *,code *{font-family:var(--mono)}
h1,h2,h3,h4,h5,h6{color:var(--fg);font-weight:510;text-wrap:balance}
p,li{color:var(--text);text-wrap:pretty}
strong,b{font-weight:590;color:var(--fg)}
a{color:var(--fg)}

/* The scale. Display (home hero, closing sections) 56 · page title 48 · section 40 · article heading 28 ·
   sub-heading 20 · lede 17 · body 16 · small 14 · label 13 · micro 11 (mono, caps). */
.t-display{font-size:56px;line-height:1.05;font-weight:510;letter-spacing:-.022em}
.t-h2,.title{font-size:40px;line-height:1.1;font-weight:510;letter-spacing:-.022em;color:var(--fg)}
.t-lede,.paragraph{font-size:17px;line-height:27px;font-weight:400;letter-spacing:-.011em;color:var(--muted)}
.t-label,.tab-title{display:block;padding:0;margin:0;border-radius:0;background:none;font-size:13px;line-height:18px;font-weight:510;letter-spacing:-.006em;color:var(--muted)}
@media (max-width:760px){
  .t-display{font-size:36px;line-height:1.08}
  .t-h2,.title{font-size:30px;line-height:1.12}
  .t-lede,.paragraph{font-size:16px;line-height:25px}
}
/* headings never carry a gradient; the blue gradient is for buttons and small marks */
.gradient-text{background:none !important;-webkit-text-fill-color:currentColor !important;color:inherit;animation:none}
.relax-section .title .gradient-text,.goal-focused-section .title .gradient-text,.cp-grad,.cp-qm{-webkit-text-fill-color:currentColor !important}

/* ---- header and footer ---- */
.site-header .header-title h3{font-size:14px;font-weight:590;letter-spacing:-.01em}
.site-header .header-title .logo{border-radius:var(--r-sm)}
.site-header a,.site-footer a{font-size:14px;font-weight:510}
.site-header nav a:not(.btn),.site-footer .menu-items a:not(.btn){font-weight:510}
.tooltip{border-radius:var(--r-xs);font-size:12px;line-height:16px;font-weight:510}
.menu-toggle{border-radius:var(--r-sm)}
.mobile-menu{border-radius:0 0 var(--r-lg) var(--r-lg)}

/* ---- section rhythm on the site grid ---- */
.relax-section,.client-pain-section,.goal-focused-section,.homepate-what-section,.long-cta-section,.work-section,.posts-section{padding-top:var(--sec) !important;padding-bottom:0 !important}
.uxh-page + .work-section,.uxh-page + .posts-section{padding-top:8px !important}

/* ---- home: "You can relax now" ---- */
.relax-section{text-align:left}
.relax-section .title{max-width:none;margin:0;font-size:56px;line-height:1.05;letter-spacing:-.022em;text-align:left}
.relax-section .title .line{display:inline}
.relax-section .paragraph{max-width:560px;margin:20px 0 0;text-align:left}
.relax-section .tm{margin-top:48px}
.relax-section .tm + .paragraph{margin-top:28px;font-size:15px;color:var(--faint)}
.relax-section .btn.btn-book{margin:20px 0 0}
.tm-card{border-radius:var(--r-md);padding:24px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
.tm-card blockquote p{font-size:16px;line-height:25px;font-weight:400;color:var(--text)}
.tm-card figcaption b{font-size:14px;line-height:20px;font-weight:590;color:var(--fg)}
.tm-card figcaption small{font-size:13px;line-height:18px;color:var(--muted)}
.tm-badge{width:36px;height:36px;font-size:12px;font-weight:590}
@media (max-width:760px){.relax-section .title{font-size:36px;line-height:1.08}}

/* ---- home: "Choosing a designer" ---- */
.client-pain-section .cp-eyebrow{font-size:13px;line-height:18px;font-weight:510;color:var(--muted)}
.client-pain-section .cp-question{max-width:16ch;font-size:56px;line-height:1.05;font-weight:510;letter-spacing:-.022em}
.client-pain-section .cp-qm{color:var(--faint)}
.client-pain-section .cp-rule{height:1px;width:96px;background:linear-gradient(90deg,#0099FF,#4DB8FF)}
.client-pain-section .cp-lead{font-size:20px;line-height:28px;font-weight:510;letter-spacing:-.015em;color:var(--fg)}
.client-pain-section .cp-secondary{font-size:17px;line-height:27px;color:var(--muted);opacity:1}
@media (max-width:1100px){.client-pain-section .cp-question{font-size:44px}}
@media (max-width:760px){.client-pain-section .cp-question{font-size:34px;line-height:1.08}.client-pain-section .cp-lead{font-size:18px;line-height:26px}}

/* ---- home: "Focusing on the goal" ---- */
.goal-focused-section .intro{padding-bottom:56px}
.goal-focused-section .intro .title{margin:0;font-size:56px;line-height:1.05}
.goal-focused-section .intro .title .line{display:inline}
.goal-focused-section .intro .description{width:auto;max-width:560px;margin-top:20px}
.goal-focused-section .goal-testimonial .hj-testimonial .paragraph{font-size:17px;line-height:27px;color:var(--text);margin-top:20px}
.goal-focused-section .goal-testimonial .hj-testimonial svg{height:32px;width:auto}
.goal-focused-section .goal-testimonial .hj-testimonial .avatar{align-items:center;gap:12px;margin-top:28px}
.goal-focused-section .goal-testimonial .hj-testimonial .avatar .img{width:40px;height:40px;border-radius:50%}
.goal-focused-section .goal-testimonial .hj-testimonial .avatar .text{margin-left:0}
.goal-focused-section .goal-testimonial .hj-testimonial .avatar .text aside{font-size:14px;line-height:20px;font-weight:400;color:var(--muted)}
.goal-focused-section .goal-testimonial .hj-testimonial .avatar .text aside:first-child{font-weight:590;color:var(--fg)}
.goal-focused-section .goal-testimonial .btn.btn-book{margin-top:28px}
.m-on .hj-shot{border-radius:var(--r-lg)}
body.light .goal-focused-section #helpjuiceLogo{fill:#08090a}
@media (max-width:760px){.goal-focused-section .intro .title{font-size:36px;line-height:1.08}}

/* ---- home: UX designer / Product designer ---- */
.homepate-what-section .what-item h2.title{font-size:32px;line-height:1.2;letter-spacing:-.02em;font-weight:510;margin-top:12px}
.homepate-what-section .what-item h2 strong{font-weight:510;color:var(--fg)}
.homepate-what-section .what-item .what-note{font-size:17px;line-height:27px;color:var(--muted);opacity:1;margin-top:16px}
@media (min-width:769px){.homepate-what-section .what-item h2.title{font-size:32px;line-height:1.2}.homepate-what-section .what-item .tab-title{font-size:13px}}
@media (max-width:760px){.homepate-what-section .what-item h2.title{font-size:26px}}

/* ---- section heading (home Case Studies, Notes more, Playground) ---- */
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:0 0 32px}
.sec-h h2{margin:0;font-size:40px;line-height:1.1;letter-spacing:-.022em}
.sec-h a{font-size:15px;font-weight:510;color:var(--muted);text-decoration:none;white-space:nowrap}
.sec-h a:hover{color:var(--fg)}
@media (max-width:760px){.sec-h h2{font-size:30px}}

/* ---- work cards: the picture does the talking ---- */
.wrap.wk-grid{display:grid;justify-content:stretch}
.wk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 24px}
.wk-grid.wk-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 20px}
.wk-card{display:flex;flex-direction:column;gap:14px;min-width:0;text-decoration:none;color:inherit}
.wk-card.wk-feature{grid-column:1 / -1}
.wk-shot{position:relative;display:block;overflow:hidden;aspect-ratio:16/10;border-radius:var(--r-lg);background:var(--surface-2);
  box-shadow:inset 0 0 0 1px var(--line);isolation:isolate}
.wk-3 .wk-shot{border-radius:var(--r-md)}
.wk-feature .wk-shot{aspect-ratio:21/9;border-radius:var(--r-xl)}
.wk-shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center;display:block;
  transition:transform .6s cubic-bezier(.22,1,.36,1);z-index:-1}
.wk-shot::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--line);pointer-events:none}
.wk-card:hover .wk-shot img,.wk-card:focus-visible .wk-shot img{transform:scale(1.035)}
.wk-meta{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:15px;line-height:22px}
.wk-name{flex:none;font-weight:590;color:var(--fg)}
.wk-what{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.wk-card:focus-visible{outline:none}
.wk-card:focus-visible .wk-shot{outline:2px solid #0099FF;outline-offset:3px}
@media (max-width:900px){.wk-grid.wk-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .wk-grid,.wk-grid.wk-3{grid-template-columns:minmax(0,1fr);gap:36px}
  .wk-feature .wk-shot{aspect-ratio:16/10;border-radius:var(--r-lg)}
  .wk-meta{flex-direction:column;gap:0}.wk-what{white-space:normal}
}
@media (prefers-reduced-motion:reduce){.wk-shot img{transition:none}.wk-card:hover .wk-shot img{transform:none}}

/* ---- Notes list: the same card ---- */
.pagination{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted)}
.pagination a.previous,.pagination a.next{display:inline-flex;align-items:center;height:36px;padding:0 16px;margin:0;border-radius:var(--r-pill);
  background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg);font-size:14px;font-weight:510;text-decoration:none}
.pagination .page-number span{display:inline;padding:0;background:none;color:var(--fg)}
.pagination-section{padding-top:56px !important;padding-bottom:0 !important}

/* ---- closing call to action and buttons ---- */
.cta-hero .cta-steps__ic{border-radius:var(--r-sm)}
.btn:not(.btn-book){border-radius:var(--r-pill);font-weight:510}
.uxh-ghost{border-radius:var(--r-pill)}

/* ---- testimonials (Work) ---- */
.tw-open{border-radius:var(--r-md)}
.tw-dialog{border-radius:var(--r-lg)}

/* ---- device frames, screenshots, case study and note blocks ---- */
.dv-desk{border-radius:var(--r-lg)}
.cs-wide .dv-desk,.cs-wide>figure>.dv-desk{border-radius:var(--r-xl)}
.cs-shot{border-radius:var(--r-lg)}
.cs-shot img{border-radius:var(--r-sm)}
.cs-phones .cs-shot{border-radius:var(--r-md)}
.cs-card,.cs-table,.cs-audio{border-radius:var(--r-md)}
.cs-flow span{border-radius:var(--r-sm)}
.cs-demo{border-radius:var(--r-xl)}
.ptf-shot img{border-radius:var(--r-xl)}
.ptf-split .ptf-shot img{border-radius:var(--r-lg)}
.post-a .post-a-body img,.post-a .post-a-body iframe{border-radius:var(--r-lg)}
.post-a .post-a-body .highlight{border-radius:var(--r-md)}
.post-a .post-a-body :not(pre)>code{border-radius:var(--r-xs)}
.cs-todo{border-radius:var(--r-md)}

/* ---- Process ---- */
.process-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:40px 28px}
@media (max-width:1000px){.process-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.process-steps{grid-template-columns:minmax(0,1fr)}}
.process-steps li{display:flex;flex-direction:column;gap:6px;padding-top:20px;border-top:1px solid var(--line)}
.process-steps .n{display:grid;place-items:center;width:28px;height:28px;margin-bottom:10px;border-radius:50%;font-size:13px;font-weight:590;color:#fff;background:linear-gradient(107deg,#0099FF 0%,#4DB8FF 100%)}
.process-steps b{font-size:16px;line-height:24px;font-weight:590;color:var(--fg)}
.process-steps span:last-child{font-size:15px;line-height:23px;color:var(--muted)}
.wk-name--wrap{flex:1;white-space:normal}
.posts-section .wk-shot img{object-position:center}

/* ---- home hero cards: the one you point at grows, the active one gives way ---- */
.uxh-card{transition:width .45s cubic-bezier(.22,1,.36,1),color .2s}
.uxh-card .uxh-poster{border-radius:var(--r-sm);transition:box-shadow .3s}
@media (hover:hover){
  .uxh-cards:hover .uxh-card.active:not(:hover){width:140px}
  .uxh-cards:hover .uxh-card.active:not(:hover) .uxh-poster img{filter:grayscale(.6) brightness(.85)}
  .uxh-card:hover{width:192px}
  .uxh-card:hover .uxh-poster{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 18px 40px -18px rgba(0,0,0,.7)}
  body.light .uxh-card:hover .uxh-poster{box-shadow:0 0 0 1px rgba(8,9,10,.1),0 18px 40px -20px rgba(8,9,10,.35)}
}
@media (max-width:600px) and (hover:hover){.uxh-cards:hover .uxh-card.active:not(:hover){width:112px}.uxh-card:hover{width:150px}}
@media (prefers-reduced-motion:reduce){.uxh-card{transition:none}}
.uxh-ttl{font-size:12px;line-height:16px;font-weight:510}

/* ---- notes: article type on the same scale as case studies ---- */
.post-a{--pa-size:17px;--pa-lh:28px;--pa-para:1.15em}
@media (max-width:760px){.post-a{--pa-size:16px;--pa-lh:26px}}
.post-a,.post-a *{letter-spacing:-.011em}
.post-a .post-a-body p,.post-a .post-a-body li{font-weight:400}
.post-a .post-a-body h2{margin-top:2.4em;font-size:28px;line-height:1.18;font-weight:510;letter-spacing:-.022em}
.post-a .post-a-body h3,.post-a .post-a-body h4{margin-top:1.9em;font-size:19px;line-height:1.35;font-weight:590;letter-spacing:-.015em}
.post-a .post-a-body strong,.post-a .post-a-body b{font-weight:590}
.post-a .post-a-body blockquote{border-left-width:2px;border-left-color:#0099FF}
.post-a .post-a-body blockquote p{font-size:20px;line-height:30px;font-weight:510;letter-spacing:-.015em}
.post-a .post-a-body .takeaway{font-size:19px;line-height:29px;font-weight:510}
.post-a .post-a-body figcaption{font-size:14px;line-height:21px}
.post-a .post-a-body pre,.post-a .post-a-body code{letter-spacing:0}
@media (max-width:760px){.post-a .post-a-body h2{font-size:24px}}
.uxh-byline{font-size:13px}

/* ---- notes: pictures stay in the text column too ---- */
.post-a .post-a-body figure,.post-a .post-a-body figure.pair,.post-a .post-a-body>p:has(>img:only-child),.post-a .post-a-body>iframe,.post-a .post-a-body>p:has(>iframe:only-child){grid-column:content}

/* ---- device frames in articles: the page scrolls, never the frame. Pointing at a frame plays its screen
   from top to bottom (public/assets/js/frames.js); a click opens it larger, where it can be scrolled. ---- */
.cs .dv-screen,.post-a .dv-screen{overflow:hidden;overscroll-behavior:auto}
.dv .dv-img{border-radius:0 !important}
.dv-phone .dv-img{width:100%;height:100%;object-fit:cover;object-position:top center}
.cs .cs-shot:has(.dv){padding:0 !important;border:0;background:none;border-radius:0;cursor:zoom-in}

/* ---- the enlarged view: the same frame, at most 80% of the screen and always whole ---- */
.cs-lb{justify-content:center;gap:16px;background:rgba(8,9,10,.82);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.cs-lb .lb-frame{cursor:default;flex:none}
.cs-lb .lb-frame .dv-desk{width:min(80vw,1280px,(86dvh - 36px) * 1.6)}
.cs-lb .lb-frame .dv-phone{width:min(80vw,(86dvh) * .46);max-width:none}
.cs-lb .lb-frame .dv-screen{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.cs-lb .lb-img{max-width:min(80vw,1360px);max-height:86dvh;overflow:auto;border-radius:var(--r-lg);cursor:default}
.cs-lb .lb-img img{display:block;width:100%;height:auto;border-radius:0}
.cs-lb .lb-close{position:fixed;top:16px;right:16px;width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.1);color:#f7f8f8;cursor:pointer;font-size:20px;line-height:1}
.cs-lb .lb-close:hover{background:rgba(255,255,255,.18)}

/* ---- home testimonials: solid cards, so stacked cards never show through each other ---- */
.tm-card{background:color-mix(in srgb,var(--fg) 5%,var(--body-bg,#151515))}
body.light .tm-card{background:#f6f7f8}
