:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-muted: #f1f3f5;
  --text: #1a1a2e;
  --text-muted: #4b5563;
  --soft-muted: #9ca3af;
  --accent: #9b7bd0;
  --accent-soft: #eee9f7;
  --radius: 24px;
  --max-width: 1152px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.site-header,
.site-footer,
.section,
.hero {
  padding-inline: clamp(20px, 5vw, 64px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max-width) + 128px);
  margin: 0 auto;
  padding-block: 128px 24px;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 4px;
  pointer-events: none;
}

.scroll-progress__bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(155, 123, 208, 0.45);
  transform-origin: left center;
}

.sticky-nav-page .site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  max-width: none;
  padding-block: 20px 28px;
  isolation: isolate;
  background: transparent;
}

.sticky-nav-page .site-header--case {
  padding-block: 20px 28px;
}

.sticky-nav-page .site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: -44px;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #f8f9fa 0%,
    rgba(248, 249, 250, 0.9) 34%,
    rgba(248, 249, 250, 0.5) 68%,
    rgba(248, 249, 250, 0) 100%
  );
  backdrop-filter: blur(2px);
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  text-align: center;
}

.hero__content,
.section__header,
.project-list,
.site-footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

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

.eyebrow {
  margin-bottom: 32px;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  margin-bottom: 34px;
  color: var(--text);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__intro {
  max-width: 670px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1.45;
}

.hero__actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 180px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 18px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
}

.button::after {
  content: " ↑";
}

.text-link::after {
  content: " →";
}

.button--primary {
  background: var(--surface);
  color: var(--accent);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.button--secondary,
.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--surface);
  color: var(--accent);
}

.section {
  padding-block: 128px;
}

.section--muted {
  background: var(--surface-muted);
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

.section__header h2 {
  text-transform: uppercase;
}

.section__header--split p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.project-list {
  display: grid;
  gap: 64px;
}

.project-card {
  display: grid;
  grid-template-columns: 533px 1fr;
  align-items: stretch;
  gap: 128px;
  border-radius: var(--radius);
  outline-offset: 8px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  color: inherit;
  opacity: 0.86;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
}

.project-card img,
.project-card__placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  object-fit: cover;
}

.project-card__placeholder {
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  color: var(--soft-muted);
  font-size: 15px;
}

.project-card__home-carousel {
  width: 100%;
  height: 300px;
  margin: 0;
}

.project-card__home-carousel .cover-carousel__viewport {
  height: 300px;
  aspect-ratio: auto;
  border-radius: var(--radius);
}

.project-card__home-carousel .cover-carousel__viewport img {
  object-fit: cover;
}

.project-card__home-carousel .cover-carousel__arrow {
  width: 34px;
  height: 34px;
  font-size: 24px;
}

.project-card__home-carousel .cover-carousel__arrow--prev {
  left: 12px;
}

.project-card__home-carousel .cover-carousel__arrow--next {
  right: 12px;
}

.project-card__home-carousel .cover-carousel__dots {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  margin-top: 0;
}

.project-card__body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0 24px;
}

.project-card__kicker,
.interests {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
}

.project-card__body p:not(.project-card__kicker) {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.project-card__cta,
.text-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.about {
  display: grid;
  width: min(100%, var(--max-width));
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 64px;
  margin-inline: auto;
}

.about__image {
  overflow: hidden;
  width: 320px;
  height: 320px;
  border-radius: var(--radius);
  background: var(--surface);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about h2 {
  color: var(--accent);
  font-size: 32px;
}

.about .interests {
  margin-top: 32px;
}

.about__content p:not(.eyebrow):not(.interests) {
  max-width: 660px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.contact {
  display: grid;
  width: min(100%, var(--max-width));
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 260px);
  gap: 64px;
  margin-inline: auto;
  background: var(--surface-muted);
  color: var(--text);
  box-shadow: 0 0 0 100vmax var(--surface-muted);
  clip-path: inset(0 -100vmax);
}

.contact p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 14px;
}

.contact h2 {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: 32px;
}

.contact__details {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--text-muted);
  font-style: normal;
  font-size: 15px;
}

