/* Carolyn Zhao — shared styles. Tokens measured from the live Squarespace site. */
:root {
  --bg: #181818;
  --lav: #ACB1E7; --lav2: #BDC2FE; --pill: #242424; --line: #1F2124; --ic: #A3A3A3; --cream: #E3CB8F;
  --px: 120px; --hx: var(--px);
  --fg: #ffffff;
  --fg-soft: rgba(255, 255, 255, 0.91);
  --accent: #8fa7ff;
  --hover-ink: #526fff;
  --hover-mark: #FFED4D;
  --hero-dim: rgba(255, 255, 255, 0.2); --hero-fill: #BDC2FE;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-intro: "Plain", "Alan Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hero: "Plus Jakarta Sans", "Alan Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: var(--px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/24px var(--font-ui);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Alan Sans (self-hosted, Google Fonts, OFL) */
@font-face { font-family: "Alan Sans"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/alan-sans-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/alan-sans-latin-wght-normal.woff2) format("woff2"); }

/* Instrument Sans (user-supplied variable font: weight 400–700, width 75–100) */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(fonts/InstrumentSans-VariableFont_wdthwght.woff2) format("woff2-variations"), url(fonts/InstrumentSans-VariableFont_wdthwght.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(fonts/InstrumentSans-Italic-VariableFont_wdthwght.woff2) format("woff2-variations"), url(fonts/InstrumentSans-Italic-VariableFont_wdthwght.woff2) format("woff2"); }

/* Plain Regular (heading font, user-supplied OTF) */
@font-face { font-family: "Plain"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/Plain-Regular.otf) format("opentype"); }

/* Plus Jakarta Sans (hero text font, user-supplied variable TTF) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/PlusJakartaSans-VariableFont_wght.ttf) format("truetype-variations"), url(fonts/PlusJakartaSans-VariableFont_wght.ttf) format("truetype"); }

/* Header: logo | pill nav | social + theme. Same on every page. */
.site-header {
  position: relative; z-index: 5; height: 56px; margin: 30px var(--hx) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo { display: block; justify-self: start; }
.logo img { display: block; width: 51px; height: 51px; transition: transform 0.35s cubic-bezier(0.33,0,0.2,1); }
.logo:hover img { transform: rotate(var(--rot, 40deg)); }
.hdr-menu { display: contents; }
.nav { display: flex; align-items: center; height: 55px; padding: 0 21px; border-radius: 999px; background: var(--pill); font-size: 16px; line-height: 1; }
.nav a { display: block; padding: 18px 20px; transition: color 0.2s ease; }
.nav a:hover { color: var(--lav2); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]:hover { color: var(--lav2); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% - 6px); left: 50%; min-width: 180px; padding: 8px; transform: translate(-50%, -4px);
  background: var(--pill); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; z-index: 30;
}
.sub a { padding: 12px 16px; white-space: nowrap; border-radius: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.hdr-icons { display: flex; align-items: center; justify-content: flex-end; gap: 30px; justify-self: end; color: var(--ic); }
.hdr-icons a, .hdr-icons button, .foot-icons a { display: block; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; line-height: 0; transition: color 0.2s; }
.hdr-icons a:hover, .hdr-icons button:hover, .foot-icons a:hover { color: var(--fg); }
.hdr-icons svg { width: 22px; height: 22px; }
.theme .sun { display: none; }
:root[data-mode="light"] .theme .sun { display: block; }
:root[data-mode="light"] .theme .moon { display: none; }
.burger { display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--pill); color: var(--ic); cursor: pointer; justify-self: end; }
.burger svg { display: block; margin: auto; }

