/* April Petrie portfolio, v2 layout.
   Palette sampled from April's own handoff deck. Light and dark share one set of tokens. */

:root {
  --ink:        #1D2228;
  --panel:      #292D36;
  --paper:      #FAFAF8;
  --brand:      #4068E2;

  --bg:         #FFFFFF;
  --tile:       #F3F3F1;
  --tile-2:     #EAEAE7;
  --text:       var(--ink);
  --text-dim:   #555B64;
  --text-faint: #8A9099;
  --rule:       #E6E6E2;
  --link:       var(--brand);
  --chip:       rgba(255,255,255,.14);

  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --mono:    ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3vw, 28px);
  --read:   840px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #15181D;
    --tile:       var(--ink);
    --tile-2:     var(--panel);
    --text:       #F2F2EF;
    --text-dim:   #B4B9C1;
    --text-faint: #7E848D;
    --rule:       #2C3038;
    --link:       #8FA8F5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:         #15181D;
  --tile:       var(--ink);
  --tile-2:     var(--panel);
  --text:       #F2F2EF;
  --text-dim:   #B4B9C1;
  --text-faint: #7E848D;
  --rule:       #2C3038;
  --link:       #8FA8F5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap   { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.narrow { max-width: var(--read); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); max-width: 1440px; margin: 0 auto;
}
.nav .name { color: var(--text); font-size: 15px; font-weight: 500; }
.nav .links { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.nav .links a { color: var(--text-dim); }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.theme-btn {
  background: none; border: 1px solid var(--rule); color: var(--text-dim);
  border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center;
  cursor: pointer; padding: 0;
}
.theme-btn svg { width: 14px; height: 14px; }
.theme-btn:hover { color: var(--text); }

/* Big statements */
.display {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.035em;
  line-height: 1.04; margin: 0; color: var(--text);
  font-size: clamp(40px, 6.4vw, 84px);
}
.hero { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(28px, 4vw, 44px); max-width: 1440px; margin: 0 auto; }
.hero .display { max-width: 16ch; }
.status {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5FA88A; }

.statement {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; margin: 0 0 20px; color: var(--text);
}
.section-title {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(24px, 2.4vw, 30px); margin: 0;
}

/* Featured cards, large horizontal rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(66vw, 900px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px; scrollbar-width: none; scroll-padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 720px) { .rail { grid-auto-columns: 86vw; } }

.feature {
  position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  background: var(--tile-2); color: #fff;
}
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover img { transform: scale(1.02); }
.feature:hover { text-decoration: none; }
.feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62) 100%);
}
.feature .cap { position: absolute; left: 22px; bottom: 20px; right: 22px; z-index: 1; }
.feature .cap h3 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.feature .cap p { margin: 2px 0 12px; font-size: 13px; color: rgba(255,255,255,.82); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 4px 9px; color: #fff;
}

/* Placeholder art until real images are cleared for public use */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 60%),
    linear-gradient(135deg, var(--panel), var(--ink));
  color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.tile .ph {
  background: var(--tile); color: var(--text-faint);
}

/* Intro block, portrait beside statement */
.intro {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px);
  max-width: 900px; margin: clamp(72px, 10vw, 128px) auto; padding: 0 var(--gutter);
}
.intro .portrait { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--tile-2); }
.intro .portrait img { width: 100%; height: 100%; object-fit: cover; }
.intro p { color: var(--text-dim); margin: 0 0 16px; font-size: 15px; }
.intro p.statement { color: var(--text); font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 22px; }
.more { font-size: 13px; color: var(--text-dim); }
.more::after { content: " \203A"; }
@media (max-width: 680px) { .intro { grid-template-columns: 1fr; } .intro .portrait { max-width: 220px; } }

/* Numbered approach list */
.approach { max-width: 900px; margin: 0 auto clamp(72px, 10vw, 128px); padding: 0 var(--gutter); }
.approach ol { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: a; }
.approach li {
  counter-increment: a; display: grid; grid-template-columns: 26px 1fr 1.6fr; gap: 12px 20px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.approach li::before { content: counter(a); color: var(--text-faint); font-size: 14px; }
.approach h3 { margin: 0; font-size: 15px; font-weight: 500; }
.approach p { margin: 0; color: var(--text-dim); font-size: 14px; }
@media (max-width: 680px) { .approach li { grid-template-columns: 26px 1fr; } .approach li p { grid-column: 2; } }

/* Section head with a see all link */
.row-head {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 900px; margin: 0 auto 22px; padding: 0 var(--gutter);
}

/* Small carousel of all work */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px;
  overflow-x: auto; padding: 0 var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding-inline: var(--gutter);
}
.strip::-webkit-scrollbar { display: none; }
.strip a { scroll-snap-align: start; color: var(--text); }
.strip .thumb { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--tile); }
.strip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip h4 { margin: 10px 0 0; font-size: 13px; font-weight: 500; }
.strip p { margin: 0; font-size: 12px; color: var(--text-faint); }

/* Work grid */
.page-title { padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(24px, 3vw, 36px); max-width: 1440px; margin: 0 auto; }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; background: var(--tile); border-radius: 14px;
  overflow: hidden; color: var(--text); transition: background .2s ease;
}
.tile:hover { background: var(--tile-2); text-decoration: none; }
.tile .art { aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile .meta { padding: 0 20px 20px; }
.tile h3 { margin: 0; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tile p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-faint); }
.lock { width: 11px; height: 11px; color: var(--text-faint); flex: none; }

/* Access note under the grid */
.access {
  max-width: 900px; margin: 56px auto 0; padding: 0 var(--gutter);
  color: var(--text-dim); font-size: 14px;
}
.btn {
  display: inline-block; border: 1px solid var(--rule); color: var(--text);
  border-radius: 999px; padding: 9px 18px; font-size: 13px; background: none; cursor: pointer;
  font-family: var(--body);
}
.btn:hover { background: var(--tile); text-decoration: none; }

/* Contact */
.contact { max-width: 560px; margin: clamp(88px, 12vw, 150px) auto 0; padding: 0 var(--gutter); text-align: center; }
.contact .display { font-size: clamp(32px, 4vw, 48px); margin-bottom: 36px; }
.mail {
  text-align: left; background: var(--tile); border-radius: 18px; padding: 10px 20px 20px;
}
.mail .row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--rule); padding: 10px 0; font-size: 13px;
}
.mail label { color: var(--text-faint); }
.mail input, .mail textarea {
  width: 100%; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 13px; padding: 2px 0; outline: none;
}
.mail textarea { min-height: 120px; resize: vertical; }
.mail .row.msg { grid-template-columns: 1fr; border-bottom: 0; }
.mail .copy { background: none; border: 0; color: var(--text-faint); font-size: 12px; cursor: pointer; font-family: var(--body); }
.mail .send { margin-top: 12px; }
.hp { position: absolute; left: -9999px; }