.contact__details strong,
.contact__details a:nth-of-type(3),
.contact__details a:nth-of-type(4) {
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.contact__details strong {
  font-size: 13px;
}

.contact__details a:nth-of-type(1) {
  color: var(--text);
  font-weight: 500;
}

.contact__details a:nth-of-type(3),
.contact__details a:nth-of-type(4) {
  display: inline;
}

.contact__details {
  grid-template-columns: 1fr 1fr;
}

.contact__details strong,
.contact__details a:nth-of-type(1),
.contact__details a:nth-of-type(2) {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 0 128px;
  color: var(--text-muted);
  background: var(--surface-muted);
  box-shadow: 0 0 0 100vmax var(--surface-muted);
  clip-path: inset(0 -100vmax);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  font-size: 13px;
  gap: 0;
}

.site-footer nav a + a::before {
  content: " · ";
  color: var(--text-muted);
}

.case-hero,
.case-section {
  padding-inline: clamp(20px, 5vw, 64px);
}

.case-hero {
  display: grid;
  width: min(100%, var(--max-width));
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: 64px;
  min-height: 680px;
  margin-inline: auto;
}

.case-hero h1 {
  margin-bottom: 24px;
  color: var(--accent);
}

.case-hero p:not(.case-label) {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1.45;
}

.case-label {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-hero__media img {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-muted);
}

.case-section {
  padding-block: 128px;
}

.case-section--muted {
  background: var(--surface-muted);
  box-shadow: 0 0 0 100vmax var(--surface-muted);
  clip-path: inset(0 -100vmax);
}

.case-section__header,
.case-grid,
.story-split,
.outcome-layout,
.image-row,
.research-summary,
.need-grid,
.feature-stack,
.decision-grid,
.testing-grid,
.reflection-grid,
.placeholder-panel {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.case-section__header {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 32px;
  margin-bottom: 64px;
}

.case-section__header span {
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
}

.case-section__header h2 {
  font-size: 32px;
  color: var(--text);
}

.case-grid--overview,
.story-split,
.outcome-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.72fr);
  gap: 64px;
}

.case-lede,
.story-split p,
.outcome-layout p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.story-split h3,
.outcome-layout h3,
.feature-row h3,
.decision-grid h3,
.reflection-grid h3,
.need-grid h3 {
  color: var(--accent);
  font-size: 24px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
}

.meta-grid div,
.quiet-card,
.stat-card,
.need-grid article,
.decision-grid article,
.reflection-grid article,
.testing-grid article {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}

.meta-grid dt {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.quiet-card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 15px;
  text-transform: uppercase;
}

.quiet-card p {
  margin-bottom: 0;
  color: var(--text);
}

.process-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-steps li {
  counter-increment: process;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-muted);
  font-size: 15px;
}

.process-steps li::before {
  content: counter(process, decimal-leading-zero);
  color: var(--accent);
  font-weight: 500;
}

.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.image-row img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
}

.research-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.need-grid,
.decision-grid,
.reflection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.need-grid p,
.decision-grid p,
.reflection-grid p,
.feature-row p:not(.case-label),
.testing-grid span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.placeholder-panel {
  display: grid;
  place-items: center;
  min-height: 280px;
  margin-top: 32px;
  border: 1px dashed #cfd5df;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(155, 123, 208, 0.12), rgba(155, 123, 208, 0)),
    var(--surface);
  color: var(--soft-muted);
  font-size: 15px;
  text-align: center;
}

.feature-stack {
  display: grid;
  gap: 64px;
}

.feature-row {
  display: grid;
  grid-template-columns: 533px 1fr;
  align-items: center;
  gap: 64px;
}

.feature-row img,
.feature-row .placeholder-panel {
  width: 100%;
  height: 300px;
  margin-top: 0;
  object-fit: cover;
}

.testing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.testing-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}

@media (min-width: 781px) {
  .project-card:first-child h3 {
    font-size: 36px;
  }

  .project-card:nth-child(2) img,
  .project-card:nth-child(3) img {
    object-position: center;
  }
}

