/* -------------------------------------------------------
   Root variables
------------------------------------------------------- */
:root {
  /* Typography */
  --font: "Inter", system-ui, -apple-system, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Colors */
  --text: #21201C;
  --muted: #63635E;
  --border: #E7E7E5;
  --bg: #FCFCFC;

  /* Font sizes */
  --size-name: 1rem;
  --size-role: 1rem;
  --size-label: 1rem;
  --size-link-title: 1rem;
  --size-body: 1rem;
  --size-desc: var(--size-body);

  /* Layout + spacing */
  --lh-body: 1.7;
  --maxw-outer: 43.25rem;  /* container width (as in reference) */
  --pad-inner: 1.5rem;     /* yields ~645px text measure */
  --pad-page: 5rem;
  --gap-section: 7.875rem;
  --gap-list: 0.75rem;     /* space between cards (li items) */

  /* Card padding (mirrors the Tailwind px-3/py-?) */
  --card-pad-x: 0.8125rem;
  --card-pad-y: 1.125rem;
  --title-desc-gap: 0.375rem;  /* exact gap between title & description */
}

/* -------------------------------------------------------
   Global reset & base
------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--size-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------
   Page wrapper
------------------------------------------------------- */
.page {
  width: 100%;
  max-width: var(--maxw-outer);
  margin: 0 auto;
  padding: 120px var(--pad-inner) var(--pad-page);
}

.home-page {
  min-height: 100vh;
}

.case-study-page {
  --gap-section: 5.625rem;
}

.article-page {
  --gap-section: 5.625rem;
}

/* -------------------------------------------------------
   Masthead (Name + Role)
------------------------------------------------------- */
.masthead { margin-bottom: 128px; }

.masthead__link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.masthead__name {
  font-size: var(--size-name);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px 0;
  line-height: 1;
}

.masthead__role {
  font-size: var(--size-role);
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------
   Section headings
------------------------------------------------------- */
.section { margin-top: var(--gap-section); }

.section__label {
  font-size: var(--size-label);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.section__subheading {
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: #63635E;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* -------------------------------------------------------
   Body text
------------------------------------------------------- */
.prose p,
.linklist__desc,
.muted {
  font-size: var(--size-body);
  font-weight: 400;
  color: var(--muted);
  line-height: var(--lh-body);
}
.prose p { margin: 0 0 16px 0; }
.muted { margin: 0; }

.case-study-hero {
  margin-bottom: var(--gap-section);
}

.case-study-title {
  font-weight: 600;
  margin-bottom: 36px;
}

.case-study-title__sup {
  font-size: 0.62em;
  line-height: 0;
  vertical-align: super;
}

.case-study-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3016 / 2064;
  margin: 36px 0;
  overflow: hidden;
  border: none;
  border-radius: 0.75rem;
  background: var(--bg);
  color: #63635E;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 2px rgba(0, 0, 0, 0.04),
    0 8px 8px -8px rgba(0, 0, 0, 0.08);
}

.case-study-media-placeholder p {
  margin: 0;
}

.case-study-slideshow {
  margin: 36px 0 0;
}

.case-study-slideshow__frame {
  position: relative;
  line-height: 0;
}

.case-study-slideshow__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(252, 252, 252, 0.88);
  color: #21201C;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 2px rgba(0, 0, 0, 0.04);
  transform: translateY(-50%);
  cursor: pointer;
}

.case-study-slideshow__nav--prev {
  left: 16px;
}

.case-study-slideshow__nav--next {
  right: 16px;
}

.case-study-slideshow__nav span {
  font-size: 20px;
  line-height: 1;
}

.case-study-slideshow__nav:active {
  transform: translateY(-50%) scale(0.97);
}

.case-study-slideshow__slide {
  display: none;
  margin: 0;
}

.case-study-slideshow__slide.is-active {
  display: block;
}

.case-study-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: top;
  transform: scale(1.002);
  transform-origin: center;
}

.case-study-media-placeholder--video {
  display: block;
  aspect-ratio: auto;
  line-height: 0;
}

.case-study-hero .case-study-media-placeholder--video {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3016 / 2064;
  padding: clamp(28px, 4vw, 44px);
  background: #ffffff;
}

.case-study-media-placeholder--hero-style.case-study-media-placeholder--video {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3016 / 2064;
  padding: clamp(28px, 4vw, 44px);
  background: #ffffff;
}

.case-study-media-placeholder--device {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px);
  background: #ffffff;
}

.case-study-media-placeholder--device .case-study-device-frame {
  width: min(100%, 29.925rem);
}

.case-study-media-placeholder--breakout {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  padding: clamp(28px, 4vw, 44px);
  background: #ffffff;
}

.case-study-media-placeholder--breakout .case-study-device-frame {
  width: min(100%, 36.5rem);
}

.case-study-device-frame {
  width: min(100%, 36.5rem);
  margin: 0 auto;
  padding: clamp(4px, 0.55vw, 7px);
  border-radius: clamp(1.2rem, 2vw, 1.75rem);
  overflow: hidden;
  background: #171717;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.12);
}

.case-study-hero .case-study-device-frame {
  width: min(100%, 38.325rem);
}

.case-study-media-placeholder--hero-style .case-study-device-frame {
  width: min(100%, 38.325rem);
}

.case-study-device-frame .case-study-media {
  border-radius: calc(clamp(1.2rem, 2vw, 1.75rem) - clamp(4px, 0.55vw, 7px));
  background: #171717;
  transform: none;
}

.docs-by-air-page .case-study-hero .case-study-device-frame .case-study-media {
  width: calc(100% + 2px);
  max-width: none;
  margin-left: -1px;
  border-radius: calc(clamp(1.2rem, 2vw, 1.75rem) - 1px);
  background: #DCDCDE;
  transform: scale(1.01);
  transform-origin: center;
}

