/* ============================================================
   Caroline Godwin — discipline subpages
   Loaded only by the per-skill pages. Uses the same tokens as
   styles.css: red / ember / gold on black, Bebas + Outfit.
   ============================================================ */

/* long galleries and snap scrolling don't mix */
.subpage section { scroll-snap-align: none; }
.subpage .hero { scroll-snap-align: none; }

.subpage section {
  min-height: 0;
  justify-content: flex-start;
  padding: clamp(4.5rem, 9vh, 7.5rem) 0 clamp(4rem, 8vh, 6.5rem);
}
.subpage .contact { min-height: 100svh; justify-content: center; }

/* ---------- hero ---------- */
.sub-hero { min-height: 78svh; padding: 8.5rem 0 5rem; }
.sub-hero .hero-bg { display: none; }

.sub-hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
.sub-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.94) 26%, rgba(0,0,0,.72) 52%, rgba(0,0,0,.34) 100%),
    linear-gradient(to top, var(--bg-deep) 2%, transparent 40%);
}
.sub-hero-content > * { max-width: 620px; }
.sub-hero h1 { font-size: clamp(3.4rem, 7.6vw, 6.6rem); }
.sub-hero .hero-sub { margin-top: 1.4rem; }
.sub-hero .hero-ctas { margin-top: 2.2rem; }

.eyebrow .crumb {
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}
.eyebrow .crumb:hover { color: var(--flame); }
.eyebrow b { color: var(--muted-dim); }

/* the vertical hero label used to sit underneath the fixed dot nav */
.hero-side { right: 3.6rem; }
@media (max-width: 1180px) { .hero-side { display: none; } }

/* ---------- discipline strip ---------- */
.disc-strip {
  position: sticky;
  top: 52px;
  z-index: 40;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 4, 4, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.disc-strip-inner {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .55rem 0;
}
.disc-strip-inner::-webkit-scrollbar { display: none; }
.disc-strip a {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: .5rem .62rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color .3s, border-color .3s, background .3s;
  white-space: nowrap;
}
.disc-strip a:hover { color: var(--text); border-color: var(--border); }
.disc-strip a.on {
  color: #06060f;
  background: var(--grad-hot);
  border-color: transparent;
  font-weight: 700;
}

/* ---------- act rows ---------- */
.act-rows {
  margin-top: 2.4rem;
  border-top: 1px solid var(--border-soft);
}
.act-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.4rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background .4s;
}
.act-row:hover { background: rgba(229, 35, 27, .045); }
.act-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 138, 60, .6);
}
.act-body h3 {
  font-size: 1.85rem;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .55rem;
}
.act-body p {
  color: var(--muted);
  font-weight: 300;
  max-width: 62ch;
  line-height: 1.65;
}

/* ---------- photo gallery (masonry columns) ---------- */
.pgal {
  margin-top: 2.6rem;
  column-count: 4;
  column-gap: 14px;
}
.pgal-item {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  background: var(--bg-dark);
  transition: border-color .35s, box-shadow .35s, transform .35s;
}
.pgal-item img {
  display: block;
  width: 100%;
  height: auto;
}
.pgal-item:hover,
.pgal-item:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 0 28px rgba(229, 35, 27, .32);
  transform: translateY(-3px);
  outline: none;
}
.pgal-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem .85rem .7rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(to top, rgba(6, 2, 2, .92), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.pgal-item:hover .cap,
.pgal-item:focus-visible .cap { opacity: 1; transform: none; }

/* ---------- where & how ---------- */
.where-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.where {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.where:hover {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(229, 35, 27, .22);
}
.where h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: .5rem;
}
.where p { color: var(--muted); font-weight: 300; font-size: .95rem; line-height: 1.6; }

/* ---------- spec list ---------- */
.spec-head {
  margin-top: 3.4rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}
.confirm-note {
  margin-top: .8rem;
  max-width: 70ch;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 300;
}
.spec-list {
  margin-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(160px, 15rem) 1fr;
  gap: 1.2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.spec-row dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: .2rem;
}
.spec-row dd {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}
.confirm {
  display: inline-block;
  margin-left: .5rem;
  padding: .12rem .5rem;
  border-radius: 4px;
  border: 1px dashed var(--gold);
  color: var(--gold);
  background: rgba(245, 200, 66, .08);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

/* ---------- other disciplines ---------- */
.more-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.more-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.more-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.55) brightness(.62);
  transition: filter .5s, transform .8s;
}
.more-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 2, 2, .92) 8%, rgba(6, 2, 2, .1) 62%);
}
.more-card:hover { border-color: var(--violet); transform: translateY(-4px); box-shadow: 0 0 30px rgba(229, 35, 27, .28); }
.more-card:hover img { filter: grayscale(0) brightness(.78); transform: scale(1.06); }
.more-num {
  position: absolute;
  top: .8rem; left: .9rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--gold);
}
.more-name {
  position: absolute;
  left: .9rem; right: .9rem; bottom: .85rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- footer discipline links ---------- */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-soft);
}
.foot-links a {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}
.foot-links a:hover { color: var(--flame); }

/* ---------- lightbox additions (photos) ---------- */
.lightbox-frame.photo {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  display: grid;
  place-items: center;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.lightbox-frame.photo img {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--glow-violet);
}
.lightbox-cap {
  position: absolute;
  left: 50%;
  bottom: 2.1rem;
  transform: translateX(-50%);
  max-width: 80vw;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.lightbox-cap.show { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
  transition: border-color .35s, color .35s, box-shadow .35s;
}
.lightbox-nav.on { display: grid; }
.lightbox-nav:hover { border-color: var(--flame); color: var(--flame); box-shadow: 0 0 22px rgba(255, 138, 60, .4); }
.lightbox-nav.prev { left: 1.6rem; }
.lightbox-nav.next { right: 1.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .pgal { column-count: 3; }
  .sub-hero-photo { background-position: 66% center; }
}
@media (max-width: 780px) {
  .pgal { column-count: 2; column-gap: 10px; }
  .pgal-item { margin-bottom: 10px; }
  .act-row { grid-template-columns: 3.4rem 1fr; gap: 1rem; }
  .act-num { font-size: 1.8rem; }
  .act-body h3 { font-size: 1.5rem; }
  .spec-row { grid-template-columns: 1fr; gap: .35rem; }
  .sub-hero { min-height: 72svh; }
  .sub-hero-photo { background-position: 60% center; }
  .sub-hero-scrim {
    background:
      linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 34%, rgba(0,0,0,.6) 100%),
      linear-gradient(to top, var(--bg-deep) 3%, transparent 46%);
  }
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lightbox-nav.prev { left: .6rem; }
  .lightbox-nav.next { right: .6rem; }
  .more-name { font-size: 1.25rem; }
}
@media (max-width: 560px) {
  .pgal { column-count: 2; }
  .pgal-item .cap { opacity: 1; transform: none; font-size: .55rem; padding: 1.6rem .6rem .5rem; }
  .disc-strip a { font-size: .58rem; padding: .45rem .7rem; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
}
