/* ═══════════════════════════════════════════════════════════════════
   Growing Stellar | AMG — Public Work Templates (v4)

   KEY CHANGES vs v3:
   - Hero is 70vh, not 100vh, so the grid peeks from below the fold.
     This signals to users that more content exists without forcing
     a scroll first.
   - Theme toggle removed; dark is the only mode.
   - Featured-image fallback (Unsplash) handled in PHP, not CSS.

   STRUCTURE:
   1. THEME WRAPPER RESET
   2. TOKENS (dark only)
   3. SHARED CHROME (WebGL canvas, stars)
   4. ARCHIVE   gsa-*
   5. SINGLE    gsp-*
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1. THEME WRAPPER RESET ─────────────────────────────────────── */
body.gs-public-page {
  margin: 0 !important;
  padding: 0 !important;
  background: #050508 !important;
  overflow-x: hidden;
}
body.gs-public-page #page,
body.gs-public-page #content,
body.gs-public-page #primary,
body.gs-public-page #main,
body.gs-public-page .site,
body.gs-public-page .site-content,
body.gs-public-page .site-main,
body.gs-public-page .content-area,
body.gs-public-page .entry,
body.gs-public-page .entry-content,
body.gs-public-page .hfeed,
body.gs-public-page .ast-container,
body.gs-public-page .elementor,
body.gs-public-page .elementor-section-wrap,
body.gs-public-page article,
body.gs-public-page main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
}
body.gs-public-page .entry-header,
body.gs-public-page .entry-footer,
body.gs-public-page .post-thumbnail,
body.gs-public-page .entry-meta,
body.gs-public-page .comments-area,
body.gs-public-page #comments,
body.gs-public-page .post-navigation {
  display: none !important;
}


/* ─── 2. TOKENS ─────────────────────────────────────────────────── */
.gs-public {
  --gs-ff: 'Poppins', system-ui, sans-serif;
  --gs-ff-serif: 'Playfair Display', Georgia, serif;
  --gs-bg:      #050508;
  --gs-ink:     #ffffff;
  --gs-ink-1:   rgba(255,255,255,0.72);
  --gs-ink-2:   rgba(255,255,255,0.42);
  --gs-ink-3:   rgba(255,255,255,0.22);
  --gs-line:    rgba(255,255,255,0.10);
  --gs-surface: rgba(255,255,255,0.04);
  --gs-accent:  #00bec8;

  font-family: var(--gs-ff);
  color: var(--gs-ink);
  position: relative;
  min-height: 100vh;
  background: transparent;
}


/* ─── 3. SHARED CHROME ──────────────────────────────────────────── */
/* Canvas is FIXED so it remains visible as the user scrolls — same
   philosophy as the home page. On the archive the canvas sits behind
   both the hero AND the grid; to keep the grid readable we place a
   solid background on the grid section (see .gsa-body). */
.gs-hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.gs-public > section,
.gs-public > nav {
  position: relative;
  z-index: 2;
}


/* ═══════════════════════════════════════════════════════════════════
   4. ARCHIVE — /work/   namespace: gsa-*
   ═══════════════════════════════════════════════════════════════════ */

.gs-archive {
  background: var(--gs-bg);
}

/* HERO — 70vh, so ~30% of the grid peeks below the fold */
.gsa-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  position: relative;
}
.gsa-hero-inner {
  max-width: 1200px;
  width: 100%;
  padding-top: 100px;
}
.gsa-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gs-ink-2);
  margin: 0 0 36px;
}
.gsa-eyebrow span { color: var(--gs-ink); }
.gsa-title {
  font-family: var(--gs-ff);
  font-size: clamp(54px, 8.5vw, 148px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -.04em;
  margin: 0 0 36px;
  color: var(--gs-ink);
}
.gsa-title em {
  font-style: italic;
  font-weight: 300;
}
.gsa-sub {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--gs-ink-1);
  max-width: 440px;
  margin: 0;
}
.gsa-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 8vw;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gs-ink-2);
  transition: opacity .3s ease;
}
.gsa-scroll-hint svg {
  animation: gsaBob 1.8s ease-in-out infinite;
}
@keyframes gsaBob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* BODY: grid section has a solid background so the fixed shader
   doesn't compete with project image contrast. */
