:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #262626;
  --muted: #6b6b6b;
  --accent: #d43b36;
  --accent-dark: #a82825;
  --line: #e7e1d9;
  --soft: #f3eee7;
  --max: 1160px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

main a:not(.button):not(.text-link) {
  color: revert;
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.08rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 2px solid var(--text);
  font-size: 20px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 650; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 1.2rem;
}

main { min-height: 65vh; }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 58px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.15; margin-top: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
h3 { font-size: 1.45rem; margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: #4a4a4a; max-width: 720px; }
.hero-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--soft);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  padding: 12px 18px;
  border-radius: 999px;
}
.button:hover { background: var(--accent-dark); }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }

.section { max-width: var(--max); margin: 0 auto; padding: 72px 24px; }
.section.tight { padding-top: 36px; }
.section-head { max-width: 780px; margin-bottom: 32px; }
.section p { max-width: 850px; }
.soft-section { background: var(--soft); border-block: 1px solid var(--line); }
.soft-section .section { padding-top: 68px; padding-bottom: 68px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.035);
}
/*
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
*/
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f3eee7;
  display: block;
}
.card-body { padding: 24px; }
.card-body p { color: #555; }
.text-link { color: var(--accent); font-weight: 750; text-decoration: none; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #eee;
}
.gallery-grid img.portrait { height: 430px; object-position: top; }

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 34px;
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.content-stack { display: grid; gap: 54px; }
.story-block {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.8fr);
  gap: 38px;
  align-items: start;
}
.story-block.reverse { grid-template-columns: minmax(320px,.8fr) minmax(0,1fr); }
.story-block.reverse .story-image { order: -1; }
.story-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.image-row img { width: 100%; height: 230px; object-fit: cover; border-radius: 12px; }

.contact-card {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-list { display: grid; gap: 12px; }
.contact-list a { color: var(--accent); font-weight: 700; }

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .92rem;
}
.footer-inner a { text-decoration: none; }

.note {
  background: #fff8e8;
  border: 1px solid #efdca7;
  border-radius: 12px;
  padding: 15px 18px;
  color: #5d502f;
}

@media (max-width: 900px) {
  .hero, .story-block, .story-block.reverse { grid-template-columns: 1fr; }
  .story-block.reverse .story-image { order: initial; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; gap: 34px; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0 4px;
  }
  .nav.open { display: flex; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img, .gallery-grid img.portrait { height: auto; max-height: none; }
  .image-row { grid-template-columns: 1fr; }
  .image-row img { height: auto; }
  .section, .page-hero { padding-left: 18px; padding-right: 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .footer-inner { flex-direction: column; }
}


/* testsite2 additions */
.cards.impact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card .card-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 750;
  color: #555;
  margin-bottom: 14px;
}
.placeholder-copy { color: #5b5b5b; }
.placeholder-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
}
.placeholder-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}
@media (max-width: 900px) {
  .cards.impact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .placeholder-gallery { grid-template-columns: 1fr; }
}
