/* Layout concept: a field guide to the Group. Bold uppercase brand headings, green bands
   like the brand book's page headers, and a Stream Blue river line that threads sections together. */
:root {
  --green: #074E24;        /* Jungle Dark Green */
  --green-deep: #04361a;
  --sage: #597E3F;         /* Forest Sage */
  --stream: #91BFD7;       /* Stream Blue */
  --stream-soft: #dcebf3;
  --ink: #0c1a11;          /* black, tinted toward the green */
  --mist: #F4F4F4;         /* Off-White / Mist */
  --paper: #FFFFFF;
  --muted: #4b5b50;
  --line: rgba(7, 78, 36, .16);
  --on-green: #FFFFFF;
  --on-green-muted: rgba(255, 255, 255, .78);

  --font: Aptos, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-alt: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);   /* 60px */
  --h2: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);       /* 48px */
  --h3: clamp(1.6rem, 1.2rem + 1.7vw, 2.25rem);    /* 36px */
  --h4: clamp(1.45rem, 1.15rem + 1.2vw, 2rem);     /* 32px */
  --h5: 1.5rem;                                    /* 24px */
  --h6: 1.25rem;                                   /* 20px */
  --body: 1.125rem;                                /* 18px */
  --small: 1rem;                                   /* 16px */
  --label: .8125rem;

  --wrap: 1200px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--sage); }
:focus-visible { outline: 3px solid var(--stream); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--on-green); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 16px; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--h1); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: var(--h2); text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }
p { margin: 0; }
.prose { display: grid; gap: 1.1em; max-width: 66ch; }
.prose p { color: inherit; }
.lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.375rem); line-height: 1.55; }
.muted { color: var(--muted); }

