/* Shared editorial visual direction for approved case studies and About. */
.studio-editorial {
  --editorial-ink: #151617;
  --editorial-panel: #202122;
  --editorial-paper: #f3f2ef;
  --editorial-text: #f8f7f3;
  --editorial-muted: #bdbdb7;
  --editorial-gold: #d3aa70;
  --editorial-rule: #d4d1cb;
  --editorial-space: clamp(3.5rem, 7vw, 7rem);
  background: var(--editorial-paper);
  color: var(--editorial-ink);
}

.studio-editorial .editorial-shell {
  width: min(1440px, calc(100% - clamp(2.5rem, 8vw, 10rem)));
  margin-inline: auto;
}

.studio-editorial p {
  color: #565654;
  font-size: 1.125rem;
  line-height: 1.75;
}

.studio-editorial .editorial-kicker,
.studio-editorial .case-insight h3 {
  margin: 0 0 1.5rem;
  color: var(--editorial-gold);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.studio-editorial h1,
.studio-editorial h2,
.studio-editorial .split-section h3,
.studio-editorial .case-detail > h3 {
  font-family: minion-pro, Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

.studio-editorial h1 {
  margin: 0 0 1.5rem;
  color: var(--editorial-text);
  font-size: clamp(2.5rem, 3.8vw, 4.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.studio-editorial h2,
.studio-editorial .split-section h3,
.studio-editorial .case-detail > h3 {
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  line-height: 1.15;
}

.studio-editorial :is(a, button):focus-visible {
  outline: 3px solid var(--editorial-gold);
  outline-offset: 6px;
}

.studio-editorial .editorial-button,
.studio-editorial #creator .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--editorial-gold);
  background: transparent;
  color: var(--editorial-text);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.studio-editorial .editorial-button:hover,
.studio-editorial #creator .btn:hover {
  background: var(--editorial-gold);
  color: var(--editorial-ink);
}

.case-study-container.case-study-editorial {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: clip;
}

.case-study-editorial .case-hero-split,
.case-study-editorial .case-hero-editorial {
  display: block;
  padding: var(--editorial-space) 0;
  background: radial-gradient(ellipse at 70% 40%, #2a2b2c, var(--editorial-ink) 70%);
  color: var(--editorial-text);
  text-align: left;
}

.case-study-editorial .case-hero-editorial h1 {
  max-width: 18ch;
}

.case-study-editorial .case-hero-editorial .hero-subtitle {
  max-width: 72ch;
  margin-left: 0;
  color: var(--editorial-muted);
}

.case-study-editorial .case-hero-editorial .hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: clamp(1rem, 3vw, 3rem);
  max-width: 900px;
  margin: 0;
  text-align: left;
}

.case-study-editorial .case-hero-editorial .hero-meta div {
  display: block;
  padding: 1rem 0 0;
  border-top: 1px solid #44433f;
  text-align: left;
}

.case-study-editorial .case-hero-editorial .hero-meta label {
  color: var(--editorial-gold);
}

.case-study-editorial .case-hero-editorial .hero-meta span {
  color: var(--editorial-text);
}

.case-study-editorial .case-hero-media {
  padding-bottom: var(--editorial-space);
  background: var(--editorial-ink);
}

.case-study-editorial .case-hero-media .photo-outer {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

.case-study-editorial .case-hero-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-editorial .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
}

.case-study-editorial .hero-subtitle {
  margin-bottom: 2rem;
  color: var(--editorial-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.case-study-editorial .hero-meta {
  gap: 0;
  margin: 0;
  font-size: .75rem;
}

.case-study-editorial .hero-meta div {
  gap: 1.25rem;
  padding: .95rem 0;
  border-bottom: 1px solid #44433f;
}

.case-study-editorial .hero-meta dt {
  flex-shrink: 0;
  color: var(--editorial-gold);
  font-weight: 600;
}

.case-study-editorial .hero-meta dd {
  margin: 0;
  color: var(--editorial-text);
  text-align: right;
  line-height: 1.5;
}

.case-study-editorial .hero-artwork {
  min-width: 0;
  margin: 0;
}

.case-study-editorial a[data-pswp-src],
.case-study-editorial picture {
  display: block;
}

.case-study-editorial a[data-pswp-src] {
  cursor: zoom-in;
}

.case-study-editorial img {
  display: block;
  max-width: 100%;
  height: auto;
}

.case-study-editorial .hero-artwork img {
  box-shadow: 0 24px 60px #0005;
}

.case-study-editorial .hero-artwork figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #555047;
  color: var(--editorial-muted);
  font-size: .75rem;
  letter-spacing: .04em;
}

.case-study-editorial .hero-artwork figcaption span {
  color: var(--editorial-gold);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.case-study-editorial .editorial-shell.case-body {
  width: 100%;
  padding-top: var(--editorial-space);
}

.case-study-editorial .case-body > :not(.case-insight) {
  width: min(1440px, calc(100% - clamp(2.5rem, 8vw, 10rem)));
  margin-inline: auto;
}

.case-study-editorial .case-insight {
  margin: 0 0 var(--editorial-space);
  padding: var(--editorial-space) max(1.25rem, 4vw);
  border-top: 1px solid var(--editorial-gold);
  border-left: 0;
  border-radius: 0;
  background: var(--editorial-panel);
  text-align: center;
}

.case-study-editorial .case-insight blockquote {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--editorial-text);
  font-family: minion-pro, Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

.case-study-editorial .case-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin: 0 0 var(--editorial-space);
  padding: 0;
}

.case-study-editorial .split-section {
  min-width: 0;
}

.case-study-editorial .split-section h3 {
  margin-bottom: 1rem;
  color: var(--editorial-ink);
}

.case-study-editorial .split-section p {
  margin-bottom: 2rem;
  color: #565654;
  font-size: 1.125rem;
  line-height: 1.75;
}

.case-study-editorial .case-image-shadow,
.case-study-editorial .case-image-border {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.case-study-editorial .case-detail {
  margin: 0 0 var(--editorial-space);
}

.case-study-editorial .case-detail > h3 {
  margin-bottom: 2rem;
}

.case-study-editorial .case-detail-caption {
  margin: 1.25rem 0 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid #95703f;
  font-size: .95rem;
}

.case-study-editorial .case-grid {
  gap: 2rem;
  margin: 0 0 var(--editorial-space);
}

.case-study-editorial .case-grid .grid-item {
  border-radius: 0;
  background: #e6e4df;
}

.case-study-editorial .case-grid .grid-item-caption {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--editorial-rule);
  color: #565654;
  text-align: left;
  line-height: 1.5;
}

.case-study-editorial #creator {
  padding: 3.5rem 0 var(--editorial-space);
  border-top: 1px solid var(--editorial-rule);
}

.case-study-editorial #creator .creator-bio {
  color: #565654;
}

.case-study-editorial #creator .btn {
  border-color: #95703f;
  color: var(--editorial-ink);
}

.legacy-case-study {
  padding-bottom: var(--editorial-space);
}

.legacy-case-study > header.container {
  width: 100%;
  margin: 0;
  padding: var(--editorial-space) 0;
  background: radial-gradient(ellipse at 70% 40%, #2a2b2c, var(--editorial-ink) 70%);
  color: var(--editorial-text);
}

.legacy-case-study > header.container > .margin {
  width: min(1440px, calc(100% - clamp(2.5rem, 8vw, 10rem)));
  margin: 0 auto;
  padding: 0;
}

.legacy-case-study header.container .group {
  max-width: 900px;
  margin: 0;
  text-align: left;
}

.legacy-case-study h1.portfolioTitle {
  margin: 0 0 1.5rem;
  color: var(--editorial-text);
  font-family: minion-pro, Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.legacy-case-study .pBody {
  max-width: 68ch;
  margin: 0;
  color: var(--editorial-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.legacy-case-study .project-meta {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem 2rem;
  max-width: 1080px;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.legacy-case-study .meta-item {
  padding-top: 1rem;
  border-top: 1px solid #44433f;
}

.legacy-case-study .meta-item h4 {
  margin-bottom: .5rem;
  color: var(--editorial-gold);
  font-size: .75rem;
  letter-spacing: .14em;
}

.legacy-case-study .meta-item p,
.legacy-case-study .meta-item li {
  color: var(--editorial-text);
  font-size: .95rem;
  line-height: 1.5;
}

.legacy-case-study > .margin {
  width: 100%;
  margin: 0;
  padding: 0;
}

.legacy-case-study .showcase {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legacy-case-study #my-gallery > .gal-group:first-child {
  position: relative;
  left: auto;
  width: 100%;
  max-width: none;
  margin: 0 0 var(--editorial-space);
  padding: 0 clamp(1.25rem, 5vw, 5rem) var(--editorial-space);
  background: var(--editorial-ink);
}

.legacy-case-study #my-gallery > .gal-group:first-child .photo-outer {
  display: block;
  width: min(1440px, 100%);
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.legacy-case-study .gal-group:not(:first-child) {
  width: min(1200px, calc(100% - clamp(2.5rem, 8vw, 10rem)));
  margin-right: auto;
  margin-left: auto;
}

.legacy-case-study .gal-group:not(:first-child) {
  margin-bottom: var(--editorial-space);
}

.legacy-case-study .gal-group .dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.legacy-case-study .photo-outer,
.legacy-case-study .photo-outer img {
  display: block;
}

.legacy-case-study .photo-outer img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.legacy-case-study .workQuote {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  margin: 0 0 var(--editorial-space);
  padding: var(--editorial-space) max(1.25rem, 4vw);
  border: 0;
  border-top: 1px solid var(--editorial-gold);
  background: var(--editorial-panel);
  text-align: center;
}

.legacy-case-study .workQuote .flexObject {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.legacy-case-study .workQuote h3 {
  margin: 0;
  color: var(--editorial-gold);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legacy-case-study .workQuote p {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--editorial-text);
  font-family: minion-pro, Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.55;
}

.legacy-case-study #creator {
  width: min(1200px, calc(100% - clamp(2.5rem, 8vw, 10rem)));
  margin: 0 auto;
  padding: 3.5rem 0 0;
  border-top: 1px solid var(--editorial-rule);
}

.legacy-case-study #creator .creator-bio {
  color: #565654;
}

@media (max-width: 1000px) {
  .case-study-editorial .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-editorial .hero-content {
    max-width: 48rem;
  }

  .case-study-editorial h1 {
    max-width: 22ch;
  }
}

@media (max-width: 700px) {
  .case-study-editorial .case-hero-editorial .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-editorial .case-split,
  .case-study-editorial .case-grid.grid-2,
  .case-study-editorial .case-detail.detail-2 .detail-grid,
  .legacy-case-study .gal-group .dual,
  .legacy-case-study .workQuote {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-editorial .hero-meta div {
    align-items: start;
  }

  .legacy-case-study .workQuote {
    gap: 1rem;
  }

  .legacy-case-study #creator .flexButtons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .studio-editorial .editorial-shell,
  .case-study-editorial .case-body > :not(.case-insight),
  .legacy-case-study > header.container > .margin,
  .legacy-case-study .gal-group:not(:first-child),
  .legacy-case-study #creator {
    width: calc(100% - 2rem);
  }

  .studio-editorial h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .legacy-case-study h1.portfolioTitle {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }
}
