/* Case study pages. Shared by every page in work/.
   The first half is the base layout; the "Skin" block further down restyles it and wins where the two overlap. */
*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: 96px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1112px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 30; }

.hero { padding-block: 52px 32px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.eyebrow span { color: var(--muted); font-weight: 500; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 16px; max-width: 16em; font-variation-settings: "opsz" 144; }
.stand { font-family: var(--display); font-size: clamp(20px, 2.4vw, 25px); line-height: 1.42; max-width: 32em; margin-top: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.meta div { min-width: 0; }
.meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-size: 15px; }
.hero-img { margin-top: 36px; }

.proof { background: var(--soft); margin-top: 8px; }
.proof .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px 28px; padding-block: 30px; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.05; }
.stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }

.sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 48px; border-top: 1px solid var(--rule); }
.sec:first-child { border-top: 0; }
.sec > h2 { font-size: 26px; line-height: 1.2; }
.body { min-width: 0; display: grid; gap: 22px; }
.body > p, .body > ul, .body > ol, .step > p, .step > ul { max-width: 64ch; }
.body ul, .step ul { margin: 0; padding-left: 1.15em; display: grid; gap: 10px; }
.body li::marker, .step li::marker { color: var(--gold); }
.lede { font-family: var(--display); font-size: 20px; line-height: 1.45; }
@media (min-width: 860px) {
  .sec { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-block: 64px; }
  .sec > h2 { position: sticky; top: 88px; align-self: start; }
}
.step { display: grid; gap: 16px; padding-top: 26px; border-top: 1px solid var(--rule); }
.step:first-child { padding-top: 0; border-top: 0; }
.step h3 { font-size: 22px; line-height: 1.25; display: flex; gap: 12px; align-items: baseline; }
.step h3 small { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
ol.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
ol.how li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
ol.how li::before { content: counter(s); font-weight: 600; font-size: 14px; color: var(--gold); padding-top: 2px; font-variant-numeric: tabular-nums; }
ol.how b { display: block; font-weight: 600; }

ul.results { list-style: none; padding: 0; gap: 12px; }
ul.results li { position: relative; padding-left: 32px; }
ul.results li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; }
.reflect { max-width: 64ch; }
.reflect p + p { margin-top: 16px; }
.reflect b { font-weight: 600; }

