:root {
  --page-bg: #ffffff;
  --surface: #FFF4FA;
  --surface-strong: #ffffff;
  --ink: #151218;
  --muted: rgba(21, 18, 24, 0.68);
  --line: rgba(93, 73, 102, 0.14);
  --line-strong: rgba(93, 73, 102, 0.24);
  --display-font: "Cormorant Garamond", serif;
  --body-font: "Manrope", Arial, sans-serif;
  --nav-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--body-font);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

::selection {
  background: rgba(var(--case-accent-rgb), 0.95);
  color: #ffffff;
}

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

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: rgba(var(--case-accent-rgb), 1);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
}

.container {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(93, 73, 102, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(243, 239, 232, 0.12);
  color: #F3EFE8;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo__image {
  display: block;
  width: 178px;
  height: auto;
}

.site-nav .site-logo__image,
.site-footer-full .site-logo__image {
  filter: brightness(0) invert(1);
}

/* Hide spotlight beam path — logo shows as clean SP○TLIGHT */
.site-nav__cluster {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__link {
  position: relative;
  color: rgba(243, 239, 232, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.24s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 1px;
  background: rgba(243, 239, 232, 0.7);
  transition: width 0.24s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link--active {
  color: #F3EFE8;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link--active::after {
  width: 100%;
}

.mobile-menu-toggle,
.mobile-menu__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #F3EFE8;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  padding: 0.45rem;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--page-bg);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 600;
}

.mobile-menu__links a {
  color: rgba(23, 20, 18, 0.74);
  text-decoration: none;
}

.mobile-menu__links a:hover,
.mobile-menu__links a:focus-visible,
.mobile-menu__links .mobile-menu__link--active {
  color: var(--ink);
}

.mobile-menu__cta {
  margin-top: 1.6rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.32rem;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-1px);
}

.site-nav .btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #151218;
}

.site-nav .btn-primary:hover,
.site-nav .btn-primary:focus-visible {
  background: transparent;
  color: #ffffff;
}

.case-page {
  padding-bottom: 0;
}

.back-link-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 0.85rem);
  z-index: 70;
  padding: 1rem 0 1.25rem;
  pointer-events: none;
}

.back-link-wrap .container {
  display: flex;
  align-items: flex-start;
}

.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;
}

.back-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.8rem;
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  color: rgba(23, 20, 18, 0.62);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(93, 73, 102, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(17, 14, 11, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: rgba(23, 20, 18, 0.84);
  border-color: rgba(93, 73, 102, 0.24);
  box-shadow: 0 16px 34px rgba(17, 14, 11, 0.14);
  transform: translateY(-1px);
}

.back-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.port-hero__links,
.case-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.hero-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.hero-icon-link:hover,
.hero-icon-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-icon-link--disabled {
  opacity: 0.46;
  cursor: default;
  pointer-events: none;
}

.hero-icon-link--disabled:hover,
.hero-icon-link--disabled:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-icon-link svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.portfolio-hero {
  padding: 1.9rem 0 2.2rem;
}

.portfolio-hero__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1.26fr);
  gap: 2.75rem;
  align-items: start;
}

.portfolio-hero__copy {
  display: grid;
  gap: 1.1rem;
  padding-top: 1.3rem;
}

