@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --purple: #633391;
  --purple-light: #b28fc0;
  --purple-deep: #3d1e5f;
  --blue: #5787c6;
  --gray: #bbbdbf;
  --gray-light: #e6e7e8;
  --ink: #4e4e4e;
  --lime: #a2c24e;
  --white: #fff;
  --max: 1180px;
  --paragraph-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Montserrat, Arial, sans-serif; font-size: 16px; line-height: 1.58; }
a { color: inherit; text-decoration: none; }

.site-header { position: absolute; z-index: 5; top: 0; left: 50%; width: min(100%, 1320px); min-height: 88px; display: flex; align-items: center; gap: 36px; padding: 10px 40px; transform: translateX(-50%); background: var(--purple); color: #fff; }
.brand { width: 175px; display: block; flex: 0 0 auto; line-height: 0; }
.brand img, footer img { width: 100%; height: auto; }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; gap: 39px; flex: 1; }
.site-header nav a { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.site-header nav a:hover, footer a:hover { color: var(--lime); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; line-height: 1.2; letter-spacing: .04em; font-weight: 800; transition: transform .2s ease, background-color .2s ease; }
.header-cta { padding: 14px 18px; background: var(--lime); color: #fff; white-space: nowrap; }
.header-cta:hover, .button:hover { transform: translateY(-2px); }

.hero { min-height: 690px; position: relative; isolation: isolate; overflow: hidden; background: var(--white); }
.hero-image { position: absolute; z-index: -3; inset: 0 0 0 42%; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.1) 46%), url('../images/water-wise/community-water.png') center/cover no-repeat; }
.hero-shape { position: absolute; z-index: -2; pointer-events: none; }
.shape-one { width: 54%; height: 68%; left: -6%; bottom: -36%; transform: rotate(-26deg); background: var(--gray-light); }
.shape-two { width: 40%; height: 50%; right: -13%; top: 10%; transform: rotate(28deg); background: rgba(255,255,255,.66); }
.hero-content { width: min(760px, calc(100% - 80px)); padding: 148px 0 52px; margin: 0 auto; transform: translateX(-210px); }
.eyebrow { margin: 0 0 11px; color: #fff; font-size: 10px; letter-spacing: .17em; font-weight: 800; line-height: 1.4; }
.eyebrow.blue { color: var(--blue); }
.eyebrow.lime { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 18px; color: var(--purple); font-size: clamp(42px, 5vw, 66px); }
h1 span { color: var(--blue); }
.hero-copy { max-width: 560px; margin-bottom: 12px; font-size: var(--paragraph-size); line-height: 1.48; font-weight: 500; }
.hero-copy-secondary { max-width: 610px; margin-bottom: 18px; font-size: var(--paragraph-size); }
.button { min-height: 46px; padding: 14px 20px; }
.button-primary { color: #fff; background: var(--purple); }
.button-lime { color: #fff; background: var(--lime); }
.rainfall-stat { position: absolute; right: max(40px, calc((100% - var(--max))/2)); bottom: 32px; width: 235px; padding: 20px 21px 17px; color: #fff; background: var(--purple); }
.rainfall-stat span { display: block; line-height: 1.4; }
.stat-kicker { color: var(--lime); font-weight: 800; font-size: 9px; letter-spacing: .13em; }
.rainfall-stat strong { display: block; margin: 3px 0 4px; font-size: 42px; line-height: 1.05; letter-spacing: -.06em; }
.rainfall-stat small { display: block; padding-top: 11px; font-size: 8.5px; line-height: 1.35; opacity: .85; }
.rainfall-stat small a { text-decoration: underline; text-underline-offset: 2px; }

.section { width: min(var(--max), calc(100% - 80px)); margin: 0 auto; padding: 70px 0; }
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
h2 { margin-bottom: 18px; color: var(--blue); font-size: clamp(31px, 3.3vw, 46px); }
h2 em { color: var(--purple); font-style: normal; }
.intro-copy { font-size: var(--paragraph-size); line-height: 1.65; }
.intro-copy p:last-child { margin-bottom: 0; }

.section-wide { display: grid; grid-template-columns: 1fr 1fr; }
.story-image { min-height: 500px; overflow: hidden; }
.story-image img, .theatre-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(36px, 6vw, 88px); background: var(--blue-pale); }
.story-copy h2 { font-size: clamp(33px, 3.5vw, 48px); }
.story-copy p:not(.eyebrow) { margin-bottom: 12px; font-size: var(--paragraph-size); line-height: 1.55; }
.text-link { align-self: flex-start; margin-top: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--lime); color: var(--purple); font-size: 12px; letter-spacing: .05em; font-weight: 800; }

.engagement { padding-bottom: 72px; }
.narrow { max-width: 800px; }
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 38px; border-top: 1px solid var(--gray); }
.formats-grid article { padding: 23px 28px 4px 0; border-right: 1px solid var(--gray); }
.formats-grid article:not(:first-child) { padding-left: 28px; }
.formats-grid article:last-child { border-right: 0; }
.format-photo { --frame-accent: var(--purple); position: relative; isolation: isolate; width: min(100%, 240px); aspect-ratio: 8 / 5; margin: 2px auto 22px; }
.format-photo::before { content: ""; position: absolute; z-index: -2; inset: 9px -7px -8px 9px; background: var(--frame-accent); transform: rotate(-2.5deg); }
.format-photo::after { content: ""; position: absolute; z-index: -1; right: -12px; bottom: -14px; width: 82px; height: 45px; transform: rotate(-10deg); background-image: radial-gradient(circle, rgba(99,51,145,.28) 1.5px, transparent 1.7px); background-size: 8px 8px; }
.formats-grid article:nth-child(2) .format-photo { --frame-accent: var(--lime); }
.formats-grid article:nth-child(2) .format-photo::before { transform: rotate(2.5deg); }
.formats-grid article:nth-child(3) .format-photo::before { transform: rotate(-1.5deg); }
.format-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; clip-path: polygon(4% 0, 100% 5%, 96% 100%, 0 95%); box-shadow: 0 10px 24px rgba(61,30,95,.18); }
.number { color: var(--lime); font-size: 13px; font-weight: 800; }
.formats-grid h3 { margin: 18px 0 9px; color: var(--purple); font-size: 18px; }
.formats-grid p { margin-bottom: 0; font-size: var(--paragraph-size); line-height: 1.58; }