.docs-by-air-page .case-study-hero .case-study-media-placeholder,
.docs-by-air-page .case-study-hero .case-study-media-placeholder--video {
  aspect-ratio: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.docs-by-air-page .case-study-hero .case-study-device-frame {
  width: 100%;
  max-width: none;
  padding: 1px;
  background: #DCDCDE;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(220, 220, 222, 0.9),
    0 14px 28px rgba(0, 0, 0, 0.10);
}

.bt-outdoors-page .case-study-hero .case-study-media-placeholder,
.bt-outdoors-page .case-study-hero .case-study-media-placeholder--video,
.case-study-page--expanded-hero .case-study-hero .case-study-media-placeholder,
.case-study-page--expanded-hero .case-study-hero .case-study-media-placeholder--video {
  aspect-ratio: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.bt-outdoors-page .case-study-hero .case-study-device-frame,
.case-study-page--expanded-hero .case-study-hero .case-study-device-frame {
  width: 100%;
  max-width: none;
  padding: 1px;
  background: #DCDCDE;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(220, 220, 222, 0.9),
    0 14px 28px rgba(0, 0, 0, 0.10);
}

.bt-outdoors-page .case-study-hero .case-study-device-frame .case-study-media,
.case-study-page--expanded-hero .case-study-hero .case-study-device-frame .case-study-media {
  border-radius: calc(clamp(1.2rem, 2vw, 1.75rem) - 1px);
  background: #DCDCDE;
}

.bt-outdoors-page .bt-outdoors-media--hero-framed,
.case-study-media--hero-framed {
  aspect-ratio: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.case-study-media-placeholder--device.case-study-media--hero-framed,
.case-study-media-placeholder--breakout.case-study-media--hero-framed,
.case-study-media-placeholder--hero-style.case-study-media-placeholder--video.case-study-media--hero-framed {
  aspect-ratio: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.bt-outdoors-page .bt-outdoors-media--hero-framed .case-study-device-frame,
.case-study-media--hero-framed .case-study-device-frame {
  width: 100%;
  max-width: none;
  padding: 1px;
  background: #DCDCDE;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(220, 220, 222, 0.9),
    0 14px 28px rgba(0, 0, 0, 0.10);
}

.bt-outdoors-page .bt-outdoors-media--hero-framed .case-study-media,
.case-study-media--hero-framed .case-study-media {
  border-radius: calc(clamp(1.2rem, 2vw, 1.75rem) - 1px);
  background: #DCDCDE;
}

.case-study-media-placeholder--match-hero {
  --match-hero-width: calc(min(100vw, var(--maxw-outer)) - var(--pad-inner) - var(--pad-inner));
  position: relative;
  left: 50%;
  aspect-ratio: auto;
  width: var(--match-hero-width);
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: translateX(-50%);
}

.case-study-media-placeholder--match-hero .case-study-device-frame {
  width: 100%;
  max-width: none;
  padding: 1px;
  background: #DCDCDE;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(220, 220, 222, 0.9),
    0 14px 28px rgba(0, 0, 0, 0.10);
}

.case-study-media-placeholder--match-hero .case-study-device-frame .case-study-media {
  border-radius: calc(clamp(1.2rem, 2vw, 1.75rem) - 1px);
  background: #DCDCDE;
}

.case-study-video-placeholder-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
  padding: 2rem;
  background: #171717;
  color: #D4D3CF;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.case-study-overlay-demo {
  --overlay-accent: rgba(255, 255, 255, 0.92);
  position: relative;
  line-height: 0;
}

.case-study-overlay-line {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 1.75rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 300ms ease;
}

.case-study-overlay-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    var(--overlay-accent) 0 10px,
    transparent 10px 18px
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.45) 76%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.45) 76%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.9;
  transform: translateY(-50%);
}

.case-study-overlay-line__label {
  position: relative;
  padding-left: 10px;
  padding-right: 14px;
  background: linear-gradient(90deg, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 0.75) 22%, rgba(23, 23, 23, 0.9) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
}

.case-study-overlay-line--entry {
  top: 23%;
  animation: case-study-overlay-entry-cycle 7.2s ease-in-out infinite;
}

.case-study-overlay-line--primary {
  top: 50%;
}

.case-study-overlay-line--primary::before {
  height: 2px;
}

.case-study-overlay-line--primary .case-study-overlay-line__label {
  font-weight: 600;
}

.case-study-overlay-line--exit {
  top: 77%;
  animation: case-study-overlay-exit-cycle 7.2s ease-in-out infinite;
}

@keyframes case-study-overlay-entry-cycle {
  0%,
  24% {
    top: 23%;
  }

  38%,
  58% {
    top: 12%;
  }

  72%,
  88% {
    top: 5%;
  }

  100% {
    top: 23%;
  }
}

@keyframes case-study-overlay-exit-cycle {
  0%,
  24% {
    top: 77%;
  }

  38%,
  58% {
    top: 88%;
  }

  72%,
  88% {
    top: 95%;
  }

  100% {
    top: 77%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-overlay-line--entry,
  .case-study-overlay-line--exit {
    animation: none;
  }
}

.case-study-slideshow__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.case-study-slideshow__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #D4D3CF;
  cursor: pointer;
}

.case-study-slideshow__dot.is-active {
  background: #21201C;
}

.case-study-slideshow__dot:active {
  transform: scale(0.97);
}

.case-study-media-caption {
  width: min(100%, var(--maxw-outer));
  margin: 12px auto 0;
  color: #82827C;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.case-study-hero .case-study-media-caption {
  margin: -16px auto 36px;
}