.label {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  color: var(--sage);
}
.label::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--stream); }
.on-green .label { color: var(--stream); }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-mist { background: var(--mist); }
.on-green { background: var(--green); color: var(--on-green); }
.on-green a { color: var(--on-green); }
.on-green .muted, .on-green .prose { color: var(--on-green-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 .95rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  padding: 1rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1em; height: 1em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-deep); color: var(--on-green); }
.btn-stream, .on-green .btn-stream { background: var(--stream); color: var(--green-deep); }
.btn-stream:hover, .on-green .btn-stream:hover { background: #b3d4e5; color: var(--green-deep); }
.btn-ghost { border-color: currentColor; color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--on-green); border-color: var(--green); }
.on-green .btn-ghost { color: var(--on-green); }
.on-green .btn-ghost:hover { background: var(--on-green); color: var(--green); border-color: var(--on-green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.textlink svg { width: 1em; height: 1em; transition: transform .2s; }
.textlink:hover svg { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand img { width: 52px; height: 52px; }
.brand-word { font-weight: 800; font-size: .95rem; line-height: 1.02; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font: 700 .82rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 12px 12px; border-radius: 4px; background: none; border: 0; cursor: pointer;
}
.nav a.nav-link:hover, .nav button.nav-link:hover { color: var(--green); background: var(--mist); }
.nav a.nav-link[aria-current="page"], .nav .has-sub.current > a.nav-link { color: var(--green); box-shadow: inset 0 -3px 0 var(--stream); }
.has-sub { position: relative; }
.has-sub .chev { width: 12px; height: 12px; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 330px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(4, 54, 26, .14); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .18s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 4px; text-decoration: none; color: var(--ink); }
.submenu a:hover { background: var(--mist); }
.submenu img { width: 34px; height: 34px; }
.submenu strong { display: block; font-size: .95rem; line-height: 1.2; }
.submenu span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.header-cta { margin-left: 10px; padding: .8rem 1.1rem; font-size: .8rem; }
.menu-toggle { display: none; background: none; border: 2px solid var(--green); color: var(--green); border-radius: 4px; padding: 8px 12px; font: 700 .8rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: calc(77px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--paper); display: none; flex-direction: column; align-items: stretch; overflow-y: auto;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a.nav-link { padding: 16px 8px; font-size: .95rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 4px 0 8px 8px; }
  .has-sub .chev { display: none; }
  .nav a.nav-link[aria-current="page"], .nav .has-sub.current > a.nav-link { box-shadow: inset 4px 0 0 var(--stream); padding-left: 16px; }
  .header-cta { margin: 16px 0 0; justify-content: center; }
}

/* Page heads (inner pages) */
.page-head { position: relative; overflow: hidden; background: var(--green); color: var(--on-green); }
.page-head .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 96px); display: grid; gap: 18px; }
.page-head p.lede { color: var(--on-green-muted); max-width: 60ch; }
.page-head .crumbs { font-size: .85rem; color: var(--on-green-muted); }
.page-head .crumbs a { color: var(--on-green-muted); }
.page-head .head-icon { width: 76px; height: 76px; background: var(--paper); border-radius: 50%; padding: 12px; }
.leafline { position: absolute; inset: auto 0 0 0; height: 100%; pointer-events: none; opacity: .9; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; background: var(--green); color: var(--on-green); isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg { width: 100%; height: 100%; }
.hero .wrap { padding-block: clamp(64px, 9vw, 128px) clamp(120px, 14vw, 200px); display: grid; gap: 28px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 1.3rem + 4vw, 3.75rem); }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: var(--stream); }
.hero .lede { max-width: 54ch; color: var(--on-green-muted); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--stream); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-top: -64px; position: relative; z-index: 2; box-shadow: 0 20px 50px rgba(4, 54, 26, .10); }
.stat { padding: 26px 24px; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Generic grids */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split > * { min-width: 0; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 880px) { .split, .split.even { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 760px) { .section-head.row { grid-template-columns: minmax(0, 1fr); } }

/* County ribbon */
.counties { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.county { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 700; background: var(--paper); }
.county i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.county.home i { background: var(--green); box-shadow: 0 0 0 3px var(--stream-soft); }

/* Sector cards */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sector { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 28px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.sector:hover { background: #f7faf7; color: var(--ink); }
.sector::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--stream); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.sector:hover::after { transform: scaleX(1); }
.sector img { width: 56px; height: 56px; }
.sector .kind { font-size: var(--label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.sector h3 { font-size: var(--h5); }
.sector p { font-size: 1rem; color: var(--muted); }
.sector .textlink { color: var(--green); margin-top: 6px; }
@media (max-width: 980px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sectors { grid-template-columns: minmax(0, 1fr); } }

/* Founder feature */
.founder-feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.founder-feature > * { min-width: 0; }
@media (max-width: 880px) { .founder-feature { grid-template-columns: minmax(0, 1fr); } }
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--sage), var(--green-deep)); display: grid; place-items: center; color: var(--on-green);
}
.portrait .mono { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 800; letter-spacing: .04em; opacity: .95; }
.portrait .ph-note { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.8); display: flex; gap: 8px; align-items: center; }
.portrait .ph-note svg { width: 16px; height: 16px; flex: none; }
.portrait .ring { position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
blockquote.quote { margin: 0; display: grid; gap: 16px; }
blockquote.quote p { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.1rem); line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
blockquote.quote p::before { content: "\201C"; color: var(--stream); margin-right: .05em; }
blockquote.quote p::after { content: "\201D"; color: var(--stream); }
blockquote.quote footer { font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.on-green blockquote.quote footer { color: var(--stream); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* River divider */
.river { display: block; width: 100%; height: 64px; color: var(--stream); }

/* About: story */
.story { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); }
.story-line { position: relative; }
.story-line svg { position: sticky; top: 120px; width: 90px; height: 420px; }
@media (max-width: 700px) { .story { grid-template-columns: minmax(0, 1fr); } .story-line { display: none; } }
.pull { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem); font-weight: 700; line-height: 1.3; color: var(--green); border-left: 4px solid var(--stream); padding-left: 20px; max-width: 32ch; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.principle header { display: flex; gap: 16px; align-items: center; }
.principle header img { width: 52px; height: 52px; }
.principle h3 { font-size: var(--h5); }
.principle .first { font-weight: 700; color: var(--green); }
.principle .prose { font-size: 1.02rem; color: var(--muted); }

/* Guides (vision/mission/promise) */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.guide { padding: 8px clamp(20px, 3vw, 36px) 8px 0; display: grid; gap: 14px; align-content: start; }
.guide + .guide { border-left: 1px solid rgba(255,255,255,.2); padding-left: clamp(20px, 3vw, 36px); }
.guide h3 { font-size: var(--h6); text-transform: uppercase; letter-spacing: .12em; color: var(--stream); }
.guide p { font-size: 1.15rem; line-height: 1.55; }
@media (max-width: 880px) { .guides { grid-template-columns: minmax(0, 1fr); gap: 28px; } .guide + .guide { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 28px; } }
.motto { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.motto img { width: clamp(84px, 10vw, 128px); height: auto; }
.motto p { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.9rem); font-weight: 800; line-height: 1.12; text-transform: uppercase; letter-spacing: .005em; }
@media (max-width: 560px) { .motto { grid-template-columns: minmax(0, 1fr); } }

/* Companies overview */
.portfolio { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pf-row { display: grid; grid-template-columns: 76px minmax(0, 3fr) minmax(0, 5fr) auto; gap: clamp(16px, 3vw, 40px); padding-block: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--line); align-items: start; }
.pf-row > * { min-width: 0; }
.pf-row img { width: 64px; height: 64px; }
.pf-row h3 { font-size: var(--h5); }
.pf-row .tag { font-style: italic; color: var(--sage); margin-top: 6px; font-size: 1.02rem; }
.pf-row ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .98rem; }
.pf-row ul li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--stream); border-radius: 50%; margin-right: 10px; transform: translateY(-2px); }
@media (max-width: 900px) { .pf-row { grid-template-columns: 56px minmax(0, 1fr); } .pf-row img { width: 48px; height: 48px; } .pf-row > :nth-child(3), .pf-row > :nth-child(4) { grid-column: 2; } }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.matrix th, .matrix td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--mist); }
.matrix tbody th { text-align: left; font-weight: 700; }
.matrix tbody th small { display: block; font-weight: 400; color: var(--muted); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.dot.none { background: transparent; border: 1px dashed rgba(7,78,36,.25); width: 10px; height: 10px; }
.matrix th.nimba { background: var(--stream-soft); color: var(--green); }
.matrix td.nimba { background: rgba(145,191,215,.12); }

/* Company detail */
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail > * { min-width: 0; }
@media (max-width: 920px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.contact-card { position: sticky; top: 104px; background: var(--mist); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; border-top: 4px solid var(--green); }
.contact-card h3 { font-size: var(--h6); text-transform: uppercase; letter-spacing: .1em; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sage); }
.contact-card dd { margin: 2px 0 0; font-size: 1rem; overflow-wrap: anywhere; }
.contact-card dd a { text-decoration: none; font-weight: 700; }
.contact-card dd a:hover { text-decoration: underline; }
@media (max-width: 920px) { .contact-card { position: static; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 20px; background: var(--paper); display: grid; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.fact b { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

.property { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.property > * { min-width: 0; }
@media (max-width: 880px) { .property { grid-template-columns: minmax(0, 1fr); } }
.property .where { font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.property h2 { font-size: var(--h3); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.amenities li { font-size: .88rem; padding: 6px 12px; background: var(--mist); border-radius: 999px; }
.mini-contact { display: grid; gap: 6px; font-size: .98rem; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); border-left: 4px solid var(--green); }
.mini-contact b { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.mini-contact a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

.photo-slot { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); background:
  repeating-linear-gradient(135deg, rgba(7,78,36,.05) 0 12px, transparent 12px 24px), var(--stream-soft);
  border: 1px dashed rgba(7,78,36,.3); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--green); }
.photo-slot div { display: grid; gap: 8px; justify-items: center; font-size: .9rem; }
.photo-slot svg { width: 30px; height: 30px; opacity: .7; }
.photo-slot b { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

.info-block { display: grid; gap: 10px; padding-block: 24px; border-top: 1px solid var(--line); }
.info-block h3 { font-size: var(--h6); }
.place-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.place-list li { font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.place-group { display: grid; gap: 8px; }
.place-group h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }

.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.loc { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; background: var(--paper); }
.loc small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sage); }
.loc strong { font-size: 1.2rem; }
.loc a { text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); }
.pager a:hover { border-color: var(--green); }
.pager a.next { text-align: right; }
.pager small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sage); }
.pager strong { font-size: 1.1rem; }
@media (max-width: 600px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager a.next { text-align: left; } }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 700 .82rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide .photo-slot { aspect-ratio: 8 / 3; }
.gallery figcaption { font-size: .95rem; display: flex; justify-content: space-between; gap: 12px; }
.gallery figcaption span { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } .gallery figure.wide { grid-column: auto; } .gallery figure.wide .photo-slot { aspect-ratio: 4 / 3; } }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--stream-soft); border-radius: var(--radius); font-size: .95rem; color: var(--green-deep); margin-bottom: 28px; }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.corp { background: var(--green); color: var(--on-green); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 20px; }
.corp img { width: 84px; }
.corp dl { margin: 0; display: grid; gap: 16px; }
.corp dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--stream); }
.corp dd { margin: 2px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.corp a { color: var(--on-green); font-weight: 700; }
form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select { font: 400 1rem/1.4 var(--font); padding: 13px 14px; border: 1px solid rgba(7,78,36,.3); border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--stream); outline-offset: 0; border-color: var(--green); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-status { grid-column: 1 / -1; font-size: .95rem; padding: 14px 16px; border-radius: 4px; background: var(--stream-soft); color: var(--green-deep); }
@media (max-width: 560px) { form.contact-form { grid-template-columns: minmax(0, 1fr); } }

.directory { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dir-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 40px); padding-block: 28px; border-bottom: 1px solid var(--line); }
.dir-row > * { min-width: 0; }
.dir-row h3 { font-size: var(--h6); display: flex; gap: 12px; align-items: center; }
.dir-row h3 img { width: 40px; height: 40px; }
.dir-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; }
.dir-entry { display: grid; gap: 4px; font-size: .97rem; align-content: start; }
.dir-entry strong { font-size: 1.05rem; }
.dir-entry .where { color: var(--muted); font-size: .9rem; }
.dir-entry a { text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dir-entry a:hover { text-decoration: underline; }
@media (max-width: 760px) { .dir-row { grid-template-columns: minmax(0, 1fr); } }

/* News */
.posts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 48px); padding-block: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.post > * { min-width: 0; }
.post time { font-weight: 700; color: var(--sage); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.post .by { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.post h2 { font-size: var(--h4); text-transform: none; letter-spacing: 0; }
.post .excerpt { font-weight: 700; color: var(--green); }
.post details summary { cursor: pointer; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.post details summary::-webkit-details-marker { display: none; }
.post details[open] summary { margin-bottom: 14px; }
@media (max-width: 760px) { .post { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--on-green-muted); font-size: var(--small); }
.site-footer a { color: var(--on-green); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-green); }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr)); gap: 40px; padding-block: 72px 48px; }
.foot-top > * { min-width: 0; }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand img { width: 96px; }
.foot-brand p.motto-sm { color: var(--on-green); font-weight: 700; font-size: 1.1rem; line-height: 1.35; max-width: 26ch; }
.site-footer h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stream); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }
@media (max-width: 960px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .rise:nth-child(2) { animation-delay: .08s; }
  .hero .rise:nth-child(3) { animation-delay: .16s; }
  .hero .rise:nth-child(4) { animation-delay: .24s; }
  .river-flow { stroke-dasharray: 14 18; animation: flow 6s linear infinite; }
}
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes flow { to { stroke-dashoffset: -320; } }
@media (max-width: 760px) {
  .hero-art { opacity: .3; }
}

