/* =========================================================
   HA-HA EDITORIAL PROJECT PAGE
   ---------------------------------------------------------
   This file ONLY styles the project content and project footer.
   Navigation/logo/menu remain controlled by css/haha.css.
   ========================================================= */

:root {
  --project-text: #111;
  --project-orange: #f05b26;
  --project-grey: #777;
  --project-line: #d8d8d8;
  --project-light: #f2f2f2;
  --project-padding: clamp(18px, 2.5vw, 42px);
  --project-width: 1800px;
}

.editorial-project,
.editorial-project * {
  box-sizing: border-box;
}

.editorial-project {
  color: var(--project-text);
  font-family: futura-pt, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  background: #fff;
}

.editorial-project img {
  display: block;
  width: 100%;
  height: auto;
}

.editorial-project a,
.project-page-footer a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   HERO
   ========================================================= */

.project-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #ddd;
}

.project-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.12) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

.project-hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--project-padding);
  padding-bottom: clamp(24px, 4vw, 64px);
  color: #fff;
}

.project-hero-text h1 {
  margin: 0;
  font-size: clamp(76px, 15vw, 260px);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.055em;
}

.project-hero-text p {
  max-width: 900px;
  margin: clamp(22px, 3vw, 40px) 0 0;
  font-size: clamp(20px, 2.15vw, 38px);
  font-weight: 300;
  line-height: 1.05;
}


/* =========================================================
   INTRO + FACTS
   ========================================================= */

.project-intro {
  width: min(100%, var(--project-width));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 170px) var(--project-padding);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(70px, 10vw, 180px);
  align-items: start;
}

.project-statement p {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 88px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.project-statement strong {
  color: var(--project-orange);
  font-weight: 500;
}

.project-facts {
  margin: 0;
  border-top: 1px solid var(--project-text);
}

.project-fact {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 24px;
  padding: 11px 0 13px;
  border-bottom: 1px solid var(--project-line);
  font-size: 15px;
  line-height: 1.25;
}

.project-fact dt {
  margin: 0;
  color: var(--project-grey);
}

.project-fact dd {
  margin: 0;
}

.project-fact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* =========================================================
   GALLERY
   ========================================================= */

.project-gallery {
  width: min(100%, var(--project-width));
  margin: 0 auto;
  padding: 0 var(--project-padding);
}

.project-image {
  margin: 0 0 clamp(18px, 2.8vw, 48px);
}

.project-image img {
  width: 100%;
  max-height: 94vh;
  max-height: 94svh;
  object-fit: cover;
}

/* Use this class for drawings/images that should not be cropped. */
.project-image.contain {
  padding: clamp(30px, 6vw, 110px) clamp(0px, 5vw, 90px);
  background: var(--project-light);
}

.project-image.contain img {
  max-height: 82vh;
  max-height: 82svh;
  object-fit: contain;
}

/* Two images alongside one another. */
.project-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.8vw, 48px);
  align-items: start;
  margin-bottom: clamp(18px, 2.8vw, 48px);
}

.project-image-grid .project-image {
  margin: 0;
}

.project-image figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 8px;
  color: var(--project-grey);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* =========================================================
   END LINK
   ========================================================= */

.project-end {
  width: min(100%, var(--project-width));
  margin: 0 auto;
  padding: clamp(110px, 16vw, 250px) var(--project-padding) 36px;
}