.shot { margin: 0; }
.shot .frame { background: var(--shot); border: 1px solid var(--rule); padding: clamp(10px, 2.4vw, 24px); }
.shot img { margin: 0 auto; }
.shot.bare img { display: block; width: 100%; height: auto; max-width: 960px; }
.shot.narrow img { max-width: 380px; width: 100%; }
.shot.mid img { max-width: 600px; width: 100%; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); font-style: italic; max-width: 64ch; }
.split { display: grid; gap: 22px; }
.split-t { display: grid; gap: 16px; align-content: start; }
.split-t > p { max-width: 64ch; }
.shot.ba { display: grid; gap: 10px; margin: 0; }
.ba-tabs { display: flex; gap: 8px; }
.shot.ba .frame { padding: 6px; }
.shot.ba a.zoom { display: block; cursor: zoom-in; }
.shot.ba img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; } .step .split .shot.ba { position: sticky; top: 24px; } }
.shot.phones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; margin: 0; }
.shot.phones .frame { padding: 0; background: #fff; }
.shot.phones a.zoom { display: block; cursor: zoom-in; }
.shot.phones img { width: 100%; height: auto; display: block; }
.shot.phones figcaption { grid-column: 1 / -1; }
@media (min-width: 720px) { .shot.phones { grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; } }
.shot.phone { display: grid; gap: 14px; justify-items: start; margin: 0; }
.shot.phone .tw-tabs { display: flex; gap: 8px; }
.shot.phone .device { width: min(100%, 340px); background: #16181a; padding: 10px; border-radius: 38px; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 14px 32px rgba(0,0,0,.18); }
.shot.phone .screen { position: relative; aspect-ratio: 446 / 1060; overflow-y: auto; overflow-x: hidden; background: #fff; border-radius: 28px; scrollbar-width: none; overscroll-behavior: contain; }
.shot.phone .screen::-webkit-scrollbar { display: none; }
.shot.phone .screen:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shot.phone .screen img { display: block; width: 100%; height: auto; }
.shot.phone .s-nav { position: sticky; bottom: 0; background: #fff; }
.shot.pair { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.shot.pair .frame { display: flex; align-items: center; }
.shot.pair .frame { padding: clamp(8px, 1.6vw, 14px); }
.nopad .shot .frame, .nopad .shot.ba .frame, .nopad .shot.pair .frame, .nopad .g-img { padding: 0; }
.nopad .shot .frame img, .nopad .g-img img { display: block; }
.shot.pair a.zoom { display: block; width: 100%; cursor: zoom-in; }
.tw-m { display: flex; justify-content: center; padding: clamp(16px, 3vw, 28px); background: var(--shot); border: 1px solid var(--rule); border-radius: 12px; }
.tw-m[hidden] { display: none; }
.scrollwin[hidden] { display: none; }
.tw-m .shot.phone { margin: 0; justify-items: center; }
.tw-m .device { width: min(100%, 300px); }
.scrollwin { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; }
.scrollwin .bar { display: flex; align-items: center; gap: 6px; padding: 0 14px; height: 30px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.scrollwin .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); display: block; }
.scrollwin .bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.scrollwin .view { max-height: min(640px, 75vh); overflow-y: auto; overscroll-behavior: contain; }
.scrollwin .view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.scrollwin img { display: block; width: 100%; height: auto; }
.shot.sw .scrollwin { max-width: 640px; margin: 0 auto; }
.shot.sw .scrollwin img { max-width: none; width: 100%; }
@media (min-width: 720px) { .shot.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shot.pair figcaption { grid-column: 1 / -1; } }

details.dive { border: 1px solid var(--rule); background: var(--surface); max-width: 72ch; }
details.dive > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 14px 18px; }
details.dive > summary::-webkit-details-marker { display: none; }
details.dive > summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); align-self: center; }
details.dive[open] > summary::after { content: "\2212"; }
details.dive > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.dive > summary:hover .dive-t { color: var(--accent); }
.dive-k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.dive-t { font-weight: 500; }
@media (max-width: 520px) { details.dive > summary { grid-template-columns: minmax(0, 1fr) auto; } .dive-k { grid-column: 1 / -1; } }
.dive-b { padding: 4px 18px 20px; display: grid; gap: 16px; border-top: 1px solid var(--rule); padding-top: 18px; }
.dive-b ul { margin: 0; padding-left: 1.15em; display: grid; gap: 10px; }
.dive-b li::marker { color: var(--gold); }
.pull { margin: 0; max-width: 40em; }
.pull blockquote { margin: 0; }
.pull p { position: relative; font-family: var(--display); font-size: clamp(20px, 2.4vw, 25px); line-height: 1.4; }
.pull p::before { content: "\201C"; color: var(--gold); position: absolute; right: 100%; margin-right: 2px; }
.pull p::after { content: "\201D"; color: var(--gold); }
.pull figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pull figcaption b { color: var(--fg); font-weight: 600; }
.sec.brief { padding-block: 40px 40px; }
.outcome { max-width: 36em; margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--gold); font-family: var(--display); font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }
.outcome b { display: block; margin-bottom: 4px; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.sec.brief .lede { max-width: 36em; font-size: clamp(19px, 2.2vw, 22px); }
.note { font-size: 14px; color: var(--muted); max-width: 64ch; }
.next { border-top: 1px solid var(--rule); }
.next .wrap { padding-block: 44px; display: grid; gap: 8px; }
.next small { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.next a.title { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); line-height: 1.15; text-decoration: none; color: var(--fg); max-width: 22em; }
.next a.title:hover { color: var(--accent); }
.next a.title::after { content: " \2192"; color: var(--accent); display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.next a.title:hover::after { transform: translateX(6px); }
.next .all { margin-top: 14px; font-size: 15px; font-weight: 500; }
.sub { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cols { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.res .sub { margin-bottom: 10px; }
.aside { max-width: 64ch; background: var(--soft); border-left: 3px solid var(--accent); padding: 14px 18px; font-size: 15px; line-height: 1.6; }
.aside b { font-weight: 600; }
.heard-wrap { max-width: 100%; }
.body > .heard-wrap, .body > .quotes:not(.side), .body > .gallery, .body > .shot { margin-block: 16px; }
table.heard { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
table.heard th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 16px 10px 0; border-bottom: 2px solid var(--fg); }
table.heard td { vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
table.heard td:first-child { width: 55%; }
table.heard td b { font-weight: 600; }
@media (max-width: 640px) {
  table.heard thead { display: none; }
  table.heard, table.heard tbody, table.heard tr, table.heard td { display: block; width: auto; }
  table.heard tr { border-bottom: 1px solid var(--rule); padding-block: 12px; }
  table.heard td, table.heard td:first-child { width: auto; padding: 0; border-bottom: 0; }
  table.heard td + td { margin-top: 10px; }
  table.heard td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
}
.quotes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.q { margin: 0; padding: 18px; background: var(--surface); border-left: 3px solid var(--gold); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.q blockquote { margin: 0; }
.q p { font-family: var(--display); font-size: 17px; line-height: 1.45; }
.q p::before { content: "\201C"; } .q p::after { content: "\201D"; }
.q figcaption { font-size: 13px; color: var(--muted); }
.quotes.one { grid-template-columns: minmax(0, 1fr); max-width: 40em; }
.quotes.one .q p { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; }
.quotes.one .q figcaption { font-size: 14px; }
.flow > p { max-width: 64ch; margin: 0 0 16px; }
.flow::after { content: ""; display: block; clear: both; }
.flow > h3 { margin: 0 0 14px; }
.flow > ul { margin: 0 0 16px; }
.flow > ul + p { margin-top: 16px; }
@media (min-width: 900px) { .quotes.side { float: right; width: 290px; max-width: none; margin: 4px 0 14px 32px; } .quotes.side .q p { font-size: 20px; } }
@media (max-width: 899px) { .quotes.side { margin-bottom: 16px; } }
@media (min-width: 900px) { .split.lg { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; } .split.lg .split-t > p { max-width: 46ch; } .split.lg .shot.narrow img { max-width: 440px; } }

.video .vid { position: relative; aspect-ratio: 16 / 9; background: #0d0b1a; border: 1px solid var(--rule); overflow: hidden; }
.vid-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; margin: 0; cursor: pointer; display: block; background: radial-gradient(circle at 30% 30%, #3b2c6e, #0d0b1a); font: inherit; }
.vid-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-t { position: absolute; left: 16px; bottom: 14px; right: 16px; text-align: left; color: #fff; font-family: var(--display); font-size: clamp(16px, 2.2vw, 22px); text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.vid-i { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(0,0,0,.72); }
.vid-i::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.vid-play:hover .vid-i, .vid-play:focus-visible .vid-i { background: #c4302b; }
.vid-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { border: 1px solid var(--rule); background: var(--surface); padding: 14px; display: grid; gap: 12px; }
.gallery:focus { outline: none; }
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.g-k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.g-nav { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-nav button { width: 38px; height: 38px; border: 1px solid var(--rule); background: var(--bg); color: var(--fg); border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.g-nav button:hover { border-color: var(--accent); color: var(--accent); }
.g-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-slide { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.g-slides { min-height: 0; }
.g-slide[hidden] { display: none; }
.g-img { display: block; background: var(--shot); border: 1px solid var(--rule); padding: 8px; cursor: zoom-in; }
.g-text { display: grid; gap: 8px; align-content: start; }
.g-t { font-family: var(--display); font-size: 21px; line-height: 1.3; }
.g-text p { max-width: 64ch; }
.g-text p { font-size: 15px; }
.g-text a { font-size: 14px; font-weight: 500; }
.tabwin { display: grid; gap: 0; }
.tw-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.tw-tabs [role=tab] { flex: none; font: 500 14px/1 var(--body); padding: 10px 15px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--fg); cursor: pointer; }
.tw-tabs [role=tab]:hover { border-color: var(--accent); }
.tw-tabs [role=tab][aria-selected=true] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tw-tabs [role=tab]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabwin .scrollwin .view { max-height: min(680px, 72vh); }
.tabwin figcaption { margin-top: 10px; }
.protos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.proto { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--rule); background: var(--bg); text-decoration: none; color: var(--fg); }
.proto:hover { border-color: var(--accent); }
.proto:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proto .p-k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.proto b { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.25; }
.proto .p-q { font-size: 14px; color: var(--muted); line-height: 1.5; }
.proto .p-go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.step .pull { margin-block: 6px; }

/* Skin: luminous mesh hero and closing field with a pointer spotlight; Bricolage display, Instrument Sans body; rounded objects only for things you open. */
:root {
  --bg: #F7F7F4; --surface: #FFFFFF; --fg: #15131B; --muted: #5A5664; --rule: #E2E0E6; --accent: #3B3FE0; --on-accent: #FFFFFF;
  --soft: #EEEBFF; --gold: #E0603D; --shot: #FFFFFF; --card: #FFFFFF; --line: #E2E0E6; --ink: #15131B;
  --m1: #FF9F86; --m2: #7EE2C6; --m3: #A99BFF; --m4: #FFD45C; --m5: #7CC7FF; --spot: rgba(255,255,255,.75);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --r: 20px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F0E14; --surface: #18171F; --fg: #F3F1F8; --muted: #ABA6B8; --rule: #282632; --accent: #A6AAFF; --on-accent: #0F0E14;
  --soft: #1E1B33; --gold: #FF9B7E; --shot: #F4F3F7; --card: #18171F; --line: #282632; --ink: #F3F1F8;
  --m1: #C2446A; --m2: #138A78; --m3: #5B47D6; --m4: #B5841B; --m5: #1E78C2; --spot: rgba(255,255,255,.14); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F0E14; --surface: #18171F; --fg: #F3F1F8; --muted: #ABA6B8; --rule: #282632; --accent: #A6AAFF; --on-accent: #0F0E14;
  --soft: #1E1B33; --gold: #FF9B7E; --shot: #F4F3F7; --card: #18171F; --line: #282632; --ink: #F3F1F8;
  --m1: #C2446A; --m2: #138A78; --m3: #5B47D6; --m4: #B5841B; --m5: #1E78C2; --spot: rgba(255,255,255,.14); color-scheme: dark; }
[hidden] { display: none !important; }
body { font-size: 17px; line-height: 1.62; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.012em; }
.wrap { max-width: 1160px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
/* frosted bar lives on a pseudo-element so only opacity + mask animate (blur itself never transitions) */
.top::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); opacity: 0; -webkit-mask: linear-gradient(#000 28%, transparent 40%) 0 0 / 100% 250% no-repeat; mask: linear-gradient(#000 28%, transparent 40%) 0 0 / 100% 250% no-repeat; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); will-change: opacity; }
.top.scrolled::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .top::before { transition: opacity .3s linear; } }
.top + main > .hero:first-child, .top + main > .field:first-child { margin-top: -64px; padding-top: calc(64px + clamp(56px, 9vw, 130px)); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { font: 700 19px/1 var(--display); text-decoration: none; color: var(--fg); display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 200deg, var(--m1), var(--m3), var(--m5), var(--m2), var(--m4), var(--m1)); }
.top .pill { font-size: 15px; text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.top .pill:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.theme { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .2s, background .2s; }
.theme:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme svg { width: 19px; height: 19px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }
.top .mail { font-size: 15px; font-weight: 600; text-decoration: none; padding: 9px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); }

/* mesh fields */
.field { position: relative; overflow: hidden; isolation: isolate; --mx: 70%; --my: 30%; }
.field .mesh { position: absolute; inset: 0; z-index: -2; background: radial-gradient(42% 60% at 15% 25%, var(--m1), transparent 70%), radial-gradient(40% 55% at 82% 18%, var(--m3), transparent 70%), radial-gradient(45% 60% at 65% 80%, var(--m2), transparent 70%), var(--bg); }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.field .spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), var(--spot), transparent 65%); mix-blend-mode: soft-light; }
.field .grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hero .fade { position: absolute; inset: 52% 0 0; background: linear-gradient(rgb(from var(--bg) r g b / 0), var(--bg) 70%); z-index: -1; }

/* hero */
.hero { padding-block: clamp(56px, 9vw, 120px) 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--fg); }
.eyebrow span { color: var(--fg); opacity: .7; }
.hero h1 { font-size: clamp(44px, 7.6vw, 104px); line-height: .95; letter-spacing: -0.02em; font-weight: 700; font-variation-settings: "wdth" 86, "opsz" 96; max-width: 13em; margin-top: 20px; }
.stand { font-family: var(--body); font-size: clamp(19px, 2vw, 23px); line-height: 1.45; max-width: 34em; margin-top: 26px; }
.meta { border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); margin-top: 34px; }
.meta dt { color: var(--fg); opacity: .65; }
.hero-img { margin-top: 44px; }
.hero-img .frame, .hero-img img { border-radius: var(--r); }
.hero-img .frame { box-shadow: 0 30px 80px -30px rgba(20,16,40,.35), 0 0 0 1px var(--line); }

/* outcomes band */
.proof { background: transparent; margin-top: 0; padding-block: 28px 8px; }
.proof .wrap { display: block; padding-block: 0; }
.pbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 32px; padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--r) + 6px); background: #15131B; color: #F7F7F4; position: relative; overflow: hidden; isolation: isolate; }
.pbox::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background: radial-gradient(40% 90% at 100% 0%, var(--m3), transparent 70%), radial-gradient(35% 90% at 0% 100%, var(--m1), transparent 70%); }
.stat b { font: 700 clamp(32px, 3.6vw, 46px)/1 var(--display); white-space: normal; letter-spacing: -0.02em; }
.stat span { color: inherit; opacity: .78; }

/* sections: heading above, one reading column */
.sec { grid-template-columns: minmax(0, 1fr) !important; gap: 26px; padding-block: clamp(56px, 7vw, 96px) 0; border-top: 0; }
.sec > h2 { position: static !important; font-size: clamp(34px, 4.8vw, 60px); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.lede { font-family: var(--body); font-size: 21px; line-height: 1.5; }
.outcome { max-width: 36em; margin-top: 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--display); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.4; letter-spacing: -0.01em; }
.outcome b { display: block; margin-bottom: 6px; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.body { gap: 24px; }
.body li::marker, .step li::marker, .dive-b li::marker { color: var(--accent); }
.step { gap: 18px; padding-top: 40px; border-top: 1px solid var(--line); }
.step h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; gap: 14px; }
.step h3 small { font: 700 13px/1 var(--display); color: var(--bg); background: var(--fg); width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-4px); }
ol.how li::before, .dive-k, .proto .p-k { color: var(--accent); }
ul.results li::before { background: var(--fg); color: var(--bg); }

/* objects */
.shot .frame, .nopad .shot .frame { border: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.shot figcaption { color: var(--muted); }
.scrollwin { border: 0; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(20,16,40,.3); }
.scrollwin .bar { background: var(--card); }
.tw-m { border: 0; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); background: radial-gradient(60% 80% at 20% 10%, color-mix(in srgb, var(--m3) 45%, var(--card)), transparent 70%), radial-gradient(60% 80% at 90% 90%, color-mix(in srgb, var(--m2) 45%, var(--card)), transparent 70%), var(--card); }
.tw-tabs [role=tab][aria-selected=true], .ba-tabs [role=tab][aria-selected=true] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.tw-tabs [role=tab] { background: var(--card); }
.gallery { border: 0; border-radius: calc(var(--r) + 4px); background: var(--card); box-shadow: 0 0 0 1px var(--line); padding: clamp(16px, 2.4vw, 24px); }
.g-k { color: var(--accent); }
.g-img, .nopad .g-img { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.g-nav button { background: var(--bg); }
details.dive { border: 0; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; max-width: 76ch; }
details.dive > summary { padding: 18px 22px; }
details.dive[open] > summary { background: color-mix(in srgb, var(--m3) 16%, var(--card)); }
.dive-b { padding: 20px 22px 24px; }
.aside { border-left: 0; border-radius: 16px; background: color-mix(in srgb, var(--m2) 18%, var(--card)); box-shadow: 0 0 0 1px var(--line); padding: 18px 22px; }
.q { border-left: 0; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); padding: 22px; position: relative; overflow: hidden; isolation: isolate; }
.q::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--m1) 30%, transparent), transparent 70%); }
.quotes .q:nth-child(3n+2)::before { background: radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--m3) 30%, transparent), transparent 70%); }
.quotes .q:nth-child(3n)::before { background: radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--m2) 30%, transparent), transparent 70%); }
.q p { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.q p::before, .q p::after, .pull p::before, .pull p::after { color: var(--accent); }
table.heard thead th { color: var(--muted); }
.proto { border: 0; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .3s; }
.proto:hover { transform: translateY(-3px); }
.video .vid { border: 0; border-radius: var(--r); }
.shot.phone .device { background: #15131B; }

/* pointer light */
.lit { --x: 50%; --y: 0%; position: relative; isolation: isolate; }
.lit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--x) var(--y), color-mix(in srgb, var(--m5) 22%, transparent), transparent 60%); }
.lit:hover::after { opacity: 1; }

