/* Shared styles for portfolio.html and the case study pages. */
:root {
  --navy: #0e2a55;
  --blue: #1f7ae0;
  --ink: #1b2b44;
  --slate: #5a6b85;
  --line: #dde6f1;
  --soft: #f3f7fc;
  --tint: #eaf2fc;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --pop: cubic-bezier(0.45, 1.45, 0.8, 1);
  --barlow: "Barlow", system-ui, sans-serif;
  --dm: "DM Sans", system-ui, sans-serif;
  --pad: clamp(16px, 8.3334vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: var(--navy);
  font-family: var(--dm);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* keep slide-in start positions from widening the page */
main > section { overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
ul { list-style: none; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Shared type ---------- */
.kicker {
  font: 600 14px/normal var(--barlow);
  letter-spacing: 3.08px;
  color: var(--blue);
  white-space: pre-wrap;
}
.lede { font-size: 18px; line-height: 1.65; color: var(--slate); }
.media-title { font: 600 20px/1.25 var(--barlow); color: var(--navy); }
.media-sub { font-size: 14px; color: var(--slate); }
.thumb > .cover { position: absolute; inset: 0; }
.media { display: flex; flex-direction: column; gap: 16px; }
.media-text { display: flex; flex-direction: column; gap: 4px; }
.thumb { display: block; position: relative; overflow: hidden; border-radius: 16px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: 632fr 504fr;
  gap: 64px;
  align-items: center;
  padding-block: 88px 56px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero h1 {
  font: 700 clamp(40px, 4.4445vw, 64px)/1 var(--barlow);
  letter-spacing: -0.01em;
  color: var(--navy);
}
.hero h1 .hl { color: var(--blue); }
.hero h1 .line { display: block; }
.hero h1 .word { display: inline-block; }
.hero-text { font-size: 19px; line-height: 1.6; color: var(--slate); }
.ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; aspect-ratio: 504 / 460; }
/* Hero collage: four overlapping cards, positioned as % of the 504×460 media box */
.hero-card {
  position: absolute; overflow: hidden;
  border-radius: 18px;
  background: #eef1f5;
  box-shadow: 0 18px 40px rgba(13, 41, 84, .18);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-family { left: 0;     top: 0;   width: 66%; height: 58%; z-index: 1; }
.hero-family img { object-position: 30% 50%; }
.hero-sign   { left: 70%;   top: 7%;  width: 30%; height: 40%; }
/* logo card: white, logo centred and contained rather than cropped */
.hero-card--logo { background: #fff; display: grid; place-items: center; }
.hero-card--logo img { width: 100%; height: auto; padding: 0 8%; object-fit: contain; }
.hero-web img { object-position: 50% 45%; }
.hero-web    { left: 26%;   top: 50%; width: 74%; height: 50%; z-index: 2; border: 6px solid #fff; }
.hero-logo {
  position: absolute; left: 0; top: 69%; width: 26%; z-index: 3;
  padding: 12px 14px; border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(13, 41, 84, .16);
}
.hero-logo img { width: 100%; height: auto; }

/* ---------- Capabilities ---------- */
.caps { background: var(--soft); }
.caps .wrap { display: flex; flex-direction: column; gap: 64px; padding-block: 96px; }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head h2, .section-head h1 {
  font: 700 clamp(32px, 3.0556vw, 44px)/1.1 var(--barlow);
  color: var(--navy);
  max-width: 760px;
}
.cap-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.cap { border-top: 2px solid var(--blue); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.cap > img { width: 32px; height: 32px; }
.cap h3 { font: 700 17px/normal var(--barlow); letter-spacing: 1.36px; color: var(--navy); }
.cap ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.cap li::before { content: "•  "; white-space: pre; }

/* ---------- Case studies ---------- */
.case .wrap { display: flex; flex-direction: column; gap: 64px; padding-block: 112px; }
.case--soft { background: var(--soft); }
.case-head { display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: end; }
.case-head-main { display: flex; flex-direction: column; gap: 16px; }
.case-head h2 {
  font: 700 clamp(36px, 3.8889vw, 56px)/1.05 var(--barlow);
  letter-spacing: -0.005em;
  color: var(--navy);
}
.case-tagline { font: 500 20px/normal var(--barlow); color: var(--blue); }

.card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--soft);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.card h3 { font: 700 21px/1.2 var(--barlow); color: var(--navy); }
.card p { font-size: 15px; line-height: 1.6; color: var(--slate); }

.badge {
  width: 56px; height: 56px; flex: none;
  border-radius: 28px;
  display: grid; place-items: center;
  background: var(--tint);
}
.badge img { width: 26px; height: 26px; }
.badge--dark { background: var(--navy); }

.block { display: flex; flex-direction: column; gap: 32px; }
.subhead { display: flex; gap: 20px; align-items: center; }
.subhead-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.subhead h3 { font: 700 20px/normal var(--barlow); letter-spacing: 2.4px; color: var(--navy); }
.subhead p { font-size: 16px; line-height: 1.5; color: var(--slate); }

.gallery {
  display: grid;
  grid-template-columns: 712fr 464fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.gallery .thumb { border-radius: 20px; }
.gallery-main { grid-row: span 2; aspect-ratio: 712 / 536; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-3 .thumb { aspect-ratio: 384 / 230; }
.pieces .thumb { aspect-ratio: 384 / 240; }

.videos { background: var(--tint); border-radius: 28px; padding: 48px; }
.videos .thumb { aspect-ratio: 352 / 200; }
.video { display: flex; flex-direction: column; gap: 16px; }
.video img.cover { transition: scale .5s var(--expo); }
.video:hover img.cover { scale: 1.04; }

/* play button: 68px white disc + 28px glyph nudged 2px right, both centred */
.play, .play-glyph { position: absolute; left: 50%; top: 50%; }
.play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.play-glyph { width: 28px; height: 28px; margin: -14px 0 0 -12px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--soft); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.panel--tmp { padding-bottom: 24px; gap: 24px; align-items: center; }
.panel--tmp .subhead { align-self: stretch; }
.socials { display: flex; gap: 16px; }
.social {
  width: 157px; flex: none;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(13, 41, 84, 0.08);
}
.social > img { width: 100%; aspect-ratio: 157 / 220; object-fit: cover; }
.social-dots { display: flex; gap: 8px; padding: 10px 12px; }
.social-dots img { width: 10px; height: 10px; }
.tmp-img { width: 300px; height: 272px; object-fit: cover; }

.postcards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.postcards .thumb { aspect-ratio: 588 / 395; }

.yrt-head { display: grid; grid-template-columns: 500fr 644fr; gap: 56px; align-items: center; }
.yrt-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.yrt-copy h1, .yrt-copy h2 {
  font: 700 clamp(38px, 4.1667vw, 60px)/1.05 var(--barlow);
  letter-spacing: -0.005em;
  color: var(--navy);
}
.yrt-copy h1 .hl, .yrt-copy h2 .hl { color: var(--blue); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--tint); color: var(--blue); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 13px; white-space: nowrap; }
/* p5_0.png has transparent padding around the devices; crop to them (devices span 394–1750 × 170–736 of 2000 × 1000) */
.yrt-img { position: relative; width: 100%; aspect-ratio: 1356 / 566; overflow: hidden; }
.yrt-img img { position: absolute; max-width: none; width: 147.49%; height: auto; left: -29.06%; top: -30.04%; }

.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.features .card { padding: 28px 24px; }
.features .card h3 { font-size: 20px; }
.features .card p { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cap-cols { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .case-head { grid-template-columns: 1fr 1fr; gap: 48px; }
  .duo { grid-template-columns: 1fr; }
  .socials { justify-content: flex-start; }
}

@media (max-width: 760px) {

  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 32px; }
  .hero-text { font-size: 17px; }
  .kicker { font-size: 12px; letter-spacing: 2.4px; }

  .caps .wrap, .case .wrap { padding-block: 64px; gap: 40px; }
  .cap-cols, .card-row, .features, .grid-3, .postcards, .yrt-head { grid-template-columns: 1fr; }
  .case-head { grid-template-columns: 1fr; gap: 20px; }
  .lede { font-size: 16px; }

  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 12px; }
  .gallery-main { grid-column: 1 / -1; grid-row: auto; }
  .gallery .thumb:not(.gallery-main) { aspect-ratio: 464 / 256; }

  .subhead { align-items: flex-start; gap: 16px; }
  .subhead h3 { font-size: 17px; letter-spacing: 1.8px; }
  .badge { width: 48px; height: 48px; }

  .videos, .panel { padding: 24px 16px; border-radius: 20px; }
  .socials { gap: 10px; }
  .social { flex: 1 1 0; width: auto; min-width: 0; }
  .tmp-img { width: min(300px, 100%); height: auto; aspect-ratio: 300 / 272; }

}
/* ---------- Multi-page additions ---------- */
/* Selected work grid (portfolio overview) */
.work .wrap { display: flex; flex-direction: column; gap: 64px; padding-block: 48px 112px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.work-card { display: flex; flex-direction: column; gap: 20px; }
.work-card .thumb { aspect-ratio: 588 / 360; border-radius: 20px; background: var(--soft); }
.work-card .thumb .cover { transition: scale .6s var(--expo); }
.work-card .thumb--contain .cover { object-fit: contain; padding: 0; transform: scale(1.32) translate(-3.6%, 1.7%); }
.work-card:hover .thumb .cover { scale: 1.04; }
.work-meta { display: flex; flex-direction: column; gap: 8px; }
.work-meta .kicker { font-size: 13px; }
.work-title { font: 700 28px/1.15 var(--barlow); color: var(--navy); transition: color .2s; }
.work-card:hover .work-title { color: var(--blue); }
.work-sub { font-size: 16px; line-height: 1.5; color: var(--slate); }
.work-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 500; font-size: 15px; color: var(--blue); }
.work-more img { width: 18px; height: 18px; transition: translate .2s; }
.work-card:hover .work-more img { translate: 3px 0; }

@media (max-width: 760px) {
  .work .wrap { padding-block: 32px 64px; gap: 40px; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-title { font-size: 24px; }
}

/* ---------- Case study story: Challenge / Goal / Approach / Results ---------- */
.case-head h1 {
  font: 700 clamp(36px, 3.8889vw, 56px)/1.05 var(--barlow);
  letter-spacing: -.005em;
  color: var(--navy);
}
.story { display: flex; flex-direction: column; gap: 24px; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 44px 44px;
  display: flex; flex-direction: column; gap: 14px;
}
.panel-card p { font-size: 18px; line-height: 1.65; color: var(--slate); }
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; list-style: none; }
.move {
  background: var(--tint);
  border-radius: 18px;
  padding: 12px 12px 28px;
  display: flex; flex-direction: column; gap: 22px;
  transition: translate .3s var(--expo), box-shadow .3s;
}
.move:hover { translate: 0 -4px; box-shadow: 0 14px 30px rgba(13, 41, 84, .10); }
.move-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #fff; }
.move p { padding-inline: 10px; text-align: center; font-size: 16px; line-height: 1.6; color: var(--navy); }
.move strong { font-weight: 700; color: var(--blue); }
.results-card {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 44px 48px 48px;
  display: flex; flex-direction: column; gap: 14px;
}
.results-card .kicker { color: #7db8f7; }
.results-card p { font-size: 21px; line-height: 1.55; max-width: 1000px; }

@media (max-width: 1180px) {
  .moves { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .story { gap: 16px; }
  .brief { grid-template-columns: 1fr; gap: 16px; }
  .panel-card, .results-card { border-radius: 18px; padding: 26px 20px 28px; gap: 10px; }
  .panel-card p { font-size: 16px; }
  .results-card p { font-size: 18px; }
  /* compact rows: small square thumbnail beside the text */
  .moves { grid-template-columns: 1fr; gap: 10px; }
  .move { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; }
  .move-thumb { aspect-ratio: 1; border-radius: 10px; }
  .move p { padding: 0; text-align: left; font-size: 15px; line-height: 1.5; }
}

/* Story cards on a white case section: tint the cards instead */
.case:not(.case--soft) .panel-card { background: var(--soft); }
.case:not(.case--soft) .move { background: #fff; }
/* ---------- Slideshow (Public Works gallery) ---------- */
.slideshow .slides { position: absolute; inset: 0; }
.slideshow .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.slideshow .slide.is-active { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* gentle push-in on the photo that's showing */
  .slideshow .slide { transition: opacity .9s ease, scale 6s linear; }
  .slideshow .slide.is-active { scale: 1.05; }
}
.slide-ui {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.slide-ui > * { pointer-events: auto; }
.slide-count {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(14, 42, 85, .72); color: #fff;
  font-weight: 500; font-size: 13px; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}
.slide-btns { display: flex; gap: 8px; }
.slide-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(13, 41, 84, .18);
  transition: background-color .2s, scale .2s;
}
.slide-btn:hover { background: #fff; scale: 1.06; }
.slide-btn img { width: 18px; height: 18px; }
.slide-prev img { rotate: 180deg; }
.slide-progress {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  height: 3px; width: 100%;
  background: var(--blue);
  transform-origin: left; scale: 0 1;
}
.slideshow.is-timing .slide-progress { animation: slide-timer var(--slide-ms, 5000ms) linear forwards; }
.slideshow.is-paused .slide-progress { animation-play-state: paused; }
@keyframes slide-timer { to { scale: 1 1; } }
@media (max-width: 760px) {
  .slide-ui { left: 12px; right: 12px; bottom: 12px; }
  .slide-btn { width: 38px; height: 38px; }
  .slide-count { font-size: 12px; padding: 6px 12px; }
}

/* Transportation Master Plan: cover and link open the online report */
.tmp-link { display: block; border-radius: 6px; transition: scale .4s var(--expo); }
.tmp-link:hover { scale: 1.03; }
.tmp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 15px; color: var(--blue);
}
.tmp-cta img { width: 18px; height: 18px; transition: translate .2s; }
.tmp-cta:hover img { translate: 3px 0; }
.panel--tmp:has(.tmp-link:hover) .tmp-cta img { translate: 3px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Social media graphics link to their Instagram posts */
a.social { display: block; transition: translate .3s var(--expo), box-shadow .3s; }
a.social:hover { translate: 0 -6px; box-shadow: 0 16px 30px rgba(13, 41, 84, .16); }

/* Approach tiles with an icon badge instead of a photo (Public Works) */
.moves--icons .move { align-items: center; padding: 32px 24px 36px; gap: 20px; }
.moves--icons .move p { padding-inline: 0; }
@media (max-width: 760px) {
  .moves--icons .move { grid-template-columns: 48px 1fr; padding: 16px 18px; gap: 16px; }
  .moves--icons .move-icon { width: 48px; height: 48px; }
}
/* on a pale case section the tiles are tinted, so the icon circle goes white */
.case--soft .moves--icons .move-icon { background: #fff; }

/* ---------- YRT process: journey map, wireframes, user testing ---------- */
.process-head { display: flex; flex-direction: column; gap: 16px; }
.process-head h2 { font: 700 clamp(32px, 3.0556vw, 44px)/1.1 var(--barlow); color: var(--navy); }
.figure-card {
  position: relative; display: block; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
}
.figure-card img { width: 100%; height: auto; }
.figure-note { margin-top: -16px; font-size: 14px; line-height: 1.5; color: var(--slate); }

/* Responsive trip planner */
.tp-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 1180px) { .tp-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Before / after pair */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ba-item { padding: 56px 20px 20px; }
.ba-item img { border-radius: 8px; border: 1px solid var(--line); }
.ba-tag {
  position: absolute; left: 20px; top: 16px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--soft); color: var(--slate);
  font: 600 13px/1.4 var(--barlow); letter-spacing: .22em; text-transform: uppercase;
}
.ba-tag--after { background: var(--blue); color: #fff; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }

.wireframes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 1180px) { .wireframes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wire { display: flex; flex-direction: column; gap: 12px; }
.wire-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); }
.wire-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wire-title { font: 600 18px/1.25 var(--barlow); color: var(--navy); }

.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.milestone { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; border-radius: 16px; border-top: 3px solid var(--blue); background: var(--soft); }
.milestone-date { font: 700 22px/1.2 var(--barlow); color: var(--blue); }
.milestone p { font-size: 15px; line-height: 1.5; color: var(--slate); }
.milestone--launch { background: var(--navy); border-top-color: #7db8f7; }
.milestone--launch .milestone-date { color: #7db8f7; }
.milestone--launch p { color: #c9d8ee; }

@media (max-width: 1180px) {
  .milestones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wireframes { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .wire-title { font-size: 15px; }
  .milestones { grid-template-columns: 1fr; gap: 10px; }
  .figure-card { padding: 10px; border-radius: 14px; }
}

/* ---------- Lightbox (full-screen image viewer) ---------- */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(4, 10, 21, .94); color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in .25s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage { overflow: auto; display: grid; place-items: start center; padding: 72px 96px 16px; overscroll-behavior: contain; }
.lb-img { max-width: min(100%, 1200px); height: auto; border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-caption { display: flex; justify-content: center; gap: 16px; padding: 14px 16px 22px; font-size: 15px; }
.lb-title { font-weight: 500; }
.lb-count { color: #9fb5d6; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }
@media (max-width: 760px) {
  .lb-stage { padding: 64px 12px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; margin: 0; width: 44px; height: 44px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-caption { padding: 12px 64px 18px; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
}

/* ---------- How I work (portfolio) ---------- */
.method .wrap { display: flex; flex-direction: column; gap: 64px; padding-block: 112px; }
.method-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; list-style: none; }
.method-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.method-step:not(:last-child)::after {           /* arrow to the next step */
  content: ""; position: absolute; top: 44px; right: -28px; width: 32px; height: 12px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 20' fill='none' stroke='%23a2adb9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 10h63M55 1.5 64 10l-9 8.5'/%3E%3C/svg%3E");
}
.method-badge { width: 100px; height: 100px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--c); }
.method-badge svg { width: 50px; height: 50px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.method-step h3 { font: 700 17px/1.2 var(--barlow); letter-spacing: 1.36px; text-transform: uppercase; color: var(--navy); }
.method-num { color: var(--c); }
.method-step p { max-width: 230px; font-size: 15px; line-height: 1.55; color: var(--slate); }

/* ---------- Featured: Branding (portfolio) ---------- */
.brand { background: var(--soft); }
.brand .wrap { display: flex; flex-direction: column; gap: 24px; padding-block: 112px; }
.brand-top { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-bottom: 16px; }
.brand-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.brand-copy h2 { font: 700 clamp(36px, 3.8889vw, 56px)/1.05 var(--barlow); letter-spacing: -.005em; color: var(--navy); }
.brand-copy .hl { color: var(--blue); }
.brand-bus { aspect-ratio: 961 / 511; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(13, 41, 84, .14); }
.brand-gallery { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.brand-shot { aspect-ratio: 281 / 251; border-radius: 16px; overflow: hidden; }
.brand-web { display: grid; place-items: center; border-radius: 16px; background: #fff; padding: 12px; }
.brand-web .fit { position: relative; display: block; width: 100%; aspect-ratio: 1356 / 566; overflow: hidden; }
.brand-web .fit img { position: absolute; max-width: none; width: 147.49%; height: auto; left: -29.06%; top: -30.04%; }
.brand-cap { font: 600 13px/1.4 var(--barlow); letter-spacing: 2.4px; color: var(--slate); }
.brand-cap--web { grid-column: 1; }
.brand-cap--set { grid-column: 2 / -1; }
.brand .results-card { margin-top: 24px; }
.brand .results-card .kicker { color: #7db8f7; }

/* Selected work: three case studies in a row */
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-card .thumb { aspect-ratio: 588 / 400; }
.work-title { font-size: 24px; }
@media (max-width: 1180px) and (min-width: 901px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 1180px) {
  .method-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .method-step:nth-child(3)::after { display: none; }
  .brand-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card .thumb { aspect-ratio: 588 / 340; }
}
@media (max-width: 760px) {
  .method .wrap, .brand .wrap { padding-block: 64px; }
  .method .wrap { gap: 40px; }
  .method-steps { grid-template-columns: 1fr; gap: 24px; }
  .method-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; row-gap: 4px; text-align: left; align-items: start; }
  .method-step::after { display: none; }
  .method-badge { width: 64px; height: 64px; margin: 0; grid-row: span 2; }
  .method-badge svg { width: 32px; height: 32px; }
  .method-step h3 { margin-top: 8px; font-size: 15px; }
  .method-step p { max-width: none; }
  .brand-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brand-web { grid-column: 1 / -1; }
  .brand-web { order: 0; }
  .brand-cap--web { grid-column: 1 / -1; order: 1; margin-bottom: 12px; }
  .brand-shot { order: 2; }
  .brand-cap--set { order: 3; }
  .brand-cap--set { grid-column: 1 / -1; }
  .brand-cap { font-size: 11px; letter-spacing: 1.8px; }
}

/* ---------- Transit Experience ---------- */
.transit-banners { aspect-ratio: 1800 / 814; border-radius: 20px; }
.transit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.transit-pair .figure-card { display: grid; place-items: center; }
.transit-buses img { width: 100%; mix-blend-mode: multiply; }   /* drop the photo's off-white backdrop */
/* Four compact tiles in a row; two per row on tablets and phones, one on the narrowest screens. */
.transit-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.transit-video { aspect-ratio: 16 / 9; }
.transit-videos .video { gap: 12px; }
.transit-videos .media-title { font-size: 17px; }
.transit-videos .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.transit-videos .play-glyph { width: 22px; height: 22px; margin: -11px 0 0 -9px; }
@media (max-width: 1180px) {
  .transit-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .transit-videos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .transit-pair { grid-template-columns: 1fr; gap: 12px; }
  .transit-videos { gap: 20px 12px; }
  .transit-banners { border-radius: 14px; }
}

/* Transit Experience: campaign grid, brand system, route map */
.guide-pages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; }
.guide-pages li { display: flex; flex-direction: column; gap: 10px; font: 600 15px var(--barlow); color: var(--navy); }
.guide-pages img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.map-row .transit-buses { display: grid; place-items: center; }
.social-card { max-width: 760px; }
@media (max-width: 760px) {
  .guide-pages { grid-template-columns: 1fr 1fr; }
  .map-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Campaign grid + detail panel ---------- */
.camp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; list-style: none; }
.camp-card { display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: left; }
.camp-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.camp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--expo); }
.camp-card:hover .camp-thumb img, .camp-card:focus-visible .camp-thumb img { scale: 1.05; }
.camp-meta { display: flex; flex-direction: column; gap: 6px; }
.camp-sub { font: 600 12px var(--barlow); letter-spacing: 2.4px; text-transform: uppercase; color: var(--blue); }
.camp-name { font: 700 22px/1.2 var(--barlow); color: var(--navy); transition: color .2s; }
.camp-card:hover .camp-name { color: var(--blue); }
.camp-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-weight: 500; font-size: 15px; color: var(--blue); }
.camp-more img { width: 18px; height: 18px; transition: translate .2s; }
.camp-card:hover .camp-more img { translate: 3px 0; }

.camp-modal { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 10, 21, .72); }
.camp-modal::backdrop { background: transparent; }
.camp-modal[open] { display: grid; place-items: center; animation: lb-in .25s ease-out; }
.cm-panel { position: relative; width: min(1100px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 24px; padding: 56px 56px 64px; }
.cm-close { position: sticky; top: 0; float: right; margin: -32px -32px 0 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); z-index: 1; }
.cm-close:hover { background: var(--tint); }
.cm-body { display: flex; flex-direction: column; gap: 20px; }
.cm-body h2 { font: 700 clamp(30px, 3vw, 44px)/1.1 var(--barlow); color: var(--navy); }
.cm-desc { font-size: 18px; line-height: 1.65; color: var(--slate); max-width: 820px; }
.cm-overview { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-top: 8px; padding: 28px; border-radius: 18px; background: var(--soft); }
.cm-overview h4 { font: 700 14px var(--barlow); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.cm-overview p { font-size: 15px; line-height: 1.6; color: var(--slate); }
.cm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.cm-stats li { padding: 20px 22px; border-radius: 16px; background: var(--navy); color: #c9d8ee; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.cm-stats strong { font: 700 30px/1.1 var(--barlow); color: #fff; }
.cm-role { margin-top: 12px; }
.cm-highlights { max-width: 820px; }
.cm-highlights h4 { font: 700 14px var(--barlow); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.cm-highlights ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.cm-highlights li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.6; color: var(--slate); }
.cm-highlights li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue); }
.cm-highlights strong { color: var(--navy); }
.brand-points { padding: 28px 32px; border-radius: 18px; background: var(--soft); max-width: none; }
.brand-points li { font-size: 18px; }
@media (max-width: 760px) { .brand-points { padding: 20px; } .brand-points li { font-size: 16px; } }
.cm-role strong { color: var(--navy); font-weight: 700; }
.cm-fig { margin-top: 16px; }
.cm-fig img { display: block; width: auto; max-width: 100%; max-height: 78vh; height: auto; margin-inline: auto; border-radius: 14px; border: 1px solid var(--line); }
.cm-fig figcaption { text-align: center; }
/* Low-resolution sources are shown smaller so they stay crisp. */
.cm-fig--md img { max-width: min(100%, 760px); }
.cm-fig--sm img { max-width: min(100%, 600px); }
.cm-fig--xs img { max-width: min(100%, 460px); }
.cm-fig figcaption { margin-top: 10px; font: 600 15px var(--barlow); color: var(--navy); }

@media (max-width: 1000px) { .camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .camp-name { font-size: 17px; }
  .camp-sub { font-size: 10px; letter-spacing: 1.6px; }
  .camp-more { font-size: 14px; }
  .cm-panel { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; padding: 24px 16px 40px; }
  .cm-close { margin: -8px -4px 0 0; }
  .cm-overview { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .cm-stats { grid-template-columns: 1fr 1fr; }
  .cm-stats strong { font-size: 24px; }
  .cm-desc { font-size: 16px; }
}

/* Transit Experience: communications and customer experience */
.cx-list { columns: 2; column-gap: 48px; list-style: none; }
.cx-list li {
  position: relative; break-inside: avoid;
  padding: 0 0 14px 26px;
  font-size: 16px; line-height: 1.5; color: var(--slate);
}
.cx-list li::before {
  content: ""; position: absolute; left: 4px; top: .5em;
  width: 9px; height: 9px; border-radius: 3px; rotate: 45deg;
  background: var(--blue);
}
.cx-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cx-photos figure { display: flex; flex-direction: column; gap: 10px; }
.cx-photos img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; }
.cx-photos figcaption { font-size: 14px; line-height: 1.45; color: var(--slate); }
.cx-wide { grid-column: span 2; }
@media (max-width: 760px) {
  .cx-list { columns: 1; }
  .cx-photos { grid-template-columns: 1fr; gap: 16px; }
  .cx-wide { grid-column: auto; }
  .cx-photos img { height: auto; aspect-ratio: 4 / 3; }
  .cx-wide img { aspect-ratio: 700 / 222; }
}

/* Paired campaign card + tabs (two separate campaigns in one panel) */
.camp-thumb--pair { position: relative; }
.camp-count {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font: 600 12px var(--barlow); letter-spacing: 1.2px; text-transform: uppercase;
}
.camp-name--pair { display: flex; flex-direction: column; gap: 6px; font-size: 19px; }
.camp-name--pair > span { display: flex; gap: 10px; align-items: baseline; }
.camp-name--pair em { flex: none; font: 700 13px var(--barlow); font-style: normal; color: var(--blue); letter-spacing: 1px; }

.cm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.cm-tab {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 18px 22px; border-radius: 16px;
  background: var(--soft); color: var(--navy);
  border: 2px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cm-tab em { font: 600 12px var(--barlow); font-style: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.cm-tab span { font: 700 22px/1.2 var(--barlow); }
.cm-tab:hover { border-color: var(--tint); background: var(--tint); }
.cm-tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.cm-tab[aria-selected="true"] em { color: #7db8f7; }
.cm-part { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; padding-top: 32px; border-top: 1px solid var(--line); }
.cm-part[hidden] { display: none; }
.cm-part-title { font: 700 clamp(26px, 2.4vw, 34px)/1.15 var(--barlow); color: var(--navy); }
@media (max-width: 760px) {
  .cm-tabs { grid-template-columns: 1fr; }
  .cm-tab { padding: 14px 16px; }
  .cm-tab span { font-size: 19px; }
}

/* YouTube videos: a lightweight cover that swaps in the player on click */
.yt { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.yt .cover { transition: scale .5s var(--expo), opacity .3s; }
.yt:hover .cover, .yt:focus-visible .cover { scale: 1.03; opacity: .9; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-play svg { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); transition: scale .3s var(--pop); }
.yt:hover .yt-play svg, .yt:focus-visible .yt-play svg { scale: 1.1; }
.yt:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Award pills inside a campaign panel */
.cm-awards { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: -4px; }
.cm-awards li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff6dd; color: #6b4b00; border: 1px solid #f1d27a;
  font: 600 14px var(--barlow); letter-spacing: .2px;
}
.cm-awards svg { fill: none; stroke: #c99400; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-subhead { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- My role: what I did on each project ---------- */
.role-card {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px;
  padding: 40px 44px 44px; border-radius: 24px; background: var(--soft);
}
.case--soft .role-card { background: #fff; }
.role-id { display: flex; flex-direction: column; gap: 14px; }
.role-title { font: 700 26px/1.2 var(--barlow); color: var(--navy); }
.role-facts { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.role-facts div { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.role-facts dt { font: 600 12px var(--barlow); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.role-facts dd { font-size: 16px; line-height: 1.5; color: var(--ink); }
.role-list { display: flex; flex-direction: column; gap: 16px; list-style: none; align-self: center; }
.role-list li { position: relative; padding-left: 30px; font-size: 18px; line-height: 1.6; color: var(--slate); }
.role-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px;
  border-radius: 50%; border: 3px solid var(--blue); box-sizing: border-box;
}
.role-list strong { color: var(--navy); font-weight: 700; }

/* Short role tag on project and campaign cards */
.work-role, .camp-role {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--navy);
  font-size: 13px; font-weight: 500; line-height: 1.3;
}
.work-role::before, .camp-role::before { content: "My role"; font-weight: 700; color: var(--blue); }
.camp-role { margin-top: 2px; font-size: 12px; }

.video-role { font-size: 16px; line-height: 1.6; color: var(--slate); max-width: 820px; }
.video-role strong { color: var(--navy); font-weight: 700; }

@media (max-width: 1000px) {
  .role-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .role-card { border-radius: 18px; padding: 26px 20px 28px; }
  .role-title { font-size: 22px; }
  .role-list li { font-size: 16px; }
}

/* Stat cards (Public Works at a glance) */
.card--stat .stat-num { font: 700 44px/1 var(--barlow); color: var(--blue); letter-spacing: -.5px; }
@media (max-width: 760px) { .card--stat .stat-num { font-size: 36px; } }

/* Case header with an image in the top-right corner */
.case-head--media { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.case-head-img img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .case-head--media { grid-template-columns: 1fr; } }

/* Brand in use (Transit Experience → Brand system) */
.brand-inuse-head { margin-top: 32px; font: 600 18px/1.4 var(--barlow); color: var(--navy); }
.brand-inuse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; list-style: none; }
.brand-inuse li { display: flex; flex-direction: column; gap: 10px; font: 600 15px var(--barlow); color: var(--navy); }
.brand-inuse img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.brand-inuse--fit img { object-fit: contain; background: var(--soft); padding: 8px; box-sizing: border-box; }
/* Crop the website mock-up to the devices so it fills its tile */
.brand-inuse--web .crop { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--soft); }
.brand-inuse--web .crop img { position: absolute; max-width: none; width: 132.7%; height: auto; aspect-ratio: auto; left: -21.1%; top: 9.9%; border-radius: 0; }
.case-head-img--photo img { border-radius: 20px; box-shadow: 0 18px 40px rgba(13, 41, 84, .14); }
@media (max-width: 760px) {
  .brand-inuse { grid-template-columns: 1fr 1fr; gap: 12px; }
  .brand-inuse-head { font-size: 16px; }
}

/* Header with no side column: let the title use the full width */
.case-head--full { grid-template-columns: 1fr; }

/* ---------- Browse by discipline (portfolio overview) ---------- */
.browse-link { align-self: flex-start; margin-top: 8px; }
.browse-link img { rotate: 90deg; }
.browse-link:hover img { translate: 0 3px; filter: brightness(0) invert(1); }
.work .section-head .lede, .browse .section-head .lede { max-width: 760px; }
.browse { background: var(--soft); scroll-margin-top: 40px; }
.browse .wrap { display: flex; flex-direction: column; gap: 32px; padding-block: 112px; }
.browse .section-head { margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  font: 600 15px/1 var(--barlow);
  letter-spacing: .3px;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { font-size: 14px; color: var(--slate); margin-top: -8px; }
.filter-count[hidden] { display: none; }
.filter-count span { font-weight: 700; color: var(--navy); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.proj[hidden] { display: none; }
.proj.is-shown { animation: proj-in .45s var(--expo) both; }
@keyframes proj-in { from { opacity: 0; translate: 0 12px; } }
.proj a { display: flex; flex-direction: column; gap: 10px; }
.proj .thumb { aspect-ratio: 16 / 10; border-radius: 16px; background: #fff; margin-bottom: 6px; }
.proj .thumb .cover { transition: scale .6s var(--expo); }
.proj .thumb--contain .cover { object-fit: contain; padding: 6% 5%; }
.proj a:hover .thumb .cover { scale: 1.04; }
.proj-tags { font: 600 12px/normal var(--barlow); letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue); }
.proj-title { font: 700 21px/1.2 var(--barlow); color: var(--navy); transition: color .2s; }
.proj a:hover .proj-title { color: var(--blue); }
.proj-from { font-size: 14px; color: var(--slate); }
.proj-from::before { content: "From the case study: "; }
@media (prefers-reduced-motion: reduce) { .proj.is-shown { animation: none; } }
@media (max-width: 1180px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .browse .wrap { padding-block: 64px; gap: 24px; }
  .filters { gap: 8px; }
  .filter { font-size: 14px; padding: 10px 16px; }
  .proj-grid { grid-template-columns: 1fr; gap: 28px; }
  .proj-title { font-size: 20px; }
}

@media (max-width: 760px) {
  .hero h1 .line { display: inline; }
}


/* Hero: quote card in place of the photo collage */
.hero-quote {
  position: relative;
  overflow: hidden;
  aspect-ratio: 504 / 460;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 56px 52px;
  border-radius: 28px;
  background: linear-gradient(160deg, #163a72, var(--navy) 60%);
  color: #fff;
  box-shadow: 0 30px 60px rgba(8, 26, 56, 0.25);
}
.hq-stripe { position: absolute; bottom: -60px; width: 150px; height: auto; opacity: .35; pointer-events: none; }
.hq-stripe--1 { right: 70px; }
.hq-stripe--2 { right: 20px; }
.hq-stripe--3 { right: -30px; }
.hq-mark { position: absolute; top: 4px; left: 36px; font: 700 180px/1 var(--barlow); color: var(--blue); opacity: .5; }
.hero-quote blockquote { position: relative; }
.hero-quote blockquote p { font: 700 clamp(28px, 2.6vw, 40px)/1.15 var(--barlow); }
.hq-line { display: block; }
.hero-quote em { font-style: normal; color: #7db8f7; }
.hero-quote figcaption { position: relative; font: 600 14px/normal var(--barlow); letter-spacing: 3.08px; text-transform: uppercase; color: #b9d6f7; }
.hero-quote figcaption::before { content: "— "; }
@media (max-width: 760px) {
  .hero-quote { aspect-ratio: auto; padding: 72px 28px 48px; gap: 20px; border-radius: 22px; }
  .hq-mark { font-size: 130px; left: 22px; }
  .hq-stripe { width: 90px; bottom: -70px; opacity: .3; }
  .hero-quote figcaption { font-size: 12px; letter-spacing: 2.4px; }
}

/* Focus picked on the About page: the browse section moves above the case studies. */
.focus-bar { display: flex; align-items: center; gap: 20px; margin-top: -8px; }
.focus-bar .filter-count { margin-top: 0; }
.show-all {
  border: 0; background: none; padding: 0;
  font: 600 14px/normal var(--dm);
  color: var(--blue);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.show-all:hover { color: var(--navy); }
.show-all[hidden], .browse-link[hidden] { display: none; }
.focus-bar:not(:has(> :not([hidden]))) { display: none; }

/* YRT information architecture slideshow */
.ia-show { display: flex; flex-direction: column; gap: 20px; }
.ia-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-tabs button {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--slate); cursor: pointer;
  font: 600 13px/1.4 var(--barlow); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.ia-tabs button:hover { border-color: var(--blue); color: var(--blue); }
.ia-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.ia-stage { touch-action: pan-y; }
.ia-slide img { max-height: 72vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 8px; border: 1px solid var(--line); -webkit-user-drag: none; user-select: none; }
.ia-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.ia-bar { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ia-count { min-width: 48px; text-align: center; font: 600 14px/1 var(--barlow); letter-spacing: .14em; color: var(--navy); }
.ia-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.ia-btn:hover { border-color: var(--blue); background: var(--tint); }
.ia-btn[data-step="-1"] img { rotate: 180deg; }
@media (prefers-reduced-motion: no-preference) {
  .ia-slide:not([hidden]) { animation: ia-in .45s var(--expo); }
}
@keyframes ia-in { from { opacity: 0; translate: 16px 0; } }
@media (max-width: 760px) {
  .ia-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; }
  .ia-tabs button { flex: none; }
}

/* ---------- Transit Experience: the rider's journey ---------- */
.process-lede { font-size: 18px; line-height: 1.6; color: var(--slate); max-width: 820px; }
.journey { display: flex; flex-direction: column; gap: 88px; }
.journey-bar {
  position: sticky; top: 12px; z-index: 6;
  margin-bottom: -40px;
  padding: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(13, 41, 84, .08);
}
.journey-bar ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; }
.journey-bar a {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  font: 600 16px/1.2 var(--barlow); color: var(--slate); white-space: nowrap;
  transition: background .25s, color .25s;
}
.journey-bar li + li a::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 8px; height: 2px; margin-top: -1px;
  background: var(--line);
}
.journey-bar a:hover { color: var(--navy); background: var(--soft); }
.jb-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 14px var(--barlow); color: var(--blue); background: var(--tint);
  transition: background .25s, color .25s;
}
.journey-bar a.is-done .jb-num { background: var(--blue); color: #fff; }
.journey-bar a[aria-current="step"] { background: var(--navy); color: #fff; }
.journey-bar a[aria-current="step"] .jb-num { background: #fff; color: var(--navy); }

.stage { display: flex; flex-direction: column; gap: 36px; scroll-margin-top: 96px; }
.stage-head { display: flex; gap: 24px; align-items: flex-start; }
.stage-head > div { display: flex; flex-direction: column; gap: 10px; }
.stage-num {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 28px var(--barlow); color: #fff; background: var(--navy);
}
.stage-head .kicker { color: var(--blue); }
.stage-head h2 { font: 700 clamp(30px, 2.8vw, 40px)/1.1 var(--barlow); color: var(--navy); }
.stage-need { font-size: 18px; line-height: 1.6; color: var(--slate); max-width: 820px; }
.stage-need strong { color: var(--navy); }
.stage-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.stage-split .brand-points li { font-size: 17px; }
.stage-camp { display: flex; flex-direction: column; gap: 12px; }
.stage-camp-label { font: 600 12px var(--barlow); letter-spacing: 2.4px; text-transform: uppercase; color: var(--slate); }
.camp-grid--one { grid-template-columns: minmax(0, 1fr); }
.stage-link { color: var(--blue); font-weight: 500; white-space: nowrap; }
.stage-link::after { content: " →"; }
.stage-link:hover { text-decoration: underline; }
.stage .videos { margin-top: 12px; }

.results-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; list-style: none; }
.results-stats li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #c9d8ee; font-size: 14px; line-height: 1.45; }
.results-stats strong { font: 700 34px/1.1 var(--barlow); color: #fff; }
.results-awards { margin-top: 10px; }

@media (max-width: 1000px) {
  .stage-split { grid-template-columns: 1fr; }
  .stage-camp { max-width: 480px; }
  .results-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .journey { gap: 64px; }
  .journey-bar { top: 8px; margin-inline: -8px; margin-bottom: -32px; padding: 6px; }
  .journey-bar ol { gap: 4px; }
  .journey-bar a { flex-direction: column; gap: 4px; padding: 8px 4px; border-radius: 20px; font-size: 12px; white-space: normal; text-align: center; }
  .journey-bar li + li a::before { display: none; }
  .jb-num { width: 24px; height: 24px; font-size: 12px; }
  .stage { gap: 24px; scroll-margin-top: 110px; }
  .stage-head { gap: 16px; }
  .stage-num { width: 44px; height: 44px; font-size: 20px; }
  .stage-need { font-size: 16px; }
  .stage-split .brand-points li { font-size: 16px; }
  .results-stats strong { font-size: 26px; }
  .results-stats li { padding: 16px; }
}
.camp-grid--one .camp-thumb { aspect-ratio: 16 / 10; }

/* Campaign dropdown (Public Works → Rutherford Road) */
.camp-drop { border-radius: 24px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.camp-drop-sum {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 20px 28px 20px 20px; border-radius: 24px;
}
.camp-drop-sum::-webkit-details-marker { display: none; }
.camp-drop-sum:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.camp-drop-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #fff; }
.camp-drop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--expo); }
.camp-drop-sum:hover .camp-drop-thumb img { scale: 1.05; }
.camp-drop-meta { display: flex; flex-direction: column; gap: 6px; }
.camp-drop-title { font: 700 26px/1.2 var(--barlow); color: var(--navy); transition: color .2s; }
.camp-drop-sum:hover .camp-drop-title { color: var(--blue); }
.camp-drop-desc { font-size: 16px; line-height: 1.5; color: var(--slate); }
.camp-drop-toggle {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 18px 12px 22px; border-radius: 999px; background: var(--navy); color: #fff;
  font-weight: 500; font-size: 15px;
}
.camp-drop-toggle svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .3s var(--expo); }
.camp-drop[open] .camp-drop-toggle svg { rotate: 180deg; }
.camp-drop .cd-close, .camp-drop[open] .cd-open { display: none; }
.camp-drop[open] .cd-close { display: inline; }
.camp-drop-body { display: flex; flex-direction: column; gap: 24px; padding: 12px 28px 32px; border-top: 1px solid var(--line); margin-inline: 20px; padding-inline: 0; padding-top: 28px; }
.camp-drop[open] .camp-drop-body { animation: cd-in .45s var(--expo); }
@keyframes cd-in { from { opacity: 0; translate: 0 -10px; } }
.camp-drop-text { font-size: 18px; line-height: 1.6; color: var(--slate); max-width: 820px; }
@media (max-width: 900px) {
  .camp-drop-sum { grid-template-columns: 160px minmax(0, 1fr); }
  .camp-drop-toggle { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .camp-drop { border-radius: 18px; }
  .camp-drop-sum { grid-template-columns: 1fr; gap: 16px; padding: 14px 14px 18px; }
  .camp-drop-title { font-size: 22px; }
  .camp-drop-body { margin-inline: 14px; padding-bottom: 20px; }
  .camp-drop-text { font-size: 16px; }
}
.camp-drop .brand-points { background: #fff; }
.camp-drop .brand-inuse-head { margin-top: 8px; }

/* ---------- My role: four-tile summary ---------- */
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; align-self: center; }
.role-grid li { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; border-radius: 16px; background: #fff; border-top: 3px solid var(--blue); }
.case--soft .role-grid li { background: var(--soft); }
.rg-label { font: 600 12px var(--barlow); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.rg-head { font: 700 20px/1.25 var(--barlow); color: var(--navy); }
.rg-text { font-size: 15px; line-height: 1.55; color: var(--slate); }
@media (max-width: 760px) {
  .role-grid { grid-template-columns: 1fr; }
  .rg-head { font-size: 18px; }
}

/* ---------- Core responsibilities (transit) ---------- */
.resp-card { display: flex; flex-direction: column; gap: 24px; }
.resp-card .role-id { gap: 8px; }
.resp-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.resp-list li { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 22px; border-radius: 16px; background: var(--soft); }
.case--soft .resp-list li { background: #fff; }
.resp-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 14px var(--barlow); }
.resp-list h3 { font: 700 17px/1.25 var(--barlow); color: var(--navy); margin-bottom: 4px; }
.resp-list p { font-size: 14.5px; line-height: 1.5; color: var(--slate); }
@media (max-width: 1100px) { .resp-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .resp-list { grid-template-columns: 1fr; gap: 0; }
  .resp-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-radius: 0; background: none !important; border-top: 1px solid var(--line); }
  .resp-list li:first-child { border-top: 0; }
}

/* Brand dropdown: points beside the two guide pages */
.brand-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-pages--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .brand-split { grid-template-columns: 1fr; } }
.brand-split .guide-pages--two { gap: 12px; }
.brand-split .guide-pages li { font-size: 14px; gap: 6px; }
#brand .brand-inuse img, #brand .brand-inuse--web .crop { aspect-ratio: 2 / 1; }
#brand .brand-inuse { margin-top: 10px; }
#brand .brand-inuse li { font-size: 14px; gap: 6px; }
#brand .brand-inuse-head { font: 600 12px var(--barlow); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.brand-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--slate); }
.brand-result strong, .camp-drop-text strong { color: var(--navy); }
/* Brand dropdown: compact — text wide, two guide pages stacked in a slim column */
#brand .brand-split { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: start; }
#brand .brand-split .guide-pages--two { grid-template-columns: 1fr 1fr; }
#brand .camp-drop-body { gap: 18px; }
@media (max-width: 1000px) { #brand .brand-split { grid-template-columns: 1fr; } #brand .brand-split .guide-pages--two { grid-template-columns: 1fr 1fr; } }

/* ---------- Campaign popup: strategy flow, idea, channels ---------- */
.cm-section-head { margin-top: 8px; font: 700 14px var(--barlow); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.cm-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; counter-reset: none; }
.cm-flow li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 22px; border-radius: 16px; background: var(--soft); }
.cm-flow li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 30px; width: 10px; height: 10px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); z-index: 1; }
.cm-flow-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px var(--barlow); }
.cm-flow h5, .cm-channels h5 { font: 700 17px/1.25 var(--barlow); color: var(--navy); }
.cm-flow p { font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.cm-idea { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border-radius: 18px; background: var(--soft); }
.cm-idea-fig img { display: block; width: 100%; border-radius: 12px; }
.cm-idea-text { display: flex; flex-direction: column; gap: 10px; }
.cm-idea-text p, .cm-idea-text li { font-size: 15px; line-height: 1.55; color: var(--slate); }
.cm-idea-text ul { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; }
.cm-idea-text strong { color: var(--navy); }
.cm-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cm-channels li { display: flex; flex-direction: column; gap: 6px; }
.cm-ch-img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); margin-bottom: 6px; }
.cm-ch-img img { width: 100%; height: 100%; object-fit: contain; }
.cm-channels p { font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.cm-channels p strong { font: 700 18px var(--barlow); color: var(--navy); }
.cm-ch-text { justify-content: center; gap: 12px !important; padding: 22px; border-radius: 14px; background: var(--navy); }
.cm-ch-text h5 { color: #fff; }
.cm-ch-text p { color: #c9d8ee; }
.cm-ch-text p strong { color: #fff; }
@media (max-width: 900px) {
  .cm-flow { grid-template-columns: 1fr 1fr; }
  .cm-flow li::after { display: none; }
  .cm-idea { grid-template-columns: 1fr; padding: 18px; }
  .cm-channels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cm-flow, .cm-channels { grid-template-columns: 1fr; }
}
.cm-channels--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-channels--two .cm-ch-img { aspect-ratio: 16 / 10; }
.cm-idea-fig--crop img { max-height: 380px; object-fit: cover; object-position: top; border: 1px solid var(--line); }

/* ---------- Stage 1: featured work list (campaigns + video series) ---------- */
.feat-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.feat-list .feat-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.feat-list .feat-item:hover { box-shadow: 0 0 0 2px var(--blue); transform: translateY(-1px); }
.feat-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.feat-thumb img:first-child { width: 100%; height: 100%; object-fit: cover; }
.feat-play { position: absolute; left: 50%; top: 50%; width: 34px !important; height: 34px !important; padding: 8px; translate: -50% -50%; border-radius: 50%; background: var(--navy); box-sizing: border-box; }
.feat-meta { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.feat-name { font: 700 18px/1.2 var(--barlow); color: var(--navy); }
.feat-item:hover .feat-name { color: var(--blue); }
.cm-videos { margin-top: 8px; }
@media (max-width: 560px) { .feat-list .feat-item { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; } .feat-name { font-size: 16px; } }

/* ---------- YRT website: key decisions as numbered stages ---------- */
.journey-bar--five ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.journey--decisions .stage-need + .stage-need { margin-top: 2px; }
.journey--decisions .stage-head h2 { font-size: clamp(26px, 2.4vw, 34px); }
.cg-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; width: 100%; }
.cg-card { padding: 24px 26px; border-radius: 18px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.cg-label { font: 600 12px var(--barlow); letter-spacing: 2.4px; text-transform: uppercase; color: var(--blue); }
.cg-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cg-card li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.5; color: var(--slate); }
.cg-card li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.cg-card--goal { background: var(--navy); }
.cg-card--goal .cg-label { color: #9cc3ff; }
.cg-card--goal p:not(.cg-label) { font: 600 22px/1.35 var(--barlow); color: #fff; }
@media (max-width: 760px) { .cg-split { grid-template-columns: 1fr; } }

/* ---------- YRT website: low / high fidelity wireframe switch ---------- */
.wf-show { display: flex; flex-direction: column; gap: 20px; }
.wf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wf-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.wf-toggle button { padding: 9px 18px; border-radius: 999px; font: 600 15px var(--barlow); color: var(--slate); transition: background .2s, color .2s; }
.wf-toggle button:hover { color: var(--navy); }
.wf-toggle button[aria-selected="true"] { background: var(--navy); color: #fff; }
.wf-hint { font-size: 14px; color: var(--slate); }
a.wire { cursor: zoom-in; }
a.wire .wire-thumb { transition: box-shadow .2s, transform .2s; }
a.wire:hover .wire-thumb { box-shadow: 0 10px 24px rgba(13, 41, 84, .12); transform: translateY(-2px); }
.wireframes[hidden] { display: none; }

/* Journey / decision bars sit in place rather than floating while scrolling. */
.journey-bar { position: relative; top: auto; }
