/* Stage — shared static case-study template. The homepage orbit is separate. */
:root {
  --stage-paper: #f6f5f3;
  --stage-surface: #ffffff;
  --stage-ink: #121217;
  --stage-muted: #5c5c63;
  --stage-line: rgba(18, 18, 23, .14);
  --stage-action: #c90ade;
  --stage-action-hover: #a508b8;
  --stage-on-action: #ffffff;
  --stage-shadow: 0 28px 65px rgba(28, 22, 18, .16), 0 4px 12px rgba(28, 22, 18, .1);
  --stage-shadow-small: 0 14px 34px rgba(18, 18, 23, .09);
  --stage-radius: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--stage-paper);
  color: var(--stage-ink);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
::selection { background: var(--stage-action); color: var(--stage-on-action); }

mc-site-header {
  --header-bg: rgba(246, 245, 243, .92);
  --header-text: var(--stage-ink);
  --header-muted: rgba(18, 18, 23, .72);
  --header-line: var(--stage-line);
  --header-logo-filter: brightness(0);
  position: relative;
  z-index: 110;
  display: block;
}

.stage-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
.stage-eyebrow, .stage-meta, .stage-stat-label, .stage-next-eyebrow,
.stage-footer nav, .stage-button, .stage-video figcaption, .stage-step-date {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
}