@media (max-width: 980px) {
  .project-card {
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 48px;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding-block: 32px 16px;
  }

  .site-header,
  .site-footer,
  .section__header,
  .project-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .hero {
    min-height: auto;
    padding-block: 92px 112px;
  }

  h1 {
    font-size: 42px;
  }

  .hero__intro {
    font-size: 18px;
  }

  .hero__actions {
    margin-top: 72px;
  }

  .section {
    padding-block: 72px;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .project-list {
    gap: 56px;
  }

  .project-card,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card img,
  .project-card__placeholder,
  .project-card__home-carousel,
  .project-card__home-carousel .cover-carousel__viewport {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .project-card__body {
    min-height: auto;
    padding: 0;
  }

  .about__image {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 1;
  }

  .contact__details {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-block: 0 72px;
  }

  .case-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding-block: 72px;
  }

  .case-hero p:not(.case-label) {
    font-size: 18px;
  }

  .case-hero__media img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .case-section {
    padding-block: 72px;
  }

  .case-section__header,
  .case-grid--overview,
  .story-split,
  .outcome-layout,
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-section__header {
    margin-bottom: 36px;
  }

  .research-summary,
  .need-grid,
  .decision-grid,
  .reflection-grid,
  .testing-grid,
  .image-row {
    grid-template-columns: 1fr;
  }

  .feature-row img,
  .feature-row .placeholder-panel {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 460px) {
  .hero__actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 36px;
  }
}

/* SoleMate case-study fidelity pass based on the M2 export. */
.site-header--case {
  max-width: 1288px;
  padding-block: 48px 0;
}

.case-page {
  background: var(--bg);
}

.case-page .case-hero--m2,
.case-page .case-section,
.case-page .contact,
.case-page .site-footer {
  width: min(100%, 1128px);
  margin-inline: auto;
}

.case-page .case-hero--m2 {
  display: block;
  min-height: 760px;
  padding: 128px 0;
}

.case-page .case-hero__copy {
  max-width: 720px;
}

.case-page .case-label {
  margin: 0 0 18px;
  color: #6b4ba3;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-page .case-hero h1 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.1;
}

.case-page .case-hero p:not(.case-label) {
  max-width: none;
  margin: 0;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1.35;
}

.carousel-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  height: 420px;
  margin-top: 120px;
  border-radius: 16px;
  color: var(--soft-muted);
  text-align: center;
}

.carousel-placeholder strong {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 500;
}

.carousel-placeholder span {
  font-size: 13px;
}

.cover-carousel {
  position: relative;
  width: min(100%, 846px);
  margin-top: 120px;
  margin-inline: auto;
  border-radius: 16px;
}

.cover-carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--surface);
}

.cover-carousel__viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cover-carousel__viewport img.is-active {
  opacity: 1;
}

.cover-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.cover-carousel__arrow:hover,
.cover-carousel__arrow:focus-visible {
  background: var(--surface);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cover-carousel__arrow--prev {
  left: 18px;
}

.cover-carousel__arrow--next {
  right: 18px;
}

.cover-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.cover-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: #d7dce3;
  cursor: pointer;
}

.cover-carousel__dots button.is-active {
  background: var(--accent);
}

.cover-carousel__dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.static-cover {
  width: min(100%, 846px);
  margin-top: 120px;
  margin-inline: auto;
  border-radius: 16px;
}

.static-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.case-page .case-section {
  padding-block: 128px;
  padding-inline: 0;
}

.case-page .case-section--muted {
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.case-page .case-section__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin: 0 0 40px;
}

.case-page .case-section__header span {
  color: var(--text);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.case-page .case-section__header h2 {
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.case-page .case-grid--overview {
  display: grid;
  width: 100%;
  grid-template-columns: 720px 320px;
  gap: 64px;
}

.case-page .case-lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.5;
}

.case-page .case-lede--wide {
  width: 100%;
  max-width: 1128px;
  margin-bottom: 40px;
}

.inline-policy-link {
  color: var(--accent);
  font-weight: 500;
}

.inline-policy-link:hover,
.inline-policy-link:focus-visible {
  color: #6b4ba3;
}

.case-meta-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.case-meta-list dt {
  margin-bottom: 4px;
  color: #6b4ba3;
  font-size: 13px;
  font-weight: 500;
}

.case-meta-list dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.compact-card-grid {
  display: grid;
  width: 100%;
  gap: 24px;
}

.compact-card-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.compact-card-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.compact-card-grid article {
  border-radius: 16px;
  background: var(--surface);
  padding: 28px;
}

.compact-card-grid h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.compact-card-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.case-kicker {
  width: 100%;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 17px;
}

.research-summary--m2 {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin: 0 0 48px;
}

.stat-card--flat {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.stat-card--flat strong {
  color: #6b4ba3;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
}

.stat-card--flat span {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 16px;
}

.diagram-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diagram-placeholder,
.testing-visual,
.feature-media-box {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(155, 123, 208, 0.1), rgba(155, 123, 208, 0)),
    var(--surface-muted);
  color: var(--soft-muted);
  font-size: 14px;
  text-align: center;
}

.diagram-placeholder {
  height: 280px;
}

.diagram-placeholder img,
.testing-visual img,
.feature-media-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testing-card .case-label {
  margin-bottom: 12px;
}

.testing-card h3 {
  margin-bottom: 20px;
}

.testing-card p strong {
  color: #9b7bd0;
  font-size: 13px;
  font-weight: 500;
}

.testing-card p + p {
  margin-top: 8px;
}

.testing-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 136px;
  margin-bottom: 20px;
  background: transparent;
}

