/* Partners Gold — shared styles for every page */

:root {
  --paper: #F8F7F5;
  --paper-2: #F1EEE9;
  --ink: #16252D;        /* nav, headings */
  --text: #3A444A;       /* body copy */
  --muted: #5F5F5F;
  --teal: #1D5E70;       /* from the logo */
  --teal-dark: #154655;
  --gold: #F2B01E;       /* from the logo */
  --gold-dark: #9A6A00;  /* gold that is readable on light backgrounds */
  --night: #191919;
  --line: #E2DED6;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand img { width: 240px; height: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav-links a:hover { color: var(--teal); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
/* "Introduction" (links to the home page): gold and a little larger. #C48A00 is the logo gold, darkened enough to read on the light header */
.nav-links a.nav-feature { color: #C48A00; font-size: 1.1875rem; font-weight: 700; }
.nav-links a.nav-feature:hover { color: var(--teal); }
.nav-toggle {
  display: none;
  font: 600 1rem var(--sans);
  color: var(--ink);
  background: none;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  align-self: flex-start;
  display: inline-block;
  font: 600 1.0625rem var(--sans);
  color: #fff;
  background: var(--teal);
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 3px;
  transition: background .15s;
}
.btn:hover { background: var(--teal-dark); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.split > * { min-width: 0; }

/* ---------- Home: hero ---------- */
.hero { position: relative; min-height: 656px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.42)); }
.hero-inner { position: relative; z-index: 1; padding: 80px 24px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.2rem);
  font-weight: 800;
  max-width: 16ch;
  margin: 0 auto;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-cta {
  display: inline-block;
  margin-top: 36px;
  font: 700 1.375rem var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  padding: 6px 2px;
  transition: color .15s;
}
.hero-cta:hover { color: var(--gold); }

/* ---------- Home: insight ---------- */
.photo-tall { border-radius: 6px; overflow: hidden; min-height: 420px; }
.photo-tall img { width: 100%; height: 100%; object-fit: cover; }
.insight { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.insight h2 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); font-weight: 800; }
.insight p { margin: 0; font-size: 1.1875rem; }

