/* bhargs.com */
@font-face{font-family:"Libre Baskerville";src:url(/fonts/libre-baskerville.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Libre Baskerville";src:url(/fonts/libre-baskerville-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url(/fonts/instrument-sans.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url(/fonts/instrument-sans-italic.woff2) format("woff2");font-weight:400 700;font-style:italic;font-display:swap}

:root{
  --paper:#f7f9f9;--ink:#393430;--rose:#a0647c;--cream:#f6f0ea;--blush:#edcad8;
  --bg:var(--paper);--fg:var(--ink);--accent:var(--rose);--head:var(--ink);
  --serif:"Libre Baskerville",Georgia,serif;--sans:"Instrument Sans",system-ui,sans-serif;
  --gutter:clamp(16px,4vw,58px);--measure:994px;
}
.theme-truist{--accent:#72569c}
.theme-canvas{--accent:#e72429}
.theme-thunder{--bg:#07131e;--fg:var(--paper);--accent:#84d2ff;--head:var(--paper);--spark:#fb651e}
.theme-dfg{--accent:#f52c68}
.head-light{--head:var(--paper)}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:400 16px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
/* grain: the faintest film of grey noise over the whole screen, a fixed layer on top of everything that never takes the
   pointer (a still tile, nothing moves; not in print) */
body::after{content:"";position:fixed;inset:0;z-index:2147483647;pointer-events:none;opacity:.035;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0/180px 180px}
@media print{body::after{display:none}}
::selection{background:var(--blush);color:var(--ink)}
img,svg,video{display:block;max-width:100%;height:auto}
h1,h2,h3,h4,p,ul,figure{margin:0}
h1,h2,h3,h4{font-family:var(--serif);font-weight:400;letter-spacing:-.02em}
h1{font-size:clamp(38px,4.6vw,66px);line-height:1.3}
h2{font-size:clamp(29px,3.2vw,46px);line-height:1.55}
h3{font-size:clamp(21px,1.85vw,26px);line-height:1.6}
h4{font-size:16px;line-height:1.7}
a{color:inherit}
p a,li a,.link{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}
p a:hover,li a:hover,.link:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-999px;top:8px;background:var(--paper);color:var(--ink);padding:8px 12px;z-index:30}
.skip:focus{left:8px}
.small{font-size:14.25px;line-height:1.5}
.accent{color:var(--accent)}
.spark{color:var(--spark)}
strong{font-weight:700}

/* header + footer */
.site-header{position:absolute;inset:0 0 auto;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:clamp(28px,4.4vw,64px) var(--gutter) 0;color:var(--head);font-family:var(--serif)}
.site-title{font-size:clamp(20px,1.7vw,24.4px);letter-spacing:-.02em;text-decoration:none}
.site-nav{display:flex;gap:16px}
.site-nav a{text-decoration:none;padding-bottom:2px;border-bottom:1px solid transparent}
.site-nav a:hover,.site-nav a[aria-current]{border-color:currentColor}
main{padding-top:clamp(84px,11vw,160px)}
main.flush{padding-top:0}
.site-footer{display:flex;flex-wrap:wrap;gap:12px 32px;justify-content:space-between;align-items:center;padding:72px var(--gutter);font-size:14.25px;color:var(--rose)}
.theme-thunder .site-footer{color:var(--accent)}
.site-footer nav{display:flex;gap:32px}
.site-footer nav a{text-decoration:none}
.site-footer nav a:hover{text-decoration:underline}
.site-footer p a{color:inherit}

/* layout helpers */
.wrap{max-width:calc(var(--measure) + 2*var(--gutter));margin-inline:auto;padding-inline:var(--gutter)}
.wide{padding-inline:var(--gutter)}
.band{padding-block:clamp(48px,6vw,88px)}
.band.tight{padding-block:clamp(24px,3vw,40px)}
.cream{background:var(--cream);color:var(--ink);--accent:var(--rose)}
.theme-dfg .cream{--accent:var(--rose)}
.stack>*+*{margin-top:1em}
.stack>h2+*,.stack>h3+*,.stack>h4+*{margin-top:.75em}
.stack>figure,.stack>.frame{margin-top:2em}
.rule{border:0;border-top:1px dashed var(--rose);margin:0}
figure img{width:100%}
figcaption{margin-top:12px;font-size:14px;line-height:1.5;opacity:.85}
.cols-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,5vw,72px);align-items:start}
.cols-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,40px);align-items:start}
.frame{position:relative;aspect-ratio:16/9;background:#0002}
.frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* home */
.intro{display:grid;grid-template-columns:clamp(96px,10vw,140px) minmax(0,1fr);gap:clamp(20px,2.4vw,34px);align-items:start;max-width:680px;margin-inline:auto;padding-inline:var(--gutter);padding-block:clamp(12px,3vw,48px) clamp(64px,13vw,190px)}
.intro h1{font-size:clamp(21px,1.85vw,26px);line-height:1.76}
.intro h1 em:last-of-type{color:var(--rose)}
.intro p{margin-top:16px;font-size:14.25px}
.petal{clip-path:url(#petal);aspect-ratio:1;width:100%;object-fit:cover}
.tile a{text-decoration:none}
.tile a.media{display:block}
.tile img,.tile video{width:100%;border-radius:2px;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.tile .media{overflow:hidden;border-radius:2px}
.tile a.media:hover img,.tile a.media:hover video{transform:scale(1.015)}
.tile h2{font:700 14.25px/1.5 var(--sans);letter-spacing:0;margin-top:20px}
.tile p{font-size:14.25px;margin-top:12px}
.tile h2 span{font-weight:400}
.tiles-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:34px}
.tiles-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;margin-top:clamp(40px,5vw,72px)}
.hello{max-width:640px;margin-inline:auto;padding-inline:var(--gutter)}
.kitty{font-family:var(--sans);white-space:pre;line-height:1.2;color:var(--rose)}
.grid{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:var(--gap,0)}
.grid a{display:block}
.grid img{width:100%;height:100%;aspect-ratio:var(--ar,1);object-fit:cover;background:#0000000a}
.grid a{overflow:hidden;cursor:zoom-in}
.grid a img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.grid a:hover img{transform:scale(1.02)}
.grid figure{min-width:0}
.people{--n:5;--gap:24px 16px;--ar:3/4}

/* case studies */
.case-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,240px);gap:clamp(24px,8vw,120px);align-items:start}
.case-hero .eyebrow{font-size:14.25px;margin-bottom:12px}
.case-hero h1{font-size:clamp(29px,3.2vw,46px);line-height:1.6;color:var(--accent)}
.case-hero aside{font-size:14.25px}
.case-hero aside p+p{margin-top:12px}
.case-hero aside strong{color:var(--accent)}
.case-hero aside .out{display:block;text-align:right;margin-bottom:20px}
.lead{margin-top:clamp(32px,4vw,56px)}
.quote{border-left:2px solid var(--accent);padding-left:20px;font:400 clamp(19px,1.6vw,22px)/1.6 var(--serif);letter-spacing:-.01em}
.quote small{display:block;font:700 14.25px/1.5 var(--sans);letter-spacing:0;margin-bottom:8px}
.stat b{display:block;font:400 clamp(34px,3.6vw,50px)/1.2 var(--serif);letter-spacing:-.02em;color:var(--accent)}
.stat h3{font:700 14.25px/1.5 var(--sans);letter-spacing:0;margin:8px 0}
.stat p{font-size:14.25px}
.card{border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:6px;padding:20px}
.card h4{font:700 15px/1.4 var(--sans);letter-spacing:0;margin-bottom:8px;color:var(--accent)}
.card p{font-size:14.25px}
.theme-thunder h3 em{color:var(--accent)}
.theme-truist h2,.theme-truist h3{color:var(--accent)}
.reel{display:grid;grid-auto-flow:column;grid-auto-columns:min(100%,840px);gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}
.reel figure{scroll-snap-align:start}

/* full bleed heroes */
.bleed{position:relative;isolation:isolate;overflow:hidden;color:var(--paper)}
.bleed>.bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.bleed::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--tint,transparent)}
.bleed-hero{min-height:min(100vh,924px);padding-top:clamp(110px,14vw,210px);padding-bottom:64px;--accent:var(--paper)}
.theme-dfg .bleed-hero{--accent:#f52c68}
.video-toggle{position:absolute;right:var(--gutter);bottom:24px;padding:8px 14px;border:1px solid currentColor;border-radius:8px;background:#39343099;color:var(--paper);font:400 14px/1.3 var(--sans);cursor:pointer}
.video-toggle:hover{background:var(--ink)}
.video-toggle:focus-visible{outline-color:var(--paper)}
.play-intro{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,6vw,88px);align-items:start;padding-block:clamp(120px,18vw,260px)}
.play-intro h1{font-size:18px;line-height:1.6;letter-spacing:-.01em}
.play-intro a{color:var(--rose);font-style:italic}
.play-band{display:grid;place-items:center;gap:20px;align-content:center;text-align:center;min-height:clamp(340px,37vw,537px);padding:48px var(--gutter);--tint:#39343033}
.play-band h2{font-size:clamp(38px,4.6vw,66px);line-height:1.3}
.btn{display:inline-block;padding:9px 22px;border:1px solid currentColor;border-radius:8px;font:400 15px/1.3 var(--serif);text-decoration:none;color:var(--accent);background:transparent;transition:background .2s,color .2s}
.btn:hover{background:var(--accent);color:var(--paper)}
.btn.on-image{color:var(--paper)}
.btn.on-image:hover{background:var(--paper);color:var(--ink)}

/* long-form case study: kicker, meta grid, numbered sections */
.cs-hero{padding-block:clamp(16px,3vw,40px) clamp(40px,5vw,64px)}
.cs-kicker,.cs-tags,.cs-meta dt,.cs-num,.cs-phases span,.cs-next span:first-child{font:600 12px/1.5 var(--sans);letter-spacing:.09em;text-transform:uppercase}
.cs-kicker{color:var(--accent)}
.cs-hero h1{max-width:20ch;margin-top:16px;font-size:clamp(32px,4vw,56px);line-height:1.25;color:var(--ink)}
.cs-note{max-width:620px;margin-top:24px;font:italic 400 15px/1.7 var(--serif);opacity:.85}
.cs-tags{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin-top:28px}
.cs-tags li{padding:5px 12px;border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);border-radius:999px;color:var(--accent);letter-spacing:.06em}
.cs-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:clamp(40px,5vw,56px) 0 0;padding-top:20px;border-top:1px solid color-mix(in srgb,var(--ink) 18%,transparent)}
.cs-meta dt{color:var(--accent);margin-bottom:6px}
.cs-meta dd{margin:0;font-size:15px;line-height:1.5}
.cs-film{position:relative;overflow:hidden;border-radius:4px;background:var(--ink);aspect-ratio:16/9}
.cs-film video{width:100%;height:100%;object-fit:cover}
.cs-film .video-toggle{bottom:16px;right:16px}