.testing-visual img {
  min-width: 0;
  border-radius: 4px;
  background: var(--surface-muted);
}

.case-meet {
  padding-block: 80px 128px;
}

.case-meet h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
}

.case-meet h2 span {
  color: #6b4ba3;
}

.case-meet p {
  max-width: 1128px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.5;
}

.feature-list-m2 {
  display: grid;
  gap: 48px;
}

.feature-list-m2 article {
  display: grid;
  grid-template-columns: 420px 640px;
  gap: 48px;
  align-items: center;
}

.feature-media-label {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--text-muted);
  font-size: 14px;
}

.feature-media-box {
  overflow: hidden;
  height: 260px;
}

.feature-media-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-media-box video {
  display: block;
  border: 0;
  background: var(--surface-muted);
}

.wide-image-placeholder {
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
}

.wide-image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.personas-placeholder {
  height: 624px;
  padding: 24px;
}

.strategy-placeholder {
  height: 328px;
  padding: 24px;
}

.feature-carousel {
  overflow: visible;
  background: transparent;
}

.feature-carousel .cover-carousel__viewport {
  height: 260px;
  aspect-ratio: auto;
  background: var(--surface);
}

.wave-feature-list .feature-media-box {
  height: 300px;
  padding: 20px;
  background: var(--surface);
}

.wave-feature-list .feature-carousel .cover-carousel__viewport {
  height: 300px;
}

.wave-feature-list .feature-media-box > img {
  object-fit: contain;
}

.wave-feature-detection .feature-media-box {
  display: grid;
  place-items: center;
}

.wave-feature-detection__image {
  width: min(100%, 260px);
  aspect-ratio: 1;
}

.wave-feature-detection__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-carousel .cover-carousel__viewport img {
  object-fit: contain;
}

.feature-carousel .cover-carousel__arrow {
  width: 34px;
  height: 34px;
  font-size: 24px;
}

.feature-carousel .cover-carousel__arrow--prev {
  left: 12px;
}

.feature-carousel .cover-carousel__arrow--next {
  right: 12px;
}

.feature-carousel .cover-carousel__dots {
  margin-top: 10px;
}

.feature-copy h3 {
  margin-bottom: 18px;
  color: #6b4ba3;
  font-size: 20px;
  font-weight: 500;
}

.feature-copy h4 {
  margin: 18px 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.feature-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.case-page .contact {
  padding-inline: 0;
}

@media (max-width: 980px) {
  .case-page .case-grid--overview,
  .feature-list-m2 article {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-media-label,
  .feature-media-box {
    min-height: 220px;
  }
}

@media (max-width: 780px) {
  .site-header--case {
    padding-block: 18px 24px;
  }

  .case-page .case-hero--m2,
  .case-page .case-section,
  .case-page .contact,
  .case-page .site-footer {
    width: min(100%, calc(100% - 40px));
  }

  .case-page .case-hero--m2 {
    min-height: auto;
    padding-block: 72px;
  }

  .case-page .case-hero h1 {
    font-size: 48px;
  }

  .case-page .case-hero p:not(.case-label) {
    font-size: 18px;
  }

  .carousel-placeholder {
    height: 220px;
    margin-top: 72px;
  }

  .cover-carousel {
    width: 100%;
    margin-top: 72px;
  }

  .cover-carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .cover-carousel__arrow--prev {
    left: 12px;
  }

  .cover-carousel__arrow--next {
    right: 12px;
  }

  .case-page .case-section {
    padding-block: 72px;
  }

  .case-page .case-section__header {
    gap: 10px;
    margin-bottom: 32px;
  }

  .case-page .case-section__header span,
  .case-page .case-section__header h2 {
    font-size: 28px;
  }

  .compact-card-grid--three,
  .compact-card-grid--two,
  .research-summary--m2,
  .diagram-row {
    grid-template-columns: 1fr;
  }

  .research-summary--m2 {
    gap: 24px;
  }

  .case-meet {
    padding-block: 48px 72px;
  }

  .personas-placeholder,
  .strategy-placeholder {
    height: auto;
    padding: 16px;
  }

  .personas-placeholder img,
  .strategy-placeholder img {
    height: auto;
  }
}

/* TaskTabs case-study additions, matching the M2 case-study layout. */
.tasktabs-page .case-hero--m2 {
  min-height: 760px;
}

.tasktabs-hero-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  height: 502px;
  margin-top: 72px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--soft-muted);
  text-align: center;
}