/* next case */
.next { border-top: 0; }
.next .wrap { padding-block: clamp(64px, 8vw, 110px) 0; }
.next a.title { display: block; margin-top: 6px; padding: clamp(24px, 3.6vw, 40px); border-radius: calc(var(--r) + 6px); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 700 clamp(28px, 4vw, 48px)/1.04 var(--display); letter-spacing: -0.02em; max-width: none; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.next a.title:hover { color: var(--fg); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px color-mix(in srgb, var(--fg) 30%, transparent); }
.next a.title { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 40px); }
.next a.title.lit::after { content: ""; }
.next a.title .t { max-width: 22em; }
.next .arr { position: relative; z-index: 1; flex: none; width: clamp(44px, 5vw, 64px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .3s, color .3s, box-shadow .3s; }
.next .arr svg { width: 44%; height: auto; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.next a.title:hover .arr, .next a.title:focus-visible .arr { background: var(--accent); color: var(--on-accent); transform: translateX(6px); box-shadow: inset 0 0 0 1.5px var(--accent); }
.next a.title:hover .arr svg { transform: translateX(3px); }
.next .all { color: var(--accent); }

/* closing field */
.contact { padding-block: clamp(80px, 11vw, 160px) 0; margin-top: clamp(56px, 8vw, 100px); }
.contact .fade { position: absolute; inset: 0 0 auto; height: 30%; background: linear-gradient(rgb(from var(--bg) r g b / 1) 0%, rgb(from var(--bg) r g b / 0.95) 10%, rgb(from var(--bg) r g b / 0.82) 20%, rgb(from var(--bg) r g b / 0.64) 30%, rgb(from var(--bg) r g b / 0.46) 40%, rgb(from var(--bg) r g b / 0.3) 50%, rgb(from var(--bg) r g b / 0.18) 60%, rgb(from var(--bg) r g b / 0.09) 70%, rgb(from var(--bg) r g b / 0.04) 80%, rgb(from var(--bg) r g b / 0.01) 90%, rgb(from var(--bg) r g b / 0) 100%); z-index: -1; }
.contact h2 { font-size: clamp(56px, 11vw, 150px); line-height: .9; letter-spacing: -0.025em; font-weight: 700; font-variation-settings: "wdth" 84; }
.contact .sub2 { margin-top: 20px; font-size: clamp(18px, 2vw, 22px); max-width: 30em; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.addr { font: 600 clamp(20px, 2.6vw, 30px)/1.2 var(--display); user-select: all; overflow-wrap: anywhere; }
.btn { font: 600 15px/1 var(--body); padding: 13px 18px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.glass { background: color-mix(in srgb, var(--card) 55%, transparent); color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast { font-size: 14px; min-height: 1.4em; margin-top: 12px; }
.foot2 { margin-top: clamp(70px, 10vw, 140px); padding-block: 22px calc(84px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot2 a { color: inherit; text-decoration: none; }

/* Lightbox (built by case-study.js). Always dark, whatever the page theme. */
html:has(.lb[open]) { overflow: hidden; }
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 12, 20, .96); color: #f4f2f8; overflow: hidden; font-family: var(--body); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb::backdrop { background: transparent; }
.lb button { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; }
.lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.lb-count { flex: 1; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(244, 242, 248, .7); }
.lb-zoom { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.lb .lb-zoom button { height: 38px; min-width: 38px; border-radius: 999px; }
.lb .lb-zoom button:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.lb .lb-zoom button:disabled { opacity: .35; cursor: default; }
.lb .lb-pct { min-width: 58px; padding: 0 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb .lb-pct:disabled { opacity: .7; }
.lb .lb-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.lb .lb-close:hover { background: rgba(255, 255, 255, .16); }
.lb-main { position: relative; min-height: 0; }
.lb-stage { position: absolute; inset: 0; display: grid; overflow: auto; overscroll-behavior: contain; padding: 8px clamp(16px, 7vw, 80px); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.lb-stage img { margin: auto; max-width: none; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: zoom-in; transition: opacity .2s; }
.lb.zoomed .lb-stage img { cursor: grab; }
.lb.dragging .lb-stage img { cursor: grabbing; }
.lb.loading .lb-stage img { opacity: .4; }
.lb .lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; background: rgba(20, 18, 28, .72); border: 1px solid rgba(255, 255, 255, .2); }
.lb .lb-nav:hover { background: rgba(44, 40, 60, .92); }
.lb .lb-nav[hidden] { display: none; }
.lb-prev { left: max(10px, env(safe-area-inset-left)); }
.lb-next { right: max(10px, env(safe-area-inset-right)); }
.lb-cap { margin: 0 auto; padding: 10px 20px max(16px, env(safe-area-inset-bottom)); max-width: 72ch; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(244, 242, 248, .75); }
.lb-cap[hidden] { display: none; }
@media (max-width: 640px) { .lb:has(.lb-nav:not([hidden])) .lb-stage { padding-bottom: 68px; } .lb .lb-nav { top: auto; bottom: 8px; translate: none; } .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); } }
@media (prefers-reduced-motion: no-preference) { .lb[open], .lb[open]::backdrop { animation: lb-in .2s ease-out; } }
@keyframes lb-in { from { opacity: 0; } }