.cs-section{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);column-gap:clamp(24px,6vw,80px);align-items:start;padding-block:clamp(64px,8vw,112px) 0}
.cs-section>*{grid-column:2}
.cs-section>*+*{margin-top:clamp(28px,3vw,40px)}
.cs-section>.cs-full{grid-column:1/-1}
.cs-label{grid-column:1;grid-row:1;margin:0;padding-top:6px;border-top:2px solid var(--accent)}
.cs-num{display:block;padding-top:10px;color:var(--accent)}
.cs-label h2{margin-top:4px;font-size:clamp(19px,1.6vw,22px);line-height:1.4;color:var(--ink)}
.cs-section>.cs-label+*{margin-top:0}
.cs-body{max-width:640px}
.cs-body>*+*{margin-top:1em}
.cs-q{font:400 clamp(24px,2.6vw,36px)/1.35 var(--serif);letter-spacing:-.02em;color:var(--accent)}
.cs-body>.cs-q+*{margin-top:24px}
.cs-pull{margin-top:32px;font:italic 400 clamp(19px,1.6vw,22px)/1.6 var(--serif);color:var(--accent)}

.cs-stats,.cs-with,.cs-phases{list-style:none;padding:0}
.cs-stats,.cs-with{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,40px)}
.cs-stats li,.cs-with li{padding-top:16px;border-top:1px solid color-mix(in srgb,var(--accent) 35%,transparent)}
.cs-stats b{display:block;font:400 clamp(38px,4.2vw,58px)/1.1 var(--serif);letter-spacing:-.03em;color:var(--accent)}
.cs-stats h3,.cs-with h3,.cs-phases h3{font:700 15px/1.45 var(--sans);letter-spacing:0;color:var(--ink)}
.cs-stats h3{margin:12px 0 8px}
.cs-with h3{margin-bottom:8px}
.cs-stats p,.cs-with p,.cs-phases p{font-size:14.25px;line-height:1.6}

