/* Subpage-specific styles — dark theme */

.page-hero {
  position: relative;
  padding: 11rem var(--pad) 6rem;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(122, 41, 55, .25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(201, 163, 106, .12) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 18ch;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 44rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Team ---------- */
.team-group { margin-bottom: 5rem; }
.team-group:last-of-type { margin-bottom: 4rem; }
.team-group-head {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
  flex-wrap: wrap;
}
.team-group-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0;
  font-weight: 300;
}
.team-group-head .count {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-left: auto;
  letter-spacing: .02em;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.team-grid.leadership-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
/* Leadership portraits 15% smaller, centered in the card */
.leadership-grid .team-portrait {
  max-width: 85%;
  margin: 0 auto;
}

/* Advisory board: 3 across on desktop */
.team-grid.advisory-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.advisory-grid .team-card h3 { font-size: 1.75rem; }
.advisory-grid .team-role { font-size: .7rem; letter-spacing: .3em; }
.advisory-grid .team-body { padding: 2.2rem 2rem 2.4rem; }
.advisory-grid .team-body p { font-size: 1rem; line-height: 1.72; }

@media (max-width: 1024px) {
  .team-grid.advisory-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid.advisory-grid { grid-template-columns: 1fr; }
}
.team-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.team-portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-elev-2);
  position: relative;
}
.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.05);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.team-card:hover .team-portrait img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.1);
}
.team-body { padding: 2rem 1.8rem 2.2rem; }
.team-role {
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .5rem;
}
.team-card h3 {
  font-size: 1.6rem;
  margin-bottom: .7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.team-body p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: .95rem;
  font-weight: 400;
}
.team-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .8rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: all .2s ease;
}
.team-link span { transition: transform .25s ease; }
.team-link:hover { border-bottom-color: var(--gold); }
.team-link:hover span { transform: translateX(4px); }

.team-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.team-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  flex-shrink: 0;
}
.team-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 163, 106, .06);
  transform: translateY(-2px);
}
.team-socials a svg { width: 15px; height: 15px; }
.team-socials a.imdb {
  width: auto;
  padding: 0 .7rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .1em;
}

.team-cta {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--wine) 0%, var(--ink-deep) 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 163, 106, .15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(122, 41, 55, .3) 0%, transparent 50%);
}
.team-cta > * { position: relative; z-index: 1; }
.team-cta h2 { color: var(--text); font-weight: 300; margin-top: .5rem; }
.team-cta p {
  color: var(--text-soft);
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.7;
}
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: .6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  font-size: .72rem;
  color: var(--text-soft);
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.g-item {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.g-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.g-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-elev-2);
  position: relative;
}
.g-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.05);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}
.g-item:hover .g-img img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.1);
}

.g-item figcaption { padding: 1.2rem 1.3rem 1.4rem; }
.g-tag {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .4rem;
}
.g-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  margin: 0 0 .3rem;
}
.g-item figcaption p {
  margin: 0;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 300;
}

.gallery-note {
  text-align: center;
  margin-top: 5rem;
  padding: 2.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text-soft);
}
.gallery-note a {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.gallery-note a:hover { border-bottom-color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 9, 0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  backdrop-filter: blur(8px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .8);
}
.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text);
}
.lightbox-caption span {
  display: block;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.lightbox-caption strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  transition: all .2s ease;
}
.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 163, 106, .05);
}

/* ---------- Project Detail Page ---------- */
.project-page { background: var(--bg); }

