/* Fox Water Collective — colors sampled from the v2 logo and the brand screenshot. */
:root {
  --bg: #1f2327;          /* charcoal base under the speckle */
  --bg-raise: #262c33;
  --blue: #2f5d73;        /* water in the logo */
  --blue-light: #4f88a3;
  --blue-pale: #9cc0d2;   /* light tint of the logo blue, for the company axis */
  --orange: #cd5d1e;      /* fox */
  --gold: #b8913f;        /* wordmark */
  --gold-soft: #d4b06a;
  --text: #e6e3dc;
  --muted: #9aa3ab;
  --line: rgba(255, 255, 255, 0.08);
  /* Brand fonts: only for the Fox Water Collective and Fox Water Management lockups. */
  --brand-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --brand-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  /* Everything else. */
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blue speckle: fine fractal noise tinted toward the logo blue, fixed over the page. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background: var(--bg);
}
body::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.62  0 0 0 0 0.78  0 0 0 1.4 -0.5'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.22;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(31, 35, 39, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--brand-serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav nav a:hover,
.nav nav a[aria-current="page"] { color: var(--gold-soft); }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 16px 80px;
  position: relative;
}
.hero-logo {
  width: clamp(160px, 26vw, 260px);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  animation: rise 1.1s ease-out both;
}
.wordmark {
  margin: 44px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: normal;
  color: var(--gold);
  animation: rise 1.1s 0.15s ease-out both;
}
.wordmark-main {
  font-family: var(--brand-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.wordmark-sub {
  margin-top: 12px;
  font-family: var(--brand-sans);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* balance trailing tracking */
  text-transform: uppercase;
}
.hero-line {
  max-width: 34em;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  animation: rise 1.1s 0.3s ease-out both;
}
.scroll-cue {
  position: absolute;
  bottom: 32px;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(184, 145, 63, 0.5);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 2s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes cue {
  0%, 100% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-light);
}
h2 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}
.lede {
  max-width: 40em;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Pillars: three open columns divided by gold hairlines. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 72px auto 0;
}
.pillar { padding: 4px 36px; }
.pillar + .pillar { border-left: 1px solid rgba(184, 145, 63, 0.35); }
.pillar-num {
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.pillar h3 {
  margin: 10px 0 10px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.pillar p { margin: 0 auto; max-width: 17em; color: var(--muted); font-size: 0.95rem; }

/* Companies: circular logos on a horizontal axis; the chosen one opens below. */
.axis {
  --d: clamp(54px, 13vw, 128px);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
  margin: 64px auto 0;
}
.axis::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 192, 210, 0.55) 12%, rgba(156, 192, 210, 0.55) 88%, transparent);
}
.co {
  position: relative;
  flex: none;
  width: var(--d);
  height: var(--d);
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.35);
  filter: grayscale(1);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s, filter 0.35s;
}
/* Logos stay black and white until hovered, focused or opened. */
.co:hover,
.co:focus-visible,
.co[aria-expanded="true"] { filter: none; }
.co img { width: 100%; height: 100%; object-fit: cover; }
.co:hover { transform: translateY(-3px); }
.co:focus-visible { outline: 2px solid var(--blue-pale); outline-offset: 4px; }
.co[aria-expanded="true"] {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue-pale), 0 12px 32px rgba(0, 0, 0, 0.4);
}
.axis.has-open .co:not([aria-expanded="true"]) { opacity: 0.5; }
.axis.has-open .co:not([aria-expanded="true"]):hover { opacity: 0.85; }

/* Fox Water Management: the Collective lockup on the folder's charcoal. */
.co-fw {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #3a3a3a;
  color: var(--gold);
}
.co-fw img { width: 46%; height: auto; margin-bottom: calc(var(--d) * 0.05); }
.fw-mark-main {
  font-family: var(--brand-serif);
  font-weight: 600;
  font-size: calc(var(--d) * 0.115);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.fw-mark-sub {
  margin-top: calc(var(--d) * 0.035);
  margin-right: -0.42em;
  font-family: var(--brand-sans);
  font-size: calc(var(--d) * 0.045);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.co-panels {
  max-width: 36em;
  min-height: 120px;
  margin: 44px auto 0;
}
.co-hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.co-panel { animation: rise 0.45s ease-out both; }
.co-name {
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-pale);
  text-decoration: none;
}
a.co-name { transition: color 0.2s; }
a.co-name:hover { color: var(--text); }
.co-panel p { margin: 10px 0 0; color: var(--muted); font-size: 1.02rem; }

/* About page */
.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 170px 28px 100px;
  text-align: center;
}
.page-head h1 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 64px auto 0;
  padding: 0;
}
.values li { padding: 4px 36px; }
.values li + li { border-left: 1px solid rgba(184, 145, 63, 0.35); }
.values h3,
.person h3 {
  margin: 0 0 10px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
.values p { margin: 0 auto; max-width: 16em; color: var(--muted); font-size: 0.95rem; }
.people {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 64px;
}
.person { flex: 1; max-width: 24em; }
.person h3 { margin-bottom: 12px; }
.person p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* Timeline: years down a gold center line. */
.timeline {
  list-style: none;
  max-width: 34em;
  margin: 56px auto 0;
  padding: 0;
}
.timeline li { position: relative; padding: 0 0 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  height: 28px;
  border-left: 1px solid rgba(184, 145, 63, 0.5);
}
.timeline .year {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.timeline h3 {
  margin: 6px 0 8px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
.timeline p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { text-align: center; }
.contact-logo { margin: 0 auto 26px; width: 72px; opacity: 0.95; }
.button {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--gold); color: var(--bg); }

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-sub {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Phones and small tablets */
@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .nav-brand span { display: none; }
  .nav nav { gap: 18px; }
  .nav nav a { font-size: 0.68rem; letter-spacing: 0.16em; }
  .section { padding: 80px 16px; }
  .page-head { padding: 130px 16px 70px; }
  .values { grid-template-columns: 1fr; margin-top: 48px; }
  .values li { padding: 0; }
  .values li + li { border-left: 0; margin-top: 28px; padding-top: 28px; position: relative; }
  .values li + li::before,
  .person + .person::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 40px;
    margin-left: -20px;
    border-top: 1px solid rgba(184, 145, 63, 0.5);
  }
  .people { flex-direction: column; align-items: center; gap: 0; margin-top: 48px; }
  .person + .person { margin-top: 28px; padding-top: 28px; position: relative; }
  .pillars { grid-template-columns: 1fr; margin-top: 56px; }
  .pillar { padding: 0; }
  .pillar + .pillar { border-left: 0; margin-top: 28px; padding-top: 28px; position: relative; }
  .pillar + .pillar::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 40px;
    margin-left: -20px;
    border-top: 1px solid rgba(184, 145, 63, 0.5);
  }
  .footer { padding: 24px 16px; flex-direction: column; gap: 8px; }
}

@media (max-width: 440px) {
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 0.62rem; letter-spacing: 0.1em; }
}

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