/* =========================================================
   Gżira Pumping Station — site stylesheet
   Editorial, image-led. Inspired by curated cultural sites.
   ========================================================= */

:root {
  --bg:        #f1eadf;          /* warm limestone cream */
  --bg-2:      #e7ddca;          /* slightly toasted */
  --bg-dark:   #1a1814;          /* deep ink */
  --bg-deep:   #14130f;
  --ink:       #1a1814;
  --ink-soft:  #4a443a;
  --ink-muted: #8a7f6c;
  --rule:      #c9bda5;
  --accent:    #8c6b3a;          /* warm brass */
  --accent-2:  #b88a4a;
  --green:     #36402a;          /* heritage green */
  --green-2:   #4f5b3e;
  --paper:     #fbf6ec;          /* offset paper */

  --serif:     "Cormorant Garamond", "Times New Roman", serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --maxw:      1320px;
  --pad:       clamp(20px, 4vw, 64px);
  --rule-w:    1px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 22px 0;
  font-weight: 500;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad);
  background: transparent;
  color: var(--paper);
  transition: background .35s ease, color .35s ease, padding .25s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(241,234,223,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--ink);
  border-bottom-color: var(--rule);
  padding-top: 12px; padding-bottom: 12px;
}

.nav__brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
}
.nav__mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  text-transform: uppercase;
}
.nav__brand-text { font-weight: 500; letter-spacing: 0.01em; }

.nav__links {
  display: flex; justify-content: center; gap: 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav__links a { opacity: 0.85; transition: opacity .2s ease; }
.nav__links a:hover { opacity: 1; }

.nav__meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  text-align: right;
}

@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__meta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  color: var(--paper);
  background: var(--bg-deep);
}
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(20,19,15,0.55) 0%, rgba(20,19,15,0.15) 32%, rgba(20,19,15,0.0) 55%, rgba(20,19,15,0.55) 100%),
    radial-gradient(circle at 70% 30%, rgba(140,107,58,0.18), transparent 60%);
}

.hero__content {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 18px 0 28px 0;
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: clamp(20px, 8vw, 140px); }
.hero__title em { font-style: italic; color: var(--accent-2); font-weight: 400; }

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  font-weight: 300;
  max-width: 30ch;
  margin: 0;
  opacity: 0.95;
}

.hero .eyebrow { color: rgba(251, 246, 236, 0.75); }

.hero__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px;
  z-index: 3;
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.85;
}
.hero__line {
  flex: 1; height: 1px; background: currentColor; opacity: 0.4;
}

/* ---------- Band (overview statement) ---------- */

.band {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) var(--pad);
}
.band__kicker {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 26px 0;
}
.band__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0;
}
.band__statement strong {
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin: 70px 0 0 0;
  padding: 32px 0 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats__num {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stats__label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Section base ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--pad);
}