/* About page */
.about-head { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: end; }
@media (max-width: 760px) { .about-head { grid-template-columns: 1fr; } }
.about-head .portrait { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--tile-2); }
.cv { margin-top: 72px; }
.cv-section { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--rule); }
@media (max-width: 680px) { .cv-section { grid-template-columns: 1fr; } }
.cv-section > h2 { margin: 0; font-size: 14px; font-weight: 500; color: var(--text-faint); }
.job { margin: 0 0 28px; }
.job:last-child { margin-bottom: 0; }
.job h3 { margin: 0; font-size: 16px; font-weight: 500; }
.job .when { font-size: 13px; color: var(--text-faint); }
.job p { margin: 6px 0 0; color: var(--text-dim); font-size: 14.5px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 4px 0; color: var(--text-dim); font-size: 14.5px; }
.plain li strong { color: var(--text); font-weight: 500; }
.quote { font-family: var(--display); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; letter-spacing: -0.01em; margin: 0; }
.quote cite { display: block; font-family: var(--body); font-style: normal; font-size: 13px; color: var(--text-faint); margin-top: 14px; letter-spacing: 0; }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .notes { grid-template-columns: 1fr; } }
.note { background: var(--tile); border-radius: 12px; padding: 18px 20px; }
.note .k { font-size: 12px; color: var(--text-faint); margin: 0 0 4px; }
.note p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
.note strong { color: var(--text); font-weight: 500; }

/* Photos page */
.photos { columns: 3 280px; column-gap: 16px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.photos figure { break-inside: avoid; margin: 0 0 16px; }
.photos .shot { border-radius: 12px; overflow: hidden; background: var(--tile); }
.photos figcaption { font-size: 12px; color: var(--text-faint); margin-top: 8px; }

/* Footer */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 36px var(--gutter); max-width: 1440px; margin: clamp(72px, 10vw, 128px) auto 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}
.foot a { color: var(--text-faint); }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot .social { display: flex; gap: 18px; }

/* Small screens */
.nav .name { white-space: nowrap; }
@media (max-width: 520px) {
  .nav .links { gap: 14px; font-size: 12.5px; }
  .theme-btn { width: 26px; height: 26px; }
}
.feature .ph { color: transparent; }
.hero .sub { max-width: 46ch; margin: 26px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--text-dim); }
.about-head .portrait img { width:100%; height:100%; object-fit:cover; }

/* About page, laid out like the home intro */
.about-intro { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 56px); }
.about-intro .portrait { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--tile-2); }
.about-intro .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-intro p { color: var(--text-dim); margin: 0 0 16px; font-size: 15px; }
.about-intro p strong { color: var(--text); font-weight: 500; }
.about-intro p.statement { color: var(--text); font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 22px; }
.about-intro .status { margin-top: 8px; }
@media (max-width: 680px) { .about-intro { grid-template-columns: 1fr; } .about-intro .portrait { max-width: 220px; } }
.cv-section > h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.2vw, 28px); color: var(--text);
}
.cv-section { border-top: 0; padding: 40px 0; }

/* Current page in the menu: stays in place and is clearly marked */
.nav .links a { position: relative; }
.nav .links a[aria-current="page"] { color: var(--text); font-weight: 500; }
.nav .links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--brand); border-radius: 2px;
}
.feature video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .feature video { display: none; } }
.tile .meta { padding-top: 14px; }
.feature { background: var(--tile); } .tile .art img, .strip .thumb img { object-fit: contain; }

/* Other work list on the Work page */
.other { max-width: 1440px; margin: 72px auto 0; padding: 0 var(--gutter); }
.other-lede { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; }
.other-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--rule); color: var(--text);
}
.other-row:last-of-type { border-bottom: 1px solid var(--rule); }
.other-row:hover { text-decoration: none; }
.other-row:hover h3 { color: var(--link); }
.othumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--tile); }
.othumb img { width: 100%; height: 100%; object-fit: cover; }
.other-row h3 { margin: 0; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.other-row p { margin: 2px 0 0; font-size: 13px; color: var(--text-faint); }
.otag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 600px) { .other-row { grid-template-columns: 72px 1fr; } .othumb { width: 72px; } .otag { display: none; } }

/* Other work pages */
.opage { padding-top: clamp(20px, 4vw, 40px); }
.opage .back { margin: 0 0 18px; }
.opage .display { font-size: clamp(38px, 5vw, 64px); }
.olede { font-family: var(--display); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: var(--text-dim); margin: 18px 0 32px; max-width: 40ch; }
.ofacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.ofacts .k { margin: 0 0 4px; font-size: 12px; color: var(--text-faint); }
.ofacts p { margin: 0; font-size: 14px; }
.opage h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(22px, 2.2vw, 28px); margin: 56px 0 14px; }
.opage > p { color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.ofig { margin: 28px 0; }
.ofig img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); }
.ofig figcaption { font-size: 13px; color: var(--text-faint); margin-top: 10px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.ogrid .ofig { margin: 12px 0; }
.ocallout { background: var(--tile); border-radius: 12px; padding: 24px 26px; margin: 48px 0 20px; }
.ocallout p { margin: 0; font-family: var(--display); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; }

/* ===== Case study template (shared by every case study) ===== */
.cs .narrow { max-width: 860px; }
.cs-hero { padding-top: clamp(20px, 4vw, 40px); }
.cs-hero .back { margin: 0 0 18px; }
.cs-hero .display { font-size: clamp(40px, 5.6vw, 72px); max-width: 16ch; }
.cs-sub { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--text-dim); margin: 18px 0 0; max-width: 36ch; }
.cs-label { font-size: 13px; font-weight: 500; color: var(--text-faint); margin: 0 0 10px; letter-spacing: 0; font-family: var(--body); }
.cs-overview { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 56px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--rule); }
.cs-overview p { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin: 0 0 12px; }
.cs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-content: start; }
.cs-meta .k { margin: 0 0 3px; font-size: 12px; color: var(--text-faint); }
.cs-meta p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.45; }
@media (max-width: 720px) { .cs-overview { grid-template-columns: 1fr; } }

.cs-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; margin-bottom: 24px; }
.cs-steps a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--tile); border-radius: 10px; color: var(--text); font-size: 14px; }
.cs-steps a:hover { background: var(--tile-2); text-decoration: none; }
.cs-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 12px; flex: none; }

.cs-section { padding-top: 56px; scroll-margin-top: 24px; }
.cs-section + .cs-section { padding-top: 40px; }
.cs-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
:root[data-theme="dark"] .cs-eyebrow { color: #8FA8F5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-eyebrow { color: #8FA8F5; } }
.cs-section h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0 0 18px; max-width: 24ch; }
.cs-section h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(20px, 2vw, 24px); margin: 0 0 12px; }
.cs-section p { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.cs-section p strong { color: var(--text); font-weight: 500; }
.cs-list { margin: 8px 0 18px; padding-left: 22px; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.cs-list li { padding-left: 4px; margin: 2px 0; }
.cs-list li::marker { color: var(--brand); font-weight: 600; }

.cs-fig { margin: 28px 0; }
.cs-fig img { width: 100%; height: auto; border-radius: 12px; }
.cs-fig figcaption { font-size: 13px; color: var(--text-faint); margin-top: 10px; }
.cs-wide { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 640px) { .cs-two { grid-template-columns: 1fr; } }

.swot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
@media (max-width: 760px) { .swot { grid-template-columns: 1fr 1fr; } }
.swot > div { background: var(--tile); border-radius: 12px; padding: 18px 18px 14px; }
.swot ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--text); }
.swot li { padding: 4px 0; border-top: 1px solid var(--rule); }
.swot li:first-child { border-top: 0; }