/* Photos added through the CMS */
.photo-slot.has-photo { padding: 0; border: 0; background: var(--mist); overflow: hidden; }
.photo-slot.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive layer: every screen size and orientation ----------
   Phones (portrait and short landscape), tablets, laptops and very wide screens.
   Uses small-viewport units (svh/dvh) so mobile browser bars never hide content,
   and safe-area insets so notches and home indicators never cover it. */
:root { --hdr: 76px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: manual; }
.wrap > *, .hero .wrap > *, .page-head .wrap > * { min-width: 0; }
.header-inner { min-height: var(--hdr); }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.btn, .menu-toggle, .filters button { touch-action: manipulation; }

/* Mobile menu sits right under the header, whatever height it has */
@media (max-width: 1080px) {
  /* backdrop-filter makes the header the containing block for the fixed menu, which
     collapsed the open menu to a sliver on some browsers: drop it on small screens */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav { inset: calc(var(--hdr) + 1px + env(safe-area-inset-top, 0px)) 0 0 0; overscroll-behavior: contain;
    padding-bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 16px)); }
  .menu-toggle { min-height: 44px; align-items: center; justify-content: center; }
  .nav a.nav-link { display: flex; }
  /* the page behind an open menu stays put */
  html:has(.nav.open), html:has(.nav.open) body { overflow: hidden; }
}
/* Between tablet and laptop the full nav is tight: trim spacing so it never wraps */
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav a.nav-link { padding: 12px 8px; letter-spacing: .07em; }
  .header-cta { margin-left: 6px; padding: .75rem .9rem; }
  .brand-word { font-size: .85rem; }
}