.project-end a {
  display: block;
  padding: 18px 0 24px;
  border-top: 1px solid var(--project-text);
  border-bottom: 1px solid var(--project-text);
  font-size: clamp(42px, 7vw, 115px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-end span {
  color: var(--project-orange);
}


/* =========================================================
   PROJECT FOOTER
   ========================================================= */

.project-page-footer {
  width: min(100%, var(--project-width));
  margin: 0 auto;
  padding: 28px var(--project-padding) 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  color: var(--project-text);
  background: #fff;
  font-family: futura-pt, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.35;
}

.project-page-footer-social {
  text-align: right;
}

.project-page-footer a:hover {
  text-decoration: underline;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .project-intro {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .project-facts {
    max-width: 720px;
  }

  .project-image-grid {
    grid-template-columns: 1fr;
  }

  .project-page-footer {
    grid-template-columns: 1fr;
  }

  .project-page-footer-social {
    text-align: left;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {
  .project-hero-text h1 {
    font-size: 24vw;
  }

  .project-hero-text p {
    max-width: 92%;
  }

  .project-intro {
    padding-top: 72px;
    padding-bottom: 85px;
  }

  .project-statement p {
    font-size: 12vw;
  }

  .project-fact {
    grid-template-columns: 90px 1fr;
    gap: 16px;
    font-size: 14px;
  }

  .project-gallery {
    padding: 0;
  }

  .project-image {
    margin-bottom: 10px;
  }

  .project-image.contain {
    padding: 42px 18px;
  }

  .project-image-grid {
    gap: 10px;
    margin-bottom: 10px;
  }

  .project-image figcaption {
    display: none;
  }

  .project-end {
    padding-top: 100px;
  }
}

/* ========================================
   FIRE HOSE HERO INTERACTION
   ======================================== */

#fire-hose-canvas {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 4;
    pointer-events: none;
}


/* Hide normal cursor while inside the interactive hero. */

.fire-hose-active {
    cursor: none;
}


/* ========================================
   FIRE EXTINGUISHER CURSOR
   ======================================== */

#hose-cursor {
    position: absolute;
    width: 52px;
    height: 72px;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transform-origin: 100% 26%;
    transition: opacity 0.12s ease;
}

/* Red extinguisher cylinder */
#hose-cursor::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 20px;
    width: 27px;
    height: 47px;
    background: linear-gradient(
        to right,
        #8d1111 0%,
        #d52720 35%,
        #ef3c32 58%,
        #9e1313 100%
    );
    border: 1px solid rgba(20, 0, 0, 0.7);
    border-radius: 8px 8px 11px 11px;
    box-shadow:
        0 3px 7px rgba(0,0,0,0.38),
        inset 3px 0 3px rgba(255,255,255,0.16),
        inset -3px 0 4px rgba(0,0,0,0.18);
}

/* Small white label */
#hose-cursor::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 38px;
    width: 15px;
    height: 12px;
    background: rgba(245,245,240,0.92);
    border-radius: 1px;
    box-shadow: inset 0 -3px 0 rgba(200,35,28,0.75);
}

/* Black squeeze handle */
#hose-cursor .extinguisher-handle {
    position: absolute;
    left: 13px;
    top: 9px;
    width: 27px;
    height: 8px;
    background: #171717;
    border-radius: 5px 7px 2px 2px;
    transform: rotate(-7deg);
    transform-origin: left center;
    box-shadow: 0 2px 2px rgba(0,0,0,0.28);
}

#hose-cursor .extinguisher-handle::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 7px;
    height: 11px;
    background: #242424;
    border-radius: 2px;
}

/* Safety pin / ring */
#hose-cursor .extinguisher-pin {
    position: absolute;
    left: 7px;
    top: 13px;
    width: 8px;
    height: 8px;
    border: 2px solid #c4a85c;
    border-radius: 50%;
}

/* Curved black hose */
#hose-cursor .extinguisher-hose {
    position: absolute;
    left: 32px;
    top: 15px;
    width: 22px;
    height: 29px;
    border-right: 5px solid #181818;
    border-bottom: 5px solid #181818;
    border-radius: 0 0 18px 0;
    transform: rotate(-11deg);
}

/* Nozzle at spray point */
#hose-cursor .extinguisher-nozzle {
    position: absolute;
    right: -13px;
    top: 11px;
    width: 20px;
    height: 9px;
    background: linear-gradient(to bottom, #3f3f3f, #090909);
    border-radius: 5px 1px 1px 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

#hose-cursor .extinguisher-nozzle::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 2px;
    width: 7px;
    height: 5px;
    background: #090909;
    border-radius: 1px 4px 4px 1px;
}


/* Don't replace the cursor on touch-only devices. */

@media (hover: none), (pointer: coarse) {
    .fire-hose-active {
        cursor: auto;
    }

    #hose-cursor {
        display: none;
    }
}
