:root {
  --page: #f5f4f2;
  --paper: #ffffff;
  --hero: #e7d5c9;
  --ink: #323232;
  --muted: #777777;
  --faint: #aaa39d;
  --line: #ded8d3;
  --brown: #815f49;
  --brown-dark: #5b3928;
  --brown-soft: #efe5dc;
  --green: #2d8a5d;
  --green-soft: #eef6f1;
  --shadow: 0 18px 54px rgba(73, 49, 35, 0.08);
  --content: 760px;
  --wide: 1120px;
  --radius: 8px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: 0;
}

::selection {
  background: var(--brown);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 30;
  transform: translateY(-140%);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px 12px;
  font-size: 12px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 clamp(28px, 4.5vw, 56px);
  border-bottom: 1px solid rgba(237, 237, 237, 0.92);
  background: rgba(247, 247, 246, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 12px;
  line-height: 1;
}

.brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}

.topnav a {
  justify-content: center;
  min-width: 70px;
  border-radius: 999px;
  color: #565656;
  padding: 0 18px;
  font-weight: 560;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.topnav a:not(.active):hover,
.topnav a:not(.active):focus-visible {
  background: #fff;
  color: #565656;
  box-shadow: 0 4px 14px rgba(50, 50, 50, 0.04);
}

.topnav .active {
  background: var(--ink);
  color: #fff;
}

.topnav .active:hover,
.topnav .active:focus-visible {
  background: var(--ink);
  color: #fff;
}

.hero {
  background: var(--hero);
  padding: 0;
  overflow: hidden;
}

.hero-frame {
  width: 100%;
  margin: 0;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.case-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, var(--content));
  gap: clamp(46px, 8vw, 104px);
  width: min(var(--wide), calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 126px;
}

.case-nav {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 9px;
  padding-top: 6px;
}

.case-nav a {
  color: #a29b96;
  font-size: 12px;
  line-height: 1.25;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.case-nav a:hover,
.case-nav a.is-active {
  color: var(--ink);
  transform: translateX(3px);
}

.case-content {
  min-width: 0;
}

.case-section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.intro-section {
  padding-top: 0;
  border-top: 0;
}

.section-label {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family:
    Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.16;
}

h1 {
  font-size: clamp(29px, 4vw, 43px);
}

h2 {
  font-size: clamp(25px, 3.3vw, 36px);
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.42;
}

p {
  color: var(--muted);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.project-meta div {
  min-height: 88px;
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(73, 49, 35, 0.03);
}

.project-meta dt {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.media-card {
  margin: 34px 0 0;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.wide-media {
  width: min(930px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.product-shot {
  padding: 0;
}

.flow-media {
  width: min(820px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding: 0;
}

.flow-media img {
  border-radius: var(--radius);
}

.flow-media figcaption {
  margin-bottom: 0;
  padding: 0 clamp(16px, 4vw, 28px);
}

figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.challenge-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.challenge-track {
  position: relative;
  display: grid;
  min-height: 286px;
}

.challenge-card {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(214px, 0.72fr);
  gap: 28px;
  align-items: center;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid rgba(222, 216, 211, 0.86);
  border-radius: var(--radius);
  background: #fff;
  padding: 34px 56px 0 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 460ms ease;
}

.challenge-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.challenge-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--photo-ratio, 1.68);
  align-self: end;
  min-width: 0;
  min-height: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
  box-shadow: 0 12px 34px rgba(73, 49, 35, 0.07);
}

.challenge-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: var(--photo-position, center);
  transform: scale(var(--photo-scale, 1));
}

.challenge-photo-browse {
  --photo-ratio: 12081 / 6912;
  --photo-position: center;
  --photo-scale: 1;
}

.challenge-photo-message {
  --photo-ratio: 12081 / 6912;
  --photo-position: center;
  --photo-scale: 1;
}

.challenge-photo-wait {
  --photo-ratio: 5040 / 2937;
  --photo-position: center;
  --photo-scale: 1;
}

.challenge-photo-commitment {
  --photo-ratio: 5040 / 2937;
  --photo-position: center;
  --photo-scale: 1;
}

.challenge-card-copy {
  min-width: 0;
  overflow: hidden;
}

.challenge-card-copy p {
  margin-bottom: 10px;
  color: #8f8f8f;
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.28;
}

.challenge-card-copy h3 {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  font-size: clamp(19px, 2.05vw, 24px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.challenge-card-copy h3 span,
.challenge-card-copy h3 strong {
  display: block;
}

.challenge-card-copy h3 span {
  color: #b8b8b8;
}

.challenge-card-copy h3 strong {
  color: var(--brown);
}

.challenge-dots {
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.challenge-dots button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.challenge-dots button::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #dedede;
  content: "";
  transition: background 180ms ease;
}

.challenge-dots button:hover::before,
.challenge-dots button:focus-visible::before,
.challenge-dots button.is-active::before {
  background: var(--brown);
}

.improvement-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.improvement-track {
  position: relative;
  display: grid;
  min-height: 450px;
}

.improvement-card {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(238px, 0.72fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(222, 216, 211, 0.86);
  border-radius: var(--radius);
  background: #fff;
  padding: 34px 56px 34px 34px;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 460ms ease,
    visibility 0s linear 460ms;
}

.improvement-card.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
  transition: opacity 460ms ease;
}

.improvement-copy {
  display: grid;
  grid-template-rows: minmax(62px, auto) auto auto 1fr auto;
  gap: 10px;
  align-content: stretch;
  min-width: 0;
  min-height: 0;
  height: 382px;
}

.improvement-copy h3 {
  display: flex;
  align-items: flex-start;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  font-size: clamp(19px, 2.05vw, 24px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.improvement-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.5;
}

.improvement-copy > p:not(.improvement-note) {
  max-height: 122px;
  overflow: hidden;
}

.improvement-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 286px;
  min-height: 68px;
  margin: 0;
  align-self: start;
}

.improvement-tags:where([aria-label="Live activity controls"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 238px;
}

.improvement-tags span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brown);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.improvement-actions {
  display: grid;
  gap: 8px;
  max-width: 226px;
  min-height: 68px;
  margin: 0;
  align-self: start;
}

.improvement-actions span,
.improvement-actions strong {
  display: block;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.improvement-actions span {
  background: #f6f4f2;
  color: #c7c1bc;
}

.improvement-actions strong {
  background: var(--brown);
  color: #fff;
}

.improvement-note {
  display: inline-grid;
  grid-row: 5;
  grid-template-columns: 1px minmax(0, 1fr);
  align-items: center;
  align-self: end;
  column-gap: 12px;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--brown);
  font-size: clamp(11px, 1.1vw, 12px);
  font-weight: 650;
  line-height: 1.55;
}

.improvement-note::before {
  display: block;
  width: 1px;
  align-self: stretch;
  background: var(--brown);
  content: "";
}

.improvement-note span {
  min-width: 0;
}

.improvement-media {
  align-self: start;
  margin: 0;
  min-width: 0;
  height: 382px;
}

.improvement-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
}

.improvement-dots {
  position: absolute;
  top: 26px;
  right: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.improvement-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.improvement-dots button::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #dedede;
  content: "";
  transition: background 180ms ease;
}

.improvement-dots button:hover::before,
.improvement-dots button:focus-visible::before,
.improvement-dots button.is-active::before {
  background: var(--brown);
}

.reframe-grid,
.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.78fr);
  gap: 18px;
  margin-top: 32px;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-list div,
.system-card,
.insight-grid article,
.handoff-grid article {
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(73, 49, 35, 0.03);
}

.audit-list span,
.system-card span,
.insight-grid span,
.feature-copy span,
.handoff-grid span,
.result-row span,
.mini-label {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-list p,
.system-card p,
.insight-grid p {
  margin: 4px 0 0;
  font-size: 13px;
}

.brown-callout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--brown);
  color: #fff;
  padding: 26px;
}

.brown-callout span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.brown-callout strong {
  display: block;
  margin: 14px 0;
  color: #fff;
  font-family:
    Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.08;
}

.brown-callout p {
  color: rgba(255, 255, 255, 0.82);
}

.system-card.brown {
  background: var(--brown);
  color: #fff;
}

.metric-row,
.result-row,
.insight-grid,
.handoff-grid {
  display: grid;
  gap: 14px;
}

.metric-row,
.result-row,
.handoff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.metric-row article,
.result-row article {
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
}

.metric-row strong,
.result-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brown);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1;
}

.result-row strong {
  font-size: clamp(22px, 2.55vw, 30px);
  letter-spacing: 0;
  white-space: nowrap;
}

.result-row span {
  margin-bottom: 14px;
}

.metric-row span,
.result-row span {
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.insight-grid h3 {
  margin: 8px 0;
  font-size: 15px;
}

.research-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.research-panel > div {
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.bar-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bar-list p {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 12px;
}

.bar-list b {
  display: block;
  width: var(--w);
  height: 8px;
  border-radius: var(--radius);
  background: var(--brown);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  border-radius: var(--radius);
  background: var(--brown);
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 650;
}

.system-card strong {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.system-card p {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.system-card.brown span {
  color: rgba(255, 255, 255, 0.68);
}

.system-card.brown strong {
  color: rgba(255, 255, 255, 0.82);
}

.system-card.brown p {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.feature-copy {
  margin: 24px 0 54px;
  border-left: 2px solid var(--brown);
  padding-left: 18px;
}

.feature-copy h3 {
  margin-top: 8px;
  font-family:
    Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.2;
}

.feature-copy p {
  margin-bottom: 0;
}

.blank-shot {
  background: transparent;
}

.handoff-grid article strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
}

blockquote {
  margin: 34px 0 0;
  border-left: 2px solid var(--brown);
  padding-left: 20px;
  color: var(--ink);
  font-family:
    Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.55;
}

.footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  align-items: center;
  min-height: 118px;
  background: var(--ink);
  color: #f5f5f5;
  padding: 0 clamp(28px, 4.5vw, 56px);
  font-size: 12px;
}

.footer a,
.footer span {
  color: #f5f5f5;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .challenge-dots {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .challenge-dots button {
    width: 28px;
    height: 28px;
  }

  .challenge-dots button::before {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 1040px) {
  .case-layout {
    grid-template-columns: 1fr;
    width: min(var(--content), calc(100% - 42px));
    padding-top: 44px;
  }

  .case-nav {
    position: static;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .case-nav a {
    white-space: nowrap;
  }

  .wide-media {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .challenge-carousel {
    width: 100%;
    --challenge-space: clamp(22px, 3.6vw, 30px);
  }

  .challenge-track,
  .challenge-card {
    min-height: 0;
  }

  .challenge-card:not(.is-active) {
    position: absolute;
    inset: 0;
  }

  .challenge-card {
    grid-template-columns: 1fr;
    gap: var(--challenge-space);
    align-content: start;
    align-items: start;
    padding: var(--challenge-space) var(--challenge-space) 0;
  }

  .challenge-photo {
    order: 2;
    width: 100%;
    aspect-ratio: var(--photo-ratio, 1.68);
  }

  .challenge-card-copy {
    order: 1;
    padding-right: 50px;
  }

  .challenge-card-copy h3 {
    font-size: clamp(19px, 3vw, 22px);
    white-space: nowrap;
  }

  .challenge-card-copy h3 span,
  .challenge-card-copy h3 strong {
    display: inline;
  }

  .challenge-dots {
    top: var(--challenge-space);
    right: var(--challenge-space);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .improvement-carousel {
    --improvement-space: clamp(22px, 3.6vw, 30px);
  }

  .improvement-track,
  .improvement-card {
    min-height: 0;
  }

  .improvement-card {
    grid-template-columns: 1fr;
    gap: var(--improvement-space);
    align-content: start;
    align-items: start;
    padding: var(--improvement-space);
  }

  .improvement-copy {
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    min-height: 0;
    height: auto;
    padding-right: clamp(108px, 15vw, 126px);
  }

  .improvement-copy > p:not(.improvement-note) {
    max-height: none;
  }

  .improvement-tags {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    max-width: 100%;
    min-height: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .improvement-tags::-webkit-scrollbar {
    display: none;
  }

  .improvement-tags span {
    flex: 0 0 auto;
    min-height: 30px;
  }

  .improvement-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    max-width: 100%;
    min-height: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .improvement-actions::-webkit-scrollbar {
    display: none;
  }

  .improvement-actions span,
  .improvement-actions strong {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .improvement-media {
    width: 100%;
    height: auto;
  }

  .improvement-media img {
    height: auto;
    max-height: none;
  }

  .improvement-dots {
    top: var(--improvement-space);
    right: var(--improvement-space);
    flex-direction: row;
    gap: 2px;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
    min-height: 132px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 116px;
  }

  body {
    font-size: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    gap: 14px;
    padding: 18px 22px;
  }

  .brand,
  .topnav a {
    min-height: 32px;
  }

  .topnav a {
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .topnav .active {
    min-width: 58px;
    min-height: 32px;
    padding: 0 12px;
  }

  .hero {
    padding: 0;
  }

  .hero-frame img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .case-layout {
    width: min(100% - 32px, var(--content));
    padding-bottom: 86px;
  }

  .case-section {
    padding: 62px 0;
  }

  .challenge-carousel {
    width: 100%;
    --challenge-space: clamp(18px, 5vw, 22px);
  }

  .challenge-track,
  .challenge-card {
    min-height: 0;
  }

  .challenge-card {
    gap: var(--challenge-space);
    padding: var(--challenge-space) var(--challenge-space) 0;
  }

  .challenge-photo {
    order: 2;
    aspect-ratio: var(--photo-ratio, 1.55);
  }

  .challenge-dots {
    top: var(--challenge-space);
    right: var(--challenge-space);
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .challenge-dots button {
    width: 26px;
    height: 26px;
  }

  .challenge-dots button::before {
    width: 12px;
    height: 12px;
  }

  .challenge-card-copy {
    order: 1;
    padding-right: 48px;
  }

  .challenge-card-copy p {
    font-size: 13px;
  }

  .challenge-card-copy h3 {
    font-size: clamp(17px, 4.9vw, 20px);
  }

  .improvement-carousel {
    --improvement-space: clamp(18px, 5vw, 22px);
  }

  .improvement-card {
    gap: var(--improvement-space);
    padding: var(--improvement-space);
  }

  .improvement-copy {
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    min-height: 0;
    height: auto;
    padding-right: 112px;
  }

  .improvement-copy h3 {
    font-size: clamp(17px, 4.9vw, 20px);
  }

  .improvement-copy p {
    font-size: 13px;
    line-height: 1.5;
  }

  .improvement-tags {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    max-width: 100%;
    min-height: 0;
  }

  .improvement-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    min-height: 0;
  }

  .improvement-dots {
    top: var(--improvement-space);
    right: var(--improvement-space);
    flex-direction: row;
    gap: 1px;
  }

  .improvement-dots button {
    width: 24px;
    height: 24px;
  }

  .project-meta,
  .reframe-grid,
  .system-grid,
  .metric-row,
  .result-row,
  .insight-grid,
  .research-panel,
  .handoff-grid {
    grid-template-columns: 1fr;
  }

  .project-meta div {
    min-height: auto;
  }

  .brown-callout {
    min-height: 240px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 180px;
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