.case-study-hero .case-study-media-placeholder {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.case-study-prose p.case-study-media-caption {
  margin: -20px auto 36px;
}

.case-study-media-caption--section {
  margin: -20px auto 36px;
}

.case-study-prose .case-study-slideshow + p.case-study-media-caption {
  margin: 12px auto 36px;
}

@media (min-width: 900px) {
  .case-study-hero .case-study-media-placeholder {
    width: calc(100% + 180px);
    margin-left: -90px;
    margin-right: -90px;
    max-width: none;
  }

  .case-study-media-placeholder--breakout {
    width: calc(100% + 180px);
    margin-left: -90px;
    margin-right: -90px;
    max-width: none;
  }

  .case-study-media-placeholder--match-hero {
    --match-hero-width: calc(min(100vw, var(--maxw-outer)) - var(--pad-inner) - var(--pad-inner) + 180px);
  }

}

@media (max-width: 900px) {
  .case-study-media-placeholder--breakout .case-study-device-frame {
    width: min(88%, 36.5rem);
  }

  .case-study-hero .case-study-device-frame {
    width: min(90%, 38.325rem);
  }

  .case-study-media-placeholder--hero-style .case-study-device-frame,
  .case-study-media--hero-framed .case-study-device-frame {
    width: min(90%, 38.325rem);
  }
}

@media (max-width: 640px) {
  .case-study-hero .case-study-device-frame {
    width: min(90%, 38.325rem);
  }

  .case-study-media-placeholder--hero-style .case-study-device-frame,
  .case-study-media--hero-framed .case-study-device-frame {
    width: min(90%, 38.325rem);
  }
}

.case-study-dek {
  max-width: 36rem;
  margin: 0;
}

.case-study-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 48px;
  padding: 20px;
  border-radius: 0.75rem;
  background: var(--bg);
  border: 1px solid #E7E7E5;
  box-shadow: none;
}

.case-study-meta__item dt,
.case-study-challenge__label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #63635E;
}

.case-study-meta__item dd {
  margin: 0;
  font-size: var(--size-body);
  color: #383732;
  line-height: 1.5;
}

.case-study-download {
  margin-top: -24px;
}

.case-study-download__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.625rem 0.9375rem;
  border: 1px solid #E7E7E5;
  border-radius: 0.5rem;
  background: #FCFCFC;
  color: #383732;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.case-study-download__link:hover,
.case-study-download__link:focus-visible {
  border-color: #D6D6D2;
  background: #F7F7F5;
  color: #21201C;
}

.case-study-download__link:active {
  transform: scale(0.97);
}

.case-study-download__icon {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
  flex: 0 0 auto;
}

.case-study-stats,
.case-study-context-grid,
.case-study-stakeholders,
.case-study-decisions,
.case-study-outcomes {
  display: grid;
  gap: 16px;
}

.case-study-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.case-study-stats__item,
.case-study-context-card,
.case-study-decision,
.case-study-outcome,
.case-study-learning {
  padding: 20px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  background: var(--bg);
}

.case-study-stats__label,
.case-study-context-card__index,
.case-study-stakeholder__org,
.case-study-decision__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #63635E;
}

.case-study-stats__value {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1;
  color: #21201C;
}

.case-study-stats__body,
.case-study-context-card__body,
.case-study-stakeholder__role,
.case-study-challenge__text,
.case-study-challenge__resolution,
.case-study-challenge__outcome,
.case-study-decision__body,
.case-study-outcome__body,
.case-study-learning__body {
  margin: 0;
  font-size: var(--size-body);
  color: #383732;
  line-height: 1.6;
}

.case-study-context-grid {
  grid-template-columns: 1fr;
  margin-top: 36px;
}

.case-study-context-card__title,
.case-study-subsection__title,
.case-study-challenge__title,
.case-study-decision__title,
.case-study-outcome__title,
.case-study-learning__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: #21201C;
  line-height: 1.4;
}

.case-study-comparison {
  margin-top: 36px;
}

.case-study-subsection {
  margin-top: 48px;
}

.case-study-stakeholders {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.case-study-stakeholder {
  padding: 16px 18px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  background: var(--bg);
}

.case-study-stakeholder__name {
  margin: 0 0 4px;
  color: #21201C;
  font-weight: 500;
  line-height: 1.4;
}

.case-study-comparison {
  margin-top: 36px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: none;
}

.case-study-comparison__header,
.case-study-comparison__row {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
}

.case-study-comparison__row {
  border-top: 1px solid #E7E7E5;
}

.case-study-comparison__cell {
  padding: 16px;
  border-right: 1px solid #E7E7E5;
  color: #383732;
  line-height: 1.6;
}

.case-study-comparison__cell:last-child {
  border-right: none;
}

.case-study-comparison__cell--label {
  color: #63635E;
  font-size: 13px;
  font-weight: 500;
}

.case-study-comparison__cell--selected {
  background: #f7f6f4;
}

.case-study-comparison__check {
  margin-left: 6px;
  color: #34C759;
}

.case-study-concept-card__title span {
  color: #34C759;
}

.case-study-concepts-mobile {
  display: none;
  margin-top: 36px;
  gap: 16px;
}

.case-study-comparison + .case-study-prose,
.case-study-concepts-mobile + .case-study-prose {
  margin-top: 36px;
}

.case-study-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  background: var(--bg);
  color: #63635E;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.case-study-concept-card {
  padding: 16px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  background: #ffffff;
}

.case-study-concept-card--selected {
  background: #f7f6f4;
}

.case-study-concept-card__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  color: #21201C;
  line-height: 1.4;
}

.case-study-concept-card__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: #63635E;
}

.case-study-concept-card__body {
  margin: 0 0 14px;
  color: #383732;
  line-height: 1.6;
}

.case-study-concept-card__body:last-child {
  margin-bottom: 0;
}

@media (max-width: 750px) {
  .case-study-comparison {
    display: none;
  }

  .case-study-concepts-mobile {
    display: grid;
  }
}

.case-study-challenges {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
}

.case-study-challenge-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-study-challenge-item .case-study-media-placeholder {
  margin: 0;
}

.case-study-challenge-item .case-study-media-caption {
  margin: 0 0 24px;
}

.case-study-challenge-copy {
  width: 100%;
}

.case-study-challenge-copy .case-study-challenge__title {
  color: #63635E;
}

.case-study-challenge-copy + .case-study-media-placeholder {
  margin-top: 24px;
}