.gsa-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  padding: 120px 8vw 140px;
  background: var(--gs-bg);
  position: relative;
  z-index: 2;
}
.gsa-filters {
  position: sticky;
  top: 120px;
  align-self: start;
  height: fit-content;
}
.gsa-filters-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gs-ink-3);
  margin: 0 0 24px;
}
.gsa-filters-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gsa-fb {
  display: grid;
  grid-template-columns: 12px 18px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gs-ink-3);
  text-decoration: none;
  transition: color .2s ease;
  padding: 4px 0;
}
.gsa-fb-mark {
  opacity: 0;
  color: var(--gs-accent);
  font-size: 10px;
  transition: opacity .2s ease;
}
.gsa-fb-dash {
  display: block;
  height: 1px;
  background: var(--gs-ink-3);
}
.gsa-fb:hover { color: var(--gs-ink); }
.gsa-fb.on   { color: var(--gs-ink); }
.gsa-fb.on .gsa-fb-mark { opacity: 1; }
.gsa-fb.on .gsa-fb-dash { background: var(--gs-ink); }

.gsa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px 48px;
  align-items: start;
}
.gsa-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.gsa-card--down {
  transform: translateY(80px);
}
.gsa-card-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--gs-surface);
  border: 1px solid var(--gs-line);
}
.gsa-card-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1), filter .5s ease;
  filter: saturate(0.9) brightness(0.95);
}
.gsa-card-corner {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gs-ink);
  color: var(--gs-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px) scale(0.88);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.gsa-card:hover .gsa-card-frame img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}
.gsa-card:hover .gsa-card-corner {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.gsa-card-meta {
  padding: 18px 0 0;
}
.gsa-card-tags {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gs-ink-2);
  margin: 0 0 10px;
}
.gsa-card-title {
  font-family: var(--gs-ff);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--gs-ink);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.gsa-card-title em {
  font-style: italic;
  font-weight: 400;
}
.gsa-card-sub {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--gs-ink-1);
  margin: 0;
  max-width: 320px;
}
.gsa-empty {
  grid-column: 1 / -1;
  padding: 120px 0;
  text-align: center;
  color: var(--gs-ink-2);
  font-size: 14px;
  letter-spacing: .12em;
}

@media (max-width: 1100px) {
  .gsa-body {
    grid-template-columns: 160px 1fr;
    gap: 48px;
    padding: 96px 5vw 96px;
  }
  .gsa-card--down { transform: translateY(56px); }
  .gsa-grid { gap: 72px 32px; }
}
@media (max-width: 768px) {
  .gsa-hero { padding: 0 24px; min-height: 75vh; }
  .gsa-hero-inner { padding-top: 120px; }
  .gsa-title { font-size: clamp(56px, 16vw, 100px); }
  .gsa-sub { margin-top: 24px; }
  .gsa-scroll-hint { right: 24px; bottom: 24px; }
  .gsa-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 24px 80px;
  }
  .gsa-filters {
    position: static;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gs-line);
  }
  .gsa-filters-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  .gsa-fb { grid-template-columns: 10px 1fr; }
  .gsa-fb-dash { display: none; }
  .gsa-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .gsa-card--down { transform: none; }
  .gsa-card-frame { aspect-ratio: 4/4.5; }
  .gsa-card-title { font-size: clamp(22px, 6vw, 30px); }
}


/* ═══════════════════════════════════════════════════════════════════
   5. SINGLE — /work/{slug}/   namespace: gsp-*
   ═══════════════════════════════════════════════════════════════════ */

.gs-single {
  background: var(--gs-bg);
}

