@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&display=swap');

/* Söhne (trial weights) served locally. The site's type stacks list 'Söhne'
   first, with 'Inter' as the web-safe fallback. Weight map (German → CSS):
   Buch 400, Kräftig 500, Dreiviertelfett 600, Halbfett 700. */
@font-face {
  font-family: 'Söhne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Sohne-Buch.otf') format('opentype');
}
@font-face {
  font-family: 'Söhne';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Sohne-BuchKursiv.otf') format('opentype');
}
@font-face {
  font-family: 'Söhne';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Sohne-Kraftig.otf') format('opentype');
}
@font-face {
  font-family: 'Söhne';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Sohne-KraftigKursiv.otf') format('opentype');
}
@font-face {
  font-family: 'Söhne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/Sohne-Dreiviertelfett.otf') format('opentype');
}
@font-face {
  font-family: 'Söhne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Sohne-Halbfett.otf') format('opentype');
}
@font-face {
  font-family: 'Söhne Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/SohneMono-Buch.otf') format('opentype');
}
@font-face {
  font-family: 'Söhne Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/SohneMono-Kraftig.otf') format('opentype');
}

:root {
  --color-surface: #f8f8f6;
  --color-surface-strong: #efeee9;
  --color-text-primary: #000000;
  --color-text-secondary: #7c7c7c;
  --color-text-subtle: #766d6d;
  --color-divider: #d9d9d9;
  --color-brand-jpmc: #1279cd;
  --color-brand-shopify: #96bf47;
  --color-brand-hp: #024adc;
  --color-focus: #766d6d;
  --text-xl: clamp(1.75rem, 2vw + 1rem, 2rem);
  --text-lg: 1.5rem;
  --text-base: 1.125rem;
  --text-sm: 1rem;
  --text-xs: 0.875rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  --container-wide: 72rem;
  --container-narrow: 42rem;
  --radius-image: 0.5rem;
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.05);
  --transition-base: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-surface);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: var(--text-base);
  letter-spacing: -0.03em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button,
a,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  padding-left: 1.4rem;
}

::selection {
  background: rgba(18, 121, 205, 0.14);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-text-primary);
  color: var(--color-surface);
  transform: translateY(-140%);
  transition: transform var(--transition-base);
}

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

.container-wide,
.container-narrow {
  width: min(100%, calc(100% - 3rem));
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 10rem);
}

.container-wide {
  max-width: calc(var(--container-wide) + 20rem);
}

.container-narrow {
  max-width: calc(var(--container-narrow) + 20rem);
}

.page-shell {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 5rem;
  font-size: var(--text-sm);
}

.site-nav__home {
  font-weight: 400;
}

/* Header/nav now uses Söhne, matching the rest of the site */
.site-nav,
.site-nav__home,
.site-nav__link {
  font-family: 'Söhne', 'Inter', sans-serif;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xl);
}

.site-nav__link {
  position: relative;
  transition: color var(--transition-base);
}

.site-nav__link[aria-current='page'] {
  color: var(--color-text-subtle);
}

.site-header.nav--scrolled {
  backdrop-filter: blur(16px);
  background: rgba(248, 248, 246, 0.8);
  box-shadow: var(--shadow-nav);
}

.page-main {
  display: grid;
  padding-top: clamp(3rem, 6vw, 5rem);
  gap: var(--space-4xl);
}

.eyebrow {
  color: var(--color-text-subtle);
  font-size: var(--text-sm);
  line-height: 1.25;
}

.display-title {
  font-family: 'Source Serif 4', serif;
}

.case-study [id^="cs-"] {
  scroll-margin-top: 6rem;
}

.page-title {
  font-family: 'Söhne', 'Inter', sans-serif;
}

/* About page "Hello!" uses the serif display face. */
.about-page .page-title {
  font-family: 'Source Serif 4', serif;
}

.display-title,
.page-title {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.15;
}

.section-title,
.statement {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.3;
}

.body-copy {
  font-size: var(--text-base);
}

.body-copy--muted {
  color: var(--color-text-secondary);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

/* Work-card covers are <iframe>s; animating a transform rasterizes them onto a
   GPU layer that renders soft/blurry mid-animation and snaps crisp at the end
   (a jarring "blur -> sharp" pop). Fade them in without translating so the
   cover stays crisp throughout. Text reveals keep the subtle rise. */
.work-card[data-reveal],
.work-card[data-reveal].is-visible {
  transform: none;
}

.hero {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.hero__copy {
  display: grid;
  gap: var(--space-md);
  max-width: 42rem;
}

.hero__lede {
  display: grid;
  gap: 0.625rem;
  font-size: var(--text-lg);
  line-height: 1.35;
}

.hero__highlight {
  color: var(--color-text-subtle);
}

.location-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  margin-right: 0.3em;
  color: var(--color-text-subtle);
}

/* Animated "designer's mark" beside the hero heading — same size as the text */
.andrew-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.andrew-mark__svg {
  height: 1.2em;
  width: auto;
  overflow: visible;
}

.andrew-mark__path {
  fill: none;
  stroke: var(--color-text-primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  animation: andrew-scribble 3.4s ease-in-out infinite;
}

@keyframes andrew-scribble {
  0% {
    stroke-dashoffset: 100;
  }
  48% {
    stroke-dashoffset: 0;
  }
  52% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -100;
  }
}

@media (prefers-reduced-motion: reduce) {
  .andrew-mark__path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.hero__experience {
  display: grid;
  gap: var(--space-sm);
}

.experience-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: center;
}

.experience-row__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  font-size: var(--text-base);
}

