/* Blow Factory editorial v2 — image rhythm, breathing room and project hierarchy */

/* ---------- HOME ---------- */
.hero {
  min-height: 100vh;
  height: 100vh;
  background: #000;
}

.hero-video,
.hero-poster {
  inset: 78px 4vw 24px;
  width: calc(100% - 8vw);
  height: calc(100% - 102px);
  object-fit: contain;
  object-position: center center;
}

.hero-copy {
  left: 4vw;
  right: 4vw;
  bottom: 46px;
}

.hero-copy h1 {
  max-width: 980px;
  font-size: clamp(36px, 3.8vw, 64px);
}

.hero-note { max-width: 560px; }

.feature-project {
  width: min(92vw, 1600px);
  height: auto;
  min-height: 0;
  aspect-ratio: 28 / 17;
  margin: 84px auto 122px;
  border-top: 0;
  overflow: hidden;
}

.feature-project img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.feature-project-label { left: 24px; bottom: 32px; max-width: calc(100% - 350px); }
.feature-project-label h2 { font-size: clamp(38px, 4.2vw, 64px); }
.feature-project-meta { right: 24px; bottom: 34px; }
.feature-project-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .25s ease;
}
.work-card-link:hover .work-card-media img { transform: scale(1.018); }

.section-worldwide {
  padding-top: 88px;
  padding-bottom: 96px;
}
.worldwide-heading { margin-bottom: 28px; }
.section-worldwide .map-stage {
  width: min(74vw, 1180px);
  max-width: none;
  margin: 0 auto;
}
.section-worldwide .map-note { margin-top: 14px; }

/* ---------- PROJECTS: SHARED EDITORIAL SCALE ---------- */
.project-page main { padding-top: 1px; }

.project-hero {
  width: min(92vw, 1660px);
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 94px auto 104px;
}
.project-hero > img { object-fit: cover; }
.project-hero-copy { left: 26px; right: 26px; bottom: 44px; }
.project-hero h1 { font-size: clamp(48px, 5.5vw, 88px); }
.project-subtitle { font-size: clamp(17px, 1.5vw, 25px); }

.project-info,
.project-tour,
.project-process,
.project-scope {
  padding: 96px 5.2vw;
}
.project-info-heading,
.project-section-label {
  max-width: 1580px;
  margin-left: auto;
  margin-right: auto;
}
.project-info h2,
.project-section-label h2 { font-size: clamp(36px, 4.2vw, 66px); }
.project-info-grid,
.scope-grid {
  max-width: 1470px;
  margin-left: auto;
  margin-right: auto;
}
.project-story p { font-size: clamp(17px, 1.32vw, 22px); }

.project-image-full {
  padding: 70px 5.2vw;
}
.project-image-full img {
  width: auto;
  max-width: min(89vw, 1540px);
  height: auto;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
}
.project-image-caption {
  width: min(89vw, 1540px);
  margin: 11px auto 0;
}

.project-gallery {
  padding: 70px 5.2vw;
  gap: 30px;
}
.project-gallery-wide { grid-template-columns: 1fr 1fr; }
.project-gallery-asymmetric { grid-template-columns: 1.18fr .82fr; }
.project-gallery-reverse { grid-template-columns: .82fr 1.18fr; }
.project-figure img { max-height: 72vh; }
.project-image-caption,
.project-figure figcaption,
.process-hero figcaption,
.process-figure figcaption {
  font-size: 10px;
  color: rgba(255,255,255,.62);
  letter-spacing: .105em;
}

/* Tour reads as timeline, not empty image placeholders */
.tour-grid {
  position: relative;
  margin-top: 66px;
  border: 0;
  gap: 28px;
}
.tour-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 1px;
  background: rgba(255,255,255,.22);
}
.tour-stop {
  position: relative;
  min-height: 168px;
  padding: 48px 0 0;
  border: 0;
  justify-content: flex-start;
}
.tour-stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2eadf;
  box-shadow: 0 0 12px rgba(242,234,223,.28);
}
.tour-stop span {
  order: 0;
  margin: 0 0 24px;
  font-size: 9px;
  opacity: .4;
}
.tour-stop h3 { font-size: clamp(26px, 2.2vw, 39px); }
.tour-stop p { margin-top: 7px; font-size: 12px; }