.tasktabs-hero-placeholder strong {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.tasktabs-hero-placeholder span {
  max-width: 440px;
  font-size: 13px;
}

.tasktabs-overview {
  grid-template-columns: 680px 320px;
  gap: 128px;
}

.question-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  border-radius: 16px;
  background: var(--surface);
  padding: 24px 28px;
}

.question-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.question-card span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.principle-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tasktabs-meet {
  padding-block: 80px 128px;
}

.tasktabs-feature-list article {
  align-items: center;
}

.tasktabs-user-research {
  height: 360px;
  margin-top: 32px;
  padding: 24px;
}

.tasktabs-feature-list .feature-media-box {
  display: grid;
  place-items: center;
  height: 300px;
  padding: 20px;
  background: var(--surface);
}

.tasktabs-feature-image {
  width: min(100%, 260px);
  aspect-ratio: 1;
}

.tasktabs-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tasktabs-feature-list .feature-carousel .cover-carousel__viewport {
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 1;
  background: var(--surface);
}

.tasktabs-feature-list .feature-carousel .cover-carousel__viewport img {
  object-fit: contain;
}

.privacy-page {
  width: min(100%, 1128px);
  margin-inline: auto;
  padding: 128px 64px;
}

.privacy-hero {
  margin-bottom: 88px;
}

.privacy-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.1;
}

.privacy-content {
  display: grid;
  gap: 24px;
}

.privacy-content section {
  border-radius: 16px;
  background: var(--surface);
  padding: 32px;
}

.privacy-content h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
}

.privacy-content p,
.privacy-content li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.privacy-content p {
  margin-bottom: 14px;
}

.privacy-content p:last-child {
  margin-bottom: 0;
}

.privacy-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(26, 26, 46, 0.22);
  backdrop-filter: blur(8px);
}

.about-modal.is-open {
  display: grid;
}

.about-modal__card {
  width: min(100%, 420px);
  border-radius: 16px;
  background: var(--surface);
  padding: 32px;
  box-shadow: 0 24px 80px rgba(26, 26, 46, 0.18);
  text-align: center;
}

.about-modal__card p {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
}

.about-modal__card button {
  min-height: 42px;
  border: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
}

.about-modal__card button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .privacy-page {
    width: min(100%, calc(100% - 40px));
    padding: 72px 0;
  }

  .privacy-hero {
    margin-bottom: 48px;
  }

  .privacy-hero h1 {
    font-size: 42px;
  }

  .privacy-content section {
    padding: 24px;
  }
}

.decision-grid-m2,
.iteration-grid,
.reflection-grid-m2 {
  grid-template-columns: repeat(2, 1fr);
}

.decision-grid-m2 article,
.iteration-grid article,
.reflection-grid-m2 article {
  min-height: 164px;
}

.next-step-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
  .tasktabs-overview {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .principle-grid,
  .decision-grid-m2,
  .iteration-grid,
  .reflection-grid-m2,
  .next-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .tasktabs-hero-placeholder {
    height: 260px;
    margin-top: 56px;
  }

  .principle-grid,
  .decision-grid-m2,
  .iteration-grid,
  .reflection-grid-m2,
  .next-step-grid {
    grid-template-columns: 1fr;
  }
}
