/* v7 case studies: the homepage's design language, tuned for reading.
   Light page, Cabinet Grotesk headings, Satoshi text, Geist Mono labels, periwinkle accent, rounded cards.
   Sections: tokens · base · top bar · contents · hero · layout · chapters · text · panels and cards ·
             features · figures · quotes · next project · contact · motion · small screens */

/* ---------- tokens ---------- */
:root {
  --light: #f3f4fb;
  --white: #fff;
  --ink: #1d2140;
  --soft: #4a4f6b;
  --line: rgba(29, 33, 64, .12);
  --peri: #5b64e0;
  --peri-soft: #e6e8fb;
  --sky: #dcebff;
  --pink: #ffe1ef;
  --cab: "Cabinet Grotesk", Arial, sans-serif;
  --sat: "Satoshi", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 22px;
  --r-sm: 16px;
  --gutter: clamp(20px, 3vw, 44px);
  --text: min(720px, 100% - 2 * var(--gutter));
  --wide: min(1200px, 100% - 2 * var(--gutter));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
html { background: var(--light); scroll-padding-top: 110px; }
body { background: var(--light); color: var(--ink); font: 400 18px/1.7 var(--sat); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: var(--peri); color: #fff; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.mono, .eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); line-height: 1.5; }
.eyebrow:empty { display: none; }
code { font: .88em var(--mono); padding: .1em .4em; background: var(--peri-soft); border-radius: 6px; }
h1, h2, h3 { font-family: var(--cab); font-weight: 700; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--peri); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- top bar (same as the homepage) ---------- */
.top { position: fixed; inset: 22px var(--gutter) auto; z-index: 50; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.top__logo { position: absolute; left: 0; font-family: var(--cab); font-weight: 800; font-size: 25px; letter-spacing: -.02em; pointer-events: auto; }
.top__nav { display: flex; gap: clamp(18px, 3vw, 40px); padding: 14px clamp(22px, 2.6vw, 36px); border-radius: 999px; pointer-events: auto; font-size: 16px;
  background: rgba(255, 255, 255, .82); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(40, 50, 140, .06); transition: transform .5s var(--ease); }
.top__nav a:hover { color: var(--peri); }
body.nav-up .top__nav { transform: translateY(-160%); }

/* ---------- contents list, fixed on the left of wide screens ---------- */
.toc { position: fixed; left: var(--gutter); top: 50%; z-index: 40; transform: translateY(-50%); width: 190px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.toc.is-on { opacity: 1; pointer-events: auto; }
.toc > .mono { margin-bottom: 12px; font-size: 11px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 14px; line-height: 1.35; color: var(--soft); transition: color .2s; }
.toc a .mono { font-size: 11px; letter-spacing: .06em; color: inherit; opacity: .7; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--peri); font-weight: 700; }
@media (max-width: 1699px) { .toc { display: none; } }

/* ---------- hero ---------- */
.case-hero { padding: clamp(140px, 20vh, 190px) 0 0; }
.case-hero__in { width: var(--wide); margin: 0 auto; }
.case-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 30px; }
.back { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; transition: background .25s, color .25s; }
.back:hover { background: var(--ink); color: #fff; }
.case-hero h1 { max-width: 17ch; font-size: clamp(44px, 6.2vw, 100px); line-height: .98; letter-spacing: -.03em; }
.case-hero__sub { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(32px, 5vh, 56px); }
.summary { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; color: var(--ink); max-width: 38ch; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.meta > div { padding: 14px 18px 16px; background: var(--white); }
.meta dt { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.meta dd { font-size: 16px; line-height: 1.4; font-weight: 500; }
.meta a { color: var(--peri); border-bottom: 1px solid currentColor; }
.case-cover { width: var(--wide); margin: clamp(48px, 8vh, 88px) auto 0; overflow: hidden; border-radius: var(--r); background: var(--peri-soft); }
.case-cover img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; }
.case-cover video { display: block; width: 100%; aspect-ratio: 1920 / 1088; background: #fff; }
.case-cover.is-video { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(40, 50, 140, .1); }

/* ---------- layout ---------- */
.col { width: var(--text); margin-left: auto; margin-right: auto; }
.wide { width: var(--wide); margin-left: auto; margin-right: auto; }

/* ---------- chapters ---------- */
.chapter { width: var(--wide); margin-top: clamp(120px, 18vh, 190px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 22px;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--white); box-shadow: 0 10px 40px rgba(40, 50, 140, .06); }
.chapter-num { display: grid; place-items: center; width: clamp(56px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--peri); color: #fff;
  font: 500 clamp(15px, 1.2vw, 19px) var(--mono); letter-spacing: .04em; }
.chapter-title { font-family: var(--cab); font-weight: 700; font-size: clamp(34px, 4vw, 64px); line-height: 1; letter-spacing: -.025em; }
.chapter-tabs { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chapter-tabs li { padding: 6px 14px; border-radius: 999px; background: var(--light); font-size: 14px; font-weight: 500; color: var(--soft); }

/* ---------- text ---------- */
.block { margin-top: clamp(64px, 10vh, 110px); }
.block h2, .feature h2, .final-head h2 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 22px; }
.block p { font-size: 18px; line-height: 1.75; color: #2e3352; }
.block p + p { margin-top: 18px; }
.block.lead p:first-of-type { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.6; color: var(--ink); }
.block ul, .block ol { margin: 18px 0 0; padding-left: 22px; }
.block li { margin-bottom: 8px; line-height: 1.65; }
.block li::marker { color: var(--peri); }
.muted { color: var(--soft); font-size: 18px; line-height: 1.7; }
.col > .eyebrow { margin-top: clamp(72px, 11vh, 120px); }
.final-head { margin-top: clamp(100px, 15vh, 160px); }
.final-head + .wide { margin-top: 20px; }

/* ---------- panels and cards ---------- */
.panel { margin-top: clamp(64px, 10vh, 110px); }
.panel + .panel { margin-top: 64px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.panel-head h2 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.08; letter-spacing: -.02em; margin-top: 8px; }
.panel-head > .eyebrow { text-align: right; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { position: relative; padding: 24px 24px 28px; border-radius: var(--r-sm); background: var(--white); box-shadow: 0 6px 24px rgba(40, 50, 140, .05); }
.card .num { display: inline-block; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--peri); padding: 4px 10px; border-radius: 999px; background: var(--peri-soft); margin-bottom: 26px; }
.card h3 { font-size: 23px; line-height: 1.12; letter-spacing: -.015em; margin-bottom: 10px; }
.card p { color: var(--soft); font-size: 16px; line-height: 1.6; }
.card.dark { background: var(--peri); color: #fff; box-shadow: 0 14px 34px rgba(91, 100, 224, .28); }
.card.dark h3 { color: #fff; }
.card.dark .num { background: rgba(255, 255, 255, .18); color: #fff; }
.card.dark p { color: rgba(255, 255, 255, .86); }
.card.stat .num { display: block; padding: 0; background: none; font-family: var(--cab); font-weight: 700; font-size: clamp(48px, 5vw, 76px); line-height: .95; letter-spacing: -.03em; color: var(--ink); margin-bottom: 12px; }
.card.dark.stat .num { color: #fff; background: none; }
@media (min-width: 1000px) { .cards.five { grid-template-columns: repeat(5, 1fr); } }

.map { border-radius: var(--r-sm); background: var(--white); overflow: hidden; }
.map > div { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.map > div:last-child { border-bottom: 0; }
.map dt { font-family: var(--cab); font-weight: 700; font-size: 21px; line-height: 1.15; }
.map dd { color: var(--soft); font-size: 16px; line-height: 1.6; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.steps li { padding: 20px; border-radius: var(--r-sm); background: var(--white); font-size: 16px; line-height: 1.5; }
.steps .num { display: block; font: 500 12px var(--mono); color: var(--peri); margin-bottom: 18px; }

/* ---------- features: heading, figure, callouts ---------- */
.feature { margin-top: clamp(100px, 15vh, 160px); }
.feature > .col .eyebrow { display: inline-block; color: var(--peri); background: var(--peri-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.callouts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 28px; }
.callouts li { padding: 22px 22px 24px; border-radius: var(--r-sm); background: var(--white); }
.callouts .num { display: block; font: 500 12px var(--mono); color: var(--peri); margin-bottom: 16px; }
.callouts h3 { font-size: 21px; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 8px; }
.callouts p { color: var(--soft); font-size: 16px; line-height: 1.6; }

/* ---------- figures ---------- */
figure { margin: 0; }
.wide > figure, .feature figure { margin-top: 44px; }
.wide > figure + figure { margin-top: 16px; }
figcaption { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--soft); padding-left: 2px; }
.shot-card { margin-top: 44px; padding: clamp(18px, 5vw, 60px) clamp(18px, 5vw, 60px) 0; overflow: hidden; border-radius: var(--r); background: var(--peri-soft); }
figure .shot-card, .pair .shot-card, .ds-pair .shot-card { margin-top: 0; }
.shot-card img { width: 100%; border-radius: 10px 10px 0 0; box-shadow: 0 24px 60px rgba(40, 50, 140, .14); background: #fff; }
.shot-card.contain, .shot-card.narrow { padding-bottom: clamp(18px, 5vw, 60px); }
.shot-card.contain img { max-width: 620px; margin: 0 auto; padding: 24px; border-radius: 12px; }
.shot-card.narrow img { max-width: 620px; margin: 0 auto; border-radius: 12px; }
.shot-card.dark { background: var(--ink); }
.shot-card.bleed { padding: 0; }
.shot-card.bleed img { box-shadow: none; border-radius: 0; }
.shot-card.ds { padding: clamp(18px, 5vw, 60px); background: #e9ecf6; }
.shot-card.ds img { border-radius: 12px; box-shadow: 0 16px 44px rgba(20, 30, 50, .1); }
.shot-card.ds.narrow img { max-width: 720px; margin: 0 auto; }
.shot-card.ds.dark { background: #12152c; }
.shot-card img[src*="mahindra/erp-"] { border-radius: 1.5% / 3.15%; }
.ds-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.ds-pair .shot-card { display: flex; align-items: center; padding: clamp(14px, 2.4vw, 32px); }
.ds-pair .shot-card.dark { background: #12152c; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(10px, 2.4vw, 26px); padding: clamp(18px, 5vw, 56px); border-radius: var(--r); background: var(--peri-soft); }
.phones img { width: 100%; max-width: 230px; margin: 0 auto; align-self: start; border-radius: 14px; filter: drop-shadow(0 18px 30px rgba(40, 50, 140, .16)); }
.phones.purple { background: #6b3dff; }
.phones.pink { background: var(--pink); }
.phones.night { background: #111312; }
.phones.mint { background: #e6f5ea; }
.phones.mint img { filter: drop-shadow(0 18px 30px rgba(10, 60, 30, .14)); }
.phones.ep-night { background: #141916; }
.frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.frames img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); background: var(--peri-soft); }
.frames.three { grid-template-columns: repeat(3, 1fr); }
.pair { display: grid; gap: 14px; }
.pair .shot-card { aspect-ratio: 4 / 3; }
.pair .shot-card.bleed img { height: 100%; object-fit: cover; }
.pair-wrap { margin-top: 44px; }
@media (min-width: 761px) { .pair { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: clamp(16px, 4vw, 40px); border-radius: var(--r); background: var(--peri-soft); }
.gallery img { width: 100%; border-radius: 10px; filter: drop-shadow(0 12px 24px rgba(40, 50, 140, .14)); }

/* ---------- quotes ---------- */
.pull { margin-top: clamp(64px, 10vh, 110px); padding-left: 26px; border-left: 4px solid var(--peri);
  font-family: var(--cab); font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.22; letter-spacing: -.015em; color: var(--ink); }
.col > .eyebrow + .pull { margin-top: 14px; }
.pull.big { padding-left: 0; border-left: 0; font-weight: 700; font-size: clamp(36px, 4.2vw, 64px); line-height: 1.06; letter-spacing: -.03em;
  background: var(--quote-grad, linear-gradient(100deg, #5b64e0, #b58cff 55%, #ff8fc4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
figure.quote { margin-top: clamp(72px, 11vh, 120px); padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--white); }
figure.quote blockquote { font-family: var(--cab); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.015em; }
figure.quote figcaption { margin-top: 18px; }
figure.quote figcaption b { display: block; color: var(--ink); font-weight: 700; }
.draft { margin-top: 16px; padding: 12px 16px; border: 1px dashed var(--peri); border-radius: 12px; background: rgba(91, 100, 224, .06); color: var(--peri); font: 13px/1.6 var(--mono); }
.draft::before { content: "Note to self · "; font-weight: 500; }

/* ---------- next project ---------- */
.next { width: var(--wide); margin: clamp(130px, 18vh, 200px) auto 0; }
.next > .eyebrow { margin-bottom: 16px; }
.next__card { display: block; padding: 12px; border-radius: calc(var(--r) + 6px); background: var(--white); box-shadow: 0 10px 40px rgba(40, 50, 140, .07); }
.next__img { display: block; overflow: hidden; border-radius: var(--r); }
.next__img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; transition: transform 1s var(--ease); }
.next__card:hover .next__img img { transform: scale(1.03); }
.next__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 12px 8px; }
.next__text b { display: block; font-family: var(--cab); font-weight: 700; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.02em; }
.next__text span { display: block; margin-top: 4px; color: var(--soft); font-size: 16px; }
.next__go { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--peri); color: #fff; transition: transform .4s var(--ease); }
.next__go svg { width: 18px; height: 18px; }
.next__card:hover .next__go { transform: rotate(45deg); }

/* ---------- contact ---------- */
.contact { width: var(--wide); margin: clamp(40px, 6vh, 64px) auto clamp(16px, 2vw, 28px); }
.contact__card { padding: clamp(32px, 5vw, 72px); border-radius: calc(var(--r) + 6px); color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #ff8fc4, #b58cff 45%, #8fbfff); }
.contact__card .mono { color: rgba(255, 255, 255, .85); }
.contact__title { margin-top: 10px; font-weight: 800; font-size: clamp(72px, 13vw, 210px); line-height: .88; letter-spacing: -.035em; color: #fff; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(26px, 4vw, 48px); }
.contact__email { font-family: var(--cab); font-weight: 500; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.01em; border-bottom: 2px solid rgba(255, 255, 255, .6); }
.contact__copy { padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; }
.contact__row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(26px, 4vw, 44px); font-size: 15px; color: rgba(255, 255, 255, .92); }
.contact__row a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- motion: gentle fade-up as things enter ---------- */
.has-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.has-motion [data-reveal].is-in { opacity: 1; transform: none; }
.has-motion [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.has-motion [data-words] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 50ms); }
.has-motion [data-words].is-in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .case-hero__sub { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top__logo { position: static; margin-right: auto; }
  .top { justify-content: space-between; }
  .top__nav { gap: 14px; padding: 10px 16px; font-size: 14px; }
  .chapter { grid-template-columns: 1fr; }
  .ds-pair, .frames, .frames.three { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .map > div { grid-template-columns: 1fr; gap: 6px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .panel-head > .eyebrow { text-align: left; }
  .meta { grid-template-columns: 1fr; }
}
.toc:has(ol:empty) { display: none; }
/* let's talk card: tighter inside */
.contact__card { padding: clamp(28px, 3.6vw, 52px); }
.contact__mail { margin-top: clamp(18px, 2.4vw, 30px); }
.contact__row { margin-top: clamp(18px, 2.4vw, 28px); }

/* ---------- hero on a colour card: the homepage's flowing gradient, with the cover overlapping its bottom edge ---------- */
.case-hero { padding: 16px 0 0; }
.case-hero__card { position: relative; margin: 0 16px; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff;
  padding: clamp(130px, 17vh, 170px) 0 clamp(140px, 18vh, 200px);
  background: linear-gradient(110deg, #8fbfff, #7a88ff 50%, #ff8fc4); }
.case-hero__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/grain.png); background-size: 80px 80px; opacity: .14; pointer-events: none; }
.case-hero__grad { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.case-hero h1 { color: #fff; text-shadow: 0 10px 40px rgba(40, 50, 140, .18); }
.case-hero .case-hero__top .mono { color: rgba(255, 255, 255, .9); }
.case-hero .back { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .4); color: #fff; }
.case-hero .back:hover { background: #fff; color: var(--ink); }
.case-hero .summary { color: #fff; }
.case-hero .meta { background: rgba(255, 255, 255, .3); border-color: rgba(255, 255, 255, .4); }
.case-hero .meta > div { background: rgba(255, 255, 255, .16); }
.case-hero .meta dt { color: rgba(255, 255, 255, .85); }
.case-hero .meta dd { color: #fff; }
.case-hero .meta a { color: #fff; }
.case-cover { position: relative; z-index: 2; margin-top: clamp(-120px, -12vh, -80px); box-shadow: 0 30px 80px rgba(40, 50, 140, .16); }
@media (max-width: 760px) { .case-hero__card { margin: 0 10px; border-radius: 20px; } }
/* a light periwinkle veil over the gradient so the white text reads clearly */
.case-hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--veil, linear-gradient(180deg, rgba(50, 58, 160, .16), rgba(50, 58, 160, .08))); pointer-events: none; }
.case-hero .summary { text-shadow: 0 1px 18px rgba(40, 50, 140, .18); }

/* covers keep their own shape, so nothing in the image is cut off */
.case-cover img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* ---------- keep the brand hero away from each project's colours (chosen after the ElectricPe preview) ---------- */
.case-hero__card {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 300px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 300px), transparent 100%);
  border-radius: 28px 28px 0 0;
}
.case-cover { padding: 12px; background: #fff; border-radius: calc(var(--r) + 8px);
  box-shadow: 0 30px 80px rgba(40, 50, 140, .14), 0 0 0 1px rgba(29, 33, 64, .06); overflow: visible; }
.case-cover img, .case-cover video { border-radius: var(--r); }
.case-cover.is-video { box-shadow: 0 30px 80px rgba(40, 50, 140, .14), 0 0 0 1px rgba(29, 33, 64, .06); }

/* header logo in Satoshi, the hero font */
.top__logo { font-family: var(--sat); font-weight: 700; letter-spacing: -.03em; }
/* logo centred on the same line as the menu pill (stretched to the bar height, text centred inside) */
.top__logo { top: 0; bottom: 0; display: flex; align-items: center; line-height: 1; }
/* phone: the logo hides with the menu while scrolling down, so it never sits on top of the text */
@media (max-width: 760px) {
  .top__logo { transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s, color .4s; }
  body.nav-up .top__logo { transform: translateY(-120px); opacity: 0 !important; }
}

/* header colours follow what is behind them, as on the homepage:
   white logo and a see-through menu over the gradient hero and the let's talk card, dark over the light page */
.top__logo, .top__nav { transition: color .4s, background .4s, border-color .4s, transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
body.on-gradient .top__logo { color: #fff; }
body.on-gradient .top__nav { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); box-shadow: none;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.on-gradient .top__nav a:hover { color: #fff; opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