.process-hero {
  width: min(89vw, 1520px);
  margin: 66px auto 0;
}
.process-grid {
  width: min(89vw, 1520px);
  margin: 30px auto 0;
  grid-template-columns: 1.18fr .82fr;
  gap: 30px;
}
.process-intro {
  max-width: 700px;
  margin-top: 46px;
}

.project-next {
  min-height: 36vh;
  padding: 44px 5.2vw;
}
.project-next strong { font-size: clamp(34px, 4.2vw, 68px); }

/* ---------- DOLCE & GABBANA ---------- */
/* Main Milan image: almost full-width again, but lower than the old fullscreen treatment. */
.project-page-dg .project-image-full {
  padding: 44px 1.8vw 54px;
}
.project-page-dg .project-image-full img {
  width: 100%;
  max-width: none;
  height: 78vh;
  max-height: 820px;
  object-fit: cover;
  object-position: center center;
}
.project-page-dg .project-image-caption {
  width: 100%;
  max-width: none;
}

/* Exhibition photography stays large. Air is controlled, not excessive. */
.project-page-dg .project-gallery {
  width: 100%;
  padding: 48px 1.8vw;
  gap: 20px;
}
.project-page-dg .project-gallery-wide {
  grid-template-columns: 1fr 1fr;
}
.project-page-dg .project-gallery-asymmetric {
  grid-template-columns: 1.32fr .68fr;
}
.project-page-dg .project-gallery-reverse {
  grid-template-columns: .68fr 1.32fr;
}
.project-page-dg .project-figure img {
  max-height: 78vh;
  object-position: center;
}

/* Technical section: panoramic calibration image stays panoramic; no forced 16:9 crop. */
.project-page-dg .project-process {
  padding-left: 1.8vw;
  padding-right: 1.8vw;
}
.project-page-dg .project-process .project-section-label,
.project-page-dg .project-process .process-intro {
  width: min(90vw, 1580px);
  margin-left: auto;
  margin-right: auto;
}
.project-page-dg .process-hero {
  width: 96.4vw;
  max-width: none;
  margin: 58px auto 0;
}
.project-page-dg .process-hero img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  aspect-ratio: auto;
  object-fit: contain;
}
.project-page-dg .process-grid {
  width: 96.4vw;
  max-width: none;
  margin: 20px auto 0;
  grid-template-columns: 1.56fr .64fr;
  gap: 20px;
  align-items: start;
}
.project-page-dg .process-figure img {
  height: auto;
  max-height: 74vh;
  aspect-ratio: auto;
  object-fit: cover;
}
.project-page-dg .process-figure-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- FROM SAND TO STARS ---------- */
/* Use the same 1.8vw side breathing room established by D&G. */
.project-page-sand-stars .ss-architecture,
.project-page-sand-stars .ss-concept,
.project-page-sand-stars .ss-installation {
  padding: 96px 1.8vw;
}
.project-page-sand-stars .ss-section-heading {
  width: min(94vw, 1640px);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}
.project-page-sand-stars .ss-section-heading h2 {
  font-size: clamp(36px, 4.1vw, 66px);
}
.project-page-sand-stars .ss-installation-intro,
.project-page-sand-stars .ss-concept-intro {
  width: min(86vw, 1240px);
  max-width: 780px;
  margin-left: max(0px, calc((100% - min(94vw, 1640px)) / 2 + 108px));
}
.project-page-sand-stars .ss-install-hero {
  width: 96.4vw;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.project-page-sand-stars .ss-install-hero img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}
.project-page-sand-stars .ss-install-grid {
  width: 96.4vw;
  max-width: none;
  margin: 26px auto 0;
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
}
.project-page-sand-stars .ss-install-grid img { max-height: 78vh; }

/* Blue photos: same outer rhythm as D&G, while preserving the editorial pairing. */
.project-page-sand-stars .ss-blue-row {
  width: 96.4vw;
  max-width: none;
  margin: 48px auto 0;
  grid-template-columns: 1.34fr .76fr;
  gap: 24px;
  align-items: end;
}
.project-page-sand-stars .ss-blue-detail {
  width: 100%;
  justify-self: stretch;
}
.project-page-sand-stars .ss-blue-wide img,
.project-page-sand-stars .ss-blue-detail img {
  max-height: 72vh;
  object-fit: cover;
}

.project-page-sand-stars .ss-concept-grid {
  width: 96.4vw;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  gap: 26px;
}