.case-study-challenge-item .case-study-media-placeholder--match-hero {
  width: var(--match-hero-width);
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

@media (min-width: 900px) {
  .case-study-challenge-item .case-study-media-placeholder--match-hero {
    --match-hero-width: calc(min(100vw, var(--maxw-outer)) - var(--pad-inner) - var(--pad-inner) + 180px);
  }
}

.case-study-challenge-copy + .case-study-challenge {
  margin-top: 24px;
}

.case-study-challenge {
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg);
}

.case-study-challenge--selected {
  background: #f7f6f4;
}

.case-study-challenge--spaced {
  margin-top: 24px;
}

.case-study-media-caption + .case-study-challenge--spaced {
  margin-top: 36px;
}

.case-study-challenge__index {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  color: #63635E;
  border-right: 1px solid #E7E7E5;
}

.case-study-challenge__body {
  padding: 20px;
}

.case-study-challenge__text + .case-study-challenge__text {
  margin-top: 16px;
}

.case-study-challenge__body .case-study-challenge__label {
  margin: 20px 0 4px;
}

.case-study-challenge__body .case-study-challenge__label:first-child {
  margin-top: 0;
}

.case-study-challenge__body .case-study-challenge__resolution,
.case-study-challenge__body .case-study-challenge__outcome {
  margin: 0 0 16px;
}

.case-study-challenge__body .case-study-challenge__outcome:last-child {
  margin-bottom: 0;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.case-study-tags li {
  padding: 6px 10px;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  color: #63635E;
  font-size: 13px;
  line-height: 1.2;
}

.case-study-quote {
  margin-top: calc(var(--gap-section) * 0.8);
}

.case-study-pullquote {
  margin: 36px 0 0;
  padding: 24px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  background: var(--bg);
}

.case-study-pullquote p,
.case-study-pullquote footer {
  margin: 0;
}

.case-study-pullquote footer {
  margin-top: 16px;
  color: #63635E;
  font-size: 13px;
}

.case-study-path-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg);
}

.case-study-path-compare__column {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
}

.case-study-path-compare__column + .case-study-path-compare__column {
  border-left: 1px solid #E7E7E5;
}

.case-study-path-compare__column--selected {
  background: #f7f6f4;
}

.case-study-path-compare__label,
.case-study-path-compare__count {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #63635E;
}

.case-study-path-compare__count {
  margin-top: auto;
}

.case-study-path-compare__steps {
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 15px;
  line-height: 1.6;
  color: #21201C;
}

.case-study-path-compare__steps li {
  margin: 0;
}

.case-study-captioned-frame {
  margin: 36px 0 0;
  padding: 28px 24px 0;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  background: #ffffff;
  overflow: hidden;
}

.case-study-captioned-frame--breakout {
  width: 100%;
  max-width: 100%;
}

.case-study-captioned-frame__caption {
  max-width: 30rem;
  margin: 0 0 28px;
  color: #63635E;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.case-study-captioned-frame__media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 -1px;
  border: 1px dashed #D4D3CF;
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #f7f6f4;
  color: #82827C;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
}

.case-study-captioned-frame__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.docs-email-flow {
  width: 100%;
  max-width: 100%;
  margin: 36px 0 0;
}

.docs-email-flow__surface {
  overflow: hidden;
  border: 1px solid #E7E7E5;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.012),
    0 18px 40px rgba(0, 0, 0, 0.045);
}

.docs-email-flow__chrome {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #E7E7E5;
  background: #F7F6F4;
  color: #63635E;
  font-size: 13px;
  line-height: 1.4;
}

.docs-email-flow__search {
  width: min(100%, 22rem);
  padding: 8px 14px;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  background: #ffffff;
  margin: 0;
  color: #82827C;
}

.docs-email-flow__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #21201C;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.docs-email-flow__window-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.docs-email-flow__window-controls span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #D4D3CF;
}

.docs-email-flow__workspace {
  display: grid;
  grid-template-columns: 10.75rem minmax(0, 1fr);
  min-height: 43rem;
  background:
    linear-gradient(90deg, #F7F6F4 0, #F7F6F4 10.75rem, transparent 10.75rem),
    #ffffff;
}

.docs-email-flow__mailbox {
  padding: 18px 14px;
  border-right: 1px solid #E7E7E5;
}

.docs-email-flow__compose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #21201C;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.docs-email-flow__mailbox-title {
  margin: 0 0 8px;
  color: #82827C;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.docs-email-flow__mailbox-title--spaced {
  margin-top: 22px;
}

.docs-email-flow__mailbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #63635E;
  font-size: 13px;
  line-height: 1.3;
}

.docs-email-flow__mailbox-item--active {
  background: #ffffff;
  color: #21201C;
  box-shadow: 0 0 0 1px #E7E7E5;
}

.docs-email-flow__mailbox-count {
  color: #82827C;
  font-size: 12px;
}

.docs-email-flow__thread {
  min-width: 0;
}

.docs-email-flow__thread-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px 28px 18px;
  border-bottom: 1px solid #E7E7E5;
  background: #ffffff;
}

.docs-email-flow__thread-header h3,
.docs-email-flow__thread-label,
.docs-email-flow__thread-details {
  margin: 0;
}

.docs-email-flow__thread-header h3 {
  color: #21201C;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.docs-email-flow__thread-label {
  color: #63635E;
  font-size: 13px;
  line-height: 1.5;
}

.docs-email-flow__thread-label {
  margin-bottom: 4px;
}

.docs-email-flow__thread-details {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: #63635E;
  font-size: 13px;
  line-height: 1.45;
}

.docs-email-flow__thread-details div {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 8px;
}

.docs-email-flow__thread-details dt,
.docs-email-flow__thread-details dd {
  margin: 0;
}

.docs-email-flow__thread-details dt {
  color: #82827C;
  font-weight: 500;
}

.docs-email-flow__thread-details dd {
  color: #383732;
  overflow-wrap: anywhere;
}

.docs-email-flow__attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  background: #FCFCFC;
  color: #383732;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.docs-email-flow__attachment img {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.docs-email-flow__thread-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.docs-email-flow__thread-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  color: #63635E;
  font-size: 12px;
  line-height: 1.2;
}