.theatre { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 440px; background: var(--purple); color: #fff; }
.theatre-image { min-height: 440px; }
.theatre-copy { max-width: 760px; padding: 55px clamp(36px, 6vw, 88px); }
.theatre h2 { color: #fff; }
.theatre h2 span { color: var(--lime); }
.theatre p:not(.eyebrow) { max-width: 630px; margin-bottom: 12px; font-size: var(--paragraph-size); line-height: 1.55; }

.impact { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 72px; }
.impact h2 { color: var(--purple); }
.impact-copy { padding-top: 20px; font-size: var(--paragraph-size); line-height: 1.65; }
.impact-copy p:last-child { margin-bottom: 0; }
.impact-question { margin: 22px 0 0; color: var(--purple); font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.impact-button { margin-top: 13px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 54px max(40px, calc((100% - var(--max))/2)); background: var(--purple-deep); color: #fff; }
.cta h2 { margin: 0; color: #fff; }
.cta h2 span { color: var(--lime); }
.cta-action { max-width: 390px; }
.cta-action p { font-size: var(--paragraph-size); line-height: 1.6; }

footer { width: min(var(--max), calc(100% - 80px)); display: flex; align-items: center; gap: 27px; margin: 0 auto; padding: 24px 0 29px; color: var(--purple-deep); font-size: 10px; font-weight: 600; }
footer img { width: 100px; margin-right: auto; }
footer p { margin: 0; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .hero-content { margin-left: 54px; transform: none; }
  .rainfall-stat { right: 40px; }
  .site-header { width: 100%; }
}

@media (max-width: 800px) {
  .site-header { min-height: 70px; padding: 12px 24px; gap: 16px; }
  .brand { width: 125px; }
  .site-header nav { display: none; }
  .header-cta { margin-left: auto; padding: 11px 13px; font-size: 10px; }
  .hero { min-height: 830px; }
  .hero-image { inset: 0; opacity: .45; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.38)), url('../images/water-wise/community-water.png') 62% center/cover no-repeat; }
  .hero-content { width: calc(100% - 48px); padding: 132px 0 220px; margin: 0 24px; }
  .rainfall-stat { right: 24px; bottom: 24px; width: min(235px, calc(100% - 48px)); }
  .section { width: min(100% - 48px, var(--max)); padding: 52px 0; }
  .intro, .section-wide, .theatre, .impact { grid-template-columns: 1fr; gap: 0; }
  .intro { gap: 30px; }
  .story-image { min-height: 270px; }
  .story-copy, .theatre-copy { padding: 44px 24px; }
  .story-copy { min-height: 0; }
  .formats-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .formats-grid article, .formats-grid article:not(:first-child) { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--gray); }
  .formats-grid article:last-child { border-bottom: 0; }
  .theatre-image { min-height: 280px; }
  .impact { gap: 0; }
  .impact-copy { padding-top: 0; }
  .cta { display: block; padding: 50px 24px; }
  .cta-action { margin-top: 24px; }
  footer { width: calc(100% - 48px); flex-wrap: wrap; gap: 12px 22px; }
  footer img { flex-basis: 100%; margin-bottom: 4px; }
}
