/* ============================================================
   GIFTEd — photo-system.css
   Rich photo/gallery components for inner pages.
   Matches the scale + parallax feel of index.html.
   All <img> src values are PLACEHOLDERS — swap for real GIFTEd photos.
   ============================================================ */

/* ── SHARED IMAGE BASE ── */

.ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #E4E9EA;
}

/* Wrapper that clips + hovers */
.ph-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #E4E9EA;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.ph-frame .ph {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ph-frame:hover .ph { transform: scale(1.05); }

/* Caption that slides up on hover */
.ph-frame-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 24px 20px;
  background: linear-gradient(to top, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.4) 60%, transparent 100%);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}
.ph-frame:hover .ph-frame-caption { transform: translateY(0); opacity: 1; }

.ph-frame-caption-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0 0 6px;
}
.ph-frame-caption-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

/* Always-visible caption below an image */
.ph-cap {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin: 12px 0 0;
}
.ph-cap--light { color: rgba(255,255,255,0.45); }

/* Aspect ratio helpers */
.ph-1x1  { aspect-ratio: 1 / 1; }
.ph-4x3  { aspect-ratio: 4 / 3; }
.ph-3x4  { aspect-ratio: 3 / 4; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-3x2  { aspect-ratio: 3 / 2; }
.ph-2x3  { aspect-ratio: 2 / 3; }


/* ── PARALLAX BAND (full-bleed fixed-bg section) ── */

.parallax-band {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #1A5C6B;
  overflow: hidden;
}
.parallax-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13,13,13,0.68), rgba(13,13,13,0.68));
  pointer-events: none;
}
.parallax-band--teal::before {
  background: linear-gradient(rgba(26,92,107,0.86), rgba(26,92,107,0.86));
}
.parallax-band--plum::before {
  background: linear-gradient(rgba(74,31,66,0.85), rgba(74,31,66,0.85));
}
.parallax-band--short { min-height: 60vh; }

.parallax-band-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 100px 40px;
}
.parallax-band-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0;
}
.parallax-band-rule {
  display: block;
  width: 60px;
  height: 2px;
  background: #D4622A;
  margin: 16px auto 0;
}
.parallax-band-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 20px 0 0;
}
.parallax-band-heading em {
  font-style: italic;
  color: #4AADBB;
}
.parallax-band-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  max-width: 620px;
  margin: 22px auto 0;
}
.parallax-band-content .btn { margin-top: 36px; }


/* ── PHOTO MOSAIC (asymmetric 5-tile collage) ── */

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
  margin-top: 56px;
}
.photo-mosaic .ph-frame { border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.10); }

/* tile spans */
.mo-a { grid-column: span 2; grid-row: span 2; }
.mo-b { grid-column: span 2; grid-row: span 1; }
.mo-c { grid-column: span 1; grid-row: span 1; }
.mo-d { grid-column: span 1; grid-row: span 1; }
.mo-e { grid-column: span 2; grid-row: span 2; }
.mo-f { grid-column: span 2; grid-row: span 1; }


/* ── PHOTO DUO (offset two-image composition) ── */

.photo-duo {
  position: relative;
  padding-bottom: 64px;
  padding-right: 48px;
}
.photo-duo-back {
  width: 82%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #E4E9EA;
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
}
.photo-duo-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: #E4E9EA;
  border: 6px solid #FDFAF6;
  box-shadow: 0 20px 56px rgba(0,0,0,0.22);
}
.photo-duo--on-dark .photo-duo-front { border-color: #1A5C6B; }
.photo-duo--on-paper .photo-duo-front { border-color: #F7F4F0; }
.photo-duo-back .ph,
.photo-duo-front .ph { transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.photo-duo:hover .photo-duo-back .ph  { transform: scale(1.04); }
.photo-duo:hover .photo-duo-front .ph { transform: scale(1.06); }

/* Badge floating on a duo */
.photo-duo-badge {
  position: absolute;
  left: 0;
  bottom: 18%;
  background: #D4622A;
  color: #fff;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.24);
  z-index: 2;
}
.photo-duo-badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.photo-duo-badge-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 6px;
  display: block;
}


/* ── PHOTO STRIP (equal-height row) ── */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.photo-strip--3 { grid-template-columns: repeat(3, 1fr); }
.photo-strip--5 { grid-template-columns: repeat(5, 1fr); }
.photo-strip .ph-frame {
  aspect-ratio: 3/4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
/* alternating vertical offset for rhythm */
.photo-strip--staggered .ph-frame:nth-child(even) { transform: translateY(28px); }
.photo-strip--staggered { margin-bottom: 28px; }


/* ── GALLERY GRID (uniform, hover-zoom + caption) ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid .ph-frame {
  aspect-ratio: 4/3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}


/* ── PHOTO + QUOTE (split, image bleeds to edge) ── */

.photo-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.16);
  margin-top: 56px;
  background: #1A5C6B;
}
.photo-quote-img { min-height: 420px; background: #E4E9EA; }
.photo-quote-body {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.photo-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: #4AADBB;
  margin: 0 0 20px;
}
.photo-quote-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}
.photo-quote-attr {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 28px 0 0;
}


/* ── FULL-BLEED IMAGE ROW (edge to edge, no padding) ── */

.bleed-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.bleed-row--4 { grid-template-columns: repeat(4, 1fr); }
.bleed-row .ph-frame {
  aspect-ratio: 1/1;
  border-radius: 0;
  box-shadow: none;
}


/* ── STAT OVERLAY CARD (number over photo) ── */

.stat-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.stat-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  background: #E4E9EA;
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
}
.stat-photo .ph { transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.stat-photo:hover .ph { transform: scale(1.06); }
.stat-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.3) 55%, rgba(13,13,13,0.08) 100%);
  pointer-events: none;
}
.stat-photo-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 28px;
  z-index: 1;
}
.stat-photo-num {
  font-family: 'DM Mono', monospace;
  font-size: 2.6rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.stat-photo-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #4AADBB;
  line-height: 1.5;
  margin: 10px 0 0;
}