/* The first screen is art only: no labels, overlays, pills or ghost type. */
.stage-hero { padding: 104px 0 0; }
.stage-flatlay {
  position: relative;
  isolation: isolate;
  width: min(1440px, calc(100% - 64px), calc((100svh - 132px) * 1.6));
  min-width: 0;
  aspect-ratio: 16 / 10;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 23, .07);
  border-radius: var(--stage-radius);
  background: var(--stage-bg, #ece8e1);
  box-shadow: inset 0 1px rgba(255, 255, 255, .4);
}
.stage-flatlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 45% 34%, rgba(255, 255, 255, .52), transparent 58%);
  pointer-events: none;
}
.stage-tone-orange { --stage-bg: #eee3d8; }
.stage-tone-teal { --stage-bg: #dce9e5; }
.stage-tone-night { --stage-bg: #202129; }
.stage-tone-sage { --stage-bg: #e2e8e1; }
.stage-tone-heritage { --stage-bg: #e8e2d7; }
.stage-tone-blue { --stage-bg: #dbe5f0; }
.stage-tone-warm { --stage-bg: #eee5d9; }
.stage-tone-burgundy { --stage-bg: #321d24; }
.stage-tone-ink { --stage-bg: #1b191d; }
.stage-tone-green { --stage-bg: #dfe6dc; }
.stage-tone-sunset { --stage-bg: #efdbcb; }
.stage-tone-rose { --stage-bg: #e9e2e5; }

.stage-piece {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z, 2);
  width: var(--w);
  margin: 0;
  transform: rotate(var(--r, 0deg));
  transform-origin: center;
}
.stage-piece-inner {
  position: relative;
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(18, 18, 23, .08);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: var(--stage-shadow);
}
.stage-art { width: 100%; aspect-ratio: var(--ratio, 16 / 10); overflow: hidden; background: #f8f8f8; }
.stage-art img { width: 100%; height: 100%; object-fit: cover; }
.stage-frame-contain .stage-art img { object-fit: contain; }
.stage-frame-square .stage-art { aspect-ratio: 1; }
.stage-frame-portrait .stage-art { aspect-ratio: 4 / 5; }
.stage-frame-wide .stage-art { aspect-ratio: 16 / 10; }
.stage-frame-laptop .stage-piece-inner { padding: 8px; border: 0; border-radius: 11px; background: #2b2c30; }
.stage-frame-laptop .stage-art { aspect-ratio: 16 / 10; border-radius: 5px; }
.stage-frame-laptop .stage-piece-inner::after {
  content: '';
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -13px;
  height: 13px;
  border-radius: 2px 2px 12px 12px;
  background: linear-gradient(#d7d8da, #929498);
  box-shadow: 0 8px 12px rgba(18, 18, 23, .18);
}
.stage-frame-phone { width: min(var(--w), 150px); }
.stage-frame-phone .stage-piece-inner { padding: 5px; border: 0; border-radius: 20px; background: #24252a; }
.stage-frame-phone .stage-art { aspect-ratio: 9 / 19; border-radius: 15px; }
.stage-frame-phone .stage-piece-inner::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: 30%;
  height: 5px;
  border-radius: 999px;
  background: #24252a;
  transform: translateX(-50%);
}
.stage-pos-a { --x: 6%; --y: 13%; --w: 48%; --r: -4deg; --z: 2; }
.stage-pos-b { --x: 60%; --y: 7%; --w: 22%; --r: 5deg; --z: 3; }
.stage-pos-c { --x: 73%; --y: 49%; --w: 18%; --r: -5deg; --z: 5; }
.stage-pos-d { --x: 38%; --y: 53%; --w: 29%; --r: 3deg; --z: 4; }
.stage-pos-e { --x: 9%; --y: 63%; --w: 20%; --r: -7deg; --z: 5; }
.stage-pos-f { --x: 39%; --y: 7%; --w: 17%; --r: 4deg; --z: 1; }
.stage-pos-g { --x: 84%; --y: 10%; --w: 10%; --r: 7deg; --z: 6; }
.stage-pos-h { --x: 60%; --y: 60%; --w: 17%; --r: -2deg; --z: 6; }

/* Title and project context follow the artwork. */
.stage-intro { padding: 62px 0 74px; }
.stage-intro .stage-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); column-gap: clamp(40px, 7vw, 100px); align-items: end; }
.stage-heading-block { grid-row: span 3; }
.stage-title { margin: 16px 0 23px; font-size: clamp(4rem, 7.2vw, 6.9rem); line-height: .89; letter-spacing: -.065em; }
.stage-title span { display: block; }
.stage-title .title-thin { font-weight: 200; }
.stage-title .title-bold { font-weight: 800; }
.stage-title.title-long { font-size: clamp(3.25rem, 5.4vw, 5.2rem); }
.stage-entity { max-width: 62ch; margin: 0 0 21px; color: var(--stage-muted); font-size: .96rem; line-height: 1.7; }
.stage-meta { max-width: 64ch; margin: 0 0 24px; color: var(--stage-muted); font-size: .59rem; line-height: 1.8; }
.stage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--stage-action);
  color: var(--stage-on-action);
  font-size: .63rem;
  font-weight: 600;
  transition: background-color .2s ease, scale .1s ease;
}
.stage-button:hover { background: var(--stage-action-hover); }
.stage-button:active { scale: .97; }
.stage-button:focus-visible, .stage-next-card:focus-visible, .stage-text-link:focus-visible, .stage-footer a:focus-visible {
  outline: 2px solid var(--stage-action);
  outline-offset: 4px;
}

/* Alternating editorial chapters, always led by real project media. */
.stage-chapters { padding-bottom: 30px; }
.stage-chapter { padding: 42px 0; scroll-margin-top: 82px; }
.stage-chapter > .stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(24px, 3vw, 42px);
  border-radius: 30px;
  background: var(--stage-surface);
  box-shadow: var(--stage-shadow-small);
}
.stage-chapter:nth-child(even) .stage-chapter-media { order: 2; }
.stage-chapter:nth-child(even) .stage-chapter-copy { order: 1; }
.stage-chapter-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.stage-media { min-width: 0; overflow: hidden; border: 1px solid var(--stage-line); border-radius: 17px; background: var(--stage-paper); }
.stage-media--lead { grid-column: 1 / -1; }
.stage-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stage-media--portrait img { aspect-ratio: 4 / 5; }
.stage-media--square img { aspect-ratio: 1; }
.stage-media--contain img { aspect-ratio: var(--ratio, 1); object-fit: contain; background: #ffffff; }
.stage-chapter-copy { min-width: 0; }
.stage-eyebrow { margin: 0 0 17px; color: var(--stage-muted); font-size: .62rem; font-weight: 500; }
.stage-chapter h2 { margin: 0 0 19px; font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.stage-copy { margin: 0; color: var(--stage-muted); font-size: .88rem; line-height: 1.7; }
.stage-copy + .stage-copy { margin-top: 14px; }
.stage-copy.stage-serif { color: var(--stage-ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.55rem); font-style: italic; line-height: 1.45; }
.stage-text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 15px; color: #a5089a; font-size: .78rem; font-weight: 700; }
.stage-text-link + .stage-text-link { margin-left: 12px; }
.stage-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-column: 1 / -1; }
.stage-video { min-width: 0; overflow: hidden; border: 1px solid var(--stage-line); border-radius: 17px; background: #111116; }
.stage-video video { width: 100%; aspect-ratio: 16 / 9; background: #111116; object-fit: cover; }
.stage-video figcaption { padding: 10px 12px; background: #ffffff; color: var(--stage-muted); font-size: .52rem; line-height: 1.5; }
.stage-sound-facts { margin: 13px 0 0; color: var(--stage-muted); font-family: 'JetBrains Mono', monospace; font-size: .55rem; line-height: 1.8; letter-spacing: .07em; text-transform: uppercase; }

/* Existing dated milestones remain only where real dates were supplied. */
.stage-process { padding: 68px 0; }
.stage-process h2 { margin: 0 0 28px; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 200; line-height: 1; letter-spacing: -.045em; }
.stage-process h2 strong { font-weight: 800; }
.stage-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.stage-step { min-height: 170px; padding: 22px; border: 1px solid var(--stage-line); border-radius: 20px; background: var(--stage-surface); }
.stage-step-date { color: var(--stage-muted); font-size: .58rem; }
.stage-step h3 { margin: 25px 0 8px; font-size: 1rem; line-height: 1.25; }
.stage-step p { margin: 0; color: var(--stage-muted); font-size: .75rem; line-height: 1.55; }

/* Verified facts and existing quotes only. */
.stage-proof { padding: 46px 0 76px; }
.stage-proof-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px; }
.stage-proof-grid.stats-only { grid-template-columns: 1fr; }
.stage-stats { display: grid; grid-template-columns: repeat(var(--stat-count, 4), minmax(0, 1fr)); border: 1px solid var(--stage-line); border-radius: 26px; background: var(--stage-surface); }
.stage-stat { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 29px 22px; border-right: 1px solid var(--stage-line); }
.stage-stat:last-child { border-right: 0; }
.stage-stat-value { display: block; font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.stage-stat-value.stat-long { font-size: clamp(1.4rem, 2.3vw, 2.2rem); }
.stage-stat-label { display: block; margin-top: 10px; color: var(--stage-muted); font-size: .55rem; line-height: 1.6; }
.stage-quote { display: flex; flex-direction: column; justify-content: center; padding: 30px; border-radius: 26px; background: var(--stage-ink); color: var(--stage-paper); }
.stage-quote blockquote { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.4rem, 2.5vw, 2rem); font-style: italic; line-height: 1.35; }
.stage-quote cite { display: block; margin-top: 20px; color: #c9c9cf; font-family: 'JetBrains Mono', monospace; font-size: .55rem; font-style: normal; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }

.stage-next { padding: 0 0 80px; }
.stage-next-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.stage-next-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); overflow: hidden; border: 1px solid var(--stage-line); border-radius: 26px; background: var(--stage-surface); box-shadow: var(--stage-shadow-small); }
.stage-next-card > img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.stage-next-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px; }
.stage-next-eyebrow { color: var(--stage-muted); font-size: .58rem; }
.stage-next-card h2 { margin: 15px 0 10px; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.04em; }
.stage-next-card h2 span { font-weight: 200; }
.stage-next-card h2 strong { font-weight: 800; }
.stage-next-card p { margin: 0; color: var(--stage-muted); font-size: .8rem; }
.stage-project-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 30px; border-radius: 26px; background: var(--stage-ink); color: var(--stage-paper); }
.stage-project-card h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 200; line-height: 1.15; letter-spacing: -.04em; }
.stage-project-card h2 strong { display: block; font-weight: 800; }

.stage-footer { padding: 36px 0 42px; border-top: 1px solid var(--stage-line); }
.stage-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.stage-footer-logo { width: auto; height: 24px; filter: brightness(0); }
.stage-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .57rem; }
.stage-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.stage-footer nav a:hover { color: var(--stage-action); }
.stage-footer-entity { max-width: 110ch; margin: 22px 0 0; color: var(--stage-muted); font-size: .68rem; line-height: 1.65; }

@media (max-width: 1000px) {
  .stage-intro .stage-wrap { grid-template-columns: 1fr; }
  .stage-heading-block { grid-row: auto; }
  .stage-entity { margin-top: 24px; }
  .stage-chapter > .stage-wrap { grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); gap: 28px; }
  .stage-proof-grid { grid-template-columns: 1fr; }
  .stage-next-grid { grid-template-columns: 1fr; }
  .stage-project-card { min-height: 220px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .stage-wrap { padding-inline: 20px; }
  .stage-hero { padding-top: 82px; }
  .stage-flatlay { width: calc(100% - 24px); aspect-ratio: 4 / 5; border-radius: 25px; }
  .stage-piece-inner { padding: 4px; }
  .stage-frame-laptop .stage-piece-inner { padding: 5px; border-radius: 7px; }
  .stage-frame-laptop .stage-piece-inner::after { bottom: -8px; height: 8px; }
  .stage-frame-phone .stage-piece-inner { padding: 3px; border-radius: 12px; }
  .stage-frame-phone .stage-art { border-radius: 9px; }
  .stage-frame-phone .stage-piece-inner::before { top: 5px; height: 3px; }
  .stage-pos-a { --x: 3%; --y: 11%; --w: 68%; }
  .stage-pos-b { --x: 57%; --y: 5%; --w: 36%; }
  .stage-pos-c { --x: 66%; --y: 48%; --w: 29%; }
  .stage-pos-d { --x: 17%; --y: 54%; --w: 50%; }
  .stage-pos-e { --x: 3%; --y: 66%; --w: 30%; }
  .stage-pos-f, .stage-pos-g, .stage-pos-h { display: none; }
  .stage-intro { padding: 40px 0 46px; }
  .stage-title { margin: 13px 0 19px; font-size: clamp(3.3rem, 16.5vw, 4.6rem); }
  .stage-title.title-long { font-size: clamp(2.75rem, 12.5vw, 3.7rem); }
  .stage-entity { margin-top: 0; font-size: .86rem; }
  .stage-meta { font-size: .53rem; }
  .stage-chapter { padding: 17px 0; }
  .stage-chapter > .stage-wrap { grid-template-columns: 1fr; gap: 25px; padding: 16px; border-radius: 22px; }
  .stage-chapter:nth-child(even) .stage-chapter-media, .stage-chapter:nth-child(even) .stage-chapter-copy { order: initial; }
  .stage-chapter-copy { padding: 0 5px 8px; }
  .stage-chapter h2 { font-size: 2.1rem; }
  .stage-copy { font-size: .82rem; }
  .stage-chapter-media, .stage-video-grid { gap: 8px; }
  .stage-media, .stage-video { border-radius: 12px; }
  .stage-process { padding: 48px 0; }
  .stage-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stage-step { min-height: 170px; padding: 17px; }
  .stage-proof { padding: 30px 0 52px; }
  .stage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-stat { padding: 23px 15px; border-bottom: 1px solid var(--stage-line); }
  .stage-stat:nth-child(2n) { border-right: 0; }
  .stage-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stage-stats[style*="--stat-count:1"] { grid-template-columns: 1fr; }
  .stage-stats[style*="--stat-count:1"] .stage-stat { border: 0; }
  .stage-stats[style*="--stat-count:3"] .stage-stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .stage-stat-value { font-size: 2rem; }
  .stage-stat-value.stat-long { font-size: 1.35rem; }
  .stage-quote { padding: 25px; }
  .stage-next { padding-bottom: 54px; }
  .stage-next-card { grid-template-columns: 1fr; }
  .stage-next-card > img { min-height: 0; aspect-ratio: 16 / 10; }
  .stage-next-content { padding: 23px; }
  .stage-project-card { min-height: 210px; padding: 25px; }
  .stage-footer-top { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-button { transition: none; }
}

@media (prefers-contrast: more) {
  :root { --stage-line: rgba(18, 18, 23, .38); --stage-muted: #414147; }
}