/* Home hero: fills the screen it is on, minus the header */
.hero { min-height: min(calc(100vh - var(--hdr)), 900px); min-height: min(calc(100svh - var(--hdr)), 900px); display: grid; align-items: center; }
.hero .wrap { padding-block: clamp(40px, min(8vw, 9vh), 120px) clamp(100px, min(11vw, 15vh), 168px); }
/* headline scales with width and, on wide-but-short laptop screens, with height too */
.hero h1 { font-size: clamp(1.75rem, .95rem + 5.4vw, 3.75rem); font-size: clamp(1.75rem, min(.95rem + 5.4vw, 5.9svh + .45rem), 3.75rem); }

/* Small phones */
@media (max-width: 380px) {
  :root { --hdr: 64px; }
  .brand img { width: 42px; height: 42px; }
  .brand-word { font-size: .82rem; }
  .btn { padding: .9rem 1.1rem; font-size: .88rem; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; justify-content: center; }
  .stat { padding: 20px 16px; }
  .sector { padding: 22px 18px; }
  .hero-meta { letter-spacing: .1em; font-size: .78rem; }
}
@media (max-width: 520px) {
  .stat span { letter-spacing: .08em; }
  .gallery figcaption { flex-direction: column; gap: 2px; }
  .gallery figcaption span { white-space: normal; }
}