/* ── TEAM PHOTO CARD (portrait + overlay role) ── */

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.team-photo {
  border-radius: 14px;
  overflow: hidden;
  background: #FDFAF6;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-photo:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(0,0,0,0.14);
}
.team-photo-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #E4E9EA;
  position: relative;
}
.team-photo-img .ph { transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.team-photo:hover .team-photo-img .ph { transform: scale(1.05); }
.team-photo-body { padding: 24px 22px 28px; }
.team-photo-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4AADBB;
  margin: 0 0 8px;
}
.team-photo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.25;
  margin: 0;
}
.team-photo-bio {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: #6B6B6B;
  line-height: 1.65;
  margin: 12px 0 0;
}


/* ── TIMELINE WITH PHOTOS ── */

.photo-timeline {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.photo-timeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.photo-timeline-row:nth-child(even) .photo-timeline-media { order: 2; }
.photo-timeline-media .ph-frame { aspect-ratio: 4/3; }
.photo-timeline-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #D4622A;
  margin: 0;
}
.photo-timeline-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.2;
  margin: 14px 0 0;
}
.photo-timeline-title--light { color: #fff; }
.photo-timeline-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #6B6B6B;
  line-height: 1.8;
  margin: 16px 0 0;
}
.photo-timeline-text--light { color: rgba(255,255,255,0.72); }


/* ── SECTION SCALE BUMP (match homepage generosity) ── */

.inner-section--tall { padding: 140px 80px; }

/* Let dark sections host the homepage's floating deco circles */
.inner-section--teal,
.inner-section--plum {
  position: relative;
  overflow: hidden;
}
.inner-section--teal > .inner-wrap,
.inner-section--plum > .inner-wrap { position: relative; z-index: 1; }

.sec-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.sec-deco--tr { width: 520px; height: 520px; top: -140px; right: -120px; background: rgba(74,173,187,0.08); }
.sec-deco--bl { width: 340px; height: 340px; bottom: -90px; left: -80px;  background: rgba(74,173,187,0.06); }
.sec-deco--cr { width: 210px; height: 210px; top: 46%; right: 70px; background: rgba(212,98,42,0.06); }

.inner-heading--xl {
  font-size: clamp(2.2rem, 4vw, 3rem);
}


/* ── REVEAL (extra stagger slots) ── */
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* ── MOBILE ── */

@media (max-width: 900px) {
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mo-a, .mo-e { grid-column: span 2; grid-row: span 2; }
  .mo-b, .mo-f { grid-column: span 2; grid-row: span 1; }
  .mo-c, .mo-d { grid-column: span 1; grid-row: span 1; }

  .photo-strip, .photo-strip--3, .photo-strip--5 { grid-template-columns: repeat(2, 1fr); }
  .photo-strip--staggered .ph-frame:nth-child(even) { transform: none; }
  .gallery-grid, .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .team-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-photo-grid { grid-template-columns: 1fr; }
  .bleed-row, .bleed-row--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .parallax-band {
    background-attachment: scroll;
    min-height: 70vh;
  }
  .parallax-band-content { padding: 72px 24px; }

  .inner-section--tall { padding: 72px 24px; }

  .photo-duo { padding-bottom: 48px; padding-right: 32px; }
  .photo-duo-back  { width: 88%; }
  .photo-duo-front { width: 50%; border-width: 5px; }
  .photo-duo-badge { padding: 14px 18px; }
  .photo-duo-badge-num { font-size: 1.4rem; }

  .photo-quote { grid-template-columns: 1fr; }
  .photo-quote-img { min-height: 260px; }
  .photo-quote-body { padding: 40px 28px; }
  .photo-quote-text { font-size: 1.2rem; }

  .photo-timeline { gap: 56px; }
  .photo-timeline-row { grid-template-columns: 1fr; gap: 28px; }
  .photo-timeline-row:nth-child(even) .photo-timeline-media { order: 0; }
  .photo-timeline-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .team-photo-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid--4 { grid-template-columns: 1fr; }
  .photo-strip, .photo-strip--3, .photo-strip--5 { grid-template-columns: 1fr; }
}


/* ── REDUCED MOTION ── */

@media (prefers-reduced-motion: reduce) {
  .parallax-band { background-attachment: scroll; }
  .ph-frame .ph,
  .photo-duo-back .ph,
  .photo-duo-front .ph,
  .stat-photo .ph,
  .team-photo-img .ph { transition: none !important; transform: none !important; }
  .ph-frame-caption { transition: none; }
}
