:root {
  --bg: #FAFBFC;
  --evidence: #EFF1F4;
  --line: #E5E8EC;
  --ink: #1C1E22;
  --muted: #6E747C;
  --lede: #3B3F45;
  --accent: #C2F127;
  --radius: 12px;
  --radius-shot: 8px;
  --fd: "Satoshi",ui-sans-serif,system-ui,sans-serif;
  --ft: "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --maxw: 1280px;
  --margin: 64px;
  --gutter: 24px;
  --s-textgroup: 20px;
  --s-head-body: 24px;
  --s-body-evidence: 44px;
  --s-evidence-caption: 14px;
  --s-section: 132px;
  --pad-evidence: 40px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ft);
  font-size: 18px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  column-gap: var(--gutter);
}
/* type */
.title {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(40px,4.6vw,66px);
  line-height: 1.03;
  letter-spacing: -.022em;
  margin: 0;
}
.h2 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(32px,4vw,50px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}
.pull {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(26px,3.2vw,36px);
  line-height: 1.24;
  letter-spacing: -.01em;
  margin: 0;
}
.lede {
  font-size: clamp(18px,1.6vw,21px);
  line-height: 1.5;
  color: var(--lede);
  margin: 0;
}
.body {
  font-size: 18px;
  line-height: 1.58;
  margin: 0;
}
.subhead {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.metricdesc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.caption {
  font-size: 14px;
  line-height: 1.43;
  color: var(--muted);
}
.secnum {
  font-family: var(--ft);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .02em;
}
.dot {
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
}
/* hero (option 3) */
.hero {
  padding: 92px 0 0;
}
.hero .title {
  grid-column: 1 / span 6;
}
.hero .lede {
  grid-column: 1 / span 6;
  margin-top: 24px;
}
.hero .meta {
  grid-column: 1 / span 6;
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero .glance {
  grid-column: 1 / span 12;
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  column-gap: var(--gutter);
}
.meta .k {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.meta .v {
  font-size: 16px;
  line-height: 1.45;
}
.glance .num {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(28px,3.4vw,40px);
  line-height: 1;
  letter-spacing: -.03em;
}
.glance .d {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.ovr {
  background: var(--evidence);
  border-radius: var(--radius);
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.ovr .need {
  font-size: 12px;
}
/* sections */
.section {
  padding: var(--s-section) 0;
}
.head {
  grid-column: 1 / span 12;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.label {
  font-family: var(--ft);
  font-weight: 600;
  font-size: 18px;
}
.h2.w {
  grid-column: 1 / span 9;
}
.intro {
  grid-column: 1 / span 6;
  margin-top: var(--s-head-body);
}
.body.col6 {
  grid-column: 1 / span 6;
  margin-top: 16px;
}
/* evidence */
.evidence {
  background: var(--evidence);
  border-radius: var(--radius);
  padding: var(--pad-evidence);
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}
.evidence.full {
  grid-column: 1 / span 12;
  margin-top: var(--s-body-evidence);
  min-height: 440px;
}
.ph {
  color: var(--muted);
  max-width: 36ch;
}
.ph .t {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.ph .need {
  font-size: 13px;
  color: var(--muted);
}
.cap {
  grid-column: 1 / span 12;
  margin-top: var(--s-evidence-caption);
  font-size: 14px;
  color: var(--muted);
}
figure {
  margin: 0;
}
.pcap {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.pairwrap {
  grid-column: 1 / span 12;
  margin-top: var(--s-body-evidence);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gutter);
}
/* text columns (card restraint) */
.decisions {
  grid-column: 1 / span 12;
  margin-top: var(--s-body-evidence);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: var(--gutter);
}
.decisions .d h3 {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -.006em;
  margin: 0 0 10px;
}
.decisions .d p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lede);
}
.implementation {
  grid-column: 1 / span 6;
  margin-top: var(--s-body-evidence);
}
.implementation .k {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.implementation p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
/* list with green dot bullets */
.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding-left: 20px;
  margin: 9px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lede);
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.small-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 52ch;
}
/* flow diagram on neutral surface */
.flow {
  grid-column: 1 / span 12;
  margin-top: var(--s-body-evidence);
  background: var(--evidence);
  border-radius: var(--radius);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.flow .step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.flow .step::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.flow .arr {
  color: var(--muted);
}
/* pull quote */
.pullwrap {
  grid-column: 1 / span 10;
  margin-top: var(--s-section);
}
/* impact moment */
.impact {
  grid-column: 1 / span 12;
  margin-top: var(--s-section);
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.impact .block {
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
}
.impact .num {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(60px,8vw,92px);
  line-height: 1;
  letter-spacing: -.03em;
}
.impact .desc {
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lede);
  margin-top: 10px;
}
.impact .sec {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
.impact .sec b {
  font-family: var(--fd);
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.note {
  padding: 70px 0 96px;
  color: var(--muted);
  font-size: 13px;
}
/* responsive */
@media(max-width:820px) {
  :root {
    --margin: 22px;
    --s-section: 80px;
    --pad-evidence: 14px;
  }
  .wrap {
    padding: 0 var(--margin);
  }
  .hero {
    padding: 52px 0 0;
  }
  .grid>* {
    grid-column: 1 / span 12 !important;
  }
  .hero .glance,
  .meta.metarow {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .hero .glance .item+.item {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 20px;
  }
  .decisions {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .decisions .d+.d {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 20px;
  }
  .pairwrap {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .pairwrap figure+figure {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 22px;
  }
  .impact {
    flex-direction: column;
    gap: 20px;
  }
  .impact .block {
    width: 64px;
    height: 64px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto;
  }
}

/* Homepage project cards: soft lift, with the thumbnail easing in behind it. */
.work-card, .blob-card { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.work-card .thumb img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.blob-shape { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.wc-more, .wc-title { transition: color .3s ease; }

.work-card:hover, .work-card:focus-visible,
.blob-card:hover, .blob-card:focus-visible { transform: translateY(-4px); }

.work-card:hover .thumb img,
.work-card:focus-visible .thumb img { transform: scale(1.04); }

.blob-card:hover .blob-shape,
.blob-card:focus-visible .blob-shape { transform: rotate(-8deg) scale(1.08); }

.work-card:hover .wc-more,
.work-card:focus-visible .wc-more { color: var(--ink); }

.work-card:focus-visible, .blob-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Back to work, used at the top of each case study and in the footer. */
.back-link {
  font-family: var(--ft);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.back-link .back-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.back-link:hover .back-arrow,
.back-link:focus-visible .back-arrow { transform: translateX(-3px); }

/* Row above the hero. One child on Aonic and Blob; on Uber the credit
   sits opposite the back link, and stacks under it on mobile. The credit
   carries a 28px bottom margin from when it was a standalone block; in a
   centred flex row that margin would ride its text half that distance high. */
.hero-top .credit { margin: 0; }
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

@media (max-width: 820px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    /* Wide enough that a second item reads as its own line rather than a
       second entry in a menu under the back link. Matches Blob, where the
       award line is separated by the row's own margin. */
    gap: 28px;
    margin-bottom: 24px;
  }
}

/* Reduced motion: cancel every transition so nothing animates, and drop
   the zoom, the rotate and the arrow slide. The 4px lift and the colour
   shift stay: applied instantly they read as state, not movement, and
   without them a hover gives no feedback at all. */
@media (prefers-reduced-motion: reduce) {
  .work-card, .blob-card, .thumb img, .blob-shape,
  .wc-more, .wc-title, .back-link .back-arrow { transition: none; }

  .work-card:hover .thumb img, .work-card:focus-visible .thumb img,
  .blob-card:hover .blob-shape, .blob-card:focus-visible .blob-shape { transform: none; }

  .back-link:hover .back-arrow, .back-link:focus-visible .back-arrow { transform: none; }
}
