:root {
  --cream: #E3D5C9;
  --brown: #4E2B21;
  --red: #C93A22;
  --dark: #241009;
  --serif: "Erode", serif;
  --sans: "Supreme", sans-serif;
  --fs-hero: clamp(38px, 5.8vw, 96px);
  --fs-h2: clamp(30px, 4vw, 68px);
  --fs-h3: clamp(24px, 2.8vw, 44px);
  --fs-body: clamp(16px, 1.25vw, 20px);
  --fs-small: clamp(14px, 1vw, 17px);
  --pad: 6vw;
  --line: 1.5px;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--serif); margin: 0 0 .55em; }
p { margin: 0 0 1em; max-width: 52ch; }

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

:focus-visible { outline: var(--line) solid var(--red); outline-offset: 3px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--cream);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  padding: 16px var(--pad);
}
.wordmark { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.8vw, 27px); margin-right: auto; display: flex; align-items: center; gap: .5em; }
.mark { width: 1.05em; height: 1.05em; flex: none; }
.nav nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 500; font-size: var(--fs-small); }
.nav nav a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: var(--line);
  background: var(--red);
  vertical-align: middle;
  transition: width .24s var(--ease), margin-right .24s var(--ease);
}
.nav nav a:hover::before { width: 1.1em; margin-right: .45em; }

.band { min-height: 100vh; padding: 16vh var(--pad); }
.light { background: var(--cream); color: var(--brown); }
.dark-band { background: var(--brown); color: var(--cream); }
.red-band { background: var(--red); color: var(--cream); }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 10vh;
  padding-bottom: 11vh;
  position: relative;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.06) brightness(.92);
  mix-blend-mode: screen;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #D8C7B8;
  mix-blend-mode: multiply;
}
.hero h1, .hero .standfirst { position: relative; }
.hero h1 {
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: .99;
  letter-spacing: -.015em;
  max-width: 13ch;
}
.standfirst {
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 22px);
  max-width: 40ch;
  margin: 1.5em 0 0;
}

.marked::before {
  content: "";
  display: block;
  width: 46px;
  height: var(--line);
  background: var(--red);
  margin-bottom: 1.3em;
}
.dark-band .marked::before, .red-band .marked::before { background: currentColor; }

h2 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.03; max-width: 18ch; }
h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.05; max-width: 20ch; }

.three { display: grid; gap: 10vh 4vw; align-content: center; }
.three h2 { font-size: var(--fs-h3); line-height: 1.05; }

.carousel { max-width: 620px; margin-top: 9vh; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  background: var(--brown);
  color: var(--cream);
  padding: clamp(30px, 4.5vw, 58px);
  opacity: 0;
  transition: opacity .38s var(--ease);
}
.slide.is-active { opacity: 1; }
.slide p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 2.1vw, 32px);
  line-height: 1.18;
  margin: 0;
  max-width: none;
}
.seg-bar { display: flex; gap: 9px; margin-top: 16px; }
.seg {
  flex: 1;
  background: none;
  border: 0;
  padding: 9px 0;
  cursor: pointer;
  position: relative;
}
.seg::before {
  content: "";
  display: block;
  height: var(--line);
  background: var(--brown);
}
.seg .fill {
  position: absolute;
  left: 0;
  top: calc(50% - 2px);
  height: 4px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

#how-we-work, .expertise { min-height: 0; }
#how-we-work { padding-bottom: 8vh; }
.expertise { padding-top: 6vh; padding-bottom: 12vh; }
.ex-slides { display: grid; margin-top: 4vh; }
.ex-slide { grid-area: 1 / 1; opacity: 0; pointer-events: none; transition: opacity .38s var(--ease); }
.ex-slide.is-active { opacity: 1; pointer-events: auto; }
.ex-slide h3 { margin-top: 0; }
.ex-nav { display: flex; align-items: center; gap: 14px; margin-top: 3.5em; }
.ex-btn {
  width: 54px;
  height: 54px;
  background: transparent;
  color: var(--brown);
  border: var(--line) solid var(--brown);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease);
}
.ex-btn:hover { background: var(--brown); color: var(--cream); }
.ex-dots { display: flex; gap: 8px; margin-left: 12px; }
.ex-dots i { width: 8px; height: 8px; background: var(--brown); opacity: .3; transition: opacity .28s var(--ease), background .28s var(--ease); }
.ex-dots i.on { opacity: 1; background: var(--red); }
.ex-img { aspect-ratio: 3 / 2; margin-top: 6vh; }

