/* ============================================
   COMMISSIONS - /commissions
   Editorial portrait commissions landing page.
   v64 layout: title banner full-width on top, FOR+HOW left column
   beside Avery image right (image anchored top, breathing room below
   is intentional). Pull quote full-width. Subjects unchanged.
   WHAT full-width band. Commission/Inquire keeps label-grid.
============================================ */

/* HERO BANNER: full container width, title sits on its own row at top */
.co-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 88px) var(--section-padding-x) 72px;
}
.co-hero-banner {
  max-width: 100%;
}
.co-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-red);
  display: block;
  margin-bottom: 36px;
}
.co-title {
  margin: 0 0 36px;
  display: block;
}
.co-title-setup,
.co-title-main {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: inline;
}
.co-title-setup {
  color: var(--text-secondary);
  margin-right: 0.25em;
}
.co-title-main {
  color: var(--text-primary);
}
/* Script image dimensions derived from PNG's embedded "It's a" geometry:
   - PNG is 3031x919, baseline of It's a at y=691, cap-top at y=379
   - Cap-height in PNG: 312px, baseline-to-image-bottom: 228px
   - height: 1.94em → PNG cap-height matches HTML cap-height (~0.66 of font-size)
   - vertical-align: -0.48em → image bottom sits 0.48em below HTML baseline,
     which puts embedded "It's a" baseline AT the surrounding text baseline */
.co-title-script {
  display: inline-block;
  height: 1.94em;
  width: auto;
  vertical-align: -0.48em;
  margin: 0;
  max-width: 100%;
}
.co-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 80ch;
}
.co-hero-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.8;
}

/* PROSE ROW: FOR+HOW left column | Avery image right column.
   Image anchored top with align-self:start so breathing room below is
   black bg, not stretched/cropped. Per Josiah's call (option B). */
.co-prose-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--section-padding-x) 96px;
  display: grid;
  grid-template-columns: 6fr 5fr;
  column-gap: 72px;
  align-items: start;
}
.co-prose-stack {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.co-prose-image {
  margin: 0;
  overflow: hidden;
}
.co-prose-image img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-deep);
}
.co-prose-caption {
  padding-top: 16px;
}

/* PROSE SECTIONS: small uppercase marker above italic thesis above body.
   Used for FOR, HOW (in left column above) and WHAT (full-width band below). */
.co-section-marker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-red);
  display: block;
  margin-bottom: 22px;
}
.co-section-thesis {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 28px;
  max-width: 28ch;
}
.co-section-body p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px;
  max-width: 58ch;
}
.co-section-body p:last-child { margin: 0; }

/* WHAT section: full-width band, same prose typography as FOR/HOW.
   Body and thesis both run single full-width lines (no column split). */
.co-section-wide {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  border-top: 1px solid var(--border-subtle);
}
.co-section-wide .co-section-thesis {
  max-width: none;
}
.co-section-wide .co-section-body p {
  max-width: none;
}

/* SUBJECTS - 3-up portrait row + full-width landscape anchor */
.co-subjects {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--section-padding-y) + 12px) var(--section-padding-x);
  border-top: 1px solid var(--border-subtle);
}
.co-subjects-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: baseline;
}
.co-subjects-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-red);
}
.co-subjects-thesis {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0;
  max-width: 28ch;
}
.co-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.co-subject-figure {
  margin: 0;
}
.co-subject-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-deep);
}
.co-subject-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 16px;
  display: block;
}

/* PULL QUOTE - full-width centered, generous max-width so the quote
   runs 2-3 lines across the page rather than being squeezed narrow */
.co-pullquote {
  padding: calc(var(--section-padding-y) + 12px) var(--section-padding-x);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}
.co-pullquote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 auto 32px;
  max-width: 60ch;
}
.co-pullquote-attribution {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

/* NAV active state */
.nav-links a.current {
  color: var(--text-primary);
}

/* Override global .label color for the COMMISSION marker on this page only.
   Targeted by section id so the global .label class on other pages is untouched. */
#inquire .label {
  color: var(--accent-red);
}

/* ============================================
   RESPONSIVE - TABLET (< 900px)
============================================ */
@media (max-width: 900px) {
  .co-hero {
    padding: calc(var(--nav-height) + 56px) var(--section-padding-x) 48px;
  }
  .co-eyebrow { margin-bottom: 24px; }
  .co-subtitle { margin-bottom: 28px; }

  /* Title spans stack on tablet for readability at narrower widths.
     The "It's not a headshot. It's a [Portrait img]" sequence won't fit on one line below ~900px. */
  .co-title-setup,
  .co-title-main {
    display: block;
    font-size: clamp(32px, 5.5vw, 56px);
  }
  .co-title-setup {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .co-title-script {
    height: 1.94em;
    vertical-align: -0.48em;
    margin: 0;
  }

  .co-prose-row {
    grid-template-columns: 1fr;
    row-gap: 48px;
    padding: 24px var(--section-padding-x) 64px;
  }
  .co-prose-stack {
    max-width: 100%;
    gap: 48px;
    order: 2;
  }
  .co-prose-image { order: 1; }

  .co-subjects-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
  .co-subjects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  .co-pullquote { padding: 72px var(--section-padding-x); }
}

/* ============================================
   RESPONSIVE - MOBILE (< 640px)
============================================ */
@media (max-width: 640px) {
  .co-hero {
    padding: calc(var(--nav-height) + 40px) var(--section-padding-x) 32px;
  }
  .co-title-setup { font-size: 28px; }
  .co-title-main { font-size: 64px; }
  .co-subtitle { font-size: 19px; }
  .co-hero-meta { font-size: 10px; }
  .co-section-thesis { font-size: 24px; }
  .co-section-body p { font-size: 16px; }
  .co-subjects { padding: 72px var(--section-padding-x); }
  .co-subjects-thesis { font-size: 26px; }
  .co-pullquote { padding: 56px var(--section-padding-x); }
  .co-pullquote-text { font-size: 22px; }
}

/* ============================================
   LIGHTBOX
   Click any .co-lightbox figure to open data-lightbox-src in a fullscreen
   overlay. JS is in script.js. Closes on ESC, click overlay, or close button.
============================================ */
.co-lightbox { cursor: zoom-in; }
.co-lightbox img { transition: opacity 0.2s ease; }
.co-lightbox:hover img { opacity: 0.92; }
.co-lightbox:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 32px;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 12px 16px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-close:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; font-size: 28px; }
}