.experience-row__year {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.experience-icon {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

.experience-icon img,
.experience-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-section {
  display: grid;
  gap: var(--space-3xl);
  /* Clear the 5rem sticky header (plus breathing room) so anchoring to
     #work lands on the top of the work grid rather than under the nav. */
  scroll-margin-top: 7rem;
}

/* 2×2 layout: each card stacks its cover over the title. */
.work-section--grid {
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.work-card {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.work-section--grid .work-card {
  gap: var(--space-md);
  align-content: start;
}

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

.work-card__copy {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
}

.work-card--wip {
  opacity: 0.5;
  pointer-events: none;
}

/* Reserved 4th slot — a quiet placeholder holding space for the next study. */
.work-card--reserved {
  cursor: default;
}

.work-card__media--reserved {
  display: grid;
  place-items: center;
  background-image: none;
  background-color: #0b0c0e;
  border: 0;
  box-shadow: none;
}

.work-card__reserved-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}

.work-card--reserved .eyebrow {
  color: var(--color-text-subtle);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
}

.media-placeholder {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-image);
  background-color: #f1f0eb;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.work-card__media,
.media-placeholder--hero {
  aspect-ratio: 16 / 9;
}

.work-card__media,
.media-placeholder--hero,
.media-placeholder--feature,
.media-placeholder--research {
  background-image: url('../assets/images/passkey-placeholder.svg');
}

.media-placeholder--portrait {
  aspect-ratio: 5 / 6;
  background-image:
    linear-gradient(135deg, rgba(18, 121, 205, 0.06), rgba(0, 0, 0, 0) 40%),
    linear-gradient(180deg, #f1f0eb, #e8e5df);
}

.media-placeholder--feature {
  aspect-ratio: 363 / 270;
}

/* Inline video that replaces a feature placeholder — matches the framed look. */
.feature-video {
  width: 100%;
  aspect-ratio: 1332 / 948;
  border-radius: var(--radius-image);
  overflow: hidden;
  isolation: isolate;
  background-color: #f1f0eb;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-video__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Video that fills a work-card cover or a case-study hero placeholder. */
.work-card__media--video,
.media-placeholder--video {
  background-image: none;
  overflow: hidden;
}

.work-card__media--video video,
.media-placeholder--video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Embedded animated cover (autoplaying HTML) that fills a media slot. */
.work-card__media--embed,
.media-placeholder--embed {
  background-image: none;
  overflow: hidden;
  padding: 0;
}

.cover-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* The cover iframe paints its own dark background before React mounts, which
   can flash as a black box on lazy-load. main.js adds `is-pending` (only when
   JS is running, so covers never stay hidden if it fails) to hide the iframe
   over the light card placeholder, then `is-loaded` to fade it in once ready. */
.cover-embed.is-pending {
  opacity: 0;
  transition: opacity 450ms ease;
}

.cover-embed.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cover-embed.is-pending {
    transition: none;
  }
}

/* Touch devices: give the animated cover iframes an opaque dark backdrop so any
   transient repaint gap blends into the cover's own dark tone instead of flashing.
   Deliberately no transform/will-change here — promoting these to extra GPU layers
   only adds texture-memory pressure on mobile, which is what makes covers go black. */
@media (hover: none) and (pointer: coarse) {
  .work-card__media--embed,
  .media-placeholder--embed,
  .cover-embed {
    background-color: #05060a;
  }
}

.media-placeholder--research {
  aspect-ratio: 16 / 10;
}

/* Real usability-session screenshots in the research phases. */
.research-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-image);
  overflow: hidden;
  background-color: #000;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.research-image__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About page: uniform black background instead of the warm ink surface,
   so the page and footer read as one continuous black field. */
html:has(.about-page),
html:has(.about-page) body {
  background: #000;
}

.about-page {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.about-portrait {
  position: relative;
  margin: 0;
  border-radius: var(--radius-image);
  overflow: hidden;
  box-shadow:
    0 18px 40px -16px rgba(0, 0, 0, 0.28),
    0 6px 16px -10px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-portrait:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.36),
    0 10px 24px -12px rgba(0, 0, 0, 0.24);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.9) contrast(1.06) brightness(1.02) sepia(0.06);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.about-portrait:hover img {
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}

.about-portrait__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1.4rem 1.1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.about-portrait:hover .about-portrait__caption,
.about-portrait:focus-within .about-portrait__caption {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait,
  .about-portrait img {
    transition: none;
  }
  .about-portrait:hover {
    transform: none;
  }
}

.about-page__content {
  display: grid;
  gap: var(--space-md);
}

.about-section {
  display: grid;
  gap: var(--space-sm);
}

.about-section--copy {
  gap: var(--space-sm);
}

.about-rich-text {
  display: grid;
  gap: var(--space-sm);
}

.about-hobbies {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.about-hobbies li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.about-hobbies__icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: rgb(155, 161, 173);
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--transition-base);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--color-text-subtle);
}

.about-section__heading-group {
  display: grid;
  gap: var(--space-sm);
}

.about-section__heading {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.25;
  color: rgb(155, 161, 173);
}

/* Section division comes from generous whitespace + the kicker label,
   not a rule line. Both labelled sections get the same break above. */
.about-section[aria-labelledby='design-philosophy'],
.about-section[aria-labelledby='education'] {
  margin-top: var(--space-sm);
}

.philosophy-list {
  display: grid;
  gap: var(--space-sm);
}

.philosophy-list li::marker {
  font-weight: 400;
}

.philosophy-list strong {
  font-weight: 500;
}

.case-study {
  display: grid;
  gap: var(--space-2xl);
}

.case-study--jpmc {
  display: block;
  max-width: 43.3125rem;
  padding-inline: 1rem;
}

.cs-header {
  display: grid;
  gap: var(--space-xs);
}

.cs-hero {
  margin-top: calc(var(--space-md) * -1);
}

.cs-details {
  display: grid;
  gap: var(--space-sm);
  margin-top: calc(var(--space-md) * -1);
}

.cs-detail {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.cs-detail .eyebrow {
  color: var(--color-text-primary);
  font-size: var(--text-base);
  line-height: 1.25;
}

.cs-detail p:not(.eyebrow) {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.case-study--jpmc > * {
  margin-top: 0;
}

.case-study--jpmc > * + * {
  margin-top: 3.5rem;
}

.case-study--jpmc .eyebrow {
  font-size: 0.875rem;
  line-height: 1.2;
}

.case-study--jpmc .cs-header + .cs-hero {
  margin-top: 2rem;
}

.case-study--jpmc .cs-hero {
  margin-top: 1.5rem;
}

.case-study--jpmc .cs-details {
  margin-top: 1.5rem;
}

.case-study--jpmc .cs-detail .eyebrow {
  color: var(--color-text-subtle);
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.case-study--jpmc .cs-detail p:not(.eyebrow) {
  color: var(--color-text-primary);
  font-size: 1rem;
  line-height: 1.35;
}

/* Problem subtext: 16px gray. Other section bodies keep the standard 18px. */
.case-study--jpmc .section-block--problem .body-copy {
  font-size: 1rem;
}

/* Medium-weight emphasis within statements & section bodies */
.case-study--jpmc .statement strong,
.case-study--jpmc .body-copy strong {
  font-weight: 600;
}

/* Impact intro & each Key Decision read at statement size (24px) */
.case-study--jpmc .section-block--impact > .body-copy,
.case-study--jpmc .decision-stack .body-copy {
  font-size: var(--text-lg);
  line-height: 1.3;
}

.case-study--jpmc .section-block--problem,
.case-study--jpmc .section-block--insight,
.case-study--jpmc .section-block--opportunity,
.case-study--jpmc .section-block--solution,
.case-study--jpmc .section-block--impact,
.case-study--jpmc .section-block--decision-intro,
.case-study--jpmc .section-block--reflection {
  gap: 0.875rem;
}

/* Pull each section header (Problem, Insight, …) closer to the text below it */
.case-study--jpmc .section-block > .eyebrow {
  margin-bottom: -0.45rem;
}

.case-study--jpmc .section-block--problem {
  margin-top: 3.25rem;
}

.case-study--jpmc .stat-pair {
  margin-top: 3.25rem;
  gap: 1rem;
}

/* Elevated

.case-study--jpmc .section-block--insight {
  margin-top: 3.75rem;
}

.case-study--jpmc .split-columns--goals {
  margin-top: 2.875rem;
  gap: 1.75rem;
}

.case-study--jpmc .section-block--opportunity,
.case-study--jpmc .section-block--solution {
  margin-top: 3.75rem;
}

.case-study--jpmc .feature-stack--jpmc {
  margin-top: 2.5rem;
  gap: 3.125rem;
}

.case-study--jpmc .feature-row,
.case-study--jpmc .research-row {
  gap: 1.5rem;
}

.case-study--jpmc .feature-row {
  align-items: start;
}

.feature-row__text {
  display: grid;
  gap: 0.45rem;
}

.case-study--jpmc .section-block--impact {
  margin-top: 4.375rem;
}

.case-study--jpmc .research-stack--jpmc {
  margin-top: 2.25rem;
  gap: 2.5rem;
}

.case-study--jpmc .section-block--decision-intro {
  margin-top: 3.75rem;
}

.case-study--jpmc .decision-stack--jpmc {
  margin-top: 2.5rem;
  gap: clamp(5rem, 10vw, 7.5rem);
}

.case-study--jpmc .section-block--reflection {
  margin-top: 4.375rem;
}

/* ── Shopify case study: bits not covered by the shared JPMC system ── */

/* The two stacked insight statements read as one thought — pull them close. */
.case-study--shopify .section-block--insight + .section-block--insight {
  margin-top: 1.25rem;
}

/* Set the closing line of the insight statement on its own line with breathing room. */
.case-study--shopify .statement__break {
  display: block;
  margin-top: 0.6em;
}

/* Merchant research findings — scannable pain-point cards. */
.case-study--shopify .section-block--voices {
  margin-top: 1.75rem;
  gap: 0.875rem;
}

.case-study--shopify .voice-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-study--shopify .voice-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-study--shopify .voice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 22px -14px rgba(31, 33, 36, 0.28);
}

.case-study--shopify .voice-card__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.case-study--shopify .voice-card__icon {
  flex: none;
  width: auto;
  height: auto;
  border-radius: 0;
  display: grid;
  place-items: center;
}

.case-study--shopify .voice-card__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.case-study--shopify .voice-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

/* Per-category tints — distinct but restrained. */
.case-study--shopify .voice-card:nth-child(1) .voice-card__icon { background: transparent; color: #00684e; }
.case-study--shopify .voice-card:nth-child(1) .voice-card__tag { color: #00684e; }
.case-study--shopify .voice-card:nth-child(2) .voice-card__icon { background: transparent; color: #00684e; }
.case-study--shopify .voice-card:nth-child(2) .voice-card__tag { color: #00684e; }
.case-study--shopify .voice-card:nth-child(3) .voice-card__icon { background: transparent; color: #00684e; }
.case-study--shopify .voice-card:nth-child(3) .voice-card__tag { color: #00684e; }
.case-study--shopify .voice-card:nth-child(4) .voice-card__icon { background: transparent; color: #00684e; }
.case-study--shopify .voice-card:nth-child(4) .voice-card__tag { color: #00684e; }

.case-study--shopify .voice-card__quote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  text-wrap: pretty;
}

.case-study--shopify .voice-card__quote strong {
  font-weight: 400;
  color: var(--color-text-primary);
}

.case-study--shopify .voice-card__attr {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--color-text-subtle);
}

/* Ink-mode adaptation */
html[data-mood='ink'] .case-study--shopify .voice-card {
  background: #1c1f22;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-mood='ink'] .case-study--shopify .voice-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.6);
}

html[data-mood='ink'] .case-study--shopify .voice-card__quote strong {
  color: inherit;
}

html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(1) .voice-card__icon { background: transparent; color: #6fe3c0; }
html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(1) .voice-card__tag { color: #6fe3c0; }
html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(2) .voice-card__icon { background: transparent; color: #8fb8f2; }
html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(2) .voice-card__tag { color: #8fb8f2; }
html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(3) .voice-card__icon { background: transparent; color: #d8b074; }
html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(3) .voice-card__tag { color: #d8b074; }
html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(4) .voice-card__icon { background: transparent; color: #d8a59b; }
html[data-mood='ink'] .case-study--shopify .voice-card:nth-child(4) .voice-card__tag { color: #d8a59b; }

@media (max-width: 40rem) {
  .case-study--shopify .voice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.case-study--shopify .section-block--metrics,
.case-study--shopify .section-block--principles {
  margin-top: 3.75rem;
  gap: 0.875rem;
}

/* Quantitative + qualitative success checklist */
.case-study--shopify .success-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.case-study--shopify .success-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: var(--text-base);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.case-study--shopify .success-check {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.05em;
  color: var(--color-text-primary);
}

/* ── Interactive payment-capture explainer (under Problem) ── */
.case-study--shopify .capture-explainer {
  margin: 2.75rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(110% 130% at 88% -12%, rgba(75, 168, 120, 0.24), transparent 55%),
    radial-gradient(95% 120% at 8% 112%, rgba(20, 90, 66, 0.36), transparent 58%),
    linear-gradient(152deg, #0f1a15 0%, #0a120e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.case-study--shopify .capture-explainer__head {
  margin-bottom: 1.75rem;
}

.case-study--shopify .capture-explainer__title {
  margin-top: 0.5rem;
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text-primary);
}

.case-study--shopify .capture-explainer__lede {
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-subtle);
  text-wrap: pretty;
}

.case-study--shopify .capture-explainer__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
}

.case-study--shopify .capture-explainer__stage > * {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 46rem) {
  .case-study--shopify .capture-explainer__stage {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34.5rem;
  }
}

.case-study--shopify .capture-stage__left {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.case-study--shopify .capture-stage__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-base);
  font-weight: 500;
  color: #00684e;
  transition: opacity 0.3s ease;
}

.case-study--shopify .capture-stage__hint-dot {
  position: relative;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #007a5c;
}

.case-study--shopify .capture-stage__hint-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #007a5c;
  animation: capture-hint-pulse 2s ease-out infinite;
}

.case-study--shopify .capture-explainer.is-complete .capture-stage__hint {
  opacity: 0;
}

@keyframes capture-hint-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

/* Checkbox info tip */
.case-study--shopify .capture-tip-toggle {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.15rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: #8c9196;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.case-study--shopify .capture-tip-toggle:hover,
.case-study--shopify .capture-tip-toggle[aria-expanded="true"] {
  color: #007a5c;
}

.case-study--shopify .capture-tip-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.case-study--shopify .capture-tip {
  margin-top: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: #f1f5f3;
  border-left: 2px solid #007a5c;
  border-radius: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4a5b53;
}

/* Context panel */
.case-study--shopify .capture-context {
  position: relative;
  display: grid;
}

.case-study--shopify .capture-context__panel {
  grid-area: 1 / 1;
  background: linear-gradient(172deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.08) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.875rem;
  padding: 1.5rem;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.case-study--shopify .capture-context__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.case-study--shopify .capture-context__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.case-study--shopify .capture-context__tag--accent {
  color: #B4DF63;
}

.case-study--shopify .capture-context__stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.1rem 0.6rem;
  margin-top: 0.75rem;
}

.case-study--shopify .capture-context__num {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.case-study--shopify .capture-context__num--accent {
  color: #B4DF63;
}

.case-study--shopify .capture-context__unit {
  font-size: 0.9375rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
  max-width: 13rem;
}

.case-study--shopify .capture-context__unit strong {
  color: #ffffff;
  font-weight: 600;
}

.case-study--shopify .capture-context__badge {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
}

.case-study--shopify .capture-context__text {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

.case-study--shopify .capture-context__text strong {
  color: #ffffff;
  font-weight: 600;
}

/* Reasons accordion */
.case-study--shopify .capture-reasons {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.case-study--shopify .capture-reason {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 0.6rem;
  background: #fcfcfb;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.case-study--shopify .capture-reason:hover {
  border-color: rgba(0, 122, 92, 0.4);
  background: #fff;
}

.case-study--shopify .capture-reason[aria-expanded="true"] {
  border-color: rgba(0, 122, 92, 0.45);
  background: #fff;
}

.case-study--shopify .capture-reason__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
}

.case-study--shopify .capture-reason__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  color: #007a5c;
}

.case-study--shopify .capture-reason__name {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.case-study--shopify .capture-reason__chev {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  color: #8c9196;
  transition: transform 0.22s ease;
}

.case-study--shopify .capture-reason[aria-expanded="true"] .capture-reason__chev {
  transform: rotate(180deg);
  color: #007a5c;
}

.case-study--shopify .capture-reason__body {
  display: block;
  max-height: 0;
  padding: 0 0.8rem 0 2.3rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-subtle);
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding-bottom 0.28s ease;
}

.case-study--shopify .capture-reason[aria-expanded="true"] .capture-reason__body {
  max-height: 7rem;
  padding-bottom: 0.8rem;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .case-study--shopify .capture-stage__hint-dot::after { animation: none; }
}

.case-study--shopify .capture-modal {
  width: 100%;
  max-width: 34.5rem;
  background: #fff;
  border-radius: 0.875rem;
  box-shadow: 0 8px 18px -10px rgba(31, 33, 36, 0.12), 0 3px 8px -6px rgba(31, 33, 36, 0.08);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.43;
  color: #1f2124;
}

.case-study--shopify .capture-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e1e3e5;
}

.case-study--shopify .capture-modal__title {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #1f2124;
}

.case-study--shopify .capture-modal__close {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: none;
  color: #5c5f62;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.case-study--shopify .capture-modal__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.case-study--shopify .capture-modal__close:hover {
  background: #f1f2f3;
}

.case-study--shopify .capture-modal__body {
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.case-study--shopify .capture-modal__lede {
  color: #1f2124;
}

.case-study--shopify .capture-choices {
  display: grid;
  gap: 0.25rem;
}

.case-study--shopify .capture-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-radius: 0.5rem;
  cursor: pointer;
  outline: none;
}

.case-study--shopify .capture-option:focus-visible {
  box-shadow: 0 0 0 2px #2c6ecb;
}

.case-study--shopify .capture-radio {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #abb1ba;
  transition: box-shadow 0.15s ease;
}

.case-study--shopify .capture-option:hover .capture-radio {
  box-shadow: inset 0 0 0 2px #8c9196;
}

.case-study--shopify .capture-option--selected .capture-radio,
.case-study--shopify .capture-option--selected:hover .capture-radio {
  box-shadow: inset 0 0 0 2px #2c6ecb;
}

.case-study--shopify .capture-radio::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #2c6ecb;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.case-study--shopify .capture-option--selected .capture-radio::after {
  transform: scale(1);
}

.case-study--shopify .capture-option__name {
  color: #1f2124;
}

.case-study--shopify .capture-option__desc {
  margin-top: 0.15rem;
  color: #616a75;
}

.case-study--shopify .capture-checkbox {
  margin-top: 0.7rem;
  display: grid;
  visibility: hidden;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  outline: none;
  border-radius: 0.4rem;
}

.case-study--shopify .capture-option--selected .capture-checkbox {
  visibility: visible;
}

.case-study--shopify .capture-checkbox:focus-visible {
  box-shadow: 0 0 0 2px #2c6ecb;
}

.case-study--shopify .capture-checkbox__box {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.06rem;
  flex: none;
  border-radius: 0.3125rem;
  background: #fff;
  box-shadow: inset 0 0 0 2px #abb1ba;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.case-study--shopify .capture-checkbox:hover .capture-checkbox__box {
  box-shadow: inset 0 0 0 2px #8c9196;
}

.case-study--shopify .capture-checkbox__box svg {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.case-study--shopify .capture-checkbox--on .capture-checkbox__box,
.case-study--shopify .capture-checkbox--on:hover .capture-checkbox__box {
  background: #2c6ecb;
  box-shadow: inset 0 0 0 2px #2c6ecb;
}

.case-study--shopify .capture-checkbox--on .capture-checkbox__box svg {
  opacity: 1;
}

.case-study--shopify .capture-checkbox__label {
  color: #1f2124;
}

.case-study--shopify .capture-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e1e3e5;
}

.case-study--shopify .capture-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  padding: 0.4375rem 0.9375rem;
  border-radius: 0.5rem;
  border: 1px solid #babec3;
  background: #fff;
  color: #1f2124;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(31, 33, 36, 0.05);
  transition: background 0.15s ease;
}

.case-study--shopify .capture-btn:hover {
  background: #f6f6f7;
}

.case-study--shopify .capture-btn--primary {
  border-color: transparent;
  background: #007a5c;
  color: #fff;
  box-shadow: 0 1px 1px rgba(31, 33, 36, 0.1);
  cursor: default;
}

.case-study--shopify .capture-btn--primary:hover {
  background: #007a5c;
}

html[data-mood='ink'] .case-study--shopify .capture-explainer {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-mood='ink'] .case-study--shopify .capture-stage__hint {
  color: #6fe3c0;
}

html[data-mood='ink'] .case-study--shopify .capture-stage__hint-dot,
html[data-mood='ink'] .case-study--shopify .capture-stage__hint-dot::after {
  background: #2dd4a1;
}

@media (max-width: 36rem) {
  .case-study--shopify .capture-explainer {
    padding: 1.25rem;
  }
}

/* Ink-mode: glass panel already dark — just soften the shadow */
html[data-mood='ink'] .case-study--shopify .capture-context__panel {
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.6);
}

html[data-mood='ink'] .case-study--shopify .capture-context__num,
html[data-mood='ink'] .case-study--shopify .capture-context__unit strong,
html[data-mood='ink'] .case-study--shopify .capture-context__text strong {
  color: #f4f4f1;
}

html[data-mood='ink'] .case-study--shopify .capture-context__num--accent,
html[data-mood='ink'] .case-study--shopify .capture-context__tag--accent {
  color: #B4DF63;
}

html[data-mood='ink'] .case-study--shopify .capture-context__badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(243, 240, 231, 0.72);
}

html[data-mood='ink'] .case-study--shopify .capture-reason {
  background: #24272b;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-mood='ink'] .case-study--shopify .capture-reason:hover,
html[data-mood='ink'] .case-study--shopify .capture-reason[aria-expanded="true"] {
  background: #2a2e32;
  border-color: rgba(79, 214, 171, 0.45);
}

html[data-mood='ink'] .case-study--shopify .capture-reason__name {
  color: #f4f4f1;
}

html[data-mood='ink'] .case-study--shopify .capture-reason__icon {
  color: #4fd6ab;
}

/* Impact results: bare Shopify-green checkmark, no circle. */
.case-study--shopify .impact-check {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12em;
  color: #007a5c;
}

/* Design-principle columns: bold title + supporting copy */
.case-study--shopify .split-columns--principles {
  margin-top: 1.75rem;
  gap: 1.75rem;
}

.case-study--shopify .principle-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text-primary);
}

/* Subtle gray line icon beside each design principle title. */
.case-study--shopify .principle-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.case-study--shopify .principle-icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: #111111;
}
/* Dark mode keeps the green accent for legibility */
html[data-mood='ink'] .case-study--shopify .principle-icon { color: #007a5c; }

/* ── Early explorations ── */
.case-study--shopify .section-block--explore {
  margin-top: 4.375rem;
  gap: 1.5rem;
}

.case-study--shopify .section-block--explore .section-title {
  margin-top: -0.5rem;
}

/* Scannable lede sits tight under the heading as a supporting line. */
.case-study--shopify .explore-lede {
  margin-top: -0.75rem;
  color: var(--color-text-secondary);
  max-width: 52ch;
}

.case-study--shopify .explore-lede strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

.case-study--shopify .explore-sketches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

.case-study--shopify .explore-sketch {
  width: 100%;
  aspect-ratio: 437 / 317;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

/* Figma mockups stacked vertically, full section width. */
.case-study--shopify .explore-stack {
  display: grid;
  gap: 1.25rem;
  margin: 0.75rem 0 0.25rem;
}

.case-study--shopify .explore-mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-mood='ink'] .case-study--shopify .explore-mockup {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Final designs & flows: tall, transparent flow diagrams sit directly on the
   page background (no card frame) with generous space between them. */
.case-study--shopify .section-block--flows {
  /* Pin the grid track to the column width so the wide flow-stack child below
     doesn't stretch the heading/statement (they stay aligned with every other
     section); only .flow-stack breaks out. */
  grid-template-columns: minmax(0, 1fr);
}

.case-study--shopify .flow-stack {
  /* Images align to the same centered column as the heading + statement,
     instead of breaking out to full width. */
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 3.5rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.case-study--shopify .flow-image {
  width: 100%;
  height: auto;
  display: block;
}

/* In dark mode the flow diagrams' dark caption text would vanish on the dark
   page; give them a light backing so they stay legible. */
html[data-mood='ink'] .case-study--shopify .flow-image {
  background: #f6f6f4;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.case-study--shopify .explore-discoveries {
  margin: 0.25rem 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.case-study--shopify .explore-discoveries li {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  padding-left: 0.35rem;
}

.case-study--shopify .explore-discoveries strong {
  font-weight: 600;
}

html[data-mood='ink'] .case-study--shopify .explore-sketch {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 36rem) {
  .case-study--shopify .explore-sketches {
    grid-template-columns: 1fr;
  }
}

.case-study--shopify .impact-detail {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.case-study--shopify .impact-detail li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
}

.case-study--shopify .impact-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-subtle);
}

.case-study--jpmc .reflection-list--ordered {
  padding-left: 0;
  list-style: none;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.case-study--jpmc .reflection-item {
  display: grid;
  gap: 0.45rem;
}

.case-study--jpmc .reflection-item__index {
  color: var(--color-text-subtle);
  font-size: 0.875rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.case-study--jpmc .reflection-item__title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.section-block {
  display: grid;
  gap: var(--space-sm);
}

.stat-pair {
  display: grid;
  gap: var(--space-sm);
}

.stat-card {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
}

.stat-card {
  background: #f5f4ed;
}

.split-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.case-study--jpmc .stat-card {
  padding: 1.625rem;
}

.case-study--jpmc .split-card__list {
  gap: 0.625rem;
  font-size: 1rem;
}

.stat-card__value {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
/* Per-character rise + de-blur reveal for the stat figures. */
.stat-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(7px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  will-change: opacity, transform, filter;
}

.stat-char.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .stat-char {
    transition: none;
  }
}

.stat-card__description {
  width: min(100%, 245px);
  color: #3e3e3e;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.split-columns,
.feature-stack,
.research-stack,
.decision-stack,
.reflection-list,
.placeholder-page {
  display: grid;
  gap: var(--space-lg);
}

.split-card__list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.feature-row,
.research-row {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.section-label {
  font-size: var(--text-base);
  line-height: 1.35;
}

.research-phase {
  display: grid;
  gap: var(--space-md);
}

.case-study--jpmc .research-phase {
  border-top: 1px solid var(--color-divider);
  padding-top: 1.5rem;
}

/* Phase 1 joins the Impact & Validation section — no leading divider */
.case-study--jpmc .research-phase:first-child {
  border-top: none;
  padding-top: 0;
}

.research-phase__head {
  display: grid;
  gap: 0.3rem;
}

.case-study--jpmc .research-phase__title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.research-figure {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.research-caption {
  margin: 0;
}

.case-study--jpmc .research-row {
  align-items: start;
}

/* Multi-paragraph research copy: keep paragraphs in one grid cell with rhythm. */
.research-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ───────────────────────────────────────────────
   JPMC — Impact & Validation enhancements
   Participant pull-quotes + richer phase cards.
   Single restrained accent (Chase blue) to match
   the minimalist Shopify voice-card treatment.
─────────────────────────────────────────────── */

/* Participant pull-quotes — voices straight from the sessions. */
.case-study--jpmc .research-voices {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-study--jpmc .research-voice {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem 1.4rem;
  background: #f5f4ed;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.case-study--jpmc .research-voice:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 121, 205, 0.32);
  box-shadow: 0 12px 26px -18px rgba(18, 121, 205, 0.55);
}

.case-study--jpmc .research-voice__mark {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--color-brand-jpmc);
}

.case-study--jpmc .research-voice__quote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.case-study--jpmc .research-voice__quote strong {
  font-weight: 600;
}

.case-study--jpmc .research-voice__attr {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
}

.case-study--jpmc .research-voice__phase {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-jpmc);
}

/* Phase head — title on the left, sample-size metric on the right. */
.case-study--jpmc .research-phase__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.case-study--jpmc .research-phase__heading {
  display: grid;
  gap: 0.3rem;
}

.case-study--jpmc .research-metric {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  background: rgba(18, 121, 205, 0.08);
  border-radius: 0.6rem;
}

.case-study--jpmc .research-metric__value {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-brand-jpmc);
  font-variant-numeric: tabular-nums;
}

.case-study--jpmc .research-metric__label {
  font-size: 0.68rem;
  line-height: 1.15;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Outcome pill above the phase write-up. */
.case-study--jpmc .research-finding {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.case-study--jpmc .research-finding::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
}

.case-study--jpmc .research-finding--positive {
  background: rgba(18, 121, 205, 0.1);
  color: #0f5fa6;
}

.case-study--jpmc .research-finding--flag {
  background: rgba(176, 122, 44, 0.13);
  color: #9a6b1f;
}

/* Ink-mode adaptations */
html[data-mood='ink'] .case-study--jpmc .research-voice {
  background: #1c1f22;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-mood='ink'] .case-study--jpmc .research-voice:hover {
  border-color: rgba(99, 160, 240, 0.4);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.7);
}

html[data-mood='ink'] .case-study--jpmc .research-voice__mark,
html[data-mood='ink'] .case-study--jpmc .research-voice__phase,
html[data-mood='ink'] .case-study--jpmc .research-metric__value {
  color: #8fb8f2;
}

html[data-mood='ink'] .case-study--jpmc .research-metric {
  background: rgba(99, 160, 240, 0.16);
}

html[data-mood='ink'] .case-study--jpmc .research-finding--positive {
  background: rgba(99, 160, 240, 0.18);
  color: #9fc2f5;
}

html[data-mood='ink'] .case-study--jpmc .research-finding--flag {
  background: rgba(212, 165, 90, 0.18);
  color: #d8b074;
}

@media (max-width: 52rem) {
  .case-study--jpmc .research-voices {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-study--jpmc .research-phase__head {
    flex-direction: column;
  }
}

.placeholder-page {
  min-height: 50vh;
  align-content: center;
}

@media (min-width: 48rem) {
  .hero,
  .about-page,
  .feature-row,
  .research-row,
  .stat-pair,
  .split-columns,
  .cs-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-section--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3xl) var(--space-xl);
  }

  .hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 1fr);
  }

  .about-page {
    grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.2fr);
  }

  .cs-details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .stat-pair,
  .split-columns {
    gap: var(--space-lg);
  }

  .feature-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(14rem, 0.8fr);
  }

  .research-row {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1fr);
  }

  .case-study--jpmc {
    max-width: 53.75rem;
    padding-inline: 0;
  }
}

@media (max-width: 63.99rem) {
  .page-shell {
    padding-block-end: 1.5rem;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-nav__links {
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .hero__lede {
    font-size: 1.25rem;
  }
}

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

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

/* ───────────────────────────────────────────────
   Palette mood — shared across ALL pages.
   Applied via [data-mood] on <html>; persisted in
   localStorage so dark mode follows page navigation.
─────────────────────────────────────────────── */
html {
  transition: background-color 320ms ease;
}
body {
  transition:
    background-color 320ms ease,
    color 320ms ease;
}
.site-header {
  transition: background-color 320ms ease;
}

html[data-mood='cool'] {
  --color-surface: #f2f3f5;
  --color-surface-strong: #e7e9ec;
  --color-text-secondary: #767c82;
  --color-text-subtle: #6b7178;
  --color-divider: #d4d8dc;
}

html[data-mood='ink'] {
  --color-surface: #17160f;
  --color-surface-strong: #211f17;
  --color-text-primary: #f3f0e7;
  --color-text-secondary: #9a948a;
  --color-text-subtle: #837c6f;
  --color-divider: #36332b;
}

html[data-mood='ink'] body {
  color: var(--color-text-primary);
}

html[data-mood='ink'] .site-header.nav--scrolled {
  background: rgba(23, 22, 15, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-mood='ink'] ::selection {
  background: rgba(255, 255, 255, 0.16);
}

/* Ink-mode fixes for hardcoded element colors */
html[data-mood='ink'] .stat-card {
  background: var(--color-surface-strong);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-mood='ink'] .stat-card__description {
  color: var(--color-text-secondary);
}

html[data-mood='ink'] .media-placeholder {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-mood='ink'] .about-portrait {
  box-shadow:
    0 18px 44px -16px rgba(0, 0, 0, 0.6),
    0 6px 16px -10px rgba(0, 0, 0, 0.45);
}

/* ───────────────────────────────────────────────
   Dark-mode toggle — shared across ALL pages.
   Base button lives beside the hero title on the
   homepage; the --floating modifier pins it to the
   top-left corner on interior pages.
─────────────────────────────────────────────── */
.dark-toggle {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  background: var(--color-surface-strong);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-base, 200ms ease),
    border-color var(--transition-base, 200ms ease), transform 120ms ease;
  /* Periodic "peek" nudge to signal the toggle is interactive. */
  animation: toggle-peek 7s ease-in-out 1.5s infinite;
}
.dark-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--color-text-subtle);
}
.dark-toggle:active {
  transform: scale(0.92);
}
html[data-mood='ink'] .dark-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dark-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}
.dark-toggle .icon-sun {
  display: none;
}

/* Nav variant: lives inline in the primary nav after the links, stripped of the
   circular button chrome and sized to match the nav text. */
.dark-toggle--nav {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: inherit;
  line-height: 0;
  animation: none;
}
.dark-toggle--nav:hover {
  background: none;
  border-color: transparent;
  color: var(--color-text-subtle);
}
.dark-toggle--nav::after {
  display: none;
}
.dark-toggle--nav svg {
  width: auto;
  height: 1.2rem;
}

/* The ring's interior matches the page surface so only its stroke shows as an outline. */
.dark-toggle .theme-icon__ring {
  fill: var(--color-surface);
}

/* Contrast mark mirrors between modes: ring-left/filled-right in light,
   filled-left/ring-right in dark. currentColor flips with the theme. */
.dark-toggle .theme-icon {
  transition: transform var(--transition-base);
}
html[data-mood='ink'] .dark-toggle .theme-icon {
  transform: scaleX(-1);
}
html[data-mood='ink'] .dark-toggle .icon-moon {
  display: none;
}
html[data-mood='ink'] .dark-toggle .icon-sun {
  display: block;
}

/* Expanding ring that radiates out of the circle during each peek. */
.dark-toggle::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 1px solid var(--color-text-subtle);
  opacity: 0;
  pointer-events: none;
  animation: toggle-peek-ring 7s ease-out 1.5s infinite;
}

/* Once the user engages, the nudge has done its job — stop it. */
.dark-toggle:hover,
.dark-toggle:focus-visible,
html[data-mood='ink'] .dark-toggle {
  animation: none;
}
.dark-toggle:hover::after,
.dark-toggle:focus-visible::after,
html[data-mood='ink'] .dark-toggle::after {
  animation: none;
  opacity: 0;
}

@keyframes toggle-peek {
  /* The peek occupies the first ~12% of the cycle, then rests. */
  0% { transform: scale(1) rotate(0deg); }
  3% { transform: scale(1.12) rotate(0deg); }
  6% { transform: scale(1.06) rotate(-7deg); }
  9% { transform: scale(1.06) rotate(7deg); }
  12% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes toggle-peek-ring {
  0% { opacity: 0; transform: scale(0.9); }
  2% { opacity: 0.55; transform: scale(1); }
  12% { opacity: 0; transform: scale(1.65); }
  100% { opacity: 0; transform: scale(1.65); }
}

/* Floating variant: pinned to the bottom-right, stays put while scrolling.
   Bottom-right keeps it clear of the sticky header wordmark up top. */
.dark-toggle--floating {
  position: fixed;
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  right: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 200;
  width: 2.75rem;
  height: 2.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}
html[data-mood='ink'] .dark-toggle--floating {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.dark-toggle--floating svg {
  width: 1.45rem;
  height: 1.45rem;
}

/* ───────────────────────────────────────────────
   Travel filmstrip — full-bleed, auto-scrolling,
   draggable. Mixed portrait/landscape frames with
   captions beneath. Used on the About page.
─────────────────────────────────────────────── */
.travel-strip-section {
  display: grid;
  gap: var(--space-lg);
}

.travel-strip {
  --strip-h: clamp(16rem, 26vw, 26rem);
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.travel-strip.is-dragging {
  cursor: grabbing;
}

.travel-strip__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  width: max-content;
  will-change: transform;
}

.travel-photo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.travel-photo__frame {
  height: var(--strip-h);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--color-surface-strong);
}
.travel-photo--portrait .travel-photo__frame {
  aspect-ratio: 3 / 4;
}
.travel-photo--tall .travel-photo__frame {
  aspect-ratio: 4 / 5;
}
.travel-photo--wide .travel-photo__frame {
  aspect-ratio: 16 / 9;
}
.travel-photo--landscape .travel-photo__frame {
  aspect-ratio: 3 / 2;
}

.travel-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.travel-photo__caption {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .travel-strip__track {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dark-toggle,
  .dark-toggle::after {
    animation: none;
  }
}

/* ───────────────────────────────────────────────
   Figma-style multiplayer cursor — replaces the
   native pointer on every page (fine pointers only).
   Locked to a black cursor (black arrow).
─────────────────────────────────────────────── */
.mp-cursor {
  /* Locked to a black cursor (black arrow) regardless of page theme. */
  --mp-bg: #000000;
  --mp-fg: #ffffff;
  --mp-stroke: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0);
  transition: opacity 160ms ease;
  will-change: transform;
}

.mp-cursor__arrow {
  display: block;
  fill: var(--mp-bg);
  stroke: var(--mp-stroke);
  stroke-width: 1;
  stroke-linejoin: round;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
  transform-origin: 0 0;
  transition: transform 90ms ease;
}
.mp-cursor.is-down .mp-cursor__arrow {
  transform: scale(0.82);
}

.mp-cursor__label {
  position: absolute;
  left: 13px;
  top: 12px;
  padding: 0.15rem 0.3rem;
  border-radius: 0;
  background: var(--mp-bg);
  color: var(--mp-fg);
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* Hide the native pointer only where a custom one is active — but restore
   the real system cursor over anything clickable, so links/buttons feel
   normal. Using inherit on * means a link's children pick up its pointer too. */
@media (hover: hover) and (pointer: fine) {
  html.mp-cursor-on {
    cursor: none !important;
  }
  html.mp-cursor-on * {
    cursor: inherit !important;
  }

  html.mp-cursor-on a,
  html.mp-cursor-on button,
  html.mp-cursor-on label,
  html.mp-cursor-on summary,
  html.mp-cursor-on select,
  html.mp-cursor-on [role='button'],
  html.mp-cursor-on [role='link'],
  html.mp-cursor-on .work-card,
  html.mp-cursor-on .dark-toggle,
  html.mp-cursor-on .inline-link,
  html.mp-cursor-on .site-nav__link,
  html.mp-cursor-on .site-footer__email,
  html.mp-cursor-on .site-footer__link,
  html.mp-cursor-on image-slot {
    cursor: pointer !important;
  }

  html.mp-cursor-on input,
  html.mp-cursor-on textarea {
    cursor: text !important;
  }

  html.mp-cursor-on .travel-strip {
    cursor: grab !important;
  }
  html.mp-cursor-on .travel-strip.is-dragging {
    cursor: grabbing !important;
  }
}

/* ───────────────────────────────────────────────
   Site footer — contact + navigation.
   An inverse band that stays black across the site
   so it always reads as a distinct closing block.
─────────────────────────────────────────────── */
.site-footer {
  --footer-bg: #0a0a0a;
  --footer-eyebrow: #6f6f6f;
  --footer-email: #f4f4f2;
  --footer-label: #6f6f6f;
  --footer-link: #e7e7e5;
  --footer-meta: #6f6f6f;
  --footer-rule: rgba(255, 255, 255, 0.08);
  background: var(--footer-bg);
  color: var(--footer-email);
  margin-top: var(--space-4xl);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(2rem, 4vw, 2.75rem);
  transition: background-color 320ms ease, color 320ms ease;
}

html[data-mood='ink'] .site-footer {
  --footer-bg: #000000;
  --footer-eyebrow: #6d7382;
  --footer-email: #eef0f8;
  --footer-label: #6d7382;
  --footer-link: #e2e5ee;
  --footer-meta: #6d7382;
  --footer-rule: rgba(255, 255, 255, 0.08);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  column-gap: clamp(2.5rem, 8vw, 9rem);
  row-gap: 3rem;
  align-items: start;
}

.site-footer__eyebrow {
  margin-bottom: 0.6rem;
  color: var(--footer-eyebrow);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--footer-email);
  font-family: inherit;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.site-footer__email:hover {
  opacity: 0.78;
}

.site-footer__copy-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  margin-top: 0.1em;
  opacity: 0.55;
  transition: opacity var(--transition-base);
}

.site-footer__email:hover .site-footer__copy-icon {
  opacity: 0.9;
}

.site-footer__copied {
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: var(--footer-eyebrow);
  opacity: 0;
  transform: translateY(0.1em);
  transition: transform var(--transition-base);
  pointer-events: none;
}

.site-footer__email.is-copied .site-footer__copied {
  opacity: 1;
  transform: translateY(0);
}

.site-footer__email.is-copied .site-footer__copy-icon {
  opacity: 0;
}

.site-footer__col {
  min-width: 7rem;
}

.site-footer__label {
  margin-bottom: 1.35rem;
  color: var(--footer-label);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  list-style: none;
  padding: 0;
}

.site-footer__link {
  color: var(--footer-link);
  font-size: var(--text-sm);
  transition: opacity var(--transition-base);
}

.site-footer__link:hover {
  opacity: 0.65;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: clamp(4rem, 12vw, 9rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--footer-rule);
  color: var(--footer-meta);
  font-size: var(--text-xs);
}

.site-footer__meta-link {
  color: var(--footer-meta);
  transition: opacity var(--transition-base);
}

.site-footer__meta-link:hover {
  opacity: 0.7;
}

.site-footer__copyright {
  color: var(--footer-meta);
}

@media (max-width: 48rem) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__contact {
    grid-column: 1 / -1;
  }
}

/* ────────────────────────────────────────────────────────────
   Shopify case study — editorial section rhythm.
   Replicates the JPMC playground's generous, uniform gap between
   story beats: clamp(6rem,18vh,11rem) bottom + clamp(0.5rem,2vh,1.5rem)
   top padding ≈ a single responsive margin below.
   Scoped to --shopify so the production JPMC study is untouched.
─────────────────────────────────────────────────────────────── */
.case-study--shopify {
  --cs-section-gap: clamp(6.5rem, 20vh, 12.5rem);
}

/* Every major titled beat gets the same generous gap above it */
.case-study--shopify > #cs-problem,
.case-study--shopify > #cs-context,
.case-study--shopify > #cs-insight,
.case-study--shopify > #cs-goals,
.case-study--shopify > #cs-opportunity,
.case-study--shopify > #cs-principles,
.case-study--shopify > #cs-impact,
.case-study--shopify > #cs-solution,
.case-study--shopify > #cs-process,
.case-study--shopify > .section-block--feedback,
.case-study--shopify > .section-block--flows,
.case-study--shopify > #cs-learnings {
  margin-top: var(--cs-section-gap);
}

/* Sub-parts that continue the beat above stay tight, not full-gap */
.case-study--shopify > #cs-voices { margin-top: 2.25rem; }
.case-study--shopify > .split-columns--principles { margin-top: 1.75rem; }
.case-study--shopify > .feature-stack { margin-top: 2.75rem; }