/* ---------- Home: forum ---------- */
.forum { background: var(--paper-2); }
.forum-text { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.forum-label { background: var(--ink); color: #fff; padding: 28px 32px; border-left: 6px solid var(--gold); }
.forum-label h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.forum-link { margin: 0; font: 600 1.25rem var(--sans); }
.forum-link a { color: var(--gold-dark); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.forum-link a:hover { color: var(--teal); }
.forum-photo { justify-self: center; width: 100%; max-width: 500px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -18px rgba(22,37,45,.45); }
.forum-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home: portfolio ---------- */
.portfolio { position: relative; padding: 120px 0; overflow: hidden; }
.portfolio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portfolio-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(25,25,25,.9);
  color: #E8E6E1;
  padding: 56px 56px 48px;
  border-radius: 6px;
  backdrop-filter: blur(2px);
}
.portfolio-card h2 { color: #fff; text-align: center; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; margin-bottom: 32px; }
.portfolio-card h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin: 20px auto 0; }
.portfolio-card p { margin: 0 0 1.1em; }
.portfolio-card p:last-child { margin-bottom: 0; }
.portfolio-card strong { color: var(--gold); font-weight: 600; }

/* ---------- Projects ---------- */
.banner { position: relative; min-height: 380px; display: grid; align-items: center; text-align: center; overflow: hidden; background: #8DA4AC; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,37,45,.25), rgba(22,37,45,.5)); }
.banner .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.banner h1 { color: #fff; font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.2rem); font-weight: 800; max-width: 18ch; margin: 0 auto; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.gold-word { color: var(--gold); }
/* Projects: tall windmill photo; show the band from the sky down to just below the windmill */
.banner > img.banner-windmill { object-position: 50% 33%; }

.report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.report-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 800; }
.report-viewer { display: block; width: 100%; height: 82vh; min-height: 520px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.report-fallback { padding: 32px; margin: 0; }
.report-fallback a { color: var(--teal); }

.gallery-section { background: var(--paper-2); }
.gallery { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 20px; align-items: stretch; }
.gallery figure { margin: 0; border-radius: 6px; overflow: hidden; min-height: 360px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.history { position: relative; padding: 120px 0; overflow: hidden; background: #3D403B; }
.history > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.history-card { position: relative; max-width: 860px; margin: 0 auto; color: #E8E6E1; }
.history-card h2 { color: #fff; text-align: center; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.8rem); font-weight: 800; margin-bottom: 40px; }
.history-card h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin: 22px auto 0; }
.history-card p { margin: 0 0 1.1em; font-size: 1.1875rem; }
.history-card p:last-child { margin-bottom: 0; }
.history { scroll-margin-top: 16px; }
.history-card .kicker { margin: 0 0 12px; text-align: center; font: 700 1rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
/* Gold "Meet the Project" link just under the report viewer on Projects */
.gold-link { margin: 28px auto 0; text-align: center; font: 700 1.375rem var(--sans); letter-spacing: .04em; }
.gold-link a { color: #C48A00; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.gold-link a:hover { color: var(--teal); }
/* Meet the Project: pointer to Ron Barr's other projects */
.other-projects { background: var(--paper-2); }
.other-projects .wrap { max-width: 820px; text-align: center; }
.other-projects h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.other-projects p { margin: 0; }
.other-projects a { color: var(--teal); font-weight: 600; }

.career { align-items: center; }
.career-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; margin-bottom: 32px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: flex; align-items: center; gap: 20px; font: 600 1.125rem/1.35 var(--sans); color: var(--ink); }
.timeline .year { flex: none; width: 84px; padding: 14px 0; text-align: center; background: var(--paper-2); border-radius: 4px; border-left: 4px solid var(--gold); font-size: .95rem; letter-spacing: .06em; color: var(--muted); }
.timeline small { font: 400 1rem var(--serif); color: var(--text); }
.career-photos { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.career-photos img { grid-row: 1; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 20px 40px -18px rgba(22,37,45,.45); }
.cp-1 { grid-column: 1 / 8; }
.cp-2 { grid-column: 6 / 13; margin-top: 100px; position: relative; }

/* ---------- Contact ---------- */
.contact .split { align-items: start; }
.tag { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .9375rem var(--sans); letter-spacing: .02em; }
.contact-title { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); font-weight: 800; }
.contact-intro { margin: 16px 0 32px; }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 1rem var(--sans); color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field small { font-size: .9375rem; color: var(--muted); }
/* 16px+ text stops iPhones zooming into the field; 48px+ height is an easy tap target */
.field input, .field textarea {
  width: 100%; min-height: 48px;
  font: 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #C9C3B8; border-radius: 6px;
  padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,94,112,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { border: 0; cursor: pointer; min-height: 52px; }
.btn[disabled] { opacity: .6; cursor: default; }
.contact-side { display: grid; gap: 24px; }
.contact-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.hours { background: var(--paper-2); border-left: 4px solid var(--gold); border-radius: 4px; padding: 20px 24px; }
.hours h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; }
.hours p { margin: 0; }
.contact-status .wrap { max-width: 720px; }
.contact-status h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; margin-bottom: 20px; }
.contact-status p { margin: 0 0 1em; }
.contact-status a { color: var(--teal); }
.confirm-form { margin: 0; }

/* ---------- News ---------- */
.page-head .news-lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 500; line-height: 1.5; letter-spacing: 0; max-width: 60ch; }
.news { padding-top: 48px; }
.news-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 24px; align-items: start; }
.news-col { display: grid; gap: 24px; }
.news-col img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 28px -16px rgba(22,37,45,.45); }
.news-col a { display: block; }
.news-col a:hover img { outline: 3px solid var(--gold); outline-offset: 2px; }
.news-note { margin: -8px 0 0; font-size: 1rem; color: var(--muted); font-style: italic; }
.news-title { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); font-weight: 800; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 48px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-grid img { width: 320px; height: auto; }
.site-footer address { font-style: normal; font-size: 1rem; line-height: 1.7; color: var(--text); }
.site-footer address strong { font-family: var(--sans); color: var(--ink); font-weight: 700; }
.site-footer address a { color: var(--teal); text-decoration: none; }
.site-footer address a:hover { text-decoration: underline; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.125rem; }
  .nav-links a.nav-feature { font-size: 1.25rem; }
  .brand img { width: 180px; }
  .hero { min-height: 520px; }
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .photo-tall { min-height: 280px; max-height: 420px; }
  .portfolio { padding: 64px 0; }
  .portfolio-card { padding: 36px 24px 32px; }
  .footer-grid img { width: 240px; }
  .news-grid { grid-template-columns: 1fr; }
  .btn-block { width: 100%; text-align: center; }
  .contact-side { gap: 16px; }
  .banner { min-height: 280px; }
  .report-viewer { height: 70vh; min-height: 420px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery .g-wide { grid-column: 1 / -1; }
  .gallery figure { min-height: 240px; }
  .history { padding: 72px 0; }
  .cp-2 { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Management: team cards ---------- */
.page-head { padding: 72px 0 8px; }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); font-weight: 800; }
.page-head p { margin: 16px 0 0; max-width: 60ch; }
.team { padding: 64px 0 96px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; list-style: none; margin: 0; padding: 0; }
.member {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(22,37,45,.08);
  padding: 20px 24px;
  font-family: var(--sans);
  transition: box-shadow .15s, border-color .15s;
}
.member-initials {
  flex: none;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #1F2B4D;
  color: var(--gold);
  font: 700 1.0625rem Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
}
.member-head { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 400; line-height: 1.35; letter-spacing: 0; }
.member-name { font: 700 1.0625rem var(--sans); color: var(--ink); }
.member-role { font: italic 500 1.0625rem var(--sans); color: #8E3B2C; margin-left: 6px; }
.member-role::before { content: "\2014\00a0"; }
.member p { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--ink); }
/* Names with a bio are buttons; the whole card is clickable */
button.member-name {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: rgba(29,94,112,.35);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
button.member-name::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.member.has-bio:hover { border-color: var(--gold); box-shadow: 0 6px 18px -8px rgba(22,37,45,.35); }
.member.has-bio:hover button.member-name { color: var(--teal); text-decoration-color: var(--gold); }

/* ---------- Bio popup ---------- */
.bio-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(85vh, 860px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55);
  overflow: hidden;
}
.bio-dialog[open] { display: flex; flex-direction: column; }
.bio-dialog::backdrop { background: rgba(16,24,30,.62); }
.bio-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); color: #fff;
  padding: 18px 20px 18px 28px;
  border-bottom: 4px solid var(--gold);
}
.bio-top h2 { color: #fff; font-size: 1.5rem; font-weight: 700; }
.bio-top p { margin: 4px 0 0; font: italic 600 1rem var(--sans); color: var(--gold); }
.bio-close {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  border: 0; cursor: pointer;
  font: 700 1.75rem/1 var(--sans);
  transition: background .15s, transform .15s;
}
.bio-close:hover { background: #FFC53D; transform: scale(1.06); }
.bio-body { overflow-y: auto; padding: 28px 28px 32px; scrollbar-gutter: stable; }
.bio-body p { margin: 0 0 1em; }
.bio-body p:last-child { margin-bottom: 0; }
.bio-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.bio-body .bio-lead { font: italic 600 1.0625rem var(--sans); color: var(--teal); }
.bio-src[hidden] { display: none; }

@media (max-width: 860px) {
  .page-head { padding: 48px 0 0; }
  .team { padding: 28px 0 64px; }
  .team-grid { grid-template-columns: 1fr; }
  .member { padding: 18px; gap: 16px; }
  .member-initials { width: 48px; height: 48px; font-size: 1rem; }
  .member-role { display: block; margin: 2px 0 0; }
  .member-role::before { content: none; }
  .bio-top { padding: 14px 14px 14px 20px; }
  .bio-top h2 { font-size: 1.25rem; }
  .bio-body { padding: 22px 20px 26px; }
}