.cs-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:center}
.cs-phases{counter-reset:phase}
.cs-phases li{position:relative;padding:0 0 24px 40px;counter-increment:phase}
.cs-phases li::before{content:counter(phase,decimal-leading-zero);position:absolute;left:0;top:1px;font:400 14px/1.5 var(--serif);color:var(--accent)}
.cs-phases li::after{content:"";position:absolute;left:9px;top:28px;bottom:4px;width:1px;background:color-mix(in srgb,var(--accent) 30%,transparent)}
.cs-phases li:last-child{padding-bottom:0}
.cs-phases li:last-child::after{display:none}
.cs-phases span{display:block;color:var(--accent)}
.cs-phases h3{margin:2px 0 4px}

.cs-end{padding-block:clamp(96px,11vw,160px) 0;text-align:center}
.cs-end h2{color:var(--accent)}
.cs-end p{max-width:520px;margin:16px auto 0}
.cs-next{display:block;max-width:640px;margin:clamp(48px,6vw,72px) auto 0;padding:24px;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:6px;font:400 clamp(19px,1.6vw,22px)/1.5 var(--serif);text-decoration:none;transition:background .2s,border-color .2s}
.cs-next span:first-child{display:block;margin-bottom:6px;color:var(--accent)}
.cs-next:hover{background:color-mix(in srgb,var(--accent) 7%,transparent);border-color:var(--accent)}

/* cv */
.cv-top{display:flex;justify-content:flex-end;margin-bottom:24px}
.timeline{position:relative;list-style:none;padding:0;max-width:760px;margin-inline:auto}
.timeline::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--ink)}
.timeline>li{position:relative;width:calc(50% - 56px);margin-bottom:clamp(32px,4vw,56px)}
.timeline>li:nth-child(odd){margin-left:calc(50% + 56px)}
.timeline>li::before{content:"";position:absolute;top:8px;width:40px;border-top:1px solid var(--ink)}
.timeline>li::after{content:"";position:absolute;top:4px;width:9px;height:9px;border:1.5px solid var(--ink);border-radius:50%;background:var(--bg)}
.timeline>li:nth-child(odd)::before{left:-56px}
.timeline>li:nth-child(odd)::after{left:-20px}
.timeline>li:nth-child(even)::before{right:-56px}
.timeline>li:nth-child(even)::after{right:-20px}
.when{font:400 11.5px/1.5 var(--serif);letter-spacing:.1em;text-transform:uppercase}
.timeline h2{font-size:16px;line-height:1.7;margin-top:6px}
.timeline p{font-size:14.25px;margin-top:10px}
.cv-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(32px,5vw,64px)}
.cv-more h2{font-size:clamp(21px,1.85vw,26px);line-height:1.6;margin-bottom:12px;color:var(--rose)}
.cv-more h3{font:700 15px/1.4 var(--sans);letter-spacing:0}
.cv-more p{font-size:14.25px}
.cv-more .item+.item{margin-top:16px}