.cs-callout { background: var(--tile); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; padding: 20px 24px 8px; margin: 24px 0; }
.cs-callout .cs-list { margin-top: 0; color: var(--text); }

.findings { display: grid; gap: 16px; margin-top: 24px; }
.finding { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; background: var(--tile); border-radius: 14px; padding: 20px; }
.finding h4 { font-size: 17px; font-weight: 500; margin: 0 0 10px; }
.finding p { font-size: 15px; }
.cs-phone { margin: 0; }
.cs-phone img { width: 100%; border-radius: 10px; }
@media (max-width: 560px) { .finding { grid-template-columns: 1fr; } .cs-phone { max-width: 140px; } }

.cs-more { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule); }
.cs-more > div { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-more a { border: 1px solid var(--rule); border-radius: 999px; padding: 9px 16px; font-size: 14px; color: var(--text); }
.cs-more a:hover { background: var(--tile); text-decoration: none; }

/* ===== October refresh ===== */

/* Top bar: sticky, full width, hides on scroll down and returns on scroll up */
body { overflow-x: clip; }
.topbar {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  transition: transform .32s ease, box-shadow .2s ease;
}
.topbar.is-hidden { transform: translateY(-100%); }
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
@media (prefers-reduced-motion: reduce) { .topbar { transition: none; } }

/* Carousels: grab cursor and click-and-drag */
.rail, .strip { cursor: grab; user-select: none; -webkit-user-select: none; }
.rail.is-dragging, .strip.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.is-dragging a, .strip.is-dragging a { pointer-events: none; }
.rail img, .strip img { -webkit-user-drag: none; }

/* Featured rail: two and a half cards on a wide screen, so the half card says "there is more" */
.rail { grid-auto-columns: calc((100% + var(--gutter) - 32px) / 2.5); }
@media (max-width: 1000px) { .rail { grid-auto-columns: calc((100% + var(--gutter) - 16px) / 1.5); } }
@media (max-width: 720px)  { .rail { grid-auto-columns: 86%; } }
.feature .cap h3 { font-size: 18px; }

/* Shared page column: everything lines up with the logo and the hero */
.page { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* Contact: left aligned on the same grid, with a wider form */
.contact {
  max-width: 1440px; margin: clamp(96px, 12vw, 160px) auto 0; padding: clamp(40px, 5vw, 64px) var(--gutter) 0;
  text-align: left; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--rule);
}
.contact .display { font-size: clamp(34px, 4.2vw, 56px); margin: 0 0 22px; max-width: 12ch; }
.contact .contact-copy p { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin: 0 0 14px; max-width: 40ch; }
.mail { padding: 14px 28px 28px; border-radius: 20px; }
.mail .row { grid-template-columns: 84px 1fr auto; padding: 14px 0; font-size: 15px; }
.mail input, .mail textarea { font-size: 15px; }
.mail textarea { min-height: 180px; }
.mail .send { margin-top: 16px; padding: 11px 24px; font-size: 14px; background: var(--text); color: var(--bg); border-color: var(--text); }
.mail .send:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Approach: large numbered rows */
.approach-lg { max-width: 1440px; margin: clamp(88px, 11vw, 140px) auto 0; padding: 0 var(--gutter); }
.approach-lg .lede { color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 52ch; margin: 18px 0 0; }
.approach-lg ol { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: ap; border-bottom: 1px solid var(--rule); }
.approach-lg li {
  counter-increment: ap; display: grid; grid-template-columns: minmax(64px, 1fr) minmax(0, 5fr) minmax(0, 6fr);
  gap: 12px clamp(24px, 4vw, 64px); align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0; border-top: 1px solid var(--rule);
}
.approach-lg li::before {
  content: counter(ap, decimal-leading-zero); font-family: var(--display); font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; color: var(--text-faint); line-height: 1;
}
.approach-lg h3 {
  margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.025em;
  font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08;
}
.approach-lg p { margin: 0; color: var(--text-dim); font-size: 16px; line-height: 1.7; max-width: 52ch; }
@media (max-width: 760px) {
  .approach-lg li { grid-template-columns: 1fr; }
}

/* Work page sub line */
.page-title .lede { max-width: 52ch; color: var(--text-dim); margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }

/* Design page */
.d-section { max-width: 1440px; margin: clamp(72px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }
.d-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 32px; }
.d-head h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.025em; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; margin: 0; }
.d-head p { margin: 0; color: var(--text-dim); font-size: 16px; line-height: 1.7; max-width: 56ch; }
.d-head .eyebrow { grid-column: 1 / -1; font-size: 12px; color: var(--text-faint); margin: 0 0 -4px; }
@media (max-width: 820px) { .d-head { grid-template-columns: 1fr; } }
.d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.d-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .d-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .d-grid, .d-grid.two { grid-template-columns: 1fr; } }
.d-piece { margin: 0; }
.d-piece .shot { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--tile); display: grid; place-items: center; color: var(--text-faint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.d-piece .shot img { width: 100%; height: 100%; object-fit: cover; }
.d-piece figcaption { padding: 14px 2px 0; }
.d-piece .k { margin: 0 0 2px; font-size: 12px; color: var(--text-faint); }
.d-piece h3 { margin: 0; font-size: 16px; font-weight: 500; }
.d-piece p.d { margin: 4px 0 0; font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.d-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--tile); border-radius: 16px; overflow: hidden; color: var(--text); }
.d-link:hover { background: var(--tile-2); text-decoration: none; }
.d-link img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.d-link div { padding: clamp(24px, 3vw, 40px); align-self: center; }
.d-link h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 10px; }
.d-link p { margin: 0 0 16px; color: var(--text-dim); font-size: 15px; line-height: 1.65; }
@media (max-width: 720px) { .d-link { grid-template-columns: 1fr; } }