/* Contact directory: business name above its entries until there is room beside them */
@media (max-width: 960px) { .dir-row { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Tablets in portrait: use the extra width for two columns where it reads well */
@media (min-width: 600px) and (max-width: 880px) and (orientation: portrait) {
  .founder-feature { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}

/* Short landscape screens (phones on their side, small laptops with zoom) */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --hdr: 56px; }
  .brand img { width: 38px; height: 38px; }
  .brand-word { font-size: .68rem; line-height: 1; }
  .menu-toggle { min-height: 40px; padding: 6px 12px; }
  .hero { min-height: 0; }
  .hero .wrap { padding-block: 28px 92px; gap: 16px; }
  .hero h1 { font-size: clamp(1.6rem, 1rem + 3vw, 2.4rem); max-width: 22ch; }
  .hero .lede { font-size: 1rem; max-width: 60ch; }
  .hero-meta { font-size: .75rem; }
  .hero-art { opacity: .45; }
  .scroll-cue { display: none; }
  .page-head .wrap { padding-block: 32px 36px; gap: 12px; }
  .page-head .head-icon { width: 56px; height: 56px; padding: 9px; }
  .section { padding-block: 48px; }
  .section.tight { padding-block: 36px; }
  .stats { margin-top: -56px; }
  .story-line svg, .contact-card { position: static; }
  .story-line svg { height: 300px; }
  .portrait { width: min(100%, 64vh); width: min(100%, 64svh); margin-inline: auto; }
  .nav a.nav-link { padding: 12px 8px; }
  .submenu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  /* phones on their side are wide enough for side by side text */
  .split, .split.even { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .founder-feature { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .contact-grid, .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-top { padding-block: 48px 32px; }
}
@media (orientation: landscape) and (max-height: 540px) and (max-width: 640px) {
  .split, .split.even, .founder-feature, .contact-grid, .detail { grid-template-columns: minmax(0, 1fr); }
}

/* Tall sticky items only stick when the screen is tall enough to hold them */
@media (max-height: 700px) {
  .story-line svg { top: calc(var(--hdr) + 16px); height: min(420px, calc(100vh - var(--hdr) - 48px)); }
  .contact-card { top: calc(var(--hdr) + 16px); }
}

/* Large desktops and very wide screens: a little wider, a little larger */
@media (min-width: 1600px) {
  :root { --wrap: 1320px; --hdr: 84px; }
  html { font-size: 106.25%; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1480px; --hdr: 92px; }
  html { font-size: 118.75%; }
  .brand img { width: 60px; height: 60px; }
  .hero { min-height: min(calc(100svh - var(--hdr)), 1100px); }
}
@media (min-width: 3000px) {
  :root { --wrap: 1680px; }
  html { font-size: 131.25%; }
}

/* Touch screens: no hover-only reveals, and comfortable tap targets */
@media (hover: none) {
  .has-sub:hover .submenu { transform: none; }
  .filters button { min-height: 44px; }
  .site-footer ul a { display: inline-block; padding-block: 4px; }
}

@media print {
  .site-header, .menu-toggle, .scroll-progress, .to-top, .scroll-cue, .marquee, .hero-art, .leafline { display: none !important; }
  .hero, .page-head, .on-green { background: none !important; color: #000 !important; min-height: 0 !important; }
}