/* lightbox */
dialog.lightbox{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#f7f9f9f2;color:var(--ink)}
dialog.lightbox::backdrop{background:transparent}
.lb{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;height:100%;padding-block:20px}
.lb figure{display:grid;place-items:center;height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto}
.lb img{max-width:100%;max-height:100%;width:auto;height:auto;min-height:0;object-fit:contain}
.lb figcaption{text-align:center;margin-top:10px;opacity:1;min-height:21px}
.lb button{appearance:none;background:none;border:0;color:inherit;width:48px;height:48px;font:400 26px/1 var(--serif);cursor:pointer;justify-self:center}
.lb .close{position:absolute;top:12px;right:12px;font-family:var(--sans);border:1px solid currentColor;border-radius:8px;width:42px;height:34px;font-size:18px}

/* case study, study layout (Truist): the canvas artboard's layout, exactly (its px spacing, 20px sides, media slot shapes), in the site's text styles */
.study{--st-ink:#111;--st-head:#222;--st-grey:#6b6b6b;--st-hair:#e6e6e3;--st-slot:#ededeb;color:var(--st-ink)}
.study h1,.study h2,.study h3{color:var(--st-head);letter-spacing:-.02em}
.study .wide,.ix-content .study .wide,.st-end,.st-footer{padding-inline:20px}
.st-eyebrow,.st-meta dt,.st-num{margin:0;font:400 12px/1.5 var(--sans);letter-spacing:.04em;text-transform:uppercase}
.st-eyebrow{color:var(--st-ink)}
.st-meta dt,.st-num{color:var(--st-grey)}
main .st-title{padding-top:max(0px,calc(200px - clamp(84px,11vw,160px)))}   /* (on its own page: 200px from the top, as drawn) */
.st-title{display:flex;flex-direction:column;gap:6px}
.st-when{font-size:12px;color:var(--st-grey)}
.st-title-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px 40px}
/* every case study's title row has the same shape: a 280px column for the company (wide enough for "Thunder Compute",
   so a longer name wraps inside it) and the lede beside it. Where the two can't sit side by side, they all stack. */
.st-title{container-type:inline-size}
@container (min-width:620px){ .st-title-row{display:grid;grid-template-columns:280px minmax(0,490px)} }
.st-title h1{font-size:28px;line-height:1.3;color:var(--st-ink)}
.st-lede{flex:0 1 490px;font-size:24px;line-height:1.3;letter-spacing:-.02em;color:var(--st-grey)}
.st-lede{text-wrap:pretty}
/* the lede's people roll in, one at a time and in a random order, in a one-line window at the end of the sentence (js/site.js
   shuffles and steps them). Screen readers, and anyone who prefers less motion, get the whole list. */
.st-roll{display:inline-block;height:1.3em;overflow:hidden;vertical-align:bottom;color:var(--st-ink)}
.st-roll-in{display:flex;flex-direction:column}
.st-roll-in>span{display:block;height:1.3em;white-space:nowrap}
.st-roll-all{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.st-roll{display:none}.st-roll-all{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}}
.st-hero{margin:0;padding-top:46px}
.st-hero .cs-film{border-radius:0}
.st-intro{display:flex;flex-wrap:wrap;gap:32px 60px;padding-top:38px}
.st-intro-text,.st-meta{border-top:1px solid var(--st-hair);padding-top:20px}
.st-intro-text{flex:1 1 440px;font-size:18px;line-height:1.55;color:var(--st-grey)}
.st-meta{flex:1 1 360px;display:flex;flex-direction:column;gap:22px;margin:0}
.st-meta div{display:flex;flex-direction:column;gap:6px}
.st-meta dd{margin:0;font-size:14px;line-height:1.4;color:var(--st-ink)}
.st-section{padding-top:180px}
.st-overview{padding-top:140px}
.st-section h2,.st-section h3{font-size:24px;line-height:1.3}
.st-head{display:flex;flex-direction:column;gap:6px}
.st-split{display:flex;flex-wrap:wrap;gap:20px 60px}
.st-split>.st-head{flex:1 1 300px}
.st-copy{display:flex;flex-direction:column;gap:24px;padding-top:22px}
.st-copy p,.st-cards p,.st-with p,.st-learnings p,.st-share p{font-size:16px;line-height:1.5;color:var(--st-grey)}
.st-copy-side{flex:1 1 360px}
.st-copy-main{max-width:810px}
/* a note marker: its note shows on hover or focus, over the text (no room taken) */
.st-fn{position:relative;font-size:.75em;vertical-align:super;line-height:0;margin-left:1px;color:var(--st-ink);cursor:default;border-radius:2px}
.st-fn:focus-visible{outline:2px solid var(--st-ink);outline-offset:2px}
.st-fn-note{position:absolute;left:-4px;top:calc(100% + 14px);z-index:3;width:min(280px,70vw);padding:10px 12px;background:var(--paper);color:var(--st-ink);border:1px solid var(--st-hair);border-radius:8px;box-shadow:0 6px 24px rgb(0 0 0/.08);font:400 12.5px/1.5 var(--sans);letter-spacing:0;vertical-align:baseline;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .2s,transform .2s,visibility 0s linear .2s}
.st-fn:hover .st-fn-note,.st-fn:focus .st-fn-note{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .2s}
/* media slots, the artboard's shapes; an empty one stays a plain grey slot until its media arrives */
.st-media{display:block;margin:0;overflow:hidden;border-radius:3px;background:var(--st-slot)}
.st-media img{width:100%;height:100%;object-fit:cover}
.st-row{display:flex;flex-wrap:wrap;gap:20px;margin-top:40px}
.st-land{flex:5 1 320px;aspect-ratio:494/360}
.st-port{flex:3 1 200px;aspect-ratio:296/360}
.st-sq{flex:1 1 280px;aspect-ratio:395/360}
/* places sign-in happens: still photos two by two, each labelled */
.st-place-photo{position:relative;flex:1 1 280px;aspect-ratio:4/3}
.st-place-photo img{filter:grayscale(1) contrast(1.04)}   /* (the four places in black and white: in colour the stock photos read as staged) */
.st-places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}   /* (always two across, so the four make two rows at every width) */
/* the caption is a notch cut into the photo's bottom-left corner: it's filled with the page's own background, and the two
   pseudo-elements are the curved inside corners (above the label, and to its right), so the label sits on the page, not the picture */