.docs-email-flow__thread-action::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  background: currentColor;
  opacity: 0.72;
}

.docs-email-flow__thread-action--archive::before {
  clip-path: polygon(9% 22%, 91% 22%, 84% 43%, 84% 86%, 16% 86%, 16% 43%);
}

.docs-email-flow__thread-action--reply::before {
  clip-path: polygon(42% 8%, 8% 42%, 42% 76%, 42% 55%, 92% 55%, 92% 29%, 42% 29%);
}

.docs-email-flow__thread-action--more::before {
  width: 14px;
  height: 4px;
  background:
    radial-gradient(circle, currentColor 50%, transparent 52%) 0 50% / 4px 4px no-repeat,
    radial-gradient(circle, currentColor 50%, transparent 52%) 50% 50% / 4px 4px no-repeat,
    radial-gradient(circle, currentColor 50%, transparent 52%) 100% 50% / 4px 4px no-repeat;
}

.docs-email-flow__stack {
  position: relative;
  display: grid;
  align-content: start;
  margin: 0;
  padding: 28px 30px 40px;
  list-style: none;
}

.docs-email-flow__event {
  position: relative;
  width: 100%;
  margin: 0;
  transform: none;
  z-index: auto;
}

.docs-email-flow__event + .docs-email-flow__event {
  margin-top: 14px;
}

.docs-email-flow__card {
  position: relative;
  padding: 22px 22px 22px 62px;
  border: 1px solid #E7E7E5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.012),
    0 12px 28px rgba(0, 0, 0, 0.05);
}

.docs-email-flow__card--reply {
  border-color: #BFBEB8;
  background:
    linear-gradient(135deg, rgba(252, 252, 252, 0.98), rgba(247, 246, 244, 0.98)),
    #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 18px 36px rgba(0, 0, 0, 0.075);
}

.docs-email-flow__marker {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  background: #FCFCFC;
  color: #63635E;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.docs-email-flow__eyebrow {
  margin: 0 0 6px;
  color: #63635E;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.docs-email-flow__title {
  margin: 0;
  color: #21201C;
  font-size: var(--size-body);
  font-weight: 600;
  line-height: 1.45;
}

.docs-email-flow__fields {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.docs-email-flow__fields div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid #F0F0EE;
}

.docs-email-flow__fields dt,
.docs-email-flow__fields dd {
  margin: 0;
  line-height: 1.55;
}

.docs-email-flow__fields dt {
  color: #63635E;
  font-size: 13px;
  font-weight: 500;
}

.docs-email-flow__fields dd,
.docs-email-flow__signature {
  color: #383732;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.docs-email-flow__signature {
  display: inline-flex;
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  background: #FCFCFC;
  color: #21201C;
  font-size: 15px;
  line-height: 1.4;
}

.docs-address-diagram {
  width: 100%;
  max-width: 100%;
  margin: 36px 0;
}

.docs-address-diagram__address {
  display: grid;
  grid-template-columns: 1fr auto 1.45fr;
  align-items: start;
  gap: 24px;
  padding: 28px 32px 30px;
  border: 1px solid #E7E7E5;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.012),
    0 12px 28px rgba(0, 0, 0, 0.03);
}

.docs-address-diagram__part {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  text-align: center;
}

.docs-address-diagram__token {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(19px, 3.4vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #21201C;
}

.docs-address-diagram__rule {
  width: 1px;
  height: 22px;
  background: #CFCFC9;
}

.docs-address-diagram__part p {
  margin: 0;
  color: #21201C;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.docs-inline-flow {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 20rem);
  margin: 24px 0;
}

.docs-inline-flow__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 10px 14px;
  border: 1px solid #E7E7E5;
  border-radius: 0.75rem;
  background: #FAFAF8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.012),
    0 8px 20px rgba(0, 0, 0, 0.02);
  color: #21201C;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.docs-inline-flow__arrow {
  color: #82827C;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 16px;
  line-height: 1;
}

.docs-branch-flow {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 28rem);
  margin: 24px 0;
}

.docs-branch-flow__branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  align-items: start;
}