/* Architectural context: same side margins as D&G, with a taller full-screen rhythm matching the gold-image reference. */
.project-page-sand-stars .ss-architecture-hero {
  width: 96.4vw;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.project-page-sand-stars .ss-architecture-hero img {
  width: 100%;
  height: 88vh;
  max-height: 980px;
  object-fit: cover;
  object-position: center center;
}
.project-page-sand-stars .ss-caption,
.project-page-sand-stars .ss-concept-label {
  font-size: 10px;
  color: rgba(255,255,255,.62);
}

/* Future editorial formats — kept as options, not used by default. */
.editorial-triptych {
  width: min(88vw, 1460px);
  margin: 70px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.editorial-technical {
  width: min(82vw, 1320px);
  margin: 82px auto;
}

@media (max-width: 1100px) {
  .section-worldwide .map-stage { width: min(86vw, 1050px); }
  .project-hero { width: 94vw; }
  .project-gallery-asymmetric,
  .project-gallery-reverse,
  .process-grid { grid-template-columns: 1fr 1fr; }
  .project-page-sand-stars .ss-blue-row { width: 96.4vw; }
  .project-page-dg .process-grid { grid-template-columns: 1.35fr .65fr; }
}

@media (max-width: 700px) {
  .hero-video,
  .hero-poster {
    inset: 66px 18px 30px;
    width: calc(100% - 36px);
    height: calc(100% - 96px);
  }
  .feature-project {
    width: calc(100% - 40px);
    margin: 54px auto 78px;
    aspect-ratio: auto;
    overflow: visible;
  }
  .feature-project img {
    width: 100%;
    height: auto;
  }
  .feature-project-shade { display: none; }
  .feature-project-label {
    position: static;
    max-width: none;
    padding-top: 20px;
  }
  .feature-project-label h2 {
    font-size: clamp(36px, 10vw, 48px);
    text-shadow: none;
  }
  .feature-project-meta {
    position: static;
    margin-top: 18px;
    align-items: flex-start;
    text-shadow: none;
  }
  .section-worldwide .map-stage { width: 100%; }
  .project-hero {
    width: calc(100% - 32px);
    margin-top: 78px;
    margin-bottom: 70px;
    aspect-ratio: 4 / 3;
  }
  .project-info,
  .project-tour,
  .project-process,
  .project-scope,
  .project-page-sand-stars .ss-architecture,
  .project-page-sand-stars .ss-concept,
  .project-page-sand-stars .ss-installation {
    padding: 72px 20px;
  }
  .project-image-full,
  .project-gallery { padding: 52px 20px; }
  .project-image-full img,
  .project-image-caption { width: 100%; max-width: 100%; }
  .tour-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .tour-grid::before { display: none; }
  .tour-stop { min-height: 130px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
  .tour-stop::before { display: none; }
  .project-page-dg .project-image-full img { height: auto; max-height: none; }
  .project-page-dg .project-gallery,
  .project-page-dg .project-process { padding-left: 20px; padding-right: 20px; }
  .project-page-dg .process-hero,
  .project-page-dg .process-grid { width: 100%; }
  .project-page-sand-stars .ss-install-grid,
  .project-page-sand-stars .ss-blue-row,
  .project-page-sand-stars .ss-concept-grid,
  .editorial-triptych { grid-template-columns: 1fr; width: 100%; }
  .project-page-sand-stars .ss-blue-row { gap: 22px; }
  .project-page-sand-stars .ss-blue-detail { width: 100%; }
  .project-page-sand-stars .ss-installation .ss-installation-intro,
  .project-page-sand-stars .ss-concept .ss-concept-intro {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .project-page-sand-stars .ss-installation .ss-install-hero {
    width: 100%;
    max-width: 100%;
  }
  .project-page-sand-stars .ss-architecture-hero { width: 100%; }
  .project-page-sand-stars .ss-architecture-hero img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .project-page .project-hero-fade {
    width: calc(100% - 40px);
    height: auto;
    min-height: 0;
    margin: 78px auto 70px;
    aspect-ratio: auto;
    overflow: visible;
  }
  .project-page .project-hero-fade > img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .project-page .project-hero-fade .project-hero-copy {
    position: static;
    padding-top: 22px;
  }
  .project-page .project-hero-fade .project-hero-shade,
  .project-page .project-hero-fade .project-scroll {
    display: none;
  }
  .project-next strong { font-size: clamp(32px, 10vw, 48px); }
}