/* Access gate, styled to match the site */
.gate { max-width: 560px; padding-top: clamp(40px, 7vw, 88px); }
.gate .display { font-size: clamp(38px, 5vw, 60px); }
.gate .gate-note { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin: 20px 0 28px; }
.gate-form { display: flex; gap: 10px; }
.gate-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--text); background: var(--tile); border: 1px solid var(--rule); border-radius: 999px; padding: 11px 18px; }
.gate-form input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.gate-form button { font: inherit; font-size: 14px; border-radius: 999px; padding: 11px 22px; border: 0; background: var(--text); color: var(--bg); cursor: pointer; }
.gate-form button:hover { background: var(--brand); color: #fff; }
.gate-error { color: #D2563F; font-size: 14px; margin: 14px 0 0; }
.gate-back { color: var(--text-faint); font-size: 14px; margin-top: 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One editorial grid for every section: a 5 / 7 split on the same 1440 column as the logo and hero */
.intro, .row-head, .access, .other { max-width: 1440px; }
.intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.intro .portrait { max-width: 300px; }
.intro p { font-size: 16px; line-height: 1.7; max-width: 60ch; }
.intro p.statement { font-size: clamp(24px, 2.6vw, 34px); max-width: 26ch; }
.row-head { margin-top: clamp(88px, 11vw, 140px); }

.about-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.about-wrap .page-title { padding-left: 0; padding-right: 0; }
.about-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.about-intro .portrait { max-width: 300px; }
.about-intro p { font-size: 16px; line-height: 1.7; max-width: 60ch; }
.about-intro p.statement { font-size: clamp(24px, 2.6vw, 34px); max-width: 22ch; }
.cv { margin-top: clamp(72px, 9vw, 120px); }
.cv-section { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 80px); border-top: 1px solid var(--rule); }
.cv-section > div, .cv-section > ul, .cv-section > p, .cv-section > blockquote { max-width: 68ch; }
.approach-lg.in-about { padding: 0; }
@media (max-width: 680px) { .intro, .about-intro, .cv-section { grid-template-columns: 1fr; } .intro .portrait, .about-intro .portrait { max-width: 220px; } }

/* Bigger portrait, closer to the text. One shared split for every two-column section. */
:root { --split: minmax(280px, 420px) minmax(0, 1fr); --split-gap: clamp(32px, 4.5vw, 72px); }
.intro, .about-intro, .cv-section, .contact, .d-head { grid-template-columns: var(--split); column-gap: var(--split-gap); }
.intro .portrait, .about-intro .portrait { max-width: none; width: 100%; }
.about-wrap .approach-lg { padding: 0; }
@media (max-width: 820px) { .contact, .d-head { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .intro, .about-intro, .cv-section { grid-template-columns: 1fr; } .intro .portrait, .about-intro .portrait { max-width: 320px; } }
.intro p.statement, .about-intro p.statement { line-height: 1.2; max-width: 24ch; }
/* About: no closing rule under the last Approach row; the Experience rule follows */
.about-wrap .approach-lg ol { border-bottom: 0; }
/* Work tiles: art box matches the 16:9 cover images, so they fill it edge to edge */
.tile .art { aspect-ratio: 16 / 9; }
.tile .art img { object-fit: cover; }
.strip .thumb { aspect-ratio: 16 / 9; }
.strip .thumb img { object-fit: cover; }

/* Work tiles: image fills the whole card, fading out under the title so the text reads cleanly */
.tile { position: relative; aspect-ratio: 4 / 3; --fade: var(--tile); }
.tile:hover { --fade: var(--tile-2); }
.tile .art { position: absolute; inset: 0; aspect-ratio: auto; display: block; }
.tile .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s ease; }
.tile:hover .art img { transform: scale(1.02); }
.tile .art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 66%, color-mix(in srgb, var(--fade) 70%, transparent) 78%, var(--fade) 90%);
}
.tile .meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 20px 18px; }
.tile .art::after { background: linear-gradient(180deg, transparent 0%, transparent 60%, color-mix(in srgb, var(--fade) 75%, transparent) 72%, var(--fade) 82%); }
/* Featured cards: a deeper fade behind the caption so busy screens never compete with the text */
.feature::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 66%, rgba(0,0,0,.86) 100%); }

/* Featured cards: same soft fade as the Work tiles, into the card colour, with dark-on-light text */
.feature { --fade: var(--tile); color: var(--text); }
.feature::after { background: linear-gradient(180deg, transparent 0%, transparent 56%, color-mix(in srgb, var(--fade) 78%, transparent) 70%, var(--fade) 80%); }
.feature .cap p { color: var(--text-dim); }
.feature .tags span { color: var(--text); border-color: color-mix(in srgb, var(--text) 35%, transparent); }

/* Work strip: pieces a quarter bigger */
.strip { grid-auto-columns: 275px; gap: 14px; }
.strip h4 { font-size: 14px; }
.strip p { font-size: 12.5px; }
/* While drifting on its own, the carousel glides instead of snapping */
.rail.is-auto, .strip.is-auto { scroll-snap-type: none; }

/* About CV: one consistent text scale across every section */
.cv-section p, .cv-section li, .job p, .plain li, .note p, .cv-section .quote {
  font-family: var(--body); font-size: 16px; line-height: 1.7; letter-spacing: 0; color: var(--text-dim);
}
.cv-section .quote { margin: 0; }
.cv-section .quote cite, .job .when, .note .k { font-size: 13px; color: var(--text-faint); }
.cv-section .quote cite { margin-top: 10px; }
.job h3, .plain li strong { font-size: 16px; font-weight: 500; color: var(--text); }
.note { padding: 20px 22px; }
.cv-section > div.notes, .cv-section .notes { max-width: none; }

/* Design gallery: artwork sits on a white artboard, never cropped */
.gallery .d-piece .shot { background: #fff; aspect-ratio: 4 / 3; padding: 4%; border: 1px solid var(--rule); }
.gallery .d-piece .shot img { object-fit: contain; }
.gallery .d-piece.wide { grid-column: 1 / -1; }
.gallery .d-piece.wide .shot { aspect-ratio: 4 / 1; padding: 2% 3%; }
@media (max-width: 600px) { .gallery .d-piece.wide .shot { aspect-ratio: 3 / 1; } }

/* Design: social reels, a scrolling row of Instagram embeds */
.d-sub { max-width: 60ch; margin: 8px 0 24px; }
.d-sub h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.d-sub p { margin: 0; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: 328px; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.reel { scroll-snap-align: start; }
.reel iframe { width: 328px; height: 580px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; display: block; }
.reel .more { display: inline-block; margin-top: 10px; }
@media (max-width: 600px) { .reels { grid-auto-columns: 86%; } .reel iframe { width: 100%; } }
.d-sub p + p { margin-top: 12px; }
.d-links { display: flex; gap: 22px; flex-wrap: wrap; }
/* Design gallery: photos and mock-ups fill their frame */
.gallery .d-piece.photo .shot { aspect-ratio: 4 / 5; padding: 0; background: var(--tile); }
.gallery .d-piece.photo .shot img { object-fit: cover; }
.gallery .d-piece.wide.proof .shot { aspect-ratio: 1600 / 667; padding: 0; background: #6b6b6b; }
.gallery .d-piece.wide.proof .shot img { object-fit: cover; }
.gallery .d-piece.photo.square .shot { aspect-ratio: 1 / 1; }
.gallery .d-piece.wide.proof .shot { aspect-ratio: 1600 / 641; }
.gallery .d-piece.wide.proof .shot { aspect-ratio: 1600 / 617; }

/* Photos page: natural proportions, gentle rounding */
.photos .shot img { width: 100%; height: auto; display: block; }

/* ===== Case studies under /work ===== */
.cs-hero .cs-eyebrow { margin: 0 0 14px; }
.cs-herofig { margin-top: 40px; }
.cs-herofig .cs-hero-img { margin: 0; }
.cs-herofig .cs-hero-img img { width: 100%; height: auto; border-radius: 16px; background: var(--tile); }
.cs-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .cs-three { grid-template-columns: 1fr 1fr; } }
.cs-phone-shot img { max-height: 560px; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.cs-phone-shot { text-align: center; }
.cs-fig img { background: var(--tile); }
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
@media (max-width: 640px) { .cs-stats { grid-template-columns: 1fr; } }
.cs-stats > div { background: var(--tile); border-radius: 12px; padding: 18px 20px; }
.cs-stats .n { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; color: var(--text); margin: 0 0 6px; line-height: 1.1; }
.cs-section .cs-stats p:not(.n) { font-size: 14.5px; margin: 0; }

/* Previous and next case study */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 88px; padding-top: 32px; border-top: 1px solid var(--rule); }
.pager-item { display: block; border: 1px solid var(--rule); border-radius: 14px; padding: 16px; color: var(--text); background: var(--bg); transition: background .2s ease; }
.pager-item:hover { background: var(--tile); text-decoration: none; }
.pager-item.next { text-align: right; }
.pager-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
.pager-item.previous .pager-k::before { content: "\2190  "; }
.pager-item.next .pager-k::after { content: "  \2192"; }
.pager-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; margin-bottom: 12px; background: var(--tile); }
.pager-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pager-n { display: block; font-size: 12px; color: var(--text-faint); }
.pager-t { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -0.01em; margin-top: 4px; line-height: 1.3; }
.pager-all { text-align: center; margin-top: 24px; }
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } .pager-item.next { text-align: left; } }