.eyebrow {
  margin: 0;
  color: rgba(var(--case-accent-rgb), 1);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-hero__copy h1 {
  margin: 0;
  max-width: 10ch;
  font-family: var(--display-font);
  font-size: clamp(4rem, 8vw, 6.1rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.portfolio-summary {
  margin: 0;
  max-width: 33rem;
  color: rgba(23, 20, 18, 0.8);
  font-size: 0.98rem;
  line-height: 1.82;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.portfolio-tags span {
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(var(--case-accent-rgb), 0.34);
  color: rgba(23, 20, 18, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.25rem;
}

.portfolio-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  color: rgba(23, 20, 18, 0.58);
  font-size: 0.88rem;
  line-height: 1.68;
}

.portfolio-hero__media {
  display: grid;
  gap: 1rem;
}

.media-mosaic {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-mosaic > :first-child {
  grid-column: 1 / -1;
}

.frame {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.frame img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.frame figcaption,
.paper-card p,
.stat-card p,
.related-card span {
  color: var(--muted);
  line-height: 1.7;
}

.frame figcaption {
  padding: 0 0.15rem;
  font-size: 0.84rem;
}

.paper-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.paper-card h3,
.section-copy h2,
.document-sheet__title,
.related-card strong {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.paper-card h3 {
  font-size: 1.7rem;
  line-height: 0.99;
}

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 10rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.project-meta {
  padding: 0 0 1.45rem;
}

.project-meta__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.35rem 1rem 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.stat-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.stat-card strong {
  font-size: 0.94rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.project-section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.project-section:first-of-type {
  border-top: 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.section-label {
  margin: 0 0 0.5rem;
  color: rgba(var(--case-accent-rgb), 1);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-copy h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.45rem);
  line-height: 0.96;
}

.section-copy p {
  margin: 0;
  max-width: 38rem;
  color: rgba(23, 20, 18, 0.8);
  font-size: 0.95rem;
  line-height: 1.78;
}

.section-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(23, 20, 18, 0.82);
  line-height: 1.72;
}

.proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.34rem;
  height: 0.34rem;
  background: rgba(var(--case-accent-rgb), 1);
}

.document-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-sheet {
  display: grid;
  gap: 0.95rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.document-sheet__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.document-sheet__label,
.mini-note {
  color: rgba(var(--case-accent-rgb), 1);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-sheet__title {
  font-size: 1.65rem;
  line-height: 1;
}

.document-sheet__meta {
  color: rgba(23, 20, 18, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-sheet p {
  margin: 0;
  color: rgba(23, 20, 18, 0.8);
  line-height: 1.75;
}

.document-sheet__bullets {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-sheet__bullets li {
  position: relative;
  padding-left: 1rem;
  color: rgba(23, 20, 18, 0.82);
  line-height: 1.72;
}

.document-sheet__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.3rem;
  height: 0.3rem;
  background: rgba(var(--case-accent-rgb), 1);
}

.document-sheet__footnote {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: rgba(23, 20, 18, 0.58);
  font-size: 0.84rem;
  line-height: 1.65;
}

.logo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-card {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.logo-card strong {
  color: rgba(23, 20, 18, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-card__canvas {
  display: grid;
  place-items: center;
  min-height: 14rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.logo-card__canvas--light {
  background: #f6f2ea;
}

.logo-card__canvas--dark {
  background: #143833;
}

.logo-card__canvas--tan {
  background: #cbbd9a;
}

.logo-card__canvas--soft {
  background: #f8f6f1;
}

.swatch-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(23, 20, 18, 0.82);
  line-height: 1.7;
}

.swatch {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.related-strip {
  padding: 3.6rem 0 1rem;
  border-top: 1px solid var(--line);
}

.related-strip__header {
  margin-bottom: 1rem;
}

.related-strip__header h2 {
  margin: 0.2rem 0 0;
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.related-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-card {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
}

.related-card strong {
  font-size: 2rem;
  line-height: 0.96;
}

.site-footer-full {
  padding: 3.2rem 0 2rem;
  border-top: 1px solid rgba(243, 239, 232, 0.12);
  background: #5D4966;
  color: #F3EFE8;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.site-footer__brand-copy {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.site-footer__tagline,
.site-footer__summary,
.site-footer__note,
.site-footer__copyright {
  margin: 0;
}

.site-footer__tagline {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(243, 239, 232, 0.6);
}

.site-footer__summary,
.site-footer__note,
.site-footer__copyright {
  color: rgba(243, 239, 232, 0.7);
  line-height: 1.7;
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #F3EFE8;
}

.site-footer__nav {
  display: grid;
  gap: 0.65rem;
}

.site-footer__nav a {
  color: rgba(243, 239, 232, 0.72);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: #F3EFE8;
}

.section-divider {
  height: 1px;
  margin: 2.1rem 0 1.4rem;
  background: rgba(243, 239, 232, 0.12);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left {
  transform: translate3d(-24px, 18px, 0);
}

.reveal--right {
  transform: translate3d(24px, 18px, 0);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.stagger-1 {
  transition-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.16s;
}

.drift {
  transform: translate3d(0, var(--drift-y, 0px), 0);
  transition: transform 0.25s linear;
  will-change: transform;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(var(--case-accent-rgb), 0.95);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .portfolio-hero__grid,
  .section-intro,
  .project-meta__grid,
  .document-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 920px) {
  .site-nav__cluster {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .section-grid,
  .section-grid--three,
  .logo-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.4rem, 1280px);
  }

  .media-mosaic {
    grid-template-columns: 1fr;
  }

  .media-mosaic > :first-child {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .back-link-wrap {
    top: calc(var(--nav-height) + 0.65rem);
    padding: 0.85rem 0 1rem;
  }

  .portfolio-hero__copy h1 {
    font-size: clamp(3.2rem, 17vw, 4.8rem);
  }

  .section-copy h2,
  .document-sheet__title,
  .related-card strong {
    font-size: 1.85rem;
  }
}

/* ═══════════════════════════════════════════════════════
   CINEMATIC CASE STUDY — Full-bleed chapter layout
   ═══════════════════════════════════════════════════════ */

/* Chapter wrapper */
.work-chapter {
  position: relative;
}

.work-chapter + .work-chapter {
  margin-top: 0;
}

/* Full-bleed hero image for a chapter — runs edge to edge, no container */
.chapter-hero {
  position: relative;
  width: 100%;
  height: clamp(340px, 48vh, 580px);
  overflow: hidden;
  background: #171412;
}

.chapter-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.chapter-hero--tall {
  height: clamp(460px, 65vh, 760px);
}

.chapter-hero--short {
  height: clamp(260px, 36vh, 420px);
}

/* Overlay gradient on chapter hero (optional — add class .chapter-hero--overlay) */
.chapter-hero--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,13,11,0.72) 0%, rgba(17,13,11,0.28) 55%, transparent 100%);
  pointer-events: none;
}

/* Chapter content container */
.chapter-body {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

/* 2-column text+content layout inside chapter */
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.chapter-grid--wide {
  grid-template-columns: 1.4fr 1fr;
}

/* Chapter label (small eyebrow) */
.chapter-label {
  margin: 0 0 0.6rem;
  color: rgba(var(--case-accent-rgb), 1);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Chapter headline */
.chapter-title {
  margin: 0 0 1.1rem;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.chapter-desc {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.82;
  max-width: 42ch;
}

/* Inline proof list — used inside chapter body */
.proof-list-v2 {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.proof-list-v2 li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.proof-list-v2 li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--case-accent-rgb), 0.9);
}

/* Image pair — wide + narrow side by side */
.image-pair {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.image-pair img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

/* 3-column gallery row */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* 2-column gallery row */
.gallery-row--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Logo display card — dark bg with logo centered */
.logo-display-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border-radius: 4px;
  min-height: 200px;
}

.logo-display-card img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Brand swatch row */
.brand-swatches {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.brand-swatch {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.brand-swatch__color {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.brand-swatch__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Stats strip — 3-col row of project metrics */
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.stat-item {
  padding: 1.6rem 1.75rem;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__value {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: rgba(var(--case-accent-rgb), 1);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* App screenshot frame — browser chrome wrapper */
.browser-frame {
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f0ede8;
  border-bottom: 1px solid var(--line);
}

.browser-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-frame__dot--red   { background: #FF5F57; }
.browser-frame__dot--yellow { background: #FEBC2E; }
.browser-frame__dot--green { background: #28C840; }

.browser-frame img {
  width: 100%;
  display: block;
}

/* Cinematic case hero (replaces the old portfolio-hero) */
.case-hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vh, 700px);
  overflow: hidden;
  background: #171412;
}

.case-hero--dark {
  background: linear-gradient(135deg, #153e39 0%, #0a1c19 100%);
}

.case-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,13,11,0.84) 0%, rgba(17,13,11,0.45) 50%, rgba(17,13,11,0.18) 100%);
}

.case-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 0;
  color: #fff;
}

.case-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.case-hero__title {
  margin: 0 0 1.5rem;
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .chapter-grid,
  .chapter-grid--wide {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-pair {
    grid-template-columns: 1fr;
  }

  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-row--2col {
    grid-template-columns: 1fr;
  }

  .project-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .case-hero {
    height: clamp(300px, 50vh, 480px);
  }

  .chapter-hero {
    height: clamp(240px, 40vw, 380px);
  }
}