.section--vision {
  background: var(--bg-dark);
  color: var(--paper);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.section--civic {
  background: var(--green);
  color: var(--paper);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.section--civic h2 em { color: #d8c79e; }

.section__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(50px, 8vh, 100px);
}
.section__head .eyebrow { margin-bottom: 0; }
.section__head h2 {
  font-size: clamp(34px, 5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.section__head--invert .eyebrow { color: rgba(251, 246, 236, 0.7); }

@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; }
}

/* ---------- Split (text + media) ---------- */

.split {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split--reverse .split__media { order: 2; }
.split__text > *:first-child { margin-top: 0; }
.split__text .lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.42;
  font-weight: 400;
  margin-bottom: 24px;
}
.split__text p { color: var(--ink-soft); margin: 0 0 16px 0; max-width: 50ch; }
.split__text strong { color: var(--ink); font-weight: 500; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Frame (image with caption) ---------- */

.frame { margin: 0; }
.frame img { width: 100%; height: auto; display: block; }
.frame figcaption,
.bleed figcaption,
.duo__item figcaption,
.archive__item figcaption {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: 12px;
  max-width: 60ch;
}
.section--vision .frame figcaption,
.section--vision .bleed figcaption,
.section--vision .duo__item figcaption,
.section--civic .frame figcaption {
  color: rgba(251, 246, 236, 0.6);
}

/* ---------- Bleed (full-width media) ---------- */

.bleed {
  margin: clamp(60px, 9vh, 110px) 0;
  padding: 0 var(--pad);
}
.section--vision .bleed:first-of-type { margin-top: 0; }
.bleed img {
  width: 100%; height: auto;
  max-height: 86vh;
  object-fit: cover;
}

/* ---------- Duo (two side-by-side media) ---------- */

.duo {
  max-width: var(--maxw);
  margin: clamp(40px, 6vh, 80px) auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
}
.duo__item { margin: 0; }
.duo__item img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

.duo--text {
  margin-top: 0;
}
.duo--text article {
  border-top: 1px solid rgba(251, 246, 236, 0.2);
  padding-top: 28px;
}
.duo--text h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin-bottom: 14px;
}
.duo--text p {
  margin: 0; color: rgba(251, 246, 236, 0.78); max-width: 46ch;
}

@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
}

/* ---------- Archive grid ---------- */

.archive {
  max-width: var(--maxw);
  margin: clamp(80px, 12vh, 140px) auto 0;
  padding: 0 var(--pad);
}
.archive__label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 26px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 22px;
}
.archive__item { margin: 0; }
.archive__item[data-lightbox] {
  cursor: zoom-in;
}
.archive__item__media {
  overflow: hidden;
  position: relative;
}
.archive__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  filter: sepia(0.18) contrast(0.96);
  transition: transform .9s ease, filter .4s ease;
  display: block;
}
.archive__item[data-lightbox]:hover img {
  transform: scale(1.04);
  filter: sepia(0.05) contrast(1);
}
.archive__item figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  letter-spacing: 0.005em;
}
.archive__credit {
  margin: 36px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
}
@media (max-width: 760px) {
  .archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .archive__grid { grid-template-columns: 1fr; }
  .archive__item img { aspect-ratio: 3/2; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 19, 15, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 64px clamp(20px, 5vw, 80px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  filter: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.96);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
  opacity: 1;
}
.lightbox__caption {
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.5;
  font-style: italic;
  color: rgba(251, 246, 236, 0.85);
  text-align: center;
  max-width: 70ch;
  margin: 0;
}
.lightbox__caption:empty { display: none; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: rgba(251, 246, 236, 0.78);
  cursor: pointer;
  font-family: var(--serif);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  color: var(--paper);
  background: rgba(251, 246, 236, 0.06);
}
.lightbox__close {
  top: 22px; right: 24px;
  width: 44px; height: 44px;
  font-size: 38px;
  line-height: 1;
  border-radius: 50%;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 48px;
  line-height: 1;
  border-radius: 50%;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 640px) {
  .lightbox { padding: 56px 12px; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 32px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}

/* ---------- Scope cards ---------- */

.scope {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.scope__card {
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.scope__num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-style: italic;
}
.scope__card h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  margin-bottom: 4px;
}
.scope__card p { color: var(--ink-soft); margin: 0; max-width: 42ch; }

@media (max-width: 760px) {
  .scope { grid-template-columns: 1fr; }
  .scope__card { min-height: 0; }
}

/* ---------- Bullets ---------- */

.bullets {
  list-style: none;
  margin: 0; padding: 0;
}
.bullets li {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  color: var(--ink-soft);
  max-width: 50ch;
}
.bullets li:last-child { border-bottom: 1px solid var(--rule); }
.bullets strong { color: var(--ink); font-weight: 500; }

/* ---------- Visit ---------- */

.visit {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 6vh, 60px);
}
.visit__col { display: flex; flex-direction: column; gap: 6px; }
.visit__label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px 0;
}
.visit__line {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  margin: 0;
  color: var(--ink);
}
@media (max-width: 760px) {
  .visit { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.foot {
  background: var(--bg-deep);
  color: rgba(251, 246, 236, 0.78);
  padding: 56px var(--pad) 36px;
  display: flex; flex-direction: column; gap: 32px;
}
.foot__row {
  max-width: var(--maxw); margin: 0 auto;
  width: 100%;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid rgba(251, 246, 236, 0.15);
  padding-bottom: 32px;
}
.foot__brand {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.foot__by {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0; opacity: 0.75;
  text-align: right;
}
.foot__legal {
  max-width: var(--maxw); margin: 0 auto;
  width: 100%;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55;
}
@media (max-width: 600px) {
  .foot__row { flex-direction: column; align-items: flex-start; }
  .foot__by { text-align: left; }
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .archive__item img { transition: none; }
}