.gsp-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 8vw;
}
.gsp-back {
  position: absolute;
  top: 110px;
  left: 8vw;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gs-ink-1);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.gsp-back:hover {
  color: var(--gs-ink);
  transform: translateX(-4px);
}
.gsp-hero-inner {
  max-width: 1400px;
  width: 100%;
}
.gsp-hero-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gs-ink-2);
  margin: 0 0 36px;
}
.gsp-hero-title {
  font-family: var(--gs-ff);
  font-size: clamp(54px, 9vw, 152px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--gs-ink);
  margin: 0 0 48px;
  max-width: 14ch;
}
.gsp-hero-title em {
  font-style: italic;
  font-weight: 300;
}
.gsp-see-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--gs-ink-2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gs-ink);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.gsp-see-live:hover {
  background: var(--gs-ink);
  color: var(--gs-bg);
  border-color: var(--gs-ink);
}

.gsp-meta-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  padding: 120px 8vw;
  background: var(--gs-bg);
  position: relative;
  z-index: 2;
}
.gsp-meta {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 120px;
  align-self: start;
  height: fit-content;
}
.gsp-meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gsp-accent);
  margin: 0 0 10px;
}
.gsp-meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--gs-ink);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.gsp-feature {
  margin: 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gs-surface);
  border: 1px solid var(--gs-line);
}
.gsp-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.gsp-sections {
  padding: 0 8vw 120px;
  background: var(--gs-bg);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.gsp-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.gsp-section-num {
  font-family: var(--gs-ff);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--gs-ink);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--gs-ink);
}
.gsp-section-label {
  display: block;
  margin-top: 8px;
  color: var(--gs-ink-2);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.gsp-section-head {
  font-family: var(--gs-ff);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--gs-ink);
  margin: 0 0 32px;
}
.gsp-section-prose {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--gs-ink-1);
  max-width: 640px;
}
.gsp-section-prose p { margin: 0 0 1em; }

.gsp-gallery {
  padding: 60px 8vw 120px;
  background: var(--gs-bg);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.gsp-gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--gs-surface);
  border: 1px solid var(--gs-line);
}
.gsp-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gsp-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 8vw 120px;
  background: var(--gs-bg);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--gs-line);
}
.gsp-nav-link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--gs-ink);
  transition: opacity .2s ease, transform .3s ease;
}
.gsp-nav-link--next {
  justify-self: end;
  text-align: right;
}
.gsp-nav-link:hover { opacity: 0.85; }
.gsp-nav-link--prev:hover { transform: translateX(-6px); }
.gsp-nav-link--next:hover { transform: translateX(6px); }
.gsp-nav-arrow {
  font-size: 28px;
  font-weight: 300;
  color: var(--gsp-accent);
  line-height: 1;
}
.gsp-nav-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gsp-nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gs-ink-2);
}
.gsp-nav-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.gsp-nav-home {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gs-ink-2);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--gs-line);
  border-radius: 100px;
  transition: color .2s ease, border-color .2s ease;
  justify-self: center;
}
.gsp-nav-home:hover {
  color: var(--gs-ink);
  border-color: var(--gs-ink-2);
}

@media (max-width: 1100px) {
  .gsp-hero { padding: 0 5vw; }
  .gsp-back { left: 5vw; }
  .gsp-meta-block, .gsp-sections, .gsp-gallery, .gsp-nav {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .gsp-meta-block { grid-template-columns: 200px 1fr; gap: 48px; }
  .gsp-section { grid-template-columns: 180px 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .gsp-hero { padding: 0 24px; }
  .gsp-back { top: 88px; left: 24px; }
  .gsp-hero-title { font-size: clamp(44px, 14vw, 80px); margin-bottom: 36px; }
  .gsp-meta-block, .gsp-sections, .gsp-gallery, .gsp-nav {
    padding-left: 24px;
    padding-right: 24px;
  }
  .gsp-meta-block {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .gsp-meta {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
  }
  .gsp-meta-group { min-width: 120px; }
  .gsp-sections { padding-bottom: 80px; gap: 80px; }
  .gsp-section { grid-template-columns: 1fr; gap: 24px; }
  .gsp-section-num { padding-top: 18px; }
  .gsp-gallery { gap: 40px; padding-bottom: 80px; }
  .gsp-nav {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding-bottom: 80px;
  }
  .gsp-nav-link--next { justify-self: center; text-align: center; }
  .gsp-nav-link { justify-content: center; }
}