.st-place{--r:14px;position:absolute;left:0;bottom:0;display:flex;gap:10px;align-items:baseline;padding:10px 16px 0 0;border-top-right-radius:var(--r);background:var(--bg);color:var(--st-ink);font:500 14px/1.3 var(--sans);letter-spacing:0}
.st-place::before,.st-place::after{content:"";position:absolute;width:var(--r);height:var(--r);background:radial-gradient(circle at 100% 0,transparent calc(var(--r) - .5px),var(--bg) var(--r))}
.st-place::before{left:0;bottom:100%}
.st-place::after{left:100%;bottom:0}
.st-wide{width:100%;aspect-ratio:810/420;margin-top:20px}
.st-wide img{object-fit:contain}
/* what I worked on: the label on the left and the cards on the right, in the same columns as the overview's split above;
   the cards go four across when they fit, else two by two (never three and one), and one per row on a phone */
.st-worked{margin-top:72px;display:flex;flex-wrap:wrap;gap:20px 60px}
.st-worked>.st-eyebrow{flex:1 1 300px}
.st-worked-list{flex:1 1 360px;container-type:inline-size}
.st-cards,.st-with,.st-learnings{list-style:none;margin:0;padding:0}
.st-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
@container (min-width:800px){.st-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container (max-width:400px){.st-cards{grid-template-columns:minmax(0,1fr)}}
.st-cards li{display:flex;flex-direction:column;gap:6px;padding:20px 0;border-top:1px solid var(--st-hair)}
.st-cards h3,.st-with h3{font:500 16px/1.5 var(--sans);letter-spacing:0;color:var(--st-head)}
.st-with{margin-top:20px}
.st-with li{display:flex;flex-wrap:wrap;gap:8px 20px;padding:20px 0}
.st-with li>*{flex:1 1 280px}
/* process steps (Truist): a small mark of outlined squares beside each step's title and copy, in the case study's
   accent; it plays once as its step comes into view and again on hover (js/study.js). The mark goes above the text once
   the two can't sit side by side. */
.st-steps{list-style:none;margin:40px 0 0;padding:0;max-width:900px}
.st-step{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px 40px;padding:40px 0;border-top:1px solid var(--st-hair)}
.st-mark{box-sizing:border-box;flex:0 0 152px;width:152px;height:152px;padding:28px;border-radius:6px;background:var(--st-card);color:var(--accent);overflow:visible}   /* (each mark in a square of its own, the drawing centred in it) */
.st-step-text{flex:1 1 320px;display:flex;flex-direction:column;gap:12px;max-width:746px}
.st-steps p{font-size:16px;line-height:1.5;color:var(--st-grey)}
/* learnings: soft grey cards, two to a row at most, one per row once two can't each be 300px wide */
.study{--st-card:color-mix(in srgb,var(--st-ink) 3%,var(--bg,#fff))}
.st-learnings{display:grid;grid-template-columns:repeat(auto-fill,minmax(max(300px,calc((100% - 20px) / 2)),1fr));gap:20px;margin-top:40px}
/* (the number hangs to the left of the heading, on its first line; the heading and copy share the column beside it) */
.st-learnings li{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px 16px;align-items:baseline;align-content:start;padding:36px 32px;border-radius:4px;background:var(--st-card)}
.st-learnings li>:not(.st-num){grid-column:2}
.st-share{display:flex;flex-direction:column;gap:12px;padding-top:56px;border-top:1px solid var(--st-hair)}
.st-learnings+.st-share{margin-top:56px}
.st-share-top{margin-top:56px}   /* (Petals: the shop link just under the intro instead of closing the page) */
.st-share-top h3{font-size:24px;line-height:1.3}
.st-share>*,.st-share ul{max-width:none}   /* (the closing CTA spans the full width, not indented like the learnings) */
.st-share a,.st-touch a{font-size:14px;color:var(--st-ink);text-decoration:none}
.st-share a:hover,.st-touch a:hover{text-decoration:underline;text-underline-offset:3px}
.st-end{display:flex;flex-wrap:wrap;gap:48px 40px;justify-content:space-between;align-items:flex-start;padding-block:280px 0;text-align:left;color:#111}
.st-touch{flex:0 1 383px;display:flex;flex-direction:column;gap:12px}
.st-touch p:not(.st-eyebrow){max-width:none;margin:0;font-size:14px;line-height:1.4;color:#555}
.st-touch .st-eyebrow{max-width:none;margin:0}   /* (.cs-end p would centre it) */
.st-next{flex:0 1 574px;display:flex;flex-direction:column;gap:14px;color:#111;text-decoration:none}
.st-next-cover{position:relative;display:block;overflow:hidden;border-radius:3px;aspect-ratio:574/300;background:var(--st-slot)}
.st-next-cover img{width:100%;height:100%;object-fit:cover}
.st-next-name{position:absolute;left:16px;top:16px;font-size:14px;color:#fff}
.st-next-go{font-size:14px;text-align:center}
.st-next:hover .st-next-go{text-decoration:underline;text-underline-offset:3px}
.st-footer{display:flex;flex-wrap:wrap;gap:12px 40px;justify-content:space-between;padding-block:120px 40px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#111}
.st-footer>span{flex:0 1 230px}
.st-footer nav{display:flex;flex-wrap:wrap;gap:24px}
.st-footer a{text-decoration:none}
.st-footer a:hover{text-decoration:underline;text-underline-offset:3px}
/* the same layout for the other case studies (Thunder, Canvas, Develop for Good): what they need that Truist doesn't */
/* heroes: a photo or slide edge to edge, a small piece of art centred on a grey slot, or a video embed */
.st-hero>img,.st-hero>video{width:100%;border-radius:0}
.st-hero-art{display:grid;place-items:center;aspect-ratio:16/9;padding:24px;background:var(--st-slot)}
.st-hero-art img{width:min(805px,88%)}
.st-hero .frame{background:var(--st-slot)}
/* figures at their own shape (diagrams, flows, wireframes); a link opens the full size in the lightbox */
.st-fig{margin:40px 0 0}
.st-fig img{width:100%;border-radius:3px}
.st-fig a{display:block;cursor:zoom-in}
.st-fig-narrow{max-width:810px}
.st-fit-row.st-fit-small{max-width:640px}   /* (a row kept small, like the kite's first sketch beside the finished piece) */
/* (Petals) a photo hero cropped to the video heroes' 16:9 */
.st-hero>img.st-hero-crop{aspect-ratio:16/9;object-fit:cover;object-position:50% 62%}
/* a row of figures at their own shapes, all one height: each grows by its aspect ratio (--ar, width / height); they stack on a phone */
.st-fit-row{display:flex;gap:20px;margin-top:40px}
.st-fit-row+.st-fit-row{margin-top:20px}
.st-fit{flex:var(--ar,1) 1 0;min-width:0;margin:0}
.st-fit img{width:100%;height:auto;border-radius:3px}
.st-fit a,.st-wall a{display:block;cursor:zoom-in}
@media (max-width:700px){.st-fit-row{flex-direction:column}}
/* (Kinematics) silent loops sit in the same rows as photos; a caption under any figure; a row marked st-keep stays a row on a phone */
.st-fit video{display:block;width:100%;height:auto;border-radius:3px;background:var(--st-slot)}
.st-fit figcaption{margin-top:10px;font-size:14px;line-height:1.5;color:var(--st-grey);opacity:1}
@media (max-width:700px){.st-fit-row.st-keep{flex-direction:row;gap:10px}.st-keep .st-fit figcaption{font-size:12px}}
/* (Petals) a strip of photos straight under the hero, edge to edge like it: no gaps, no rounded corners */
.st-strip,.st-strip.st-fit-row{gap:0;margin-top:0}
.st-strip .st-fit img,.st-strip .st-fit video{display:block;border-radius:0}
/* a wall of small photos, as many across as fit, each cropped to 3:4; a click opens the full size in the lightbox */
.st-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:20px}
.st-wall a{aspect-ratio:3/4;overflow:hidden;border-radius:3px;background:var(--st-slot)}
.st-wall img{width:100%;height:100%;object-fit:cover}
/* (Play) the art as a numbered index, a typewritten table of contents: 01. TITLE, and its MEDIUM at the far end. Hover a row (or tab
   to it) and it's picked out on a pale wash of the accent, and the piece peeks out beside the list: its main photo,
   with any others laid out beside it in columns of two, never touching, each card a little turned (placed per row by the
   page's script: --x, --y, --w, --r, and --i for the order they land in). A click opens them all in the lightbox. All CSS,
   so it works the same inside the homepage's panel. On a touch screen, where nothing hovers, every row shows its main
   photo as a small thumbnail instead */
.pl-section{padding-top:72px}   /* (straight under the intro, no heading of its own) */
.pl-index{list-style:none;margin:0 -8px;padding:0;font:400 12px/1.5 ui-monospace,"SF Mono",Menlo,Consolas,monospace;letter-spacing:.02em;text-transform:uppercase;color:var(--st-grey)}
.pl-row{position:relative;display:flex;align-items:baseline;gap:8px;padding:3px 8px;border-radius:4px;cursor:zoom-in;transition:color .15s,background-color .15s}
.ix-content .pl-row{cursor:default}   /* (in the panel the lightbox links are unwrapped, so a row only peeks) */
.pl-link{display:contents;color:inherit;text-decoration:none}
.pl-row:has(.pl-link:focus-visible){outline:2px solid var(--accent);outline-offset:1px}
.pl-num,.pl-medium{flex:none}
.pl-medium{margin-left:auto;padding-left:24px}   /* (pushed to the end of the row) */
.pl-title{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-row:hover,.pl-row:has(.pl-link:focus-visible){color:var(--st-ink);background:color-mix(in srgb,var(--accent) 12%,transparent)}
/* the peek: the main photo in the flow of a 220px box, the others placed absolutely beside it. It starts just past its own row's title (--pl-x, worked out by the page's script from the title's length), so it never covers it.
   At rest they're gathered behind the main photo; on hover they fly out to their places one after another */
.pl-peek{position:absolute;z-index:5;left:max(var(--pl-x,0px),clamp(150px,30%,420px));top:-28px;width:220px;pointer-events:none;visibility:hidden;transition:visibility 0s .3s}
.pl-peek img{position:relative;z-index:10;width:100%;height:auto;border-radius:3px;box-shadow:0 12px 32px rgba(17,17,17,.16);opacity:0;transform:translateY(6px) scale(.96);transition:opacity .16s,transform .3s cubic-bezier(.2,.7,.2,1)}
.pl-peek img+img{position:absolute;left:var(--x);top:var(--y);width:var(--w);box-shadow:0 10px 26px rgba(17,17,17,.15);transform:translate(calc(40px - var(--x)),calc(20px - var(--y))) scale(.8)}
.pl-row:hover .pl-peek,.pl-row:has(.pl-link:focus-visible) .pl-peek{visibility:visible;transition:none}
.pl-row:hover .pl-peek img,.pl-row:has(.pl-link:focus-visible) .pl-peek img{opacity:1;transform:rotate(var(--r,0deg));transition-delay:calc(var(--i,0) * 50ms)}
@media (prefers-reduced-motion:reduce){.pl-peek img,.pl-peek img+img{transform:rotate(var(--r,0deg));transition:opacity .16s}}
@media (hover:none){
  .pl-index{font-size:12.5px}
  .pl-row{align-items:center;gap:12px;padding:5px 8px;cursor:default}
  .pl-peek{position:static;order:-1;flex:none;width:56px;height:56px;visibility:visible;overflow:hidden;border-radius:3px;background:var(--st-slot)}
  .pl-peek img{height:100%;object-fit:cover;border-radius:0;box-shadow:none;opacity:1;transform:none}
  .pl-peek img+img{display:none}
}
@media (max-width:560px){.pl-title{white-space:normal}.pl-medium{padding-left:12px}}   /* (a phone: titles wrap rather than clip) */
/* a logo centred on a grey slot, at its own shape */
.st-media.st-logo{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;padding:clamp(20px,4vw,48px)}   /* (fixed tracks, so the logo's max-height resolves and it can't overflow the slot) */
.st-media.st-logo img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
/* a set of logos: all in one row, else one per row on a phone (never two and a stretched one) */
.st-logos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.st-logos>.st-logo{padding:clamp(16px,3vw,48px);background:none}   /* (the logos sit straight on the page, no grey slot) */
@media (max-width:700px){.st-logos{grid-template-columns:minmax(0,1fr)}}
.st-fig-tall{max-width:560px}   /* (a tall table or chart, kept to a readable height) */
.st-fig figcaption{max-width:640px;margin-top:12px;font-size:14px;line-height:1.5;color:var(--st-grey);opacity:1}
.st-section .st-fig figcaption h3{margin-bottom:4px;font:500 16px/1.5 var(--sans);letter-spacing:0;color:var(--st-head)}
/* in copy: links and emphasis in ink (the page stays black and grey), lists in the copy's grey */
.study p a,.study li a{color:var(--st-ink)}
.st-copy strong,.st-share strong,.st-learnings strong{font-weight:500;color:var(--st-ink)}
.st-copy ul,.st-share ul{margin:0;padding-left:1.2em;font-size:16px;line-height:1.5;color:var(--st-grey)}
.st-copy li+li,.st-share li+li{margin-top:4px}
.st-copy ul ul{margin-top:4px}
/* sub-steps under a section: a number, a short heading, then copy and a figure */
.st-sub{margin-top:72px}
.st-sub>.st-copy{max-width:810px;padding-top:12px}
.st-section .st-sub h3{font:500 16px/1.5 var(--sans);letter-spacing:0;margin-top:6px}
/* the outcome in numbers, ruled like the cards: four across when they fit */
.st-stats{list-style:none;margin:72px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 24px}
.st-stats li{display:flex;flex-direction:column;gap:6px;padding:20px 0;border-top:1px solid var(--st-hair)}
.st-stats b{font:400 40px/1.15 var(--serif);letter-spacing:-.03em;color:var(--st-head)}
.st-stats p{font-size:16px;line-height:1.5;color:var(--st-grey)}
/* three cards go three across rather than two and one */
@container (min-width:600px){.st-cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* a next-project cover that's light at its top left takes its name in ink */
.st-next-name.on-light{color:#111}
/* (Canvas) a research write-up's pieces: an intro with a small note under it, pull quotes, ruled tables, a flow diagram and a theme board */
.st-intro-text p+p{margin-top:16px}
.st-intro-note{font-size:14px;font-style:italic}
.st-quote{margin:0;padding-left:20px;border-left:2px solid var(--st-ink)}
.st-copy .st-quote p{font:400 20px/1.5 var(--serif);letter-spacing:-.01em;color:var(--st-head)}
/* tables scroll sideways on a mid-size screen rather than squeezing their columns */
.st-table-wrap{margin-top:40px;overflow-x:auto}
.st-table{width:100%;min-width:560px;border-collapse:collapse;font-size:14px;line-height:1.5}
.st-table caption{caption-side:top;padding-bottom:12px;text-align:left;font:500 16px/1.5 var(--sans);color:var(--st-head)}
.st-table th{padding:0 20px 10px 0;text-align:left;vertical-align:bottom;font:400 12px/1.5 var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--st-grey)}
.st-table td{padding:14px 20px 14px 0;border-top:1px solid var(--st-hair);vertical-align:top;color:var(--st-grey)}
.st-table td:first-child{color:var(--st-ink)}
.st-table tr:last-child td{border-bottom:1px solid var(--st-hair)}
/* on a phone each row stacks, every cell under its column's label */
@media (max-width:600px){
  .st-table{min-width:0}
  .st-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .st-table tr{display:block;padding:14px 0;border-top:1px solid var(--st-hair)}
  .st-table tr:last-child{border-bottom:1px solid var(--st-hair)}
  .st-table td,.st-table tr:last-child td{display:block;padding:4px 0;border:0}
  .st-table td::before{content:attr(data-label);display:block;font:400 11px/1.5 var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--st-grey)}
}
/* a flow drawn in HTML: groups of numbered steps (a dashed group happens once, a grey one repeats); the step where it
   breaks is outlined in the theme's accent */
.st-flow{display:flex;flex-direction:column;gap:12px}
.st-flow-group{padding:16px;border:1px solid var(--st-hair);border-radius:6px}
.st-flow-group.is-once{border-style:dashed;border-color:#cfcfcb}
.st-flow-group.is-repeat{border-color:transparent;background:var(--st-slot)}
.st-flow-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.st-flow-group .st-flow-steps{margin-top:12px}
.st-flow-steps li{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--st-hair);border-radius:4px;background:var(--bg)}
.st-section .st-flow h3{font:500 15px/1.4 var(--sans);letter-spacing:0;color:var(--st-head)}
.st-flow-steps p{font-size:14px;line-height:1.45;color:var(--st-grey)}
.st-flow-steps li.is-break{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.st-flow-loop{margin-top:12px;font-size:13px;color:var(--st-grey)}
.st-flow-result{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid var(--st-ink);border-radius:4px}
.st-flow-result b{font:500 16px/1.4 var(--sans);color:var(--st-head)}
/* themes side by side, each a short ruled list of examples; one per row on a phone */
.st-themes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.st-theme{padding-top:16px;border-top:1px solid var(--st-ink)}
.st-section .st-theme h3{font:500 16px/1.5 var(--sans);letter-spacing:0;color:var(--st-head)}
.st-theme ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.st-theme li{padding:10px 12px;border-radius:4px;background:var(--st-slot);font-size:14px;line-height:1.45;color:var(--st-ink)}
/* a card row anywhere in a section (not only beside a label), sized by its own width */
.st-cq{margin-top:32px;container-type:inline-size}

@media (max-width:760px){
  .cols-2,.cols-3,.tiles-2,.tiles-3,.case-hero,.play-intro,.cv-more{grid-template-columns:minmax(0,1fr)}
  .case-hero aside .out{text-align:left}
  .cs-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-section{grid-template-columns:minmax(0,1fr)}
  .cs-section>*,.cs-label{grid-column:1;grid-row:auto}
  .cs-label{position:static;display:flex;align-items:baseline;gap:12px}
  .cs-label h2{margin-top:0}
  .cs-section>.cs-label+*{margin-top:20px}
  .cs-stats,.cs-with,.cs-split{grid-template-columns:minmax(0,1fr)}
  .tiles-2,.tiles-3{gap:40px}
  .people{--n:2}
  .grid.n3,.grid.n4{--n:2}
  .grid.n6{--n:3}
  .timeline::before{left:4px}
  .timeline>li,.timeline>li:nth-child(odd){width:auto;margin-left:36px}
  .timeline>li::before,.timeline>li:nth-child(odd)::before,.timeline>li:nth-child(even)::before{left:-32px;right:auto;width:22px}
  .timeline>li::after,.timeline>li:nth-child(odd)::after,.timeline>li:nth-child(even)::after{left:-36px;right:auto}
  .lb{grid-template-columns:44px minmax(0,1fr) 44px}
  .site-footer{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* DRAFTS: a case study still being written carries data-draft on its .study. On the live site (bhargs.com, or its Vercel
   address) it shows its title, hero and intro, then "Coming soon"; the editing version (served anywhere else: a local
   preview, a Vercel preview link; the script gives <html> .is-editing) shows all of it, tagged Draft. Hidden unless the script says otherwise, so the live
   site never flashes a draft. */
html:not(.is-editing) .study[data-draft]>:not(.st-title,.st-hero,.st-strip,.st-intro){display:none}
html:not(.is-editing) .study[data-draft]::after{content:"Coming soon";display:block;margin:56px 20px 0;padding-top:56px;border-top:1px solid var(--st-hair);font:400 24px/1.3 var(--serif);letter-spacing:-.02em;color:var(--st-ink)}
html.is-editing .study[data-draft]{position:relative}
html.is-editing .study[data-draft]::before{content:"Draft \00b7  hidden on the live site";position:absolute;z-index:5;top:12px;right:20px;padding:3px 9px;border-radius:999px;font:500 11px/1.4 var(--sans);letter-spacing:.02em;color:#6b4a12;background:#f8e7c4}

/* "Copied!" above an email link (js/site.js) */
.copied-tip{position:fixed;z-index:1000;transform:translate(-50%,calc(-100% - 8px));padding:5px 10px;border-radius:6px;background:var(--ink);color:var(--paper);font:500 13px/1.2 var(--sans);letter-spacing:.01em;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .18s,transform .18s}
.copied-tip.is-on{opacity:1;transform:translate(-50%,calc(-100% - 12px))}