.docs-branch-flow__branch {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.docs-branch-flow__branch--review {
  align-self: start;
}

.docs-branch-flow .docs-inline-flow__step {
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .case-study-captioned-frame--breakout {
    width: calc(100% + 180px);
    margin-left: -90px;
    margin-right: -90px;
    max-width: none;
  }

  .docs-email-flow {
    width: calc(100% + 180px);
    margin-left: -90px;
    margin-right: -90px;
    max-width: none;
  }

  .docs-address-diagram {
    width: calc(100% + 180px);
    margin-left: -90px;
    margin-right: -90px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .docs-email-flow__chrome {
    grid-template-columns: auto 1fr auto;
  }

  .docs-email-flow__search {
    width: 100%;
    min-width: 0;
  }

  .docs-email-flow__workspace {
    display: block;
    min-height: 0;
    background: #ffffff;
  }

  .docs-email-flow__mailbox {
    display: none;
  }

  .docs-email-flow__thread-header {
    display: block;
    padding: 18px;
  }

  .docs-email-flow__thread-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .docs-email-flow__stack {
    padding: 18px;
  }

  .docs-email-flow__event {
    width: 100%;
    transform: none;
  }

  .docs-email-flow__event + .docs-email-flow__event {
    margin-top: 14px;
  }

  .docs-email-flow__marker {
    top: 20px;
    left: 20px;
  }

  .docs-email-flow__card {
    padding: 20px 20px 20px 58px;
  }

  .docs-email-flow__fields div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .docs-address-diagram__address {
    grid-template-columns: 1fr;
  }

  .docs-address-diagram__address {
    gap: 22px;
    padding: 20px;
  }

  .docs-address-diagram__part {
    grid-template-columns: minmax(7.5rem, auto) 1px minmax(0, 1fr);
    justify-items: start;
    align-items: start;
    gap: 14px;
    text-align: left;
  }

  .docs-address-diagram__rule {
    height: 100%;
    min-height: 2.4rem;
  }

  .docs-inline-flow {
    width: min(100%, 20rem);
    margin-left: auto;
    margin-right: auto;
  }

  .docs-inline-flow__step {
    min-height: 2.25rem;
    padding: 8px 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  .docs-inline-flow__arrow {
    font-size: 14px;
  }

  .docs-branch-flow {
    width: min(100%, 22rem);
    margin-left: auto;
    margin-right: auto;
  }

  .docs-branch-flow__branches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .docs-branch-flow .docs-inline-flow__step {
    min-height: 2.25rem;
    padding: 8px 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  .docs-branch-flow > .docs-inline-flow__step {
    width: min(100%, 14rem);
  }

  .docs-branch-flow .docs-inline-flow__arrow {
    font-size: 14px;
  }

}

.case-study-decisions,
.case-study-outcomes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
}

.case-study-reflection {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.case-study-learnings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(252, 252, 252, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.password-gate[hidden] {
  display: none !important;
}

.password-gate__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 2px rgba(0, 0, 0, 0.04),
    0 8px 8px -8px rgba(0, 0, 0, 0.08);
}

.password-gate__close {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}

.password-gate__close:hover,
.password-gate__close:focus-visible {
  color: var(--text);
}

.password-gate__title {
  margin-bottom: 12px;
}

.password-gate__copy {
  margin-bottom: 20px;
}

.password-gate__copy p {
  margin: 0 0 16px;
}

.password-gate__copy p:last-child {
  margin-bottom: 0;
}

.password-gate__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.password-gate__field {
  position: relative;
}

.password-gate__form input {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  padding: 10px 64px 10px 12px;
  font: inherit;
  color: var(--text);
}

.password-gate__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 1;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.password-gate__toggle:hover,
.password-gate__toggle:focus-visible {
  color: var(--text);
}

.password-gate__form .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.password-gate__form input:focus {
  outline: 2px solid rgba(33, 32, 28, 0.18);
  outline-offset: 2px;
}

.password-gate__error {
  margin: 0;
  color: #8a3b2e;
  font-size: 14px;
}

.password-gate__error:not(:empty) {
  margin-top: 12px;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked #protected-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

body.chat-open {
  overflow: hidden;
  touch-action: none;
}

.chat-launcher-shell {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 25;
  width: min(324px, calc(100vw - 48px));
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 10px 10px 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 2px rgba(0, 0, 0, 0.04),
    0 8px 8px -8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chat-launcher {
  flex: 1;
  display: flex;
  align-items: center;
  border: none;
  min-height: 2.5rem;
  padding: 0;
  background: transparent;
  color: #8d8c87;
  font-family: var(--font);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: var(--lh-body);
  text-align: left;
  cursor: pointer;
}

.chat-launcher__label {
  min-width: 0;
}

.chat-launcher__mic-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #21201C;
  cursor: pointer;
  line-height: 1;
  padding: 11px 13px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chat-launcher__mic-btn svg {
  width: 15px;
  height: 18px;
}

.chat-launcher__mic-btn:hover,
.chat-launcher__mic-btn:focus-visible {
  background: #FAFAFA;
  color: #21201C;
}

.chat-launcher__mic-btn:active {
  transform: scale(0.97);
}

.chat-launcher-shell:hover,
.chat-launcher-shell:focus-within {
  background: rgba(255, 255, 255, 0.7);
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(252, 252, 252, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chat-modal[hidden] {
  display: none !important;
}

.chat-modal[data-state="open"] {
  opacity: 1;
}

.chat-modal__panel {
  position: relative;
  width: min(100%, 1240px);
  min-height: min(860px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 32px;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

.chat-modal__surface {
  display: none;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.965);
  transform-origin: var(--chat-origin-x, 50%) var(--chat-origin-y, 100%);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease;
}

.chat-modal[data-state="open"] .chat-modal__surface {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #21201C;
  cursor: pointer;
  padding: 0;
}

.chat-modal__close svg {
  width: 24px;
  height: 24px;
  display: block;
}

.chat-modal__close:hover,
.chat-modal__close:focus-visible {
  color: var(--text);
}

.chat-modal__close:active {
  transform: scale(0.97);
}

.chat-modal__blurb {
  width: min(100%, var(--maxw-outer));
  margin: 0.75rem auto 0;
  color: #5D5D5D;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(100%, var(--maxw-outer));
  margin: 0 auto 12px;
}

.chat-suggestions[hidden] {
  display: none !important;
}

.chat-suggestions__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #21201C;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.14s ease;
}

.chat-suggestions__chip:hover,
.chat-suggestions__chip:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  border-color: #D8D8D4;
}

.chat-suggestions__chip:active {
  transform: scale(0.97);
}

.chat-thread {
  flex: 0 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, var(--maxw-outer));
  margin: 0 auto;
  padding: 0 0 32px;
  max-height: calc(100vh - 220px);
}

.chat-thread[hidden] {
  display: none !important;
}

.chat-message {
  max-width: min(88%, 620px);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.chat-message p {
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.chat-message__nowrap-token {
  display: inline-block;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.chat-message__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.chat-message__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #63635E;
}

.chat-message__footer {
  margin-top: 12px;
}

.chat-message__explore {
  font-size: 14px;
  font-weight: 500;
}

.chat-message__explore-icon {
  width: 0.625rem;
  height: 0.625rem;
  display: block;
  flex: 0 0 auto;
  background-color: currentColor;
  mask-image: url("../media/right-chevron-icon.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("../media/right-chevron-icon.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.chat-message p + p,
.chat-message p + ul,
.chat-message ul + p,
.chat-message ul + ul {
  margin-top: 12px;
}

.chat-message ul {
  margin: 0;
  padding-left: 1.1rem;
}

.chat-message li + li {
  margin-top: 0.35rem;
}

.chat-message--assistant {
  align-self: flex-start;
  background: transparent;
  color: var(--text);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.chat-message--pending {
  min-height: 3rem;
}

.chat-message__thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #E7E7E5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.chat-message__thinking span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: #8A8A84;
  animation: chat-thinking-dot 1s ease-in-out infinite;
}

.chat-message__thinking span:nth-child(2) {
  animation-delay: 0.12s;
}

.chat-message__thinking span:nth-child(3) {
  animation-delay: 0.24s;
}

.chat-message--user {
  align-self: flex-end;
  background: #f5f5f5;
  color: var(--text);
}

@keyframes chat-thinking-dot {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.92);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: min(100%, var(--maxw-outer));
  margin: 0 auto;
  min-height: 58px;
  padding: var(--chat-form-pad-y, 8px) 10px 10px 18px;
  border: none;
  border-radius: var(--chat-form-radius, 999px);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 2px rgba(0, 0, 0, 0.04),
    0 8px 8px -8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    padding 0.14s ease-out,
    min-height 0.14s ease-out;
}

.chat-form textarea {
  flex: 1;
  width: auto;
  min-height: 40px;
  max-height: 220px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 8px 4px;
  font-family: var(--font);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: #21201C;
  resize: none;
  overflow-y: hidden;
  box-shadow: none;
  transition: height 0.14s ease-out;
}

.chat-form textarea::placeholder {
  color: #8d8c87;
}

.chat-form textarea:focus {
  outline: none;
}

.chat-form__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 0;
  padding-bottom: 0;
}

.chat-form__icon,
.chat-form__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.chat-form__icon {
  border-radius: 999px;
  background: transparent;
  color: #21201C;
  padding: 11px 13px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chat-form__icon svg {
  width: 15px;
  height: 18px;
}

.chat-form__icon:hover,
.chat-form__icon:focus-visible {
  background: #FAFAFA;
  color: #21201C;
}

.chat-form__icon:active {
  transform: scale(0.97);
}

.chat-form__icon.is-listening,
.chat-form__icon.is-listening:hover,
.chat-form__icon.is-listening:focus-visible {
  background: #ff383c;
  color: #fff;
}

.chat-form__submit {
  display: inline-flex;
  border-radius: 999px;
  background: #21201C;
  color: #fff;
  max-width: 0;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  pointer-events: none;
  transition:
    max-width 0.22s ease,
    max-height 0.22s ease,
    padding 0.22s ease,
    opacity 0.18s ease,
    transform 0.22s ease;
}

.chat-form__submit svg {
  width: 14px;
  height: 16px;
}

.chat-form__submit:disabled {
  cursor: default;
}

.chat-form__submit.is-ready {
  max-width: 40px;
  max-height: 40px;
  padding: 11px 12px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-form__submit.is-ready:active {
  transform: translateY(0) scale(0.97);
}

.chat-modal__panel--threaded {
  min-height: 100%;
  height: auto;
  max-height: none;
  justify-content: flex-start;
  padding-top: clamp(88px, 12vh, 128px);
  padding-bottom: 164px;
}

.chat-modal__panel--threaded .chat-modal__surface {
  flex: 0 0 auto;
  min-height: auto;
  display: block;
}

.chat-modal__dock {
  width: min(100%, var(--maxw-outer));
  margin: 0 auto;
}

.chat-modal__panel--threaded .chat-modal__dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  width: min(calc(100vw - 64px), var(--maxw-outer));
}

.chat-modal__panel--threaded .chat-suggestions {
  display: none !important;
}

.chat-modal__panel--threaded .chat-form {
  margin-bottom: 32px;
}

.chat-modal__panel--threaded .chat-modal__blurb {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: min(calc(100vw - 64px), var(--maxw-outer));
  margin: 0;
}

.chat-modal__panel--threaded .chat-thread {
  overflow: visible;
  padding-bottom: 0;
  max-height: none;
}

.case-study-prose {
  max-width: 38rem;
}

.article-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.article-dek {
  margin: 0;
  color: var(--muted);
}

.article-body {
  margin-top: var(--gap-section);
}

.article-body > .section:first-child {
  margin-top: 0;
}

.case-study-prose p {
  margin-bottom: 20px;
}

.case-study-prose p:last-child {
  margin-bottom: 0;
}

.case-study-prose--after-media {
  margin-top: 36px;
}

.case-study-prose p,
.case-study-list li {
  color: #383732;
}

.case-study-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.case-study-list li {
  padding: 0 0 0 18px;
  margin: 0 0 14px;
  color: #383732;
  line-height: 1.6;
}

.case-study-list li:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------
   Link lists (Projects / Writing)
------------------------------------------------------- */
.linklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-list); /* 50px between <li> items */
}
.linklist__item { position: relative; }

/* Anchor acts as the hover card (flex column + gap) */
.linklist__card {
  display: flex;
  flex-direction: column;
  gap: var(--title-desc-gap);           /* ← EXACT 12px between title & desc */

  text-decoration: none;
  color: inherit;

  /* hover area padding and full-bleed background */
  padding: var(--card-pad-y) var(--card-pad-x);
  margin: 0 calc(-1 * var(--card-pad-x)); /* like Tailwind -mx-3 */
  border-radius: 12px;
  border: 1px solid transparent;
  background-color: transparent;
  box-shadow: none;
  transition:
    background-color 0.11s ease,
    border-color 0.11s ease,
    transform 0.11s ease;
}

.linklist__card:hover,
.linklist__card:focus-visible {
  background-color: #fcfcfc;
  border-color: #E7E7E5;
  outline: none;
}

.linklist__card:active {
  transform: scale(0.99);
}

.linklist__card--copy {
  position: relative;
  padding-right: 6rem;
}

.linklist__copy-feedback {
  position: absolute;
  top: 50%;
  right: var(--card-pad-x);
  color: #63635E;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.14s ease;
}

.linklist__card--copy.is-copied .linklist__copy-feedback {
  opacity: 1;
}

/* Typography inside the card (no margins; flex gap handles spacing) */
.linklist__title {
  font-size: var(--size-link-title);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;                     /* safe, slightly tight leading */
  margin: 0;
}

.linklist__desc {
  font-size: var(--size-body);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.1;                      /* trimmed to avoid faux padding */
  margin: 0;
}

/* Keyboard focus ring (like focus-visible outline in the reference) */
.linklist__card:focus-visible {
  outline: 2px solid rgba(33, 32, 28, 0.25);
  outline-offset: 2px;
}

/* -------------------------------------------------------
   Contact form
------------------------------------------------------- */
.contact {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FAFAF9;
}

.contact input,
.contact textarea {
  border: none;
  background: transparent;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  font-size: var(--size-body);
  color: var(--text);
  resize: vertical;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #9B9B95;
}

.btn {
  align-self: flex-start;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  background: #21201C;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.97);
}

/* -------------------------------------------------------
   Case study pagination
------------------------------------------------------- */
.case-study-pagination {
  margin-top: var(--gap-section);
}

.case-study-pagination__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.case-study-pagination__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  gap: 4px;
}

.case-study-pagination__link--next {
  justify-self: end;
  text-align: right;
}

.case-study-pagination__eyebrow {
  display: block;
  margin: 0 0 4px;
  color: #8A8A84;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.case-study-pagination__title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #21201C;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
}

.case-study-pagination__link--next .case-study-pagination__eyebrow,
.case-study-pagination__link--next .case-study-pagination__title {
  text-align: right;
}

.case-study-pagination .linklist__card {
  margin: 0;
}

.article-page .case-study-pagination__link {
  max-width: 100%;
}

.article-page .case-study-pagination__title {
  line-height: 1.35;
}

/* -------------------------------------------------------
   Footer
------------------------------------------------------- */
.footer {
  margin-top: calc(var(--gap-section) * 0.4);
  color: var(--muted);
  font-size: 13px;
}


/* -------------------------------------------------------
   Accessibility focus helper
------------------------------------------------------- */
.user-is-tabbing a:focus,
.user-is-tabbing button:focus,
.user-is-tabbing input:focus {
  outline: 2px solid #21201C;
  outline-offset: 2px;
}

/* -------------------------------------------------------
   Responsive tweaks
------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --pad-page: 3.75rem;
    --gap-section: 5rem;
  }
  .page { padding: var(--pad-page) 16px; }
  .case-study-media-placeholder--match-hero {
    --match-hero-width: calc(100vw - 32px);
  }
  .chat-launcher-shell {
    left: 50%;
    bottom: 32px;
    width: min(324px, calc(100vw - 32px));
    min-height: 58px;
    padding: 8px 10px 10px 16px;
  }
  .chat-launcher {
    font-size: 16px;
  }
  .chat-modal {
    padding: 16px;
  }
  .chat-modal__panel {
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    padding: 18px;
    border-radius: 20px;
  }
  .chat-message {
    max-width: 94%;
  }
  .chat-modal__blurb {
    width: 100%;
  }
  .chat-suggestions {
    width: 100%;
    gap: 6px;
    margin-bottom: 10px;
  }
  .chat-suggestions__chip {
    min-height: 2.125rem;
    padding: 0.55rem 0.8rem;
    font-size: 13px;
  }
  .chat-thread {
    width: 100%;
    padding: 0 0 24px;
  }
  .chat-form {
    width: 100%;
    gap: 8px;
    min-height: 58px;
    padding: 8px 10px 8px 16px;
  }
  .chat-form textarea {
    min-height: 40px;
    padding: 8px 4px;
    font-size: 16px;
  }
  .chat-form__actions {
    gap: 6px;
  }
  .chat-form__submit {
    width: 36px;
    height: 36px;
  }
  .chat-modal__close {
    top: 16px;
    right: 16px;
  }
  .chat-modal__panel--threaded .chat-modal__dock {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(calc(100vw - 68px), var(--maxw-outer));
    transform: translateX(-50%);
    margin: 0;
  }
  .chat-modal__panel--threaded .chat-modal__blurb {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 7px;
    width: min(calc(100vw - 68px), var(--maxw-outer));
    padding: 0;
    transform: translateX(-50%);
    margin: 0;
  }
  .chat-modal__panel--threaded {
    min-height: 100%;
    height: auto;
    max-height: none;
    padding-top: 84px;
    padding-bottom: 152px;
  }
  .chat-modal__panel--threaded .chat-thread {
    overflow: visible;
    padding-bottom: 0;
    max-height: none;
  }
  .case-study-stats,
  .case-study-context-grid,
  .case-study-stakeholders,
  .case-study-decisions,
  .case-study-outcomes,
  .case-study-reflection {
    grid-template-columns: 1fr;
  }
  .case-study-comparison {
    display: none;
  }
  .case-study-concepts-mobile {
    display: grid;
  }
  .case-study-challenge {
    grid-template-columns: 1fr;
  }
  .case-study-challenge__index {
    border-right: none;
    border-bottom: 1px solid #E7E7E5;
  }
  .case-study-hero .case-study-media-placeholder {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .case-study-meta { grid-template-columns: 1fr; }
  .case-study-path-compare {
    grid-template-columns: 1fr;
  }
  .case-study-path-compare__column + .case-study-path-compare__column {
    border-left: none;
    border-top: 1px solid #E7E7E5;
  }
  .case-study-pagination__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .case-study-pagination__link--next {
    text-align: right;
  }
  .case-study-pagination__link--next .case-study-pagination__eyebrow,
  .case-study-pagination__link--next .case-study-pagination__title {
    text-align: right;
  }
  .case-study-pagination__title {
    line-height: 1.35;
  }
  .case-study-download__link {
    width: 100%;
  }
  .newsletter { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* -------------------------------------------------------
   Inline hyperlinks
------------------------------------------------------- */
/* Minimal inline link that fits current typography */
.text-link {
  color: inherit;                    /* always keep text color the same */
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(33, 32, 28, 0.4); /* subtle underline */
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover {
  text-decoration-color: #21201C;    /* dark underline on hover */
}

.text-link--nowrap {
  white-space: nowrap;
}
