/* ============================================
   DUNNEWORLD — pages.css
   Page-specific sections
   Phase 1: existing layout polish
   Phase 2-4: hero reveal, gallery, series, social — added incrementally
   ============================================ */

/* ============================================
   HERO (homepage)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.00) 30%,
    rgba(0, 0, 0, 0.30) 70%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}
.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  will-change: opacity, transform;
}
.hero-logo-img {
  width: clamp(260px, 38vw, 560px);
  max-width: 90vw;
  filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.6));
}
.hero-tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero-hashtag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;                              /* above dark overlay (z-index 2), below scroll indicator */
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: lowercase;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.7),
               0 0 60px rgba(244, 166, 35, 0.25);
  opacity: 0;                              /* hidden until hero scroll timeline brings it in */
  pointer-events: none;
  white-space: nowrap;
  will-change: opacity, transform;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}
.hero-scroll span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.6); opacity: 0.3; }
}

/* ============================================
   INTRO QUOTE (homepage)
   ============================================ */
.intro {
  padding: 160px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.intro-inner {
  max-width: 1000px;
  text-align: center;
}
.intro-quote {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: 0.02em;
}
.intro-quote em {
  font-style: normal;
  color: var(--accent);
}

/* ============================================
   PORTFOLIO PREVIEW (homepage)
   ============================================ */
.portfolio-preview {
  padding: 80px var(--gutter) 140px;
  background: var(--bg);
}
.portfolio-preview .section-header {
  margin-bottom: 64px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.preview-item {
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}
.preview-item:first-child {
  grid-column: span 2;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  aspect-ratio: 4 / 3;
}
.preview-item:first-child img {
  aspect-ratio: 16 / 9;
}
.preview-item:hover img {
  transform: scale(1.05);
}
.preview-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.preview-item:hover .preview-item-overlay {
  background: rgba(0, 0, 0, 0.3);
}
.portfolio-preview .section-cta {
  margin-top: 64px;
  text-align: center;
}

/* ============================================
   ABOUT TEASER (homepage)
   Horizontal slide-in: image enters from right (over text column)
   and slides to its left grid position, revealing text on the right.
   ============================================ */
.about-teaser {
  padding: 140px var(--gutter);
  background: var(--bg-elevated);
  overflow: hidden;          /* contain the off-stage image translation */
}
.about-teaser-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.about-teaser-text {
  position: relative;
  z-index: 1;                /* below image during slide-over */
}
.about-teaser-text h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 80px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
}
.about-teaser-text p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 460px;
}
.about-teaser-image {
  overflow: hidden;
  position: relative;
  z-index: 2;                /* above text while sliding across */
  will-change: transform;
}
.about-teaser-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.9s var(--ease-out);
}
.about-teaser:hover .about-teaser-image img {
  transform: scale(1.04);
}

/* ============================================
   CTA SECTION (homepage)
   ============================================ */
.cta-section {
  padding: 160px var(--gutter);
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 48px;
  color: var(--text);
}
.cta-social {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.cta-social a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.cta-social a:hover { color: var(--text); }

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) var(--gutter) 80px;
  text-align: center;
}
.page-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--text);
}
.page-hero p {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}
.masonry-grid {
  padding: 0 6px 120px;
  columns: 3;
  column-gap: 6px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.8s var(--ease-out), filter 0.4s;
  filter: brightness(0.92);
}
.masonry-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}
.masonry-item-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masonry-item-overlay svg {
  width: 40px;
  height: 40px;
  color: var(--text);
}
.masonry-item:hover .masonry-item-overlay { opacity: 1; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.lightbox-close {
  position: absolute;
  top: 32px;
  right: 40px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-soft);
  transition: color 0.3s, transform 0.3s var(--ease-out);
  font-size: 28px;
  line-height: 1;
  background: none;
  border: none;
}
.lightbox-close:hover { color: var(--text); transform: rotate(90deg); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.3s;
  font-size: 24px;
  background: none;
  border: none;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--text); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.about-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.65);
}

/* Mosaic variant — dense contact-sheet of 12 curated works behind the headline */
.about-hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  background: var(--bg);
}
.about-hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.08) saturate(0.85);
  transition: filter 0.6s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: filter, transform;
}
/* Individual tile lights up on hover — reinforces the photographer's eye */
.about-hero-mosaic img:hover {
  filter: brightness(1) contrast(1) saturate(1);
  transform: scale(1.04);
  z-index: 2;
  position: relative;
}
.about-hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 78%, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 38%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.75) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Wider screens — go even denser (6 columns x 2 rows) for true bird's-eye feel */
@media (min-width: 1400px) {
  .about-hero-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

/* Narrow screens — keep readable, 3 columns x 4 rows */
@media (max-width: 900px) {
  .about-hero-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}
@media (max-width: 540px) {
  .about-hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px var(--gutter);
}
.about-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
.about-hero-content h1 .accent { color: var(--accent); }
.about-body {
  padding: 120px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about-body-text h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 56px);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 32px;
}
.about-body-text p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 24px;
}
.about-body-text p strong {
  color: var(--text);
  font-weight: 500;
}
.about-body-text p em {
  font-style: normal;
  color: var(--accent);
}
.about-body-image {
  position: sticky;
  top: 100px;
}
.about-body-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
}
.about-cta {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}
.about-cta p {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  gap: 60px;
  margin: 56px 0;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 100px) var(--gutter) 120px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 24px;
  color: var(--text);
}
.contact-wrap > p {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 64px;
  max-width: 520px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.form-group textarea { min-height: 160px; }

.contact-direct {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-direct-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-direct-item .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-direct-item a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.3s;
}
.contact-direct-item a:hover { color: var(--accent); }

/* ============================================
   SCROLL REVEAL helpers
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-body {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .about-body-image { position: static; }
  .about-body-image img { height: 480px; }
  .about-teaser-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .masonry-grid { columns: 2; }
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .preview-item:first-child { grid-column: span 2; }

  /* Collage stays 2x2 but tighter on mobile */
  .about-hero { height: 65vh; min-height: 480px; }
  .about-hero-content { padding: 40px var(--gutter-mobile); }
  .intro { padding: 100px var(--gutter-mobile); }
  .portfolio-preview,
  .about-teaser,
  .cta-section {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
  .masonry-grid { columns: 1; }
  .contact-wrap {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
  .about-hero-content,
  .about-body {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
}