.project-gallery {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 3rem;
}
.project-gallery.cols-1 { grid-template-columns: 1fr; max-width: 640px; }
.project-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.project-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.project-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.project-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  aspect-ratio: 4/5;
  position: relative;
}
.project-gallery.landscape figure { aspect-ratio: 3/2; }
.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .6s ease;
  filter: saturate(.92) contrast(1.05);
}
.project-gallery figure:hover img { transform: scale(1.04); filter: saturate(1.08) contrast(1.1); }
.project-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: linear-gradient(to top, rgba(7,5,9,.75), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.project-gallery figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 900px) {
  .project-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sponsor tiers (inside .project-body article) ---------- */
.sponsor-intro {
  padding: 1.6rem 1.8rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  margin: 1.8rem 0 2.2rem;
  font-size: .98rem;
  line-height: 1.7;
}
.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1.5rem 0 2.5rem;
}
.sponsor-tier {
  background: var(--bg-elev);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: background .3s ease;
  position: relative;
  overflow: hidden;
}
.sponsor-tier::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.sponsor-tier:hover { background: var(--bg-elev-2); }
.sponsor-tier:hover::before { transform: scaleX(1); }
.sponsor-tier.title-tier {
  background: linear-gradient(160deg, var(--bg-elev-2) 0%, var(--ink-deep) 100%);
}
.sponsor-tier.title-tier::before { transform: scaleX(1); background: linear-gradient(90deg, var(--gold), var(--gold-warm)); }
.sponsor-tier-label {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .6rem;
}
.sponsor-tier h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 .3rem;
  text-transform: none;
}
.sponsor-tier-amount {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.sponsor-tier-amount .dollars { font-size: 1.15rem; vertical-align: top; margin-right: .15rem; }
.sponsor-tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 300;
}
.sponsor-tier ul li {
  padding: .55rem 0 .55rem 1.2rem;
  position: relative;
  border-top: 1px solid var(--line);
}
.sponsor-tier ul li:first-child { border-top: none; }
.sponsor-tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.1rem;
  width: .5rem; height: 1px;
  background: var(--gold);
}
.sponsor-tier ul li strong { color: var(--text); font-weight: 500; }
.sponsor-fineprint {
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.7rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.sponsor-fineprint h4 {
  font-family: var(--sans);
  font-size: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  margin: 0 0 .6rem;
}
.sponsor-fineprint + .sponsor-fineprint { margin-top: 1rem; }
.sponsor-fineprint p { margin: 0 0 .6rem; }
.sponsor-fineprint p:last-child { margin: 0; }
.sponsor-fineprint strong { color: var(--text-soft); font-weight: 500; }
@media (max-width: 700px) {
  .project-gallery.cols-3, .project-gallery.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .project-gallery.cols-4 { grid-template-columns: 1fr; }
}

.project-hero {
  position: relative;
  padding: 10rem var(--pad) 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(122, 41, 55, .3) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(201, 163, 106, .18) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}
.project-hero .container { position: relative; z-index: 1; }
.project-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.project-breadcrumb a {
  color: var(--text-muted);
  transition: color .2s ease;
  border-bottom: 1px solid transparent;
}
.project-breadcrumb a:hover { color: var(--gold); }
.project-breadcrumb span { color: var(--text-dim); }
.project-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  max-width: 20ch;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.project-hero h1 em { color: var(--gold); }
.project-tagline {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 52ch;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.project-ways-to-give {
  max-width: 52rem;
  margin: 0 0 1.5rem;
  padding: .95rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: rgba(201, 163, 106, .06);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 300;
}
.project-ways-to-give strong {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-right: .5rem;
}
.project-ways-to-give .advisor-note {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.project-ways-to-give .ways-donate {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  padding: .4rem .85rem;
  background: var(--gold);
  color: var(--ink-deep);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s ease;
  text-decoration: none;
}
.project-ways-to-give .ways-donate:hover {
  background: var(--text);
  transform: translateY(-1px);
}
.project-ways-to-give .ways-donate svg { width: 12px; height: 12px; }

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}
.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.project-meta-item span {
  font-size: .66rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.project-meta-item strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 400;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.project-body .side-label {
  position: sticky;
  top: 100px;
}
.project-body .side-label span {
  display: block;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.project-body .side-label h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 0;
  font-weight: 300;
}

.project-body article p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-soft);
  font-weight: 300;
}
.project-body article p strong {
  color: var(--text);
  font-weight: 500;
}
.project-body article h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.project-link-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: .78rem;
  letter-spacing: .08em;
  transition: all .2s ease;
}
.project-link-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 163, 106, .05);
}
.project-link-chip svg { width: 13px; height: 13px; opacity: .7; }

.designer-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.designer-list li {
  padding: .45rem 1rem;
  border: 1px solid var(--line-strong);
  font-size: .8rem;
  color: var(--text-soft);
  font-weight: 300;
  transition: all .2s ease;
}
.designer-list li:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.project-other {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.project-other-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.project-other-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.other-card {
  padding: 1.6rem 1.4rem;
  background: var(--bg-elev);
  transition: background .3s ease;
  display: block;
}
.other-card:hover { background: var(--bg-elev-2); }
.other-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 .3rem;
}
.other-card p {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 300;
}
.other-card:hover h4 { color: var(--gold); }

@media (max-width: 800px) {
  .project-body { grid-template-columns: 1fr; }
  .project-body .side-label { position: static; }
}

@media (max-width: 560px) {
  .page-hero { padding-top: 8rem; padding-bottom: 3rem; }
  .team-cta { padding: 3rem 1.5rem; }
  .project-hero { padding-top: 8rem; padding-bottom: 3rem; }
  .project-meta-row { gap: 1.2rem; }
}