.giving-lead {
  display: flex;
  flex-wrap: wrap;
  gap: 6vh 7vw;
  align-items: flex-start;
}
.giving-lead > div:first-child { max-width: 52ch; }
.photo { width: min(64vw, 360px); aspect-ratio: 1 / 1; margin-top: 3vh; }
@media (min-width: 800px) {
  .photo { flex: 1; width: auto; max-width: none; aspect-ratio: auto; align-self: stretch; min-height: 360px; }
}
.local { margin-top: 14vh; }

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 clamp(24px, 6vw, 96px);
  border-bottom: var(--line) solid currentColor;
  margin-top: 9vh;
}
.logo {
  display: flex;
  align-items: flex-end;
  padding-bottom: 26px;
}
.logo img { display: block; width: auto; }
.logo:nth-child(1) img { height: clamp(72px, 8vw, 118px); }
.logo:nth-child(2) img { height: clamp(56px, 6vw, 88px); }
.logo:nth-child(3) img { height: clamp(38px, 4vw, 58px); }

.contact-band {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.email-btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--brown);
  color: var(--cream);
  font-weight: 500;
  padding: 1.05em 1.7em;
  margin-top: 2.5em;
  box-shadow: inset 0 0 0 var(--line) var(--brown);
  transition: background .28s var(--ease), color .28s var(--ease);
}
.email-btn:hover { background: transparent; color: var(--brown); }

.site-footer { background: var(--brown); color: var(--cream); padding: 11vh var(--pad) 5vh; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 4vh 9vw; }
.footer-cols p { margin: 0; font-size: var(--fs-small); font-weight: 500; line-height: 1.7; }
.site-footer a { font-weight: 500; }
.legal { margin: 9vh 0 0; font-size: 14px; font-weight: 500; max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

.legal-page { padding: 20vh var(--pad) 14vh; }
.legal-page h1 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.03; margin-bottom: 1.2em; }
.legal-page h2 { font-size: clamp(20px, 1.6vw, 26px); max-width: none; margin: 2.2em 0 .6em; }
.legal-page p, .legal-page ul { max-width: 68ch; }
.legal-page ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-page li { margin-bottom: .35em; }

.cookie { position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 20; pointer-events: none; }
.cookie-card {
  pointer-events: auto;
  max-width: 460px;
  background: var(--brown);
  color: var(--cream);
  padding: 26px 28px;
  box-shadow: 0 12px 40px rgba(36, 16, 9, .28);
}
.cookie-card p { font-size: var(--fs-small); margin: 0 0 1.2em; max-width: none; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions button {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-small);
  padding: .75em 1.5em;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease);
}
.cookie-accept { background: var(--red); color: var(--cream); border: var(--line) solid var(--red); }
.cookie-accept:hover { background: transparent; color: var(--cream); }
.cookie-decline { background: transparent; color: var(--cream); border: var(--line) solid var(--cream); }
.cookie-decline:hover { background: var(--cream); color: var(--brown); }
.cookie-tab {
  pointer-events: auto;
  background: var(--brown);
  color: var(--cream);
  border: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  padding: .6em 1.2em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(36, 16, 9, .24);
}
.cookie-tab:hover { background: var(--dark); }

.duotone { position: relative; background: var(--brown); overflow: hidden; }
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: screen;
  transition: filter 500ms var(--ease);
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.duotone:hover img { filter: grayscale(.45) contrast(1.04); }
.warm { overflow: hidden; }
.warm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.72) sepia(.12) contrast(1.02);
}

@media (min-width: 800px) {
  .three { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .three .block { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  .three .block h2 { align-self: start; }
  .carousel { margin-left: 0; margin-top: 0; }
  #how-we-work { display: grid; grid-template-columns: minmax(0, 42ch) 1fr; gap: 4vh 5vw; align-content: center; align-items: start; padding-top: 8vh; padding-bottom: 8vh; }
  #how-we-work .carousel { max-width: 640px; justify-self: end; width: 100%; margin-top: calc(var(--line) + 1.3 * var(--fs-h2)); }
  .giving-lead .photo { margin-top: 9vh; }

  .expertise { display: grid; grid-template-columns: minmax(0, 42ch) 1fr; gap: 0 5vw; align-items: stretch; }
  .ex-img { aspect-ratio: auto; margin-top: 0; width: 100%; max-width: 640px; justify-self: end; }
  .ex-img img { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