/* Footer */
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 204px var(--px) 120px; }
.site-footer .say { font: 400 24px/1.2 var(--font-ui); letter-spacing: -0.01em; }
.foot-icons { display: flex; align-items: center; gap: 24px; color: #8b8b8b; }
.foot-icons svg { width: 24px; height: 24px; }

/* Home */
.home { padding: 0 var(--px); }
.intro {
  margin: 217px 0 0; max-width: none; font: 500 66px/70px var(--font-hero); letter-spacing: -0.01em;
  color: var(--lav); text-wrap: pretty;
}
.intro a { transition: background-color 0.15s, color 0.15s; }
.intro a:hover, .intro a:focus-visible { background: #FFD787; color: #8AA8FF; text-decoration: none; }
.intro .m { display: none; }
.intro .end { margin-left: 0.368em; }
.intro .emo { display: inline-block; width: 0.78em; height: 0.78em; vertical-align: -0.05em; margin: 0 0.0644em;
  background-color: var(--cream); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
  transition: transform 0.35s cubic-bezier(0.33,0,0.2,1), background-color 0.2s; }
.intro .emo:hover { background-color: var(--lav); }
.intro .w { display: inline-block; white-space: nowrap; }

/* Scroll-driven letter fill: each character starts dim white, fills to lavender as the page scrolls */
.intro .ch { color: var(--hero-dim); transition: color 0.12s linear; }
.intro .ch.filled { color: var(--hero-fill); }
/* Switching dark/light swaps the hero colors instantly; without this, each letter's staggered
   fill transition would replay and blend the two palettes into a muddy red-brown on the way. */
html.theme-swap .intro .ch { transition: none !important; }
.intro a:hover .ch { color: #8AA8FF; }

/* Info strip */
.strip { margin: 244px 0 0; overflow: hidden; color: var(--lav); font-size: 18px; line-height: 24px; letter-spacing: -0.01em; text-transform: uppercase; }
.strip-track { display: flex; width: 100%; }
.strip .set { display: flex; justify-content: space-between; width: 100%; white-space: nowrap; }
.strip .set[aria-hidden="true"] { display: none; }
.strip .item { display: inline-flex; align-items: center; gap: 0.7em; }
.strip .d { width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); flex: none; }
.strip .play { width: 0; height: 0; border-left: 0.75em solid currentColor; border-top: 0.42em solid transparent; border-bottom: 0.42em solid transparent; margin-left: 0.2em; }
.strip .short { display: none; }

/* Cards */
.work { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 100px; margin: 56px 0 0; padding: 0; list-style: none; }
.card { display: block; }
.thumb { position: relative; display: block; aspect-ratio: 624 / 380; overflow: hidden; border-radius: 24px; background: var(--tile-bg, #292a29); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.03); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 24px; }
.cap { display: block; margin-top: 28px; }
.cap .kicker { display: block; margin-bottom: 4px; font-size: 14px; line-height: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); }
.cap .ttl { display: inline; font-size: 22px; line-height: 30px; letter-spacing: -0.01em; }
.cap .ttl span { padding: 0 0.15em; margin: 0 -0.15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 0.15s; }
/* title highlight on card hover removed */
.ttl-wrap { display: block; margin-top: 4px; }

/* More work */
.more { margin: 165px 0 0; }
.more h2 { margin: 0 0 65px; font: 400 48px/1.1 var(--font-intro); letter-spacing: -0.01em; color: var(--lav2); }
.more ul { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.more li { border-top: 1px solid var(--line); }
.more a { position: relative; isolation: isolate; display: grid; grid-template-columns: 323px 1fr auto; align-items: center; height: 91px; }
.more .who { font-size: 20px; letter-spacing: 0.05em; text-transform: uppercase; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.more .what { font-size: 22px; letter-spacing: -0.01em; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.more .n { font-size: 22px; color: var(--lav2); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
/* Hover: a fill wipes across the row left to right (and out the same way), the label slides in, and a thumbnail follows the cursor */
.more a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--row-hover, #2c2d33); transform: scaleX(0); transform-origin: right center; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
  .more a:hover::before, .more a:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
  .more a:hover .who, .more a:focus-visible .who, .more a:hover .what, .more a:focus-visible .what { transform: translateX(32px); }
  .more a:hover .n, .more a:focus-visible .n { transform: translateX(-32px); }
}
.peek { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(240px, 27.25vw, 412px); aspect-ratio: 820 / 670; overflow: hidden; pointer-events: none;
  border: 1px solid #fff; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); opacity: 0; will-change: transform; transition: opacity 0.25s ease; }
.peek.on { opacity: 1; }
.peek > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; }
.peek > .cur { opacity: 1; }
@media (hover: none) { .peek { display: none; } }

/* Project pages: the original layouts are free-form, so every element is placed
   from numbers measured on the live site (vw units, desktop --x/--y/--w, phone --mx/--my/--mw). */
.stage {
  --cap: calc(var(--capn, 1140) * 1px);  /* live site: fixed-width centred column (1280 or 1140px), with side padding on narrow screens */
  --cw: calc(100vw - 2 * var(--px));
  position: relative;
  width: var(--cw);
  height: calc(var(--H) * var(--cw) / 100);
  margin: 90px auto 0;
}
.l { position: absolute; margin: 0; left: calc(var(--x) * var(--cw) / 100); top: calc(var(--y) * var(--cw) / 100); width: calc(var(--w) * var(--cw) / 100); }
.l.i, .l.g, .l.s, .l.b, .l.v { height: calc(var(--hh) * var(--cw) / 100); }
/* Text uses fixed pixel sizes like the live site; headings follow its fluid scale. */
.t { font-size: 16px; line-height: 1.5; letter-spacing: 0.02em; font-weight: 400; }
h1.t { font-size: max(54px, 2.8646vw); }
h2.t { font-size: max(31px, 2.34375vw); }
h3.t { font-size: 24px; }
.t.hl { white-space: nowrap; font-family: var(--font-intro); font-size: 45px; line-height: 1.2; letter-spacing: 0; }
.t.hs { font-size: 14.6px; line-height: 1.2; }
@media (min-width: 768px) and (max-width: 1279px) { .t, .b { font-size: 14px; } .t.hl { font-size: 34px; } .t.hs { font-size: 12px; } }
@media (min-width: 768px) and (max-width: 999px) { .t, .b { font-size: 12.5px; } }
@media (min-width: 1920px) {
  h1.t { font-size: 55px; }
  h2.t { font-size: 45px; }
  h3.t { font-size: 18px; }
}

/* Project index shown under every case study */
.index-nav {
  width: min(var(--cw, 90vw), 1140px); margin: 8.4vw auto 10vw; text-align: center;
  font-size: max(16px, 1.4063vw); font-weight: 500; letter-spacing: 0.01em; line-height: 1.7; color: #ccc;
}
.index-nav .u { white-space: nowrap; margin: 0 0.45em; }
.index-nav i { font-style: normal; margin-right: 0.7em; }
.index-nav a { color: #ccc; transition: color 0.2s; }
.index-nav a:hover { color: #fff; }
.index-nav a[aria-current] { color: #7a91ff; }
@media (min-width: 1920px) { .index-nav { width: 1080px; font-size: 27px; } }
.t a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
ul.t { padding-left: 1.3em; list-style: disc; }
ul.t ul { padding-left: 1.3em; list-style: circle; margin: 0; }
ul.t p { margin: 0; }
.i { overflow: hidden; display: block; }
.i img { display: block; width: 100%; height: 100%; object-fit: cover; }
#about-photo img { object-fit: contain; }
.g { pointer-events: none; }
.b { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 16px; transition: background 0.2s, color 0.2s; }
.b:hover { background: rgba(169, 163, 255, 0.14) !important; }
.v { display: flex; align-items: center; justify-content: center; background: #000; object-fit: contain; }
a.v { background: #212121; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--accent); font-size: 16px; transition: border-color 0.2s, background 0.2s; }
a.v:hover { border-color: var(--accent); background: #262626; }
a.v span::after { content: " ↗"; }
.v.soon { color: rgba(255, 255, 255, 0.7); font-size: 16px; text-align: center; padding: 0 4%; }

/* Slideshow */
.s { overflow: hidden; }
.s-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.s-slide.on { opacity: 1; pointer-events: auto; }
.s-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.s-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.8em; height: 2.8em; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(23, 23, 23, 0.6); color: #fff; font: 400 22px/1 var(--font-ui);
  display: grid; place-items: center; padding: 0 0 3px;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.s:hover .s-btn, .s-btn:focus-visible { opacity: 1; }
.s-btn:hover { background: rgba(23, 23, 23, 0.9); }
.s-prev { left: 1.2%; }
.s-next { right: 1.2%; }
.s-count {
  position: absolute; right: 1.5%; bottom: 3%; z-index: 2; padding: 2px 9px; border-radius: 99px;
  background: rgba(23, 23, 23, 0.6); font-size: 12px; line-height: 20px; letter-spacing: 0.04em;
}
@media (hover: none) { .s-btn { opacity: 0.9; } }

.nd { display: none !important; }

/* Contact */
.contact-page { padding: 0 var(--gutter); }
.contact-page h1 { font-size: max(54px, 2.8646vw); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; text-align: center; margin: 90px auto 0; }
@media (min-width: 1920px) { .contact-page h1 { font-size: 55px; } }
.contact-page .lede { text-align: center; margin: 7vw auto 0; }
.contact-page .lede a, .contact-page .social a { color: var(--accent); }
.contact-page .lede a:hover, .contact-page .social a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.contact-page .social { text-align: center; margin: 12px 0 0; display: flex; justify-content: center; gap: 28px; }
.contact-form { max-width: 43.5vw; margin: 6vw auto 0; display: grid; gap: 28px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form small { font-size: 12px; opacity: 0.7; margin-left: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--fg); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 0; padding: 12px 14px;
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.contact-form button {
  justify-self: center; margin-top: 8px; cursor: pointer; font: 700 16px/1 var(--font-ui); letter-spacing: 0.04em;
  text-transform: uppercase; color: rgb(250, 193, 61); background: none; border: 0; padding: 12px 20px;
}
.contact-form button:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.contact-form .note { text-align: center; min-height: 24px; color: var(--accent); margin: 0; }
.fineprint { text-align: center; margin: 9vw 0 8vw; opacity: 0.7; }

/* Phone */
@media (max-width: 767px) {
  .stage { --cw: calc(100vw - 2 * var(--px)); width: var(--cw); height: calc(var(--MH) * var(--cw) / 100); margin: 8vw auto 0; }
  .l { left: calc(var(--mx) * var(--cw) / 100); top: calc(var(--my) * var(--cw) / 100); width: calc(var(--mw) * var(--cw) / 100); }
  .l.i, .l.g, .l.s, .l.b, .l.v { height: calc(var(--mhh) * var(--cw) / 100); }
  .t, .b, h1.t, h2.t, h3.t { font-size: calc(var(--mfs) * var(--cw) / 100); }
  .t.hl { font-size: calc(var(--mfs) * var(--cw) / 100); }
  .t.hs { font-size: calc(var(--mfs) * var(--cw) / 100); }
  .index-nav { width: 90vw; margin: 14vw auto 14vw; font-size: 16px; }
  .nm { display: none !important; }
  .nd { display: block !important; }
  .nd.b, .nd.v { display: flex !important; }
  .contact-page h1 { font-size: 14.4vw; margin-top: 8vw; }
  .contact-page .lede { margin-top: 12vw; }
  .contact-form { max-width: none; margin-top: 12vw; }
  .fineprint { margin: 20vw 0 12vw; }
}
@media (prefers-reduced-motion: reduce) {
  .tile img, .tile-title, .nav a, .s-slide, .s-btn { transition: none; }
}

/* Highlighting (selecting) links in the home intro text gives them a light orange background */
.intro a::selection, .intro a *::selection { background: #ffd9a8; color: #171717; }

/* Custom cursor (fine pointers only; see site.js) */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 2147483647; pointer-events: none;
  width: 0; height: 0; opacity: 0; transition: opacity 0.2s;
}
.cursor.on { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.33, 0, 0.2, 1), background 0.25s, opacity 0.25s, box-shadow 0.25s;
}
.cursor.down::before { transform: scale(0.8); }
@media (prefers-reduced-motion: reduce) { .cursor::before { transition: none; } }

/* Loading state (homepage) */
#loader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); overflow: hidden; animation: loader-failsafe 0.4s 12s forwards; }
#loader .sh { position: absolute; left: 0; top: 0; will-change: transform, opacity; transition: opacity 0.45s ease; }
#loader .sh { pointer-events: none; }
#loader .sh svg { display: block; overflow: visible; pointer-events: none; }
#loader .sh.live svg > * { pointer-events: visiblePainted; cursor: pointer; }
#loader .shard { position: absolute; pointer-events: none; will-change: transform, opacity; margin: -3px 0 0 -3px; }
#loader .pop-ring { position: absolute; pointer-events: none; border: 3px solid; border-radius: 50%; }
#loader .sh.out { opacity: 0 !important; }
html.loading .site-header, html.loading .intro, html.loading .work { opacity: 0; animation: content-failsafe 0.01s 12s forwards; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
@keyframes content-failsafe { to { opacity: 1; } }
.rv { animation: rv-rise var(--dur, 900ms) cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) backwards; }
@keyframes rv-rise { from { opacity: 0; transform: translate3d(0, var(--dy, 40px), 0); } }
@media (prefers-reduced-motion: reduce) { #loader { display: none; } html.loading .site-header, html.loading .intro, html.loading .work { opacity: 1; } }

/* Reveal for the new sections once the loading state hands over (loader.js is untouched) */
html.loading .strip, html.loading .more, html.loading .site-footer { opacity: 0; animation: content-failsafe 0.01s 12s forwards; }
html:not(.loading) .strip { animation: rv-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 0.6s backwards; --dy: 40px; }
html:not(.loading) .more, html:not(.loading) .site-footer { animation: rv-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 0.9s backwards; --dy: 40px; }
@media (prefers-reduced-motion: reduce) {
  html.loading .strip, html.loading .more, html.loading .site-footer { opacity: 1; }
  html:not(.loading) .strip, html:not(.loading) .more, html:not(.loading) .site-footer { animation: none; }
}

/* Tablet (800-1511): mirrors the Figma tablet frame; hero type scales from 36px at 800 to 48px at 1511 */
@media (max-width: 1511px) {
  .site-header { height: 51px; margin-top: 32px; }
  .logo img { width: 47px; height: 47px; }
  .nav { height: 51px; padding: 0 20px; }
  .nav a { padding: 17px 20px; }
  .intro { margin-top: 132px; max-width: 72%; font-size: calc(36px + (100vw - 800px) * 0.0169); line-height: 1.22; }
  .intro .b-dm { display: none; }
  .intro .amp { display: none; } .intro .m { display: inline; }
  .strip { margin-top: 244px; font-size: 15px; }
  .strip .set { justify-content: flex-start; gap: 72px; }
  .strip .long { display: none; } .strip .short { display: inline; }
  .work { margin-top: 56px; row-gap: 72px; }
  .thumb { border-radius: 24px; }
  .cap .kicker { font-size: 12.5px; }
  .cap .ttl { font-size: 19px; line-height: 26px; }
  .more { margin-top: 120px; }
  .more h2 { margin-bottom: 46px; }
  .more a { grid-template-columns: 1fr auto; grid-template-areas: "who n" "what n"; row-gap: 4px; height: 82px; align-content: center; }
  .more .who { grid-area: who; font-size: 12.5px; line-height: 16px; }
  .more .what { grid-area: what; font-size: 22px; line-height: 28px; }
  .more .n { grid-area: n; }
  .site-footer { padding: 190px var(--px) 120px; }
}


/* Mobile (<800) */
@media (max-width: 799px) {
  .site-header { display: flex; justify-content: space-between; height: 48px; margin-top: 16px; }
  .burger { display: block; }
  .hdr-menu { display: none; }
  /* full-screen menu (Figma: Mobile - Navigation Menu) */
  .site-header.open { z-index: 100; }
  .site-header.open .logo, .site-header.open .burger { position: relative; z-index: 2; }
  .site-header.open .hdr-menu {
    display: flex; flex-direction: column; position: fixed; inset: 0; width: auto; height: 100vh; height: 100dvh; padding: 72px 0 0; z-index: 1;
    background: var(--bg); border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header.open .nav { flex-direction: column; align-items: stretch; height: auto; padding: 0; background: none; font: 400 24px/1.45 "Instrument Sans", "Alan Sans", "Inter", system-ui, sans-serif; letter-spacing: -0.12px; text-align: center; flex: none; }
  .site-header.open .nav a { padding: 32px 24px; height: 99px; display: flex; align-items: center; justify-content: center; color: var(--fg); }
  .site-header.open .nav a[aria-current="page"] { color: var(--fg); }
  .site-header.open .has-sub { display: block; }
  .site-header.open .sub { display: none; }
  .site-header.open .hdr-icons { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 6px; padding: 0; justify-content: stretch; }
  .site-header.open .hdr-icons .theme { order: -1; grid-column: 1 / -1; justify-self: center; display: flex; gap: 7px; align-items: center; height: 48px; margin: 32px 0 0; padding: 6px 5px; border-radius: 36px; background: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(31px); backdrop-filter: blur(31px); }
  :root[data-mode="light"] .site-header.open .hdr-icons .theme { background: rgba(0, 0, 0, 0.05); }
  .site-header.open .hdr-icons .theme svg { display: block; box-sizing: border-box; width: 36.6px; height: 36.6px; padding: 7.6px; border-radius: 50%; color: var(--ic); }
  .site-header.open .hdr-icons .theme .moon { background: var(--fg); color: var(--bg); }
  :root[data-mode="light"] .site-header.open .hdr-icons .theme .moon { background: transparent; color: var(--ic); }
  :root[data-mode="light"] .site-header.open .hdr-icons .theme .sun { background: var(--fg); color: var(--bg); }
  .site-header.open .hdr-icons > a { align-self: end; padding: 12px; margin-bottom: 40px; }
  .site-header.open .hdr-icons > a:nth-of-type(1) { justify-self: end; }
  .site-header.open .hdr-icons > a:nth-of-type(2) { justify-self: start; }
  .site-header.open .hdr-icons > a svg { width: 24px; height: 24px; }
  .site-header.open .burger { background: rgba(255, 255, 255, 0.05); color: var(--fg); width: 44px; height: 44px; margin-right: 0; }
  :root[data-mode="light"] .site-header.open .burger { background: rgba(0, 0, 0, 0.05); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .intro { margin-top: 139px; max-width: none; font-size: 28px; line-height: 34px; }
  .intro .b-dm { display: inline; }
  .intro .b-m { display: inline; }
  .strip { margin-top: 78px; font-size: 13px; line-height: 18px; overflow: hidden; }
  .strip-track { width: max-content; animation: marquee 30s linear infinite; }
  .strip .set { width: auto; gap: 56px; padding-right: 56px; }
  .strip .set[aria-hidden="true"] { display: flex; }
  .work { grid-template-columns: 1fr; margin-top: 38px; row-gap: 56px; }
  .cap { margin-top: 14px; }
  .cap .kicker { font-size: 12px; line-height: 16px; }
  .cap .ttl { font-size: 19px; line-height: 25px; }
  .more { margin-top: 140px; }
  .more h2 { font-size: 28px; margin-bottom: 21px; }
  .more a { height: 83px; }
  .more .what { font-size: 20px; line-height: 26px; }
  .site-footer { flex-direction: column-reverse; justify-content: center; gap: 36px; padding: 170px var(--px) 100px; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } .strip { overflow-x: auto; } }
@media (min-width: 1512px) { .intro .b-m { display: none; } }
.intro .b-m { display: none; }
@media (max-width: 799px) { .intro .b-m { display: inline; } }

/* Light theme (moon / sun button in the header) */
:root[data-mode="light"] {
  --row-hover: rgba(58, 25, 0, 0.12);
  --bg: #BDC2FE; --fg: #171717; --fg-soft: #2a1a10; --lav: #3A1900; --lav2: #4C06EE; --pill: #D3D7FF; --line: rgba(58, 25, 0, 0.18);
  --ic: #3A1900; --cream: #4C06EE; --accent: #4C06EE; color-scheme: light;
  --hero-dim: rgba(0, 0, 0, 0.2); --hero-fill: #3A1900;
}
:root[data-mode="light"] .logo img.logo-d { display: none; }
:root[data-mode="light"] .foot-icons { color: #3A1900; }

/* Light mode links: #3300AB (7.1:1 on the light background, passes WCAG AA and AAA).
   Case-study links and pill buttons carry inline colors from the export, hence !important. */
:root[data-mode="light"] .stage a,
:root[data-mode="light"] .contact-page .lede a,
:root[data-mode="light"] .contact-page .social a,
:root[data-mode="light"] .index-nav a[aria-current] { color: #3300AB !important; }
:root[data-mode="light"] .stage a.b { border-color: #3300AB !important; }
:root[data-mode="light"] .stage a.b:hover { background: rgba(51, 0, 171, 0.1) !important; }
:root[data-mode="light"] a.v { background: #D3D7FF; border-color: rgba(51, 0, 171, 0.35); }
/* Project list under each case study: was light grey (#ccc), unreadable on the light background */
:root[data-mode="light"] .index-nav, :root[data-mode="light"] .index-nav a { color: #3A1900; }
:root[data-mode="light"] .index-nav a:hover { color: #3300AB; }

/* Listening item: play button, album-art hover, SoundCloud popup */
.strip .play-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 1.9em; height: 1.9em; margin: -0.5em 0 -0.5em -0.3em; border-radius: 50%; color: inherit; }
.strip .play-btn:hover { color: #FFD99D; }
.strip .play-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.strip .play-btn .play { margin-left: 0.2em; }
.strip .play-btn.on .play { border: 0; width: 0.7em; height: 0.8em; margin: 0; background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64% 100%); }
.strip .listen .song { transition: color .2s; }
.strip .listen:hover .song { color: #FFD99D; }
.song-peek { position: fixed; left: 0; top: 0; z-index: 60; width: 206px; pointer-events: none; opacity: 0; transform: translate3d(-999px,-999px,0) scale(.94); transition: opacity .18s ease; will-change: transform; display: none; }
.song-peek.on { opacity: 1; }
.song-peek img { display: block; width: 206px; height: 206px; object-fit: cover; border: 1px solid #fff; background: #181818; }
.song-peek .pill { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: #2B3BFF; color: #fff; font-size: 15px; line-height: 20px; letter-spacing: .02em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.55); white-space: nowrap; }
.song-peek .pill b { font-weight: 600; }
.song-peek .tri { width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.song-peek.playing .tri { border: 0; width: 10px; height: 12px; background: linear-gradient(90deg,#fff 0 36%,transparent 36% 64%,#fff 64% 100%); }
@media (hover: hover) and (pointer: fine) { .song-peek { display: block; } }
.sc { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 340px; max-width: calc(100vw - 24px); background: #181818; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.45); text-transform: none; letter-spacing: 0; animation: sc-in .35s cubic-bezier(.22,1,.36,1); }
.sc[hidden] { display: none; }
@keyframes sc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sc-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px; }
.sc-t { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bar button { all: unset; box-sizing: border-box; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.1); transition: background .15s; }
.sc-bar button:hover { background: rgba(255,255,255,.22); }
.sc-bar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sc-min svg { transition: transform .25s; }
.sc.min .sc-min svg { transform: rotate(180deg); }
.sc-eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; }
.sc-eq i { flex: 1; background: #FF5500; height: 30%; }
.sc.playing .sc-eq i { animation: eq .9s ease-in-out infinite; }
.sc.playing .sc-eq i:nth-child(2) { animation-delay: -.3s; } .sc.playing .sc-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.sc-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.sc-body > * { min-height: 0; }
.sc.min .sc-body { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s .3s; }
.sc-body iframe { display: block; width: 100%; height: 300px; border: 0; overflow: hidden; }
.sc-credit { padding: 6px 14px 10px; font-size: 10px; line-height: 14px; color: #cccccc; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-credit a { color: #cccccc; text-decoration: none; } .sc-credit a:hover { text-decoration: underline; }
.sc-body { overflow: hidden; }
@media (max-width: 799px) { .sc { right: 12px; bottom: 12px; width: 260px; border-radius: 12px; } .sc-body iframe { height: 200px; } .sc-bar { height: 38px; } .sc-bar button { width: 26px; height: 26px; } .sc-t { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .sc, .sc.playing .sc-eq i { animation: none; } }

.sc-fallback { display: none; padding: 28px 18px; text-align: center; font-size: 14px; line-height: 20px; }
.sc-fallback p { margin: 0 0 12px; color: #ccc; }
.sc-fallback a { display: inline-block; padding: 9px 18px; border-radius: 999px; background: #FF5500; color: #fff; text-decoration: none; }
.sc.failed .sc-fallback { display: block; } .sc.failed iframe { display: none; }

/* Case study cards: dim + tan border + cursor-following pill */
.strip a { color: inherit; text-decoration: none; transition: color .2s; }
.strip a:hover, .strip a:focus-visible { color: #FFD99D; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(250,223,156,.6); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.thumb img { transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.card:hover .thumb::after, .card:focus-visible .thumb::after { opacity: 1; }
.card:hover .thumb img, .card:focus-visible .thumb img { opacity: .2; }
.case-pill, .peek-pill { position: fixed; left: 0; top: 0; z-index: 65; display: none; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #2435FF; color: #fff; border: 1px solid rgba(250,223,156,.6); font-size: 15px; line-height: 20px; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s ease; will-change: transform; }
.case-pill.on, .peek-pill.on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .case-pill, .peek-pill { display: inline-flex; } }

.intro .nw { white-space: nowrap; }

/* XL desktop: the last sentence starts on its own line */
@media (min-width: 1512px) { .intro .b-m { display: inline; } }
.intro .b-xl { display: none; }
@media (min-width: 1512px) { .intro .b-xl { display: inline; } }

/* XL desktop: hero fills most of the first viewport, so the work thumbnails only peek up from below the fold */
.hero-top { display: flow-root; }

.intro .emo.star { -webkit-mask: none; mask: none; background: none; width: auto; height: auto; font-size: 0.78em; line-height: 1; vertical-align: 0.08em; color: var(--cream); transition: transform 0.35s cubic-bezier(0.33,0,0.2,1), color 0.2s; }
.intro .emo.star:hover { background: none; color: var(--lav); }

.contact-form button { background: rgb(250, 193, 61); color: #171717; border-radius: 999px; padding: 15px 36px; transition: transform .2s ease, background-color .2s; }
.contact-form button:hover { text-decoration: none; background: #FFED4D; transform: translateY(-1px); }
.contact-form button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* All site headings (the "More work" heading, every page's h1 title, and the Contact
   page heading) match the hero text: same font, same size at every breakpoint, same -1% letter-spacing. */
.more h2, h1.t, .contact-page h1, .page-title { font-size: 66px; line-height: 70px; }
@media (max-width: 1511px) { .more h2, h1.t, .contact-page h1, .page-title { font-size: calc(36px + (100vw - 800px) * 0.0169); line-height: 1.22; } }
@media (max-width: 799px) { .more h2, h1.t, .contact-page h1, .page-title { font-size: 28px; line-height: 34px; } }

.intro, .more h2, h1.t, .contact-page h1, .page-title { font-family: var(--font-hero); font-weight: 500; letter-spacing: -0.01em; }
/* Every page's h1 carries its own inline letter-spacing (from the design-tool export), which otherwise
   beats any stylesheet rule — !important is the only way to make -1% actually win here. */
h1.t { letter-spacing: -0.01em !important; }

/* Soft circular blur that follows the cursor over the hero text, like inesvalverde.framer.website */
.intro-wrap { position: relative; }
.intro-blur {
  position: absolute; top: 0; left: 0; width: 400px; height: 400px;
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.25s ease; will-change: transform;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(circle, #000 0%, #000 30%, transparent 75%);
}
.intro-blur.on { opacity: 1; }
@media (max-width: 1511px) { .intro-blur { width: 220px; height: 220px; } }
@media (max-width: 799px) { .intro-blur { width: 160px; height: 160px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } }
@media (prefers-reduced-motion: reduce), (hover: none) { .intro-blur { display: none; } }

/* At 1440px wide (a common desktop size) the heading font is fixed at 56px per request. */
@media (min-width: 1440px) and (max-width: 1511px) {
  .intro, .more h2, h1.t, .contact-page h1, .page-title { font-size: 56px; }
}

/* Visual Design page: page title, then the same case-study grid as the homepage */
.page-title { margin: 160px 0 0; color: #fff; }
:root[data-mode="light"] .page-title { color: #3A1900; }
.visual-page .work { margin-top: 56px; }
@media (max-width: 799px) { .page-title { margin-top: 96px; } .visual-page .work { margin-top: 38px; } }
.thumb video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.card:hover .thumb video, .card:focus-visible .thumb video { transform: scale(1.03); opacity: .2; }

/* Section headings (h2, h3) everywhere: Plus Jakarta Sans at -1%. Sizes stay as they were.
   Case-study headings carry inline letter-spacing/alignment from the export, hence !important. */
h2, h3 { font-family: var(--font-hero); letter-spacing: -0.01em !important; }

/* Case studies, About and Play: headings left-aligned. The page title also moves to the
   column's left edge so it lines up with the content below it. */
.stage h1, .stage h2, .stage h3 { text-align: left !important; }
.stage h1.l { --x: 0 !important; --w: 100 !important; }

/* Contact: heading, intro, social links and form all left-aligned to the site margin */
.contact-page { padding: 0 var(--px); }
.contact-page h1 { text-align: left; margin-left: 0; }
.contact-page .lede { text-align: left; margin-left: 0; }
.contact-page .social { justify-content: flex-start; }
.contact-form { margin-left: 0; margin-right: 0; }
.contact-form button { justify-self: start; padding-left: 0; }
.contact-form .note { text-align: left; }

/* About and Play: same title spacing as the Visual Design page (title 160px below the header,
   content 56px below the title). The title sits above the layout stage, and the stage's
   positioned content is pulled up by the space the old in-stage title used to take. */
.page-title--stage { width: calc(100vw - 2 * var(--px)); margin: 160px auto 0; }
.stage--page { margin-top: 56px; height: calc((var(--H) - var(--shift-y)) * var(--cw) / 100); }
.stage--page > .l { top: calc((var(--y) - var(--shift-y)) * var(--cw) / 100); }
@media (max-width: 799px) { .page-title--stage { margin-top: 96px; } }
@media (max-width: 767px) {
  .page-title--stage { width: auto; margin: 96px var(--px) 0; }
  .stage--page { margin-top: 38px; height: calc((var(--MH) - var(--mshift)) * var(--cw) / 100); }
  .stage--page > .l { top: calc((var(--my) - var(--mshift)) * var(--cw) / 100); }
}
/* Contact: same title spacing */
.contact-page h1 { margin-top: 160px; }
.contact-page .lede { margin-top: 56px; }
@media (max-width: 799px) { .contact-page h1 { margin-top: 96px; } .contact-page .lede { margin-top: 38px; } }

/* ───────── Case study template (Peloton benefit onboarding; built from the Figma "Desktop" frame) ─────────
   Desktop frame is 1512 wide: 120px side margins, 1272px content, a 302px label column + 72px gap + 898px body. */
.cs {
  --cs-ink: #fff; --cs-muted: rgba(255, 255, 255, 0.55); --cs-soft: rgba(255, 255, 255, 0.7); --cs-faint: rgba(255, 255, 255, 0.5);
  --cs-accent: #F8CB92; --cs-lav: #BDC2FE; --cs-border: rgba(189, 194, 254, 0.5); --cs-line: rgba(255, 255, 255, 0.2); --cs-quote: #5D70E8;
  --cs-label-font: "Instrument Sans", "Inter", system-ui, sans-serif;
  --cs-text-font: "Inter", system-ui, sans-serif;
  --cs-stat-font: "Filson Soft", "Nunito", var(--font-hero);
  --cs-gap: clamp(32px, 4.762vw, 72px);
  display: block; padding: 0 var(--px) 80px; color: var(--cs-ink);
}
:root[data-mode="light"] .cs {
  --cs-ink: #3A1900; --cs-muted: rgba(58, 25, 0, 0.62); --cs-soft: rgba(58, 25, 0, 0.8); --cs-faint: rgba(58, 25, 0, 0.62);
  --cs-accent: #7A3E00; --cs-lav: #3300AB; --cs-border: rgba(51, 0, 171, 0.35); --cs-line: rgba(58, 25, 0, 0.2);
}
.cs p, .cs h1, .cs h2, .cs h3, .cs figure, .cs ul, .cs blockquote { margin: 0; }
.cs h2, .cs h3 { letter-spacing: 0 !important; }
.cs-hero { padding: 227px 0 40px; }
.cs-eyebrow { font: 400 24px/1.45 var(--cs-label-font); color: var(--cs-muted); }
.cs .cs-title { margin-top: 16px; font: 400 66px/1.2 var(--font-hero); letter-spacing: -1.32px; color: var(--cs-ink); opacity: 0.9; }
@media (max-width: 1511px) { .cs .cs-title { font-size: calc(36px + (100vw - 800px) * 0.0169); } }
@media (max-width: 799px) { .cs .cs-title { font-size: 28px; letter-spacing: -0.56px; } }

.cs-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cs-lede { max-width: 736px; font: 300 32px/1.2 var(--cs-text-font); letter-spacing: -0.64px; color: var(--cs-muted); }
.cs-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 8px; border-radius: 58px;
  font: 600 14px/1.45 var(--cs-text-font); letter-spacing: 1.12px; text-transform: uppercase; color: var(--cs-lav); text-decoration: none; }
.cs-btn-ico { width: 24px; height: 24px; margin: -2px; background: currentColor; -webkit-mask: url(img/arrow-ne.png) center / 24px 24px no-repeat; mask: url(img/arrow-ne.png) center / 24px 24px no-repeat; }
.cs-btn:hover, .cs-btn:focus-visible { background: color-mix(in srgb, var(--cs-lav) 12%, transparent); }

.cs-body { display: flex; flex-direction: column; gap: 70px; margin-top: 44px; }
.cs-cover { aspect-ratio: 1272 / 648; background: var(--cover-bg, #1E0468); overflow: hidden; }
.cs-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--cover-pos, 50% 50%); }

.cs-row { display: grid; grid-template-columns: minmax(0, 302fr) minmax(0, 898fr); column-gap: var(--cs-gap); align-items: start; }
.cs-label { font: 400 24px/1.45 var(--cs-label-font) !important; color: var(--cs-ink); }
.cs-col { display: flex; flex-direction: column; min-width: 0; }
.cs-col--40 { gap: 40px; } .cs-col--48 { gap: 48px; }
.cs-group { display: flex; flex-direction: column; gap: 12px; } .cs-group--24 { gap: 24px; }
.cs-h { font: 400 24px/1.45 var(--cs-label-font) !important; color: var(--cs-ink); }
.cs-accent { color: var(--cs-accent); }
.cs-p { font: 400 16px/1.5 var(--cs-text-font); color: var(--cs-soft); }
.cs-p--145 { line-height: 1.45; letter-spacing: -0.08px; }
.cs-p--15 { font-size: 15px; line-height: 1.45; letter-spacing: -0.075px; }
.cs-p--gap { margin-top: 1.45em !important; }
.cs-group > .cs-p--gap { margin-top: calc(1.45em - 12px) !important; }
.cs-rich p + p, .cs-rich ul + p { margin-top: 1.45em; }
.cs-rich ul { padding-left: 24px; list-style: disc; }
.cs-rich a { color: inherit; text-decoration: underline; }
.cs-strong { font-weight: 700; }
.cs-img { display: block; width: 100%; height: auto; }
.cs-img--overhang { margin-bottom: -37px; }  /* the design lets this image run 37px past its section into the gap */
.cs-fig { display: flex; flex-direction: column; gap: 16px; }
.cs-cap { font: 400 15px/1.45 var(--cs-text-font); letter-spacing: -0.075px; color: var(--cs-soft); }
.cs-cap--16 { font-size: 16px; letter-spacing: -0.08px; }
.cs-divider { border: 0; height: 1px; margin: 31px 0 32px; background: var(--cs-line); }
.cs-divider--end { margin: 123px 0 80px; }  /* 44px gap + 160px divider frame, line in its middle */

/* Insight + result cards */
.cs-cards { display: flex; flex-direction: column; gap: 24px; }
.cs-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cs-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--cs-border); border-radius: 16px; overflow: hidden; }
.cs-card--stat { gap: 16px; align-items: center; min-height: 238px; }
.cs-stat { display: flex; align-items: flex-start; justify-content: center; gap: 2px; height: 100px; padding: 18px 0; color: var(--cs-accent); white-space: nowrap; }
.cs-num { font: 400 66px/1.2 var(--cs-stat-font); letter-spacing: -1.98px; }
.cs-pct { font: 400 24px/1.45 var(--font-hero); letter-spacing: -0.48px; }
.cs-card-p { align-self: stretch; font: 400 15px/1.45 var(--font-hero); letter-spacing: -0.075px; color: var(--cs-ink); }
.cs-card-q { margin-top: calc(var(--gap) * 1.45em) !important; font: 500 15px/1.45 var(--cs-stat-font); color: var(--cs-accent); }
.cs-card--quote .cs-card-p { font-weight: 400; }
.cs-card--result { min-height: 202px; justify-content: space-between; }
.cs-card--result .cs-stat { gap: 4px; }
.cs-card--result .cs-pct + .cs-num { margin-left: 8px; }
.cs-arrow + .cs-num { margin-left: 8px; }
.cs-card--clients { justify-content: flex-start; gap: 16px; padding-top: 24px; }
.cs-stat--stack { flex-direction: column; align-items: center; gap: 0; padding: 0; }
.cs-stat--stack .cs-num { line-height: 64px; }
.cs-unit { font: 400 24px/1.45 var(--cs-stat-font); letter-spacing: -0.48px; }
.cs-quotes { display: flex; flex-direction: column; gap: 16px; }
.cs-quote { display: flex; flex-direction: column; align-items: center; gap: 24px; min-height: 221px; padding: 48px 56px; border: 1px solid var(--cs-border); border-radius: 16px; text-align: center; }
.cs-quote-mark { width: 58px; height: 41px; flex: none; background: var(--cs-quote); -webkit-mask: url(img/quote-mark.png) center / contain no-repeat; mask: url(img/quote-mark.png) center / contain no-repeat; }
.cs-quote p { font: 500 18.288px/1.36 var(--cs-text-font); letter-spacing: -0.1829px; color: var(--cs-ink); }

/* Next project */
.cs-next { display: flex; flex-direction: column; text-decoration: none; }
.cs-next img { display: block; width: 100%; height: auto; aspect-ratio: 1272 / 350; object-fit: cover; border-radius: 16px; margin-bottom: 32px; transition: opacity .3s ease; }
.cs-next-k { font: 400 32px/1.45 var(--cs-label-font); color: var(--cs-lav); }
.cs-next-t { margin-top: 4px; font: 400 24px/1.45 var(--cs-label-font); color: var(--cs-faint); }
.cs-next:hover img { opacity: .85; }

/* Narrower screens: label column stacks above its content; cards reflow; phones get one column */
@media (max-width: 767px) {
  .cs-row { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cs-grid3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 767px) {
  .cs { padding-bottom: 56px; }
  .cs-hero { padding: 96px 0 24px; }
  .cs-eyebrow { font-size: 18px; }
  .cs-intro { flex-direction: column; gap: 16px; }
  .cs-lede { font-size: 22px; letter-spacing: -0.44px; }
  .cs-btn { margin-left: -8px; }
  .cs-body { gap: 48px; margin-top: 32px; }
  .cs-divider { margin: 0; }
  .cs-divider--end { margin: 56px 0; }
  .cs-label, .cs-h { font-size: 20px !important; }
  .cs-img--overhang { margin-bottom: 0; }
  .cs-grid3, .cs-grid2 { grid-template-columns: minmax(0, 1fr); }
  .cs-card--stat, .cs-card--result { min-height: 0; }
  .cs-card-q { margin-top: 1.45em !important; }
  .cs-quote { min-height: 0; padding: 32px 20px; }
  .cs-quote p { font-size: 16px; }
  .cs-num { font-size: 56px; }
  .cs-next img { margin-bottom: 20px; aspect-ratio: 1272 / 500; }
  .cs-next-k { font-size: 24px; } .cs-next-t { font-size: 18px; }
}

/* Case study lightbox */

/* ---- Case study template: extras used by every case study page ---- */
.cs-intro > .cs-btn:only-child { margin-left: -8px; }
.cs-col > .cs-btn, .cs-group > .cs-btn { align-self: flex-start; margin-left: -8px; }
.cs-gal { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; }
.cs-tile { display: flex; margin: 0; aspect-ratio: var(--ar, 4 / 3); background: rgba(175, 175, 175, 0.1); border-radius: 8px; overflow: hidden; }
.cs-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cs-gal--last-wide > .cs-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cs-img--tint { background: rgba(175, 175, 175, 0.1); border-radius: 8px; }
.cs-img--narrow { width: min(100%, 449px); }
.cs-next img { object-position: var(--pos, 50% 50%); }
.cs-group .cs-rich + .cs-rich, .cs-group .cs-p + .cs-rich { margin-top: 0; }
@media (max-width: 767px) { .cs-gal { grid-template-columns: repeat(var(--mcols, 2), minmax(0, 1fr)); gap: 12px; } }

.cs-zoom { cursor: zoom-in; }
.cs-zoom:focus-visible { outline: 2px solid var(--cs-lav, #BDC2FE); outline-offset: 4px; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; overflow: auto; overscroll-behavior: contain; background: rgba(10, 10, 12, 0.92); opacity: 0; transition: opacity .2s ease; }
.lb.on { opacity: 1; }
.lb-stage { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 5vh 3vw; box-sizing: border-box; cursor: zoom-out; }
.lb--tall .lb-stage { align-items: flex-start; }
.lb-img { display: block; height: auto; max-width: none; border-radius: 4px; cursor: default; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-close { position: fixed; top: 16px; right: 16px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.lb-close:hover, .lb-close:focus-visible { background: rgba(255, 255, 255, 0.24); outline: none; }
@media (prefers-reduced-motion: reduce) { .lb { transition: none; } }

/* Case study headings on tablet */

/* Case studies on phones: images run edge to edge, text keeps the page margin */
@media (max-width: 767px) {
  .cs-cover, .cs-col > .cs-fig, .cs-col > .cs-gal, .cs-group > .cs-fig, .cs-group > .cs-gal { margin-inline: calc(-1 * var(--px)); }
  .cs-col > .cs-img:not(.cs-img--narrow), .cs-group > .cs-img:not(.cs-img--narrow) { width: calc(100% + 2 * var(--px)); max-width: none; margin-inline: calc(-1 * var(--px)); border-radius: 0; }
  .cs-fig > .cs-cap { padding-inline: var(--px); }
  .cs-fig > .cs-img, .cs-fig > .cs-gal { border-radius: 0; }
  .cs-tile, .cs-img--tint { border-radius: 0; }
  .cs-next img { width: calc(100% + 2 * var(--px)); max-width: none; margin-inline: calc(-1 * var(--px)); border-radius: 0; }
}

/* ======================================================================================
   Case studies — matched to the Figma frames (XL 1512+, Desktop 1440, Tablet 768–1279, Mobile ≤767)
   ====================================================================================== */
@media (max-width: 1279px) { :root { --px: 80px; } }
@media (max-width: 767px)  { :root { --px: 16px; } }

.cs { --cs-gap: 24px; --cs-labw: 384px; padding-bottom: 0; }
@media (min-width: 1512px) { .cs { --cs-labw: 408px; } }
@media (max-width: 1279px) { .cs { --cs-labw: clamp(190px, 23.7vw, 303px); } }
.cs-row { grid-template-columns: var(--cs-labw) minmax(0, 1fr); column-gap: 24px; }
@media (max-width: 767px) { .cs-row { grid-template-columns: minmax(0, 1fr); row-gap: 24px; } }

/* hero + intro */
.cs-hero { padding: 190px 0 40px; }
.cs .cs-title { margin-top: 16px; font-size: 66px; }
.cs-lede { width: 736px; max-width: 100%; }
.cs-cover { aspect-ratio: auto; height: 648px; }
.cs-lbl-t { display: none; }
@media (max-width: 1279px) { .cs-lbl-d { display: none; } .cs-lbl-t { display: inline; } }
.cs-accent-m { color: inherit; }
@media (max-width: 1511px) { .cs-accent { color: var(--cs-lav); font-weight: 600; } }
.cs-cap, .cs-cap--16 { font-size: 14px; letter-spacing: 0; color: var(--cs-soft); }
.cs-card-p.cs-card-body { font: 400 16px/1.45 var(--cs-text-font); letter-spacing: 0; color: var(--cs-soft); }

/* previous / next */
.cs-pre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 80px 0; }
.cs-pre-card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.cs-pre-card img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 16px; margin-bottom: 24px; transition: opacity .2s; }
@media (min-width: 1280px) { .cs-pre-card img { height: 288px; } }
.cs-pre-card:hover img { opacity: .85; }
.cs-pre-card .cs-next-k { font-size: 32px; }
.cs-pre-card .cs-next-t { font-size: 24px; }
.cs-divider--end { margin: 123px 0 32px; }

/* footer on case-study pages */
.cs ~ .site-footer { padding: 80px var(--px); border-top: 1px solid rgba(0, 0, 0, 0.15); }
.cs ~ .site-footer .say { font: 400 24px/1.45 var(--cs-label-font, "Instrument Sans", sans-serif); letter-spacing: 0; }
.say-m { display: none; }

@media (max-width: 1279px) {
  .cs-pre { gap: 32px; }
  .cs-pre-card img { margin-bottom: 32px; }
}

@media (max-width: 767px) {
  .cs-hero { padding: 40px 0 40px; }
  .cs .cs-title { margin-top: 12px; font-size: 28px; letter-spacing: -0.56px; }
  .cs-eyebrow { font-size: 18px; }
  .cs-intro { flex-direction: column; gap: 16px; }
  .cs-lede { width: auto; font-size: 18px; letter-spacing: -0.36px; }
  .cs-btn { padding: 2px 8px; }
  .cs-body { gap: 40px; margin-top: 32px; }
  .cs-cover { height: auto; aspect-ratio: 390 / 218; }
  .cs-label { font-size: 24px !important; }
  .cs-h { font-size: 18px !important; }
  .cs-p, .cs-p--145, .cs-p--15, .cs-rich { font-size: 14px; }
  .cs-cap, .cs-cap--16 { font-size: 12px; }
  .cs-accent-m { color: var(--cs-lav); font-weight: 600; }
  .cs-divider { margin: 23px 0 24px; }
  .cs-body > .cs-divider:last-of-type { margin: 31px 0 32px; }
  .cs-divider--end { margin: 75px 0 36px; }

  /* insight cards: stacked stats, swipeable quotes */
  .cs-card--stat { border-color: transparent; padding: 0; gap: 16px; }
  .cs-card--stat .cs-card-p, .cs-card-p.cs-card-body { font-size: 14px; }
  .cs-cards .cs-grid3:nth-child(2) { display: flex; overflow-x: auto; gap: 12px; margin-inline: calc(-1 * var(--px)); padding-inline: var(--px); scrollbar-width: none; }
  .cs-cards .cs-grid3:nth-child(2)::-webkit-scrollbar { display: none; }
  .cs-cards .cs-grid3:nth-child(2) .cs-card { flex: 0 0 270px; }
  /* results */
  .cs-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cs-grid2 .cs-num { font-size: 42px; letter-spacing: -1.26px; }
  .cs-grid2 .cs-card-p { font-size: 14px; }
  .cs-qrow { flex-direction: row !important; overflow-x: auto; gap: 12px !important; margin-inline: calc(-1 * var(--px)); padding-inline: var(--px); scrollbar-width: none; }
  .cs-qrow::-webkit-scrollbar { display: none; }
  .cs-qrow .cs-quote { flex: 0 0 320px; padding: 24px 32px; }

  .cs-pre { gap: 12px; padding: 40px 0; }
  .cs-pre-card img { height: 130px; margin-bottom: 12px; }
  .cs-pre-card .cs-next-k, .cs-pre-card .cs-next-t { font-size: 14px; }
  .cs-pre-card .cs-next-k { color: var(--cs-lav); }
  .cs ~ .site-footer { padding: 40px var(--px); flex-direction: column; align-items: flex-start; gap: 16px; }
  .cs ~ .site-footer .say { font-size: 18px; }
  .say-d { display: none; } .say-m { display: inline; }
}
.cs-qrow { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 767px) { .cs-grid2 .cs-num { font-size: 38px; letter-spacing: -1.1px; } .cs-grid2 .cs-pct { font-size: 18px; } .cs-card--result .cs-stat { gap: 2px; } .cs-card--result .cs-pct + .cs-num, .cs-arrow + .cs-num { margin-left: 4px; } }
/* case-study hero images: 16:9 */
.cs-cover { height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .cs-cover { aspect-ratio: 16 / 9; } }
/* right column: 840px max on desktop, 792px max on tablet */
.cs-row { grid-template-columns: var(--cs-labw) minmax(0, 840px); }
@media (max-width: 1279px) { .cs-row { grid-template-columns: var(--cs-labw) minmax(0, 792px); } }
@media (max-width: 767px) { .cs-row { grid-template-columns: minmax(0, 1fr); } }
/* right column hugs the right margin on desktop and tablet */
@media (min-width: 768px) { .cs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 840px); } .cs-col { grid-column: 2; } .cs-label { grid-column: 1; } }
@media (min-width: 768px) and (max-width: 1279px) { .cs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 792px); } }
@media (min-width: 768px) { .cs-row { grid-template-columns: minmax(var(--cs-labw), 1fr) minmax(0, 840px); } }
@media (min-width: 768px) and (max-width: 1279px) { .cs-row { grid-template-columns: minmax(var(--cs-labw), 1fr) minmax(0, 792px); } }
@media (min-width: 2000px) { .cs-row { grid-template-columns: minmax(var(--cs-labw), 1fr) minmax(0, 1166px); } }
/* video framed on the blue backdrop */
.cs-vid { display: flex; align-items: center; justify-content: center; aspect-ratio: 1686 / 1318; background: #230A79; overflow: hidden; }
.cs-vp { position: relative; width: 85.4%; line-height: 0; }
.cs-embed { position: relative; width: 100%; padding-top: var(--ar, 72.19%); border-radius: calc(2.2% + 4px) / calc(3% + 4px); overflow: hidden; background: #111; }
.cs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #111; }
@media (max-width: 767px) { .cs-col > .cs-vid, .cs-group > .cs-vid { margin-inline: calc(-1 * var(--px)); } }
.cs-q { position: absolute; top: 10px; right: 10px; z-index: 3; font: 500 13px/1 var(--cs-text-font); opacity: 0; transition: opacity .2s; }
.cs-vp:hover .cs-q, .cs-vp:focus-within .cs-q, .cs-q.open { opacity: 1; }
@media (hover: none) { .cs-q { opacity: 1; } }
.cs-q-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 15px; background: rgba(20, 20, 20, .72); color: #fff; font: inherit; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cs-q-menu { position: absolute; right: 0; top: 36px; margin: 0; padding: 4px; list-style: none; min-width: 150px; border-radius: 10px; background: rgba(20, 20, 20, .92); }
.cs-q-menu[hidden] { display: none; }
.cs-q-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: #fff; font: inherit; line-height: 1.2; text-align: left; cursor: pointer; }
.cs-q-menu button:hover, .cs-q-menu button:focus-visible { background: rgba(255, 255, 255, .14); }
.cs-q-menu button[aria-checked="true"]::after { content: " ✓"; }
@media (max-width: 799px) { .site-header.open .hdr-icons .theme .moon { order: 2; } }
.cs-fig > .cs-vid .cs-embed { border-radius: calc(2.2% + 7px) / calc(3% + 7px); }
.cs-cap--lg { font-size: 16px; }
/* case-study button: wider hover pill, text stays put */
.cs-btn { padding-inline: 24px; }
.cs-intro > .cs-btn { margin-right: -16px; }
.cs-intro > .cs-btn:only-child { margin-left: -24px; }
.cs-col > .cs-btn, .cs-group > .cs-btn { margin-left: -24px; }
@media (max-width: 767px) { .cs-btn { padding: 2px 24px; margin-left: -24px; margin-right: 0; } }
.cs-img--phone { width: min(100%, 620px); }
/* case-study slideshow (autoplaying, minimal arrows) */
.cs-ss { position: relative; aspect-ratio: var(--ar, 3 / 2); background: rgba(175, 175, 175, 0.1); border-radius: 8px; }
.cs-ss .s-slide img { width: 100%; height: 100%; object-fit: contain; }
.cs-ss .s-btn { width: 40px; height: 40px; padding: 0 0 2px; font-size: 24px; background: rgba(23, 23, 23, 0.4); color: #fff; opacity: .55; }
.cs-ss:hover .s-btn, .cs-ss .s-btn:focus-visible { opacity: 1; }
.cs-ss .s-prev { left: 12px; } .cs-ss .s-next { right: 12px; }
.cs-ss .s-count { right: 12px; bottom: 12px; background: rgba(23, 23, 23, 0.4); color: #fff; }
@media (max-width: 767px) { .cs-ss { border-radius: 0; } .cs-ss .s-btn { width: 34px; height: 34px; font-size: 20px; opacity: .8; } }
/* horizontal carousel that runs off the right edge of the page */
.cs-car { position: relative; margin-right: calc(-1 * var(--px)); }
.cs-car-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; padding-right: var(--px); scrollbar-width: none; }
.cs-car-track::-webkit-scrollbar { display: none; }
.cs-car-item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.cs-car-item img { display: block; width: auto; height: clamp(240px, 34vw, 480px); border-radius: 8px; }
.cs-car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; padding: 0 0 2px; border: 0; border-radius: 50%;
  background: rgba(23, 23, 23, 0.4); color: #fff; font: 400 24px/1 var(--font-ui); display: grid; place-items: center; cursor: pointer; opacity: .55; transition: opacity .2s, background .2s; }
.cs-car:hover .cs-car-btn, .cs-car-btn:focus-visible { opacity: 1; }
.cs-car-btn:hover { background: rgba(23, 23, 23, 0.75); }
.cs-car-btn[disabled] { opacity: 0; pointer-events: none; }
.cs-car-prev { left: 12px; } .cs-car-next { right: calc(var(--px) + 12px); }
@media (max-width: 767px) { .cs-car-btn { opacity: .8; } .cs-car-next { right: 12px; } }
@media (prefers-reduced-motion: reduce) { .cs-car-track { scroll-behavior: auto; } }
/* projects without a page yet: hover still previews, but nothing to click */
.card.soon, .more a.soon { cursor: default; }
/* a row with no left label: content spans the full content width */
.cs-row--full { grid-template-columns: minmax(0, 1fr) !important; }
.cs-row--full > .cs-col { grid-column: 1 !important; }
/* in-text links in case study copy and page text */
.cs p a, .cs li a, .cs .cs-rich a { color: var(--cs-lav); text-decoration: underline; text-underline-offset: 2px; }
.cs p a:hover, .cs li a:hover, .cs .cs-rich a:hover { text-decoration-thickness: 2px; }
.body-link { color: #BDC2FE; text-decoration: underline; text-underline-offset: 2px; }
:root[data-mode="light"] .body-link { color: #3300AB; }
/* sticky header: the bar follows the page down, with a backdrop that fades in once scrolled */
.site-header { --hdr-top: 30px; position: sticky; top: var(--hdr-top); z-index: 40; }
.site-header::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: calc(-1 * var(--hdr-top)); bottom: -16px; left: calc(-1 * var(--hx)); right: calc(-1 * var(--hx));
  background: var(--bg); opacity: 0; transition: opacity .25s ease;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header.stuck::before { opacity: 1; }
@media (max-width: 1511px) { .site-header { --hdr-top: 32px; } }
@media (max-width: 799px) { .site-header { --hdr-top: 16px; } .site-header.open::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .site-header::before { transition: none; } }
.site-header { transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease; }
.site-header.tucked { transform: translateY(calc(-100% - var(--hdr-top) - 20px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: opacity .2s ease; } .site-header.tucked { transform: none; } }
.cs-cover--video { background: #111; }
.cs-cover iframe { display: block; width: 100%; height: 100%; border: 0; }
/* click-to-play film cover: the still shows until the viewer presses play */
.cs-cover--video { position: relative; }
.cs-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; border: 0; background: rgba(0, 0, 0, 0.18); cursor: pointer; transition: background .2s; }
.cs-play:hover, .cs-play:focus-visible { background: rgba(0, 0, 0, 0.3); }
.cs-play-ico { display: block; width: 84px; height: 84px; border-radius: 50%; background: rgba(17, 17, 17, 0.72); position: relative; transition: transform .2s, background .2s; }
.cs-play-ico::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border: 15px solid transparent; border-left: 24px solid #fff; border-right: 0; }
.cs-play:hover .cs-play-ico { transform: scale(1.06); background: rgba(17, 17, 17, 0.88); }
@media (max-width: 767px) { .cs-play-ico { width: 56px; height: 56px; } .cs-play-ico::after { border-width: 10px; border-left-width: 16px; border-right-width: 0; } }
.cs-ss--fill .s-slide img { object-fit: cover; }
/* a small label pinned to the corner of a slideshow */
.cs-tag { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 11px; border-radius: 999px;
  background: rgba(23, 23, 23, 0.72); color: #fff; font: 500 13px/1 var(--cs-text-font); letter-spacing: .01em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cs-ss--light { background: rgba(245, 245, 245, 1); }
:root[data-mode="light"] .cs-ss--light { background: #f5f5f5; }
.cs-framed { position: relative; }
@media (max-width: 767px) {
  .cs-col > .cs-framed, .cs-group > .cs-framed { width: calc(100% + 2 * var(--px)); max-width: none; margin-inline: calc(-1 * var(--px)); }
  .cs-framed > .cs-img--tint { border-radius: 0; }
}
/* inline demo clips */
.cs-demo { border-radius: 8px; overflow: hidden; background: rgba(175, 175, 175, 0.1); }
.cs-demo video { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .cs-col > .cs-demo, .cs-group > .cs-demo { width: calc(100% + 2 * var(--px)); max-width: none; margin-inline: calc(-1 * var(--px)); border-radius: 0; } }
.cs-vid--proto { aspect-ratio: auto; display: block; background: none; }
.cs-vid--proto .cs-embed { border-radius: 8px; }
.work > li.wide { grid-column: 1 / -1; }
.work { container-type: inline-size; }
.work > li.wide .thumb { aspect-ratio: auto; height: calc((100cqw - 24px) / 2 * 380 / 624); }
@media (max-width: 799px) { .work > li.wide .thumb { height: auto; aspect-ratio: 624 / 380; } }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 1em; }
.cs-pre--one { grid-template-columns: 1fr; }
@media (min-width: 768px) { #pizza-screens { left: calc(var(--x) * var(--cw) / 100 - 40px); } }
@media (min-width: 768px) { #ronik-invite { left: calc(var(--x) * var(--cw) / 100 + 20px); top: calc((var(--y) - var(--shift-y)) * var(--cw) / 100 - 40px); } }

/* "Partially under NDA" tag: shows on hover over the Google Maps thumbnail and hero (Figma 365:15617) */
.nda-tag { position: absolute; top: 16px; left: 16px; z-index: 3; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 100px; background: #fee29a; color: #21097a; font: 700 12px/1.45 Inter, system-ui, sans-serif; white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.card:hover .nda-tag, .card:focus-visible .nda-tag, .cs-cover--nda:hover .nda-tag { opacity: 1; transform: none; }
.cs-cover--nda { position: relative; }

/* Previous/Next cards: same hover as the homepage thumbnails (dim image, lavender ring, cursor pill) */
.cs-pre-card { position: relative; }
.cs-pre-card img { transition: opacity .3s ease; }
.cs-pre-card:hover img, .cs-pre-card:focus-visible img { opacity: .2; outline: 1px solid rgba(250,223,156,.6); outline-offset: -1px; }
.cs-pre-card:hover .nda-tag, .cs-pre-card:focus-visible .nda-tag { opacity: 1; transform: none; }
@media (max-width: 767px) { .cs-pre-card .nda-tag { top: 8px; left: 8px; padding: 5px 10px; font-size: 10px; } }

/* Contact form: submit uses the purple text-button style from the case studies (no arrow) */
.contact-form button { display: inline-flex; align-items: center; height: 48px; padding: 8px 24px; margin-left: -24px; border: 0; border-radius: 58px; background: transparent; color: #BDC2FE; font: 600 14px/1.45 Inter, system-ui, sans-serif; letter-spacing: 1.12px; text-transform: uppercase; cursor: pointer; transform: none; transition: background-color .2s ease; }
.contact-form button:hover, .contact-form button:focus-visible { background: rgba(189, 194, 254, 0.12); transform: none; text-decoration: none; }
:root[data-mode="light"] .contact-form button { color: #3300AB; }
:root[data-mode="light"] .contact-form button:hover, :root[data-mode="light"] .contact-form button:focus-visible { background: rgba(51, 0, 171, 0.12); }

/* Contact: asterisk for required fields, inline "Required" errors, tighter title spacing, lighter lede */
.contact-form .req { color: inherit; font-weight: 400; margin-left: 2px; }
.contact-form .err { display: none; font-style: normal; font-size: 13px; line-height: 1.3; color: #FF8A8A; }
.contact-form label.has-err .err { display: block; }
.contact-form label.has-err input, .contact-form label.has-err textarea { border-color: #FF8A8A; box-shadow: inset 0 0 0 1px #FF8A8A; }
:root[data-mode="light"] .contact-form .err { color: #C4262E; }
:root[data-mode="light"] .contact-form label.has-err input, :root[data-mode="light"] .contact-form label.has-err textarea { border-color: #C4262E; box-shadow: inset 0 0 0 1px #C4262E; }
.contact-page .lede { margin-top: 28px; color: #BABABA; }
:root[data-mode="light"] .contact-page .lede { color: inherit; }
@media (max-width: 799px) { .contact-page .lede { margin-top: 19px; } }

/* Contact page, light mode: brown text like the other pages, dark lavender field outlines (AA contrast) */
:root[data-mode="light"] .contact-page h1,
:root[data-mode="light"] .contact-page .lede,
:root[data-mode="light"] .contact-form label,
:root[data-mode="light"] .contact-form small { color: #3A1900; }
:root[data-mode="light"] .contact-form input, :root[data-mode="light"] .contact-form textarea { color: #3A1900; border: 1px solid #3300AB; background: rgba(255, 255, 255, 0.35); }
:root[data-mode="light"] .contact-form input:focus, :root[data-mode="light"] .contact-form textarea:focus { outline: 2px solid #3300AB; outline-offset: 2px; border-color: #3300AB; }
:root[data-mode="light"] .contact-form .err { color: #9B1C23; }
:root[data-mode="light"] .contact-form label.has-err input, :root[data-mode="light"] .contact-form label.has-err textarea { border-color: #9B1C23; box-shadow: inset 0 0 0 1px #9B1C23; }

/* About (desktop/tablet): photo up 40px, text column 80px wider */
@media (min-width: 768px) {
  #about-photo { top: calc((var(--y) - var(--shift-y)) * var(--cw) / 100 - 40px); }
  .about-copy { width: calc(var(--w) * var(--cw) / 100 + 80px); }
}

/* ───────── Footer 02 (Figma: Desktop 1512 / Tablet 800 / Mobile 375) ───────── */
.site-footer { --sf-ink: #fff; --sf-grey: #bababa; }
:root[data-mode="light"] .site-footer { --sf-ink: #171717; --sf-grey: #3A1900; }
html .site-footer.site-footer { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 40px var(--px) 56px; border-top: 1px solid rgba(0, 0, 0, 0.15); font-family: "Instrument Sans", "Alan Sans", "Inter", system-ui, sans-serif; color: var(--sf-ink); }
.sf-line { height: 1px; width: 100%; background: var(--sf-grey); opacity: 0.24; }
.sf-body { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 137px; }
.sf-say { margin: 0; font: 400 52px/1.2 "Instrument Sans", "Alan Sans", "Inter", system-ui, sans-serif; letter-spacing: -1.56px; color: var(--sf-ink); white-space: nowrap; }
.sf-links { display: flex; align-items: flex-start; gap: 44px; }
.sf-links a { display: inline-flex; align-items: baseline; gap: 4px; font: 400 18px/1.2 "Instrument Sans", "Alan Sans", "Inter", system-ui, sans-serif; color: var(--sf-grey); text-decoration: none; white-space: nowrap; transition: color .2s; }
.sf-links a:hover { color: var(--sf-ink); }
.sf-arr { width: 10px; height: 10px; flex: none; }
.sf-m { display: none; }
@media (max-width: 1279px) {
  html .site-footer.site-footer { padding: 32px var(--px) 40px; }
  .sf-body { flex-direction: column; align-items: stretch; gap: 32px; margin-top: 116px; }
  .sf-say { font-size: 44px; letter-spacing: -1.32px; white-space: normal; }
  .sf-links { justify-content: space-between; gap: 0; }
}
@media (max-width: 767px) {
  html .site-footer.site-footer { padding: 32px var(--px) 40px; }
  .sf-body { gap: 24px; margin-top: 150px; }
  .sf-say { font-size: 32px; letter-spacing: -0.96px; }
  .sf-links a { font-size: 14px; }
  .sf-arr { width: 9px; height: 9px; }
  .sf-d { display: none; } .sf-m { display: inline; }
}
/* Footer tweaks: no divider line; headline in Plus Jakarta Sans, dark brown */
.sf-line { display: none; }
html .site-footer.site-footer { border-top: 0; }
.sf-say { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; color: #fff; }
:root[data-mode="light"] .sf-say { color: #3A1900; }

/* About photo: draggable 3D card cutout */
#about-photo.i { overflow: visible; perspective: 1400px; }
.c3 { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; -webkit-tap-highlight-color: transparent; }
.c3.drag { cursor: grabbing; }
.c3-rot { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.c3-rot > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none; }
.c3-edge, .c3-back { background: #d79f8c; -webkit-mask: url(img/about-0.webp) center / contain no-repeat; mask: url(img/about-0.webp) center / contain no-repeat; backface-visibility: visible; -webkit-backface-visibility: visible; }
.c3-edge:nth-child(odd) { background: #c98f7b; }
.c3-back { background: #dba693 url(img/about-back.webp) 50% 35% / cover no-repeat; transform: rotateY(180deg) translateZ(6px); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.c3-front { object-fit: contain; transform: translateZ(6px); }
.c3:focus-visible { outline: 2px solid var(--lav, #BDC2FE); outline-offset: 8px; border-radius: 24px; }
.nav, .nav a, .site-header .nav a { font-family: "Instrument Sans", "Alan Sans", "Inter", system-ui, sans-serif; font-weight: 400; } /* same type as the footer links */

.logo img.logo-l { display: none; }
:root[data-mode="light"] .logo img.logo-l { display: block; }
@media (max-width: 767px) { .logo img { width: 41px; height: 41px; } }
/* Hero text hover blur removed */
.intro-blur { display: none !important; }
/* Light mode: body copy renders at a true regular weight (antialiased smoothing made dark-on-light text look thin) */
:root[data-mode="light"] body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
:root[data-mode="light"] .cs-lede { color: #3A1900; }
:root[data-mode="light"] .cs-pre-card .cs-next-t { color: #3A1900; }
/* About: body copy moved up so its first line lines up with the top of the photo */
@media (min-width: 768px) { .l.about-copy { margin-top: calc(0.683vw - 43.4px); } }
/* Footer Email link: popover with close (X) and Copy button */
.sf-links { position: relative; }
.sf-pop { position: absolute; right: 0; bottom: calc(100% + 14px); z-index: 20; width: max-content; max-width: calc(100vw - 2 * var(--px)); padding: 16px 44px 16px 16px; border-radius: 12px; background: #fff; color: #181818; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font: 400 15px/1.4 "Plus Jakarta Sans", "Inter", system-ui, sans-serif; letter-spacing: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.sf-pop.open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.sf-pop::after { content: ""; position: absolute; right: 22px; top: 100%; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.sf-pop p { margin: 0 0 12px; white-space: nowrap; }
.sf-links .sf-pop p a { display: inline; font: inherit; color: inherit; white-space: normal; text-decoration: none; }
.sf-pop-copy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #181818; color: #fff; font: 500 13px/1 "Plus Jakarta Sans", "Inter", system-ui, sans-serif; cursor: pointer; transition: opacity .2s; }
.sf-pop-copy:hover { opacity: .85; }
.sf-pop-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.sf-pop-x:hover { background: rgba(0, 0, 0, 0.08); }
.sf-pop-x svg { width: 12px; height: 12px; }
.sf-pop button:focus-visible { outline: 2px solid #5D70E8; outline-offset: 2px; }
:root[data-mode="light"] .sf-pop { background: #3A1900; color: #fff; }
:root[data-mode="light"] .sf-pop::after { border-top-color: #3A1900; }
:root[data-mode="light"] .sf-pop-copy { background: #fff; color: #3A1900; }
:root[data-mode="light"] .sf-pop-x:hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 767px) { .sf-pop { font-size: 14px; } .sf-pop p { white-space: normal; } }
/* Play: Pizza Lab image pulled up (desktop 100px, tablet 80px) */
@media (min-width: 768px) { #pizza-brand { margin-top: -80px; } }
@media (min-width: 1280px) { #pizza-brand { margin-top: -100px; } }
/* Contact: intro line removed, form pulled up 40px */
.contact-page .contact-form { margin-top: calc(6vw + 12px); }
@media (max-width: 767px) { .contact-page .contact-form { margin-top: 12.8vw; } }
/* About: Experience + Education lists, styled like the homepage "More work" list.
   Company / title / duration sit in one row while there's room; below 800px the company becomes an eyebrow. */
.xp-wrap { display: flow-root; padding: 0 var(--px); }
.xp-row { display: grid; grid-template-columns: 323px 1fr auto; align-items: center; column-gap: 24px; min-height: 91px; padding: 12px 0; box-sizing: border-box; }
.xp-row .who, .xp-row .what, .xp-row .n { font-size: 16px; line-height: 24px; letter-spacing: 0.01em; transform: none; }
.xp-row .who { text-transform: none; font-weight: 500; }
.xp-row .n { text-align: right; white-space: nowrap; }
.xp + .xp { margin-top: 120px; }
@media (max-width: 1511px) { .xp-row { grid-template-columns: 34% 1fr auto; min-height: 82px; } .xp-row .who, .xp-row .what, .xp-row .n { grid-area: auto; } .xp + .xp { margin-top: 96px; } }
@media (max-width: 799px) {
  .xp-row { grid-template-columns: 1fr auto; grid-template-areas: "who n" "what n"; row-gap: 4px; min-height: 83px; align-content: center; }
  .xp-row .who { grid-area: who; font-size: 12.5px; line-height: 16px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; }
  .xp-row .what { grid-area: what; }
  .xp-row .n { grid-area: n; font-size: 14px; }
  .xp + .xp { margin-top: 72px; }
}
/* "More work" + About Experience/Education dividers at 20% opacity in both modes */
.more { --row-line: rgba(255, 255, 255, 0.2); }
:root[data-mode="light"] .more { --row-line: rgba(58, 25, 0, 0.2); }
.more ul { border-bottom-color: var(--row-line); }
.more li { border-top-color: var(--row-line); }
/* About: Experience / Education headings in white (dark brown in light mode, where white wouldn't show) */
.xp h2 { color: #fff; }
:root[data-mode="light"] .xp h2 { color: #3A1900; }
/* Light mode only: footer links and body-copy text links turn #FFD99D on hover (hero text excluded) */
:root[data-mode="light"] .sf-links a:hover,
:root[data-mode="light"] .body-link:hover,
:root[data-mode="light"] .stage .t a:hover,
:root[data-mode="light"] .cs p a:hover,
:root[data-mode="light"] .cs li a:hover,
:root[data-mode="light"] .cs .cs-rich a:hover { color: #FFD99D !important; }
/* Light mode: the strip's song / book links hover to #FFD99D, matching the other text links */
:root[data-mode="light"] .strip .listen:hover .song,
:root[data-mode="light"] .strip .play-btn:hover,
:root[data-mode="light"] .strip a:hover,
:root[data-mode="light"] .strip a:focus-visible { color: #FFD99D !important; }
/* Light mode: quote text in the body-copy brown (solid #3A1900 at this weight read as black) */
:root[data-mode="light"] .cs-quote p { color: var(--cs-soft); }
/* About: Experience / Education headings use the footer "Let's work together" type */
.more.xp h2 { font: 400 52px/1.2 "Plus Jakarta Sans", "Inter", system-ui, sans-serif; letter-spacing: -1.56px !important; }
@media (max-width: 1279px) { .more.xp h2 { font-size: 44px; letter-spacing: -1.32px !important; } }
@media (max-width: 767px) { .more.xp h2 { font-size: 32px; letter-spacing: -0.96px !important; } }
/* About: gap from the bio to the "Experience" heading */
.xp-wrap > .xp:first-child { margin-top: 240px; }
@media (max-width: 1279px) { .xp-wrap > .xp:first-child { margin-top: 160px; } }
@media (max-width: 767px) { .xp-wrap > .xp:first-child { margin-top: 120px; } }
/* About Experience/Education rows: company/school and dates in white (dark brown in light mode) */
.xp-row .who { color: #fff; }
:root[data-mode="light"] .xp-row .who { color: #3A1900; }
.xp-row .n { color: #fff; }
:root[data-mode="light"] .xp-row .n { color: #3A1900; }
/* About bio: 16px on desktop, 14px on mobile (tablet keeps its original sizing) */
@media (min-width: 1280px) { .l.about-copy, .l.about-copy p { font-size: 16px !important; line-height: 24px !important; } }
@media (max-width: 767px) { .l.about-copy, .l.about-copy p { font-size: 14px !important; line-height: 21px !important; } }
/* Play: Dough & Co preview tile 20px taller */
.l.i#pizza-brand { height: calc(var(--hh) * var(--cw) / 100 + 20px); }
@media (max-width: 767px) { .l.i#pizza-brand { height: calc(var(--mhh) * var(--cw) / 100 + 20px); } }
/* Play: top illustration + Takeshape post (with caption) shifted 80px down on desktop */
@media (min-width: 1280px) { #play-frame, #play-takeshape, #play-takeshape-cap { margin-top: 80px; } }
/* Play: everything below the first two images pulled up 350px on desktop (pizza 530px), measured at 1512px and scaled with width (page shortened to match) */
@media (min-width: 1280px) {
  .stage--play > .l:not(#play-frame):not(#play-takeshape):not(#play-takeshape-cap) { margin-top: calc(var(--cw) * -350 / 1272); }
  .stage--play > #pizza-brand { margin-top: calc(var(--cw) * -530 / 1272) !important; }
  .stage--play { margin-bottom: calc(var(--cw) * -350 / 1272); }
}
/* Play: embedded Vimeo players (autoplay, muted, loop) filling their square tiles */
.l.v.vm { display: block; padding: 0; overflow: hidden; border-radius: 0; background: #000; }
.l.v.vm iframe { display: block; width: 100%; height: 100%; border: 0; }
/* About: hover / focus / tap tooltip on an Experience company name */
.xp-tip { position: relative; display: inline-block; cursor: default; outline: none; text-decoration: none; }
.xp-tip::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 10; padding: 8px 12px; border-radius: 8px; background: #fff; color: #181818; font: 400 14px/1.3 "Plus Jakarta Sans", "Inter", system-ui, sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .18s, transform .18s; }
.xp-tip::before { content: ""; position: absolute; left: 14px; bottom: calc(100% + 4px); width: 0; height: 0; line-height: 0; font-size: 0; z-index: 11; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; }
.xp-tip:hover::after, .xp-tip:hover::before, .xp-tip:focus::after, .xp-tip:focus::before { opacity: 1; transform: none; }
:root[data-mode="light"] .xp-tip::after { background: #3A1900; color: #fff; }
:root[data-mode="light"] .xp-tip::before { border-top-color: #3A1900; }
/* About: contract agency on its own line under the title, in a secondary color */
.xp-sub { display: block; color: rgba(255, 255, 255, 0.6); }
:root[data-mode="light"] .xp-sub { color: rgba(58, 25, 0, 0.6); }
/* Music shell: other pages load in a full-screen frame so the SoundCloud player keeps playing */
.cz-view { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 65; background: var(--bg, #181818); }
html.cz-shell, html.cz-shell body { overflow: hidden; }
html.cz-shell .cursor { display: none !important; }
html.cz-shell .sc, html.cz-shell .sc * { cursor: auto !important; }
html.cz-shell .sc button, html.cz-shell .sc a { cursor: pointer !important; }