/* Case study: TL;DR, process, personas, zoom, phone screens, media */
.cs-tldr { margin-top: 8px; margin-bottom: 8px; }
.cs-tldr p:not(.cs-eyebrow) { font-family: var(--display); font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.cs-process-wrap { margin: 32px 0 8px; padding: 24px 0 4px; border-top: 1px solid var(--rule); }
.cs-section h3.cs-process-title { font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0 0 20px; }
.cs-process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; position: relative; }
.cs-process::before { content: ''; position: absolute; top: 13px; left: 14px; right: calc(12.5% - 14px); height: 2px; background: var(--rule); }
.cs-process li { position: relative; padding-right: 8px; font-size: 12.5px; line-height: 1.3; color: var(--text); background: none; }
.cs-process li .n { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #4068E2; color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 10px; box-shadow: 0 0 0 4px var(--bg); }
.cs-process li .t { display: block; }
@media (max-width: 760px) {
  .cs-process { grid-template-columns: 1fr; gap: 14px; }
  .cs-process::before { top: 14px; bottom: 14px; left: 13px; right: auto; width: 2px; height: auto; }
  .cs-process li { display: flex; align-items: center; gap: 14px; padding: 0; }
  .cs-process li .n { margin: 0; flex: none; }
}
.cs-section .findings .finding.solo { grid-template-columns: 1fr; }
.cs-section .findings .finding.solo p { margin: 0 0 10px; }
.cs-section .findings .finding.solo p:last-child { margin: 0; }
.cs-personas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cs-personas .cs-fig { margin: 0; }
.cs-personas .cs-fig:first-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .cs-personas { grid-template-columns: 1fr; } }
.cs-zoom a { display: block; cursor: zoom-in; }
.cs-zoom img { border: 1px solid var(--rule); }
.zoom-hint { color: var(--link); white-space: nowrap; }
.zoom-hint::after { content: " \2197"; }
.cs-screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 40px; }
@media (max-width: 760px) { .cs-screens { grid-template-columns: 1fr 1fr; } }
.cs-screens figure { margin: 0; }
.cs-screens figcaption { font-size: 13px; color: var(--text-faint); margin-top: 10px; line-height: 1.45; }
.phone { border: 7px solid #1D2228; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--rule), 0 12px 28px rgba(0,0,0,.08); }
:root[data-theme="dark"] .phone { border-color: #3A3F49; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { border-color: #3A3F49; } }
.phone img { width: 100%; height: auto; display: block; border-radius: 0; background: #fff; }
.cs-screens-k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin: 8px 0 14px; }
.cs-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
@media (max-width: 640px) { .cs-media { grid-template-columns: 1fr; } }
.cs-video video { width: 100%; max-height: 640px; border-radius: 12px; background: #000; display: block; }
.cs-phone-shot img { background: transparent; }
.cs-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* TL;DR: a blue panel, body-sized text, high contrast */
.cs-tldr { margin-top: 48px; margin-bottom: 48px; }
.cs-tldr { position: relative; }
.cs-tldr::before { content: ""; position: absolute; inset: 0 var(--gutter); background: #4068E2; border-radius: 16px; z-index: -1; }
.cs-tldr { padding-top: 32px; padding-bottom: 32px; isolation: isolate; }
.cs-tldr > * { padding-left: 32px; padding-right: 32px; }
.cs-tldr .cs-eyebrow { color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .16em; margin: 0 0 10px; }
.cs-tldr p:not(.cs-eyebrow) { font-family: var(--body); font-size: 16px; line-height: 1.7; letter-spacing: 0; color: #fff; margin: 0; }
@media (max-width: 640px) { .cs-tldr > * { padding-left: 22px; padding-right: 22px; } }

/* Section buttons: a tidy, even grid */
.cs-steps { grid-template-columns: repeat(3, 1fr); margin-top: 0; margin-bottom: 16px; }
@media (max-width: 640px) { .cs-steps { grid-template-columns: 1fr 1fr; } }
.cs-steps a { min-height: 52px; }
/* Section labels keep their small blue style inside sections */
.cs-section p.cs-eyebrow, .cs-callout p.cs-eyebrow, .finding p.cs-eyebrow, .swot p.cs-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; color: var(--link); margin: 0 0 10px; }

/* Problem summary list */
.cs-issues { list-style: none; counter-reset: iss; padding: 0; margin: 20px 0 8px; border-top: 1px solid var(--rule); }
.cs-issues li { counter-increment: iss; position: relative; padding: 16px 0 16px 46px; border-bottom: 1px solid var(--rule); }
.cs-issues li::before { content: counter(iss); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--tile); color: #4068E2; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cs-issues li.major::before { background: #4068E2; color: #fff; }
.cs-section .cs-issues h4 { margin: 3px 0 4px; font-size: 16px; }
.cs-section .cs-issues p { margin: 0; font-size: 15px; }
.cs-issues .tag { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #4068E2; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.cs-section .cs-issues p + p { margin-top: 10px; }
/* Video and photo side by side at the same height (9:16 video, 4:5 photo) */
.cs-media { grid-template-columns: 9fr 12.8fr; align-items: start; max-width: 880px; margin-left: auto; margin-right: auto; }
.cs-media .cs-video video { aspect-ratio: 9 / 16; max-height: none; object-fit: cover; }
.cs-media .cs-fig img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 12px; }
@media (max-width: 640px) { .cs-media { grid-template-columns: 1fr; } }
/* Outcome stats as a ruled list */
.cs-stats { display: block; margin: 24px 0; border-top: 1px solid var(--rule); }
.cs-stats > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; background: none; border-radius: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cs-stats .n { font-size: clamp(24px, 2.6vw, 30px); color: #4068E2; margin: 0; }
.cs-section .cs-stats p:not(.n) { font-size: 15px; margin: 0; }
@media (max-width: 640px) { .cs-stats > div { grid-template-columns: 1fr; gap: 4px; } }
/* Ask, Learn, Improve headings */
.cs-screens-head { display: flex; align-items: center; gap: 16px; margin: 56px 0 20px; }
.cs-screens-head:first-child { margin-top: 8px; }
.cs-screens-head .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #4068E2; color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.cs-screens-head h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 4px; color: var(--text); }
.cs-screens-head p { margin: 0; font-size: 15px; color: var(--text-dim); }
.cs-section .cs-cta { margin-bottom: 64px; }
/* Two media side by side at equal height; columns set inline from each item's aspect ratio */
.cs-pair { display: grid; gap: 16px; align-items: start; max-width: 960px; margin-left: auto; margin-right: auto; }
.cs-pair video, .cs-pair img { width: 100%; height: auto; display: block; border-radius: 12px; max-height: none; }
@media (max-width: 640px) { .cs-pair { grid-template-columns: 1fr !important; } }
/* Overview: paragraph full width, facts in a row of columns underneath */
.cs-overview { grid-template-columns: 1fr; gap: 28px; }
.cs-overview p { font-size: 17px; }
.cs-meta { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.cs-meta .k { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }
.cs-meta p { font-size: 14px; }
@media (max-width: 640px) { .cs-meta { grid-template-columns: 1fr 1fr; } }
.cs-meta { grid-template-columns: repeat(4, 1fr); gap: 28px 32px; padding-top: 32px; }
.cs-meta .k { font-size: 14px; letter-spacing: .14em; margin-bottom: 10px; }
.cs-meta p { font-size: 16px; line-height: 1.55; }
.cs-meta .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .cs-meta { grid-template-columns: 1fr 1fr; } }
.cs-overview .cs-label { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin: 0 0 12px; }
.cs-section .cs-caption-note { font-size: 13px; color: var(--text-faint); margin: -8px 0 0; }
/* Design evolution timeline: scrolls sideways, grouped by stage */
.cs-evo { display: flex; gap: 40px; overflow-x: auto; padding: 8px max(24px, calc((100vw - 760px) / 2)) 20px; margin: 8px 0 40px; -webkit-overflow-scrolling: touch; }
.cs-evo .evo-group { flex: none; }
.cs-evo .evo-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin: 0 0 4px; }
.cs-evo .evo-sub { font-size: 15px; color: var(--text); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.cs-evo .evo-row { display: flex; gap: 10px; }
.cs-evo .evo-row a { display: block; flex: none; }
.cs-evo .evo-row img { height: 240px; width: auto; display: block; border-radius: 6px; border: 1px solid var(--rule); }
@media (max-width: 640px) { .cs-evo .evo-row img { height: 180px; } }
.cs-evo { padding-left: 0; padding-right: 0; scrollbar-width: none; cursor: grab; }
.cs-evo::-webkit-scrollbar { display: none; }
.cs-evo.is-dragging { cursor: grabbing; }
/* Tables and pull quote in case studies */
.cs-table-wrap { overflow-x: auto; margin: 24px 0 28px; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cs-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--link); padding: 10px 12px; border-bottom: 2px solid var(--text); }
.cs-table td { padding: 11px 12px; border-bottom: 1px solid var(--rule); color: var(--text-dim); vertical-align: top; }
.cs-table td:first-child { color: var(--text); font-weight: 600; }
.cs-table td.no { color: #C0564B; }
.cs-section p.cs-quote { font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; color: var(--text); border-left: 4px solid #4068E2; padding: 4px 0 4px 20px; margin: 28px 0; }
.cs-hero .cs-readtime { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text-dim); }
.cs-hero .cs-readtime::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #4068E2; box-sizing: border-box; background: conic-gradient(#4068E2 0 25%, transparent 0); }
.cs-screens:has(> figure:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }

/* Card sort agreement matrix */
.cs-sort { margin: 28px 0; }
.cs-sort-scroll { overflow-x: auto; }
.cs-sort table { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 13.5px; min-width: 520px; table-layout: fixed; }
.cs-sort thead th:first-child { width: 30%; }
.cs-sort .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cs-sort thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); text-align: center; padding: 6px 4px 8px; }
.cs-sort thead th:first-child { text-align: left; }
.cs-sort tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); padding: 0 12px 0 0; white-space: nowrap; }
.cs-sort td { text-align: center; height: 28px; border-radius: 4px; color: var(--text); font-variant-numeric: tabular-nums;
  background: rgba(64,104,226,var(--a)); }
.cs-sort td.hi { color: #fff; font-weight: 600; }
.cs-sort td.z { background: var(--tile); }
.cs-sort tr.band th { text-align: left; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--text); padding: 18px 0 6px; border-bottom: 1px solid var(--rule); }
.cs-sort tr.band:first-child th { padding-top: 4px; }
.cs-sort tr.band span { font-family: var(--body); font-weight: 400; color: var(--text-dim); margin-left: 8px; font-size: 13px; }
.cs-sort td:hover { outline: 2px solid var(--text); outline-offset: -1px; }
.cs-sort figcaption { font-size: 13.5px; color: var(--text-dim); margin-top: 10px; }

.cs-sort .ab { display: none; text-decoration: none; }
.cs-sort .sort-key { display: none; }
@media (max-width: 640px) {
  .cs-sort table { min-width: 0; font-size: 12px; border-spacing: 2px; }
  .cs-sort thead th:first-child { width: 34%; }
  .cs-sort thead th { font-size: 10.5px; letter-spacing: .04em; padding: 4px 2px 6px; }
  .cs-sort .full { display: none; }
  .cs-sort .ab { display: inline; }
  .cs-sort .sort-key { display: inline; }
  .cs-sort tbody th[scope="row"] { white-space: normal; padding-right: 6px; line-height: 1.2; }
  .cs-sort td { height: 26px; font-size: 11px; }
  .cs-sort tr.band span { display: block; margin: 2px 0 0; }
}

/* Site map */
.cs-sitemap { margin: 28px 0; padding: 24px; background: var(--tile); border-radius: 14px; }
.cs-sitemap p, .cs-sitemap ul { margin: 0; padding: 0; list-style: none; }
.cs-sitemap .sm-global { display: block; width: max-content; margin: 0 auto 16px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 18px; border-radius: 6px; }
:root[data-theme="dark"] .cs-sitemap .sm-global { background: #F2F2EF; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-sitemap .sm-global { background: #F2F2EF; color: var(--ink); } }
.cs-sitemap .sm-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cs-sitemap .sm-primary { background: #4068E2; color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 10px 4px; border-radius: 6px; margin-bottom: 6px !important; }
.cs-sitemap li { font-size: 12px; line-height: 1.3; text-align: center; padding: 7px 4px; margin-bottom: 4px; border-radius: 6px; background: var(--bg); color: var(--text); border: 1px solid var(--rule); }
.cs-sitemap li.shared { background: rgba(64,104,226,.14); border-color: rgba(64,104,226,.35); }
.cs-sitemap .sm-footer { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.cs-sitemap .sm-footer .sm-global { margin-bottom: 10px; }
.cs-sitemap .sm-footer ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cs-sitemap .sm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 18px !important; font-size: 12.5px; color: var(--text-dim); }
.cs-sitemap .sm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cs-sitemap .k-g { background: var(--ink); } .cs-sitemap .k-p { background: #4068E2; }
.cs-sitemap .k-s { background: var(--bg); border: 1px solid var(--rule); } .cs-sitemap .k-sh { background: rgba(64,104,226,.14); border: 1px solid rgba(64,104,226,.35); }
.cs-sitemap figcaption { font-size: 13.5px; color: var(--text-dim); margin-top: 12px; text-align: center; }
@media (max-width: 760px) {
  .cs-sitemap { padding: 16px; }
  .cs-sitemap .sm-cols { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
  .cs-sitemap .sm-footer ul { grid-template-columns: repeat(2, 1fr); }
}

.cs-evo .evo-row video { height: 240px; width: auto; display: block; border-radius: 6px; border: 1px solid var(--rule); }
@media (max-width: 640px) { .cs-evo .evo-row video { height: 180px; } }

/* Content calendar example and centred captions */
.cs p.cs-cap-c, p.cs-cap-c { max-width: 760px; margin: 4px auto 40px; padding: 0 var(--gutter); font-size: 13.5px; color: var(--text-dim); text-align: center; }
.cs-cal td { font-size: 14px; }
.cs-cal td:first-child { white-space: nowrap; }
.cs-cal .st { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.cs-cal .st-a { background: rgba(64,104,226,.12); color: #2F55C8; }
.cs-cal .st-t { background: rgba(64,104,226,.22); color: #2448B5; }
.cs-cal .st-v { background: rgba(64,104,226,.36); color: #1B3A99; }
.cs-cal .st-c { background: #4068E2; color: #fff; }
:root[data-theme="dark"] .cs-cal .st:not(.st-c) { color: #C9D6FB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-cal .st:not(.st-c) { color: #C9D6FB; } }

/* Footnote */
.human-note { text-align: left; font-size: 12.5px; color: var(--text-faint); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 28px; box-sizing: border-box; }

/* Home intro: short scannable list */
.intro .intro-list { list-style: none; margin: 0 0 18px; padding: 0; max-width: 60ch; display: grid; gap: 10px; }
.intro .intro-list li { color: var(--text-dim); font-size: 16px; line-height: 1.6; padding-left: 16px; border-left: 2px solid var(--line, rgba(127,127,127,.3)); }
.intro .intro-list strong { color: var(--text); font-weight: 600; }

/* Other pages: short scannable list */
.opage .olist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.opage .olist li { padding-left: 16px; border-left: 2px solid var(--line, rgba(127,127,127,.3)); color: var(--text-dim); line-height: 1.6; }
.opage .olist strong { color: var(--text); font-weight: 600; }

/* Blue UI on home and about, matching the case study components */
:root { --blue: #4068E2; }
.intro .intro-list li { border-left-color: var(--blue); }
.intro .intro-list strong { color: var(--blue); }
.approach-lg li::before {
  content: counter(ap); width: 44px; height: 44px; border-radius: 50%;
  background: var(--tile); color: var(--blue); font-family: var(--body); font-weight: 600;
  font-size: 16px; letter-spacing: 0; display: flex; align-items: center; justify-content: center;
  align-self: start; margin-top: 4px;
}
.approach-lg li:first-child::before { background: var(--blue); color: #fff; }
.about-stats { margin-top: 28px; }
.about-intro .about-stats p:not(.n) { font-size: 15px; margin: 0; color: var(--text-dim); }
.about-intro .about-stats .n { font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); color: var(--blue); margin: 0; line-height: 1.1; }
.job .when { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: var(--tile); color: var(--blue); font-size: 12px; font-weight: 600; }
.note .k { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.quote { border-left: 3px solid var(--blue); padding-left: 20px; }
.opage .olist li { border-left-color: var(--blue); }

/* Approach: narrow, stacked list in the case study style */
.approach-lg { max-width: calc(var(--read) + 2 * var(--gutter)); }
.approach-lg ol { border-bottom: 1px solid var(--rule); margin-top: 32px; }
.approach-lg li {
  display: block; position: relative; padding: 22px 0 22px 62px;
}
.approach-lg li::before { position: absolute; left: 0; top: 22px; margin: 0; }
.approach-lg h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin: 6px 0 8px; }
.approach-lg p { max-width: none; font-size: 16px; }
.approach-lg p.ap-seen { margin-top: 8px; font-size: 13px; color: var(--text-faint); }
.approach-lg p.ap-seen a { color: var(--blue); }

/* Gated case study index on the v2 template */
.wlist { max-width: calc(var(--read) + 2 * var(--gutter)); margin: 8px auto 0; padding: 0 var(--gutter); }
.witem { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.witem:last-child { border-bottom: 1px solid var(--rule); }
.witem:hover { text-decoration: none; }
.witem:hover h3 { color: var(--blue); }
.wthumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--tile); }
.wthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wtext { display: block; }
.wname { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.witem h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin: 6px 0 4px; color: var(--text); transition: color .15s; }
.wmeta { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 6px; }
.witem p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.wsignout { max-width: calc(var(--read) + 2 * var(--gutter)); margin: 32px auto 0; padding: 0 var(--gutter); }
@media (max-width: 600px) { .witem { grid-template-columns: 96px 1fr; gap: 16px; } .witem p { display: none; } }
.opage .cs-eyebrow { margin: 0 0 10px; }
.wtitle { max-width: calc(var(--read) + 2 * var(--gutter)); }
.opage .cs-eyebrow { color: var(--blue); font-size: 12px; letter-spacing: .1em; }

/* Outcome line on cards */
.out { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.out::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }

/* Kind words */
.kind { max-width: 1440px; margin: clamp(88px, 11vw, 140px) auto 0; padding: 0 var(--gutter); }
.kw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.kw { margin: 0; background: var(--tile); border-radius: 14px; padding: 26px 26px 22px; border-top: 3px solid var(--blue); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.kw blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.kw figcaption { font-size: 13px; color: var(--text-faint); }
.quotes { display: grid; gap: 28px; }

/* Case study previews */
.pv-hero { margin: 8px 0 0; border-radius: 14px; overflow: hidden; background: var(--tile); }
.pv-hero img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.pv-stats { padding-top: 8px; }
.pv-lock { display: grid; grid-template-columns: 44px 1fr; gap: 18px; margin: 48px 0 0; padding: 28px; border-radius: 14px; background: var(--tile); border-left: 3px solid var(--blue); }
.pv-lock-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.pv-lock-ic svg { width: 16px; height: 18px; }
.pv-lock h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(22px, 2.2vw, 28px); margin: 4px 0 8px; }
.pv-lock p { margin: 0; color: var(--text-dim); font-size: 15.5px; line-height: 1.65; }
.pv-lock .pv-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
@media (max-width: 520px) { .pv-lock { grid-template-columns: 1fr; } }

/* 404 */
.nf-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.pv-cta .btn { background: var(--blue); color: #fff; border-color: var(--blue); } .pv-cta .btn:hover { filter: brightness(1.08); text-decoration: none; }

/* Kind words, restyled to match the pull quotes: no boxes, blue rule and mark */
.kw-grid { gap: clamp(28px, 4vw, 56px); margin-top: 36px; }
.kw { background: none; border-radius: 0; border-top: 0; border-left: 4px solid var(--blue); padding: 0 0 0 22px; justify-content: flex-start; gap: 0; }
.kw-mark { display: block; font-family: var(--display); font-size: 56px; line-height: .8; height: 30px; color: var(--blue); margin: 0 0 10px; }
.kw blockquote { font-family: var(--display); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; letter-spacing: -0.01em; color: var(--text); flex: 1; }
.kw figcaption { margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--text-faint); }
.kw figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: 14px; }

/* Preview lock panel, matching the blue TL;DR card */
.pv-lock { background: var(--blue); border-left: 0; border-radius: 16px; padding: 32px; color: #fff; }
.pv-lock h2 { color: #fff; }
.pv-lock p { color: rgba(255,255,255,.88); }
.pv-lock-ic { background: #fff; color: var(--blue); }
.pv-cta .btn { background: #fff; color: var(--blue); border-color: #fff; font-weight: 600; }
.pv-lock .pv-cta a.more { color: #fff; }

/* Card hierarchy: project label, headline, outcome */
.feature .cap .k, .tile .meta .k {
  display: flex; align-items: center; gap: 6px; margin: 0 0 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.feature .cap .k .lock, .tile .meta .k .lock { width: 9px; height: 11px; }
.feature .cap h3 {
  margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; color: var(--text); max-width: 26ch;
}
.tile .meta h3 {
  display: block; margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.015em;
  font-size: 18px; line-height: 1.25; color: var(--text);
}
.feature .cap .out, .tile .meta .out {
  margin: 10px 0 0; font-size: 13px; font-weight: 400; color: var(--text-dim);
}
.feature .cap .out::before, .tile .meta .out::before { background: var(--blue); }
.feature::after { background: linear-gradient(180deg, transparent 0%, transparent 50%, color-mix(in srgb, var(--fade) 82%, transparent) 64%, var(--fade) 76%); }

/* Kind words: short blue accent on a thin rule, instead of a full-height bar */
.kw { position: relative; border-left: 0; border-top: 1px solid var(--rule); padding: 26px 0 0; }
.kw::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--blue); }
.kw-mark { font-size: 64px; height: 34px; margin: 0 0 8px; }

/* Footer in the site's body type */
.foot { font-family: var(--body); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-faint); }
.human-note { font-family: var(--body); font-size: 13px; }
.foot { padding-bottom: 14px; } .human-note { padding-top: 0; }

/* Phones: image on top, text below, no overlay */
@media (max-width: 720px) {
  .feature { aspect-ratio: auto; display: flex; flex-direction: column; }
  .feature::after { display: none; }
  .feature > img, .feature > video, .feature > .ph { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; flex: none; }
  .feature .cap { position: static; padding: 16px 20px 22px; }
  .feature .cap h3 { font-size: 20px; max-width: none; }
}

/* Work grid tiles: image on top, text below, no overlay */
.tile { aspect-ratio: auto; display: flex; flex-direction: column; overflow: hidden; }
.tile .art { position: relative; inset: auto; aspect-ratio: 16 / 10; display: block; flex: none; }
.tile .art::after { display: none; }
.tile .meta { position: static; padding: 16px 20px 22px; }
.rail-more { max-width: 1440px; margin: 14px auto 0; padding: 0 var(--gutter); }

/* Logo in the top bar: the ring turns slowly around a still AP */
.nav .name { display: inline-flex; align-items: center; gap: 10px; }
.nav .name:hover { text-decoration: none; }
.logo { position: relative; width: 40px; height: 40px; flex: none; display: block; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lg-ring { animation: lg-spin 24s linear infinite; transform-origin: 50% 50%; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lg-ring { animation: none; } }
.logo .lg-d { display: none; }
:root[data-theme="dark"] .logo .lg-l { display: none; }
:root[data-theme="dark"] .logo .lg-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .lg-l { display: none; }
  :root:not([data-theme="light"]) .logo .lg-d { display: block; }
}

/* Larger logo on wide screens, and in the footer */
@media (min-width: 900px) { .nav .logo { width: 60px; height: 60px; } }
.foot { align-items: center; padding-bottom: 36px; }
.foot-id { display: flex; align-items: center; gap: 16px; }
.logo.logo-foot { width: 80px; height: 80px; }
.foot-lines { display: flex; flex-direction: column; gap: 6px; }
.foot .human-note { max-width: none; margin: 0; padding: 0; text-align: left; font-size: 13px; color: var(--text-faint); }

/* Footer, redesigned: brand, two link columns, then a quiet base line */
.foot { display: block; max-width: 1440px; margin: clamp(88px, 11vw, 140px) auto 0; padding: 0 var(--gutter) 28px; font-family: var(--body); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.foot-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); padding: 48px 0 40px; border-top: 1px solid var(--rule); }
.foot-brand { display: flex; align-items: center; gap: 24px; }
.logo.logo-foot { width: 120px; height: 120px; }
.foot-name { margin: 0 0 6px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; color: var(--text); }
.foot-tag { margin: 0; max-width: 32ch; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-k { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.foot a { color: var(--text); font-size: 15px; text-decoration: none; }
.foot a:hover { color: var(--blue); text-decoration: none; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--text-faint); }
.foot .human-note { margin: 0; padding: 0; max-width: none; font-size: 13px; color: var(--text-faint); text-align: left; }
@media (max-width: 860px) {
  .foot-main { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .logo.logo-foot { width: 88px; height: 88px; }
  .foot-brand { gap: 16px; }
}

/* ---------- Contrast pass ----------
   --blue stays the brand fill (white text on it is 4.9:1).
   --blue-text is the accessible blue for words, numbers and links:
   light #3558C9 (5.1:1 or better on every surface), dark #7C9BFF (5.2:1 or better, matches the logo).
   --text-faint is lifted so captions and metadata pass 4.5:1 on cards. */
:root { --blue-text: #3558C9; --text-faint: #646A73; --link: var(--blue-text); }
:root[data-theme="dark"] { --blue-text: #7C9BFF; --text-faint: #959BA4; --link: var(--blue-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --blue-text: #7C9BFF; --text-faint: #959BA4; --link: var(--blue-text); }
}
.cs-eyebrow, .cs-section p.cs-eyebrow, .cs-callout p.cs-eyebrow, .finding p.cs-eyebrow, .swot p.cs-eyebrow,
.opage .cs-eyebrow, .cs-list li::marker, .cs-issues li::before, .cs-stats .n,
.intro .intro-list strong, .approach-lg li::before, .about-intro .about-stats .n, .job .when, .note .k,
.approach-lg p.ap-seen a, .witem:hover h3, .wname, .out, .kw-mark,
.feature .cap .k, .tile .meta .k, .foot-k, .foot a:hover, .pager-k, .cs-meta .k, .cs-overview .cs-label,
.cs-evo .evo-k, .cs-table th, .cs-screens-k, .zoom-hint, .other-row:hover h3 { color: var(--blue-text); }
:root[data-theme="dark"] .cs-eyebrow { color: var(--blue-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-eyebrow { color: var(--blue-text); } }
/* Filled shapes keep the brand blue with white text */
.cs-issues li.major::before, .approach-lg li:first-child::before { color: #fff; }
.out::before { background: var(--blue-text); }
.kw::before { background: var(--blue-text); }
/* The blue TL;DR card and preview panel keep white text on brand blue */
.cs-tldr .cs-eyebrow { color: #fff !important; }

/* ---------- Mobile menu ---------- */
.nav .links .nav-items { display: flex; gap: inherit; align-items: center; }
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 9px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .topbar.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .topbar.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav .links { gap: 8px; }
  .nav .links .nav-items {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    padding: 8px var(--gutter) 16px;
  }
  .topbar.menu-open .nav .links .nav-items { display: flex; }
  .nav .links .nav-items a { padding: 14px 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--rule); }
  .nav .links .nav-items a:last-child { border-bottom: 0; }
  .nav .links .nav-items a[aria-current="page"] { color: var(--blue-text); }
  .nav .links .nav-items a[aria-current="page"]::after { display: none; }
  .topbar { position: sticky; }
  .topbar.menu-open { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }
