/* Scale editorial type and spacing independently of the artwork inside device mockups. */
:root {
  font-size: clamp(100%, calc(75% + .38vw), 175%);
  --body-copy: 1rem;
  --intro-copy: clamp(1.0625rem, calc(1rem + .12vw), 1.18rem);
  --caption-size: .875rem;
  --label-size: .8125rem;
  --card-title: clamp(1.3rem, calc(1.15rem + .4vw), 1.6rem);
  --section-title: clamp(2.15rem, calc(1.6rem + 2.2vw), 4.1rem);
  --layout-gap: clamp(1.25rem, 3vw, 3rem);
}
body { font-size: var(--body-copy); }
.h1 { font-size: clamp(2.8rem, calc(2rem + 4.6vw), 6.4rem); }
.h2, .s2 > h2 { font-size: var(--section-title); }
.lead, .head .hsupp, .sech > .lead { font-size: var(--intro-copy); max-width: 58ch; }
.kicker, .back, .greet, .chip { font-size: .84rem; }
.logo { font-size: 1.44rem; }
.links a, .btn { font-size: .94rem; }
.links a { padding: .5em 1.08em; }
.btn { padding: .95em 1.45em; }
.head > *, .card, .hgrid .meta > * { min-width: 0; }
.hgrid .meta h3 { font-size: clamp(1.45rem, 1.8vw, 2rem); }
.hgrid .meta p { font-size: var(--body-copy); max-width: 55ch; text-wrap: pretty; }
.hgrid { gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 1.8vw, 2.25rem); }
@media (min-width: 650px) { .grid.hgrid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1500px) { .grid.hgrid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (min-width: 2400px) { body[data-page="work"] .grid.hgrid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (min-width: 1100px) {
  :root {
    --page-width: max(1840px, 112rem);
    --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 4rem; --s8: 6rem;
  }
  .theme { width: 2.75rem; height: 2.75rem; }
  .nav .theme svg { width: 1.125rem; height: 1.125rem; }
  .pagetop { padding-top: clamp(8rem, 13vh, 10rem); }
}

/* The homepage heading can use its entire column; its paragraph has its own reading measure. */
.hero .in { max-width: none; min-width: 0; }
.hero .wrap { gap: var(--layout-gap); }
.hero h1 { font-size: clamp(2.5rem, calc(1.55rem + 3.25vw), 7rem); line-height: 1.02; text-wrap: wrap; margin-block: .4em .3em; }
.hero .hsub { font-size: var(--intro-copy); max-width: 59ch; line-height: 1.53; margin: 0 0 1.4em; }
.hero .greet { font-size: .86rem; padding: .42em 1em .42em .6em; }
.hero .greet svg { width: 1.45em; }
.hero .cta { gap: .65rem; }
@media (min-width: 740px) {
  .hero .wrap { grid-template-columns: minmax(0,1.17fr) minmax(0,1fr); }
  .hero .hvis { width: min(100%, 96svh); max-height: none; justify-self: end; aspect-ratio: 1.16; }
}
@media (min-width: 1001px) and (max-width: 1599px) {
  .hero h1 { text-wrap: balance; }
}
@media (min-width: 1500px) {
  .hero .hvis { aspect-ratio: 1.45; }
}
@media (min-width: 1840px) {
  .hero { padding-block: clamp(7rem,12vh,10rem) var(--s6); }
  .hero .wrap { column-gap: clamp(3rem, 4vw, 7rem); }
}
@media (max-width: 739px) {
  .hero { padding-top: clamp(5.8rem, 15vw, 7.25rem); }
  .hero .wrap { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
}
@media (min-width: 480px) and (max-width: 739px) { .hero .hvis { aspect-ratio: 1.3; } }

.brands .lbl { font-size: .84rem; }
.track .b { font-size: clamp(1.12rem, 1.45vw, 1.5rem); }
.track .set svg { width: 1.1rem; }
.num b { font-size: clamp(2.45rem,4.2vw,4.2rem); }
.num > span, .kitcap { font-size: .95rem; }
.flip { min-height: clamp(12rem,16vw,19rem); }
.fa h3, .pr2 h3, .sk2 h3 { font-size: clamp(1.35rem,1.8vw,1.85rem); }
.fa p, .pr2 p, .sk2 p, .next p { font-size: var(--body-copy); line-height: 1.55; }
.kit { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); }
.kit .kitart { width: 100%; max-width: 24rem; justify-self: center; }
.kit .tc { font-size: .92rem; }
.tq p { font-size: clamp(1.35rem,1.9vw,2rem); max-width: 45ch; }
.next .line { font-size: 1.55rem; }
.next p { max-width: 52ch; }
@media (max-width: 480px) {
  #flips { grid-template-columns: minmax(0,1fr); }
  .flip { min-height: 10rem; }
  .nums { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(4px,1.7vw,8px); }
  .num { padding: .9rem clamp(6px,2.25vw,12px); }
  .num b { font-size: clamp(2rem,9vw,2.65rem); }
  .num > span { margin-top: .5rem; font-size: clamp(.78rem,3.45vw,.94rem); overflow-wrap: anywhere; }
  .num .nb { width: .72rem; right: .4rem; top: .5rem; }
}

/* Case-study figures can grow further than paragraphs without making lines of text too long. */
.cs2 { --cw: clamp(58rem,77vw,80rem); }
@media (max-width: 800px) {
  .cs2 { --page-gutter: clamp(16px, 6.15vw, 32px); }
}
.cs2 .wrap { max-width: calc(var(--cw) + 2 * var(--page-gutter)); }
.cs2 .ch h1 { font-size: clamp(2.8rem, 6.8vw, 6.5rem); overflow-wrap: anywhere; }
.cs2 .rd > h2 { font-size: var(--section-title); max-width: 32ch; }
.cs2 .ch .sub { font-size: clamp(1.25rem, 1.75vw, 1.8rem); max-width: 52ch; }
.cs2 .ch .sub2, .cs2 .rd p, .cs2 .txt p { font-size: var(--intro-copy); max-width: 65ch; }
.cs2 .k3pers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 360px) {
  .cs2 .phpanel > .pf { flex-basis: 100%; }
  .cs2 .wsw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cs2 .facts2 div span, .cs2 .cards3 p, .cs2 .k3c p, .cs2 .k3m p { font-size: var(--body-copy); }
.cs2 .cards3 h3, .cs2 .k3c h4 { font-size: 1.45rem; }
.cs2 .facts2 small, .cs2 .eye, .cs2 .k3c small { font-size: .8rem; }
.cs2 .acts .btn { display: inline-flex; }
@media (max-width: 440px) {
  .cs2 .facts2 { grid-template-columns: minmax(0,1fr); }
  .cs2 .cards3 { grid-template-columns: minmax(0,1fr); }
}
.abcols .lead, .pair p, .fq p, .chh p, .gbt p { font-size: var(--intro-copy); max-width: 62ch; }
.gbt h1 { font-size: clamp(2.75rem,6vw,6rem); }
.gbt p { max-width: 55ch; }
@media (min-width: 1100px) {
  .wallwrap, .tray { max-width: 65rem; }
  .wall { height: clamp(30rem,52vh,42rem); }
  .abtop .apf { width: min(100%,23rem); }
}
.abx .abhh { font-size: clamp(3.25rem,8vw,7.25rem); }
.st2 h3 { font-size: clamp(2rem,3.2vw,3.8rem); }
.aiflow .st2 { min-height: auto; }
.chh { max-width: 65ch; }
.ai2 figcaption b { font-size: 1.4rem; }
.ai2 figcaption span, .tp b { font-size: .96rem; }
.tp small, .aidx a, .fbar { font-size: .86rem; }
@media (min-width: 1101px) { .ahw { grid-template-columns: 10rem minmax(0,1fr); } }
@media (min-width: 1500px) {
  .prin { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .grid2 { --fh: clamp(28rem,35vw,39rem); }
  .aiflow, .fqw { column-gap: var(--layout-gap); }
}
.fcard h2 { font-size: clamp(2.1rem,3.3vw,4rem); max-width: 25ch; }
.copy { font-size: 1rem; }
.fcard .socials a { font-size: .95rem; }

@media (min-width: 1100px) { .fcard .wm { font-size: clamp(6rem,9vw,12rem); } }

/* Match the published compact header, including its inset inside the capsule. */
@media (max-width: 760px) {
  .nav { padding-inline: 12px; }
  .nav .bar { padding-inline-start: 16px; }
  .nav .logo { font-size: 22px; }
}

/* Captions, labels and body copy keep their hierarchy as the root type size changes. */
.fa small, .nowh, .pr2 .no, .ot small, .flab, .rowlab { font-size: var(--label-size); }
.els .eln, .sk2 li, .exp .r em, .gb .gbempty, .bnav, .pgfill, .desk .hint,
.wall .draghint, .wall .pgno { font-size: var(--caption-size); }
.now li, .mind .ai, .pick button, .desk .stick { font-size: var(--body-copy); }
.now li { padding-block: .68em; gap: .7em; }
.now li i { width: .55em; height: .55em; }
.abtx .lead { line-height: 1.58; }
.baxs button, .atabs .atab, .st2 .lb, .rail .rt small { font-size: var(--caption-size); }
.baxv .baxn, .adesc .aline, .tt2 > span { font-size: var(--body-copy); }
.ai2 figcaption b { font-size: var(--card-title); }
.ai2 figcaption span { font-size: var(--body-copy); max-width: 52ch; }
.tt2 { max-width: 54rem; padding: clamp(1.5rem, 3vw, 2.75rem); }
.tt2 p { font-size: clamp(1.85rem, 2.7vw, 3rem); }
@media (min-width: 1101px) {
  .tt2 { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 2rem; }
  .tt2 > span { grid-column: 1; max-width: 42ch; }
  .tt2 .btn { grid-area: 1 / 2 / span 2; margin: 0; }
}
@media (min-width: 1200px) {
  :is(#dashboards,#websites) .ai2.full { grid-column: span 3; }
  #dashboards .grid2 { --fh: clamp(18rem, 31vw, 32rem); }
  #dashboards .flat.tlc { width: min(76%, calc((var(--in) - 3rem) * 542 / 581)); }
}
.motion-control { font-size: var(--caption-size); }

.cs2 .k3p p, .cs2 .k3er > div, .cs2 .k3pr p, .cs2 .k3pg ul { font-size: var(--body-copy); }
.cs2 .k3q, .cs2 .k3hmw p { font-size: var(--intro-copy); }
.cs2 :is(.k3ph b,.k3m b,.k3pr h4,.sh h3) { font-size: var(--card-title); }
.cs2 :is(figcaption,.k3cap,.k3call cite,.ch .back,.toc2 a,.vtabs button,.k3tn,.k3tl,
  .k3leg,.k3nd,.k3st span,.k3ph span,.ctw table,.ctw th,.ctw td,.k3src span) { font-size: var(--caption-size); }
.cs2 :is(.k3w small,.k3er small,.k3eh span,.k3m span,.k3per em,.k3bal,.k3pal b,.k3pal em,
  .si small,.pn small,.vhint,.ctw th span,.k3fr small) { font-size: var(--label-size); }
.cs2 .k3nd { max-width: 11rem; }
@media (max-width: 480px) {
  .pick button { font-size: var(--label-size); }
}

.copy .ok, .skip, .gbfab .bub { font-size: var(--caption-size); }
.pn a small, .cmpin .lab, .baxl button span { font-size: var(--label-size); }
.baxl button { font-size: 1.15rem; }
.wall .empty { font-size: 1.25rem; }
.cs2 :is(.k3day p,.k3chips p,.sw li,.k3svq) { font-size: var(--body-copy); }
.cs2 :is(.k3day time,.k3day span,.png h4,.sh > span,.k3pr > div > span) { font-size: var(--label-size); }
.cs2 :is(.k3svr,.k3chips b,.cmpt .seg button,.rabcov > span) { font-size: var(--caption-size); }
.cs2 .k3day h4 { font-size: var(--card-title); }
.cs2 .k3svr { grid-template-columns: minmax(0,1fr) max-content; }
.cs2 .ctw .ck { font-size: var(--label-size); width: 1.8em; height: 1.8em; }
.cs2 .sn button { font-size: 1.0625rem; width: 2.75rem; height: 2.75rem; }
@media (min-width: 1100px) {
  .cs2 .k3day li { grid-template-columns: 3.25rem minmax(0,1fr); }
  .cs2 .k3day::before { left: calc(3.25rem + 10px); }
}

@media (min-width: 1025px) {
  .nav .bar { padding-inline-start: clamp(20px, 1.8vw, 40px); }
}
