/* Rockpile Geophysics — site styles
   Layout: survey-sheet grid. Navy field bands with contour overlays frame white "data plates";
   mono readout labels mark instrument details. */
:root {
  --navy: #253a5e;
  --navy-deep: #182840;
  --green: #2db87a;
  --green-ink: #1c8a59;
  --teal: #4f8281;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #16233a;
  --ink-2: #4a586e;
  --line: #dde3ea;
  --chip: #e8f0f4;
  --band: var(--navy);
  --band-ink: #eef3f8;
  --band-ink-2: #b7c4d6;
  --shadow: 0 1px 2px rgba(22, 35, 58, .06), 0 8px 24px rgba(22, 35, 58, .06);

  --f-display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1726; --surface: #152236; --ink: #e8eef6; --ink-2: #a3b1c4; --line: #26364e;
    --chip: #1c2d45; --green-ink: #4fd49a; --band: #0a1220; --band-ink: #eef3f8; --band-ink-2: #9fb0c6;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1726; --surface: #152236; --ink: #e8eef6; --ink-2: #a3b1c4; --line: #26364e;
  --chip: #1c2d45; --green-ink: #4fd49a; --band: #0a1220; --band-ink: #eef3f8; --band-ink-2: #9fb0c6;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.005em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); font-weight: 600; }
.band .eyebrow { color: var(--green); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.stack { display: grid; gap: 16px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  padding: 12px 20px; border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--green); color: #07261a; }
.btn-primary:hover { background: #26a46c; color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--band-ink); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--green); color: var(--ink); }

/* ---------- header ---------- */
.utility { background: var(--navy-deep); color: #c9d5e4; font-size: .82rem; font-family: var(--f-mono); }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.utility a { color: #e5edf6; text-decoration: none; }
.utility a:hover { color: var(--green); }
.utility .u-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000; overflow: visible; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand-word { display: grid; line-height: 1.05; }
.brand-word strong { font-family: var(--f-display); font-weight: 900; font-size: 1.28rem; letter-spacing: -.01em; }
.brand-word span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-family: var(--f-display); font-weight: 700; font-size: .98rem;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--r); }
.nav-top:hover, .nav li.open > .nav-top { color: var(--green-ink); }
.nav-top[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.dropdown { position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green);
  box-shadow: var(--shadow); padding: 8px; display: none; list-style: none; margin: 0; }
.dropdown.wide { display: none; grid-template-columns: repeat(2, minmax(220px, 1fr)); min-width: 520px; column-gap: 8px; }
.nav li:hover > .dropdown, .nav li.open > .dropdown { display: block; }
.nav li:hover > .dropdown.wide, .nav li.open > .dropdown.wide { display: grid; }
.nav li:last-child .dropdown, .nav li.align-right .dropdown { left: auto; right: 0; }
.dropdown a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: .93rem; border-radius: 4px; }
.dropdown a:hover { background: var(--chip); color: var(--ink); }
.dropdown .dd-label { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px 4px; }
.tag-drone { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px; align-self: center; white-space: nowrap; }
.nav-cta { margin-left: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; color: var(--ink); font-family: var(--f-mono); font-size: .8rem; }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; color: var(--ink); display: grid; place-items: center; margin-left: 6px; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav.show { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav-top { width: 100%; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-top[aria-current="page"] { box-shadow: none; color: var(--green-ink); }
  .dropdown, .dropdown.wide { position: static; box-shadow: none; border: 0; min-width: 0; padding: 4px 0 8px 10px; }
  .nav li:hover > .dropdown, .nav li:hover > .dropdown.wide { display: none; }
  .nav li.open > .dropdown { display: block; }
  .nav li.open > .dropdown.wide { display: grid; grid-template-columns: 1fr; }
  .nav-cta { margin: 14px 0 0; justify-content: center; }
  .theme-btn { margin: 10px 0 0; }
}
@media (max-width: 520px) {
  .brand img { height: 42px; }
  .brand-word strong { font-size: 1.08rem; }
  .brand-word span { display: none; }
  .utility .u-hide { display: none; }
}

/* ---------- bands & hero ---------- */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; isolation: isolate; }
.band h1, .band h2, .band h3 { color: #fff; }
.band .lead, .band .muted { color: var(--band-ink-2); }
.band::before { content: ""; position: absolute; inset: 0; background: url("../img/contours.svg") center / cover no-repeat; opacity: .13; z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-top: 18px; font-size: 1.18rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-family: var(--f-mono); font-size: .8rem; color: var(--band-ink-2); }
.hero-stats b { color: #fff; font-weight: 600; display: block; font-size: .95rem; }
.plate { background: #fff; border-radius: var(--r); padding: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); position: relative; }
.plate img { border-radius: 3px; width: 100%; }
.plate-read { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: #4a586e; padding: 8px 4px 2px; text-transform: uppercase; }
.plate-read b { color: #253a5e; }
.flightline { position: absolute; right: -8px; top: -14px; background: var(--green); color: #06251a; font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; padding: 5px 9px; border-radius: 3px; text-transform: uppercase; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.page-hero .wrap { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.page-hero .lead { font-size: 1.1rem; }
.crumbs { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--band-ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--band-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* ---------- aerial feature ---------- */
.aerial-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.aerial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.aerial-card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.aerial-card .spec { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; }
.aerial-card .spec { gap: 8px; }
.aerial-card .spec span { display: grid; gap: 1px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.aerial-card .spec b { color: var(--ink); font-weight: 500; font-size: .82rem; letter-spacing: 0; text-transform: none; }
.icon-sq { width: 44px; height: 44px; border-radius: var(--r); background: var(--chip); display: grid; place-items: center; color: var(--green-ink); }
@media (max-width: 1000px) { .aerial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aerial-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* ---------- application cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.app-card { background: var(--surface); padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); position: relative; transition: background .15s; }
.app-card:hover { background: var(--chip); color: var(--ink); }
.app-card h3 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.app-card p { color: var(--ink-2); font-size: .94rem; }
.app-card .more { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-top: 6px; }
@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }

/* ---------- methods strip / pages ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font-size: .86rem; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
a.chip:hover { border-color: var(--green); color: var(--ink); }
.band .chip { background: rgba(255,255,255,.08); color: #fff; }
.band a.chip:hover { border-color: var(--green); color: #fff; }

.with-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.side-nav { position: sticky; top: 100px; display: grid; gap: 18px; font-size: .92rem; }
.side-nav h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.side-nav a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.side-nav a:hover, .side-nav a.active { border-left-color: var(--green); color: var(--green-ink); }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; } .side-nav { position: static; display: none; } }

.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); display: grid; gap: 18px; scroll-margin-top: 100px; }
.method-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.method-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.method-cols > * { min-width: 0; }
@media (max-width: 760px) { .method-cols { grid-template-columns: 1fr; } }
.specs { width: 100%; border-collapse: collapse; font-size: .88rem; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs th { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-right: 12px; width: 44%; }
.group-title { display: flex; align-items: center; gap: 14px; margin: 44px 0 16px; }
.group-title:first-child { margin-top: 0; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.figure { border: 1px solid var(--line); border-radius: var(--r); padding: 8px; background: #fff; }
.figure figcaption { font-family: var(--f-mono); font-size: .72rem; color: #4a586e; padding: 8px 4px 2px; }
figure { margin: 0; }
.limits { font-size: .92rem; color: var(--ink-2); border-left: 3px solid var(--teal); padding-left: 14px; }

/* application detail */
.detail { display: grid; gap: 40px; }
.detail section { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col > * { min-width: 0; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; }
.example .eyebrow { color: var(--teal); }
.aside-card { background: var(--band); color: var(--band-ink); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; }
.aside-card h3 { color: #fff; }
.aside-card p { color: var(--band-ink-2); font-size: .92rem; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; justify-content: space-between; gap: 8px; }

/* ---------- about ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; align-content: start; }
.avatar { aspect-ratio: 4 / 3; background: var(--navy); display: grid; place-items: center; position: relative; overflow: hidden; max-width: 100%; }
.avatar::before { content: ""; position: absolute; inset: 0; background: url("../img/contours.svg") center / cover; opacity: .18; }
.avatar span { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; color: #fff; position: relative; }
.person-body { padding: 18px; display: grid; gap: 6px; }
.person-body .role { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); }
.person-body p { font-size: .92rem; color: var(--ink-2); }
.pending { color: var(--ink-2) !important; font-style: italic; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.news .meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 10px; }
.news .meta b { color: var(--green-ink); font-weight: 500; }
@media (max-width: 860px) { .news-list { grid-template-columns: 1fr; } }

.partners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.partner { aspect-ratio: 3 / 2; border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; background: var(--surface); color: var(--ink-2); font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; max-width: 100%; text-align: center; padding: 8px; }
.partner img { max-height: 70%; width: auto; }
@media (max-width: 860px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.values > div { display: grid; gap: 8px; border-top: 2px solid var(--green); padding-top: 16px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; align-content: start; text-align: left; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.g-item:hover { border-color: var(--green); }
.g-img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; max-width: 100%; }
.g-img img { width: 100%; height: 100%; object-fit: contain; }
.g-slot { background: var(--chip); width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-2); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.g-cap { padding: 14px 16px 16px; display: grid; gap: 4px; }
.g-cap small { color: var(--ink-2); font-size: .85rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.lightbox { position: fixed; inset: 0; background: rgba(6, 12, 22, .9); z-index: 100; display: grid; place-items: center; padding: 24px; }
.lightbox figure { max-width: min(1100px, 100%); display: grid; gap: 10px; }
.lightbox img { max-height: 80vh; width: auto; margin: auto; background: #fff; border-radius: 4px; }
.lightbox figcaption { color: #dfe7f1; font-size: .92rem; text-align: center; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; color: #16233a; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 18px; }
.c-row { display: grid; gap: 2px; }
.c-row .eyebrow { color: var(--ink-2); }
.c-row a, .c-row span { font-size: 1.08rem; font-weight: 600; color: var(--ink); text-decoration: none; word-break: break-word; }
.c-row a:hover { color: var(--green-ink); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.form-note { font-size: .88rem; color: var(--ink-2); }
.form-status { font-size: .92rem; padding: 12px 14px; border-radius: var(--r); background: var(--chip); }

/* ---------- CTA + footer ---------- */
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 64px); }
.cta h2 { max-width: 22ch; }
.footer { background: var(--navy-deep); color: #b9c6d7; font-size: .92rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 28px; }
.footer .wrap > * { min-width: 0; }
.footer h4 { color: #fff; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: #dfe7f1; text-decoration: none; }
.footer a:hover { color: var(--green); }
.f-brand { display: grid; gap: 14px; align-content: start; }
.f-logo { display: flex; align-items: center; gap: 12px; }
.f-logo .chipmark { background: #fff; border-radius: 8px; padding: 6px; display: grid; }
.f-logo img { height: 50px; width: auto; }
.f-logo strong { font-family: var(--f-display); font-weight: 900; color: #fff; font-size: 1.15rem; line-height: 1.1; }
.motto { font-family: var(--f-mono); color: var(--green); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.f-base { border-top: 1px solid rgba(255,255,255,.1); }
.f-base .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px; grid-template-columns: none; font-size: .8rem; font-family: var(--f-mono); }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer .wrap { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
.band .news h3, .band .example h3 { color: var(--ink); }
.band .news .muted { color: var(--ink-2); }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.partner-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.partner-card .role { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); font-weight: 600; }
.partner-card p { font-size: .95rem; }
.partner-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; place-items: center; aspect-ratio: 16 / 9; max-width: 100%; }
.partner-logo img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 960px) { .partner-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .partner-card { grid-template-columns: 1fr; } .partner-logo { max-width: 260px; } }
button:disabled { opacity: .6; cursor: progress; }

.f-hq { display: grid; gap: 8px; align-content: start; }
.f-hq h4 { margin-bottom: 4px; }
.f-city { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.f-hq address { font-style: normal; line-height: 1.5; }
.f-offices { gap: 14px !important; }
.f-offices li { display: grid; gap: 0; border-left: 2px solid var(--green); padding-left: 12px; }
.f-offices strong { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.f-offices span { font-size: .88rem; }

#stones, #tucson { cursor: default; user-select: none; -webkit-tap-highlight-color: transparent; }
#stones.nudge, #tucson.nudge { animation: nudge .18s ease-out; }
@keyframes nudge { 50% { transform: translateY(-2px) rotate(-3deg); } }
.hidden-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .hidden-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hidden-grid { grid-template-columns: 1fr; } }

.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: 1; }

/* ---- v2: Terracon / Tetra Tech inspired ---- */
.help { margin-top: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 18px 18px 14px; display: grid; gap: 12px; }
.help-label { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.help-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.help-links a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; color: var(--band-ink); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 500; }
.help-links a span { color: var(--green); transition: transform .15s; }
.help-links a:hover { color: #fff; }
.help-links a:hover span { transform: translateX(4px); }
@media (max-width: 520px) { .help-links { grid-template-columns: 1fr; } }

.statband { background: var(--surface); border-bottom: 1px solid var(--line); }
.statband .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 34px; }
.statband .wrap > div { display: grid; gap: 4px; border-left: 3px solid var(--green); padding-left: 16px; }
.statband b { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.statband span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .statband .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.textlink { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; color: var(--green-ink); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.textlink:hover { color: var(--ink); }
.textlink.light { color: var(--green); }
.textlink.light:hover { color: #fff; }

.feature .aerial-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: var(--band-ink); }
.feature .aerial-card h3 { color: #fff; }
.feature .aerial-card .muted { color: var(--band-ink-2); }
.feature .aerial-card .spec { border-top-color: rgba(255,255,255,.18); color: var(--band-ink-2); }
.feature .aerial-card .spec b { color: #fff; }
.feature .aerial-card:hover { border-color: var(--green); color: var(--band-ink); }
.feature .icon-sq { background: rgba(45,184,122,.15); color: var(--green); }

.stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.story { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.story:hover { transform: translateY(-3px); border-color: var(--green); color: var(--ink); }
.story-img { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; max-width: 100%; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.story:hover .story-img img { transform: scale(1.04); }
.story-body { padding: 18px; display: grid; gap: 8px; align-content: start; }
.story .tag { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.story p { color: var(--ink-2); font-size: .94rem; }
.story .more { font-family: var(--f-mono); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-top: 4px; }
@media (max-width: 1000px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stories { grid-template-columns: 1fr; } }

.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.sol-grid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.sol-grid a:hover { color: var(--green-ink); }
@media (max-width: 860px) { .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sol-grid { grid-template-columns: 1fr; } }
.cta .lead { max-width: 52ch; }

/* contact page (Hecla-style blocks) */
.cl-head { display: grid; gap: 8px; margin-bottom: 22px; }
.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.cl-block { display: grid; gap: 6px; align-content: start; border-top: 2px solid var(--ink); padding-top: 16px; }
.cl-block h3 { font-size: 1.3rem; }
.cl-tag { font-family: var(--f-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.cl-block address { font-style: normal; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.cl-block .muted { font-size: .95rem; }
.cl-line { display: flex; gap: 10px; align-items: baseline; }
.cl-k { font-family: var(--f-mono); font-weight: 700; color: var(--ink-2); width: 1.1em; }
.cl-line a { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.cl-line a:hover { color: var(--green-ink); }
.cl-mail { font-size: 1.05rem; color: var(--ink); }
@media (max-width: 860px) { .cl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cl-grid { grid-template-columns: 1fr; } }

/* work map */
.map-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.map-side { position: sticky; top: 100px; }
.map-fig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; overflow: hidden; }
.workmap { display: block; width: 100%; height: auto; }
.workmap .m-ctx { fill: var(--chip); stroke: var(--line); stroke-width: .6; }
.workmap .m-land { fill: var(--bg); }
.workmap .m-border { fill: none; stroke: var(--line); stroke-width: .8; }
.workmap .m-worked { fill: var(--green); fill-opacity: .88; stroke: var(--surface); stroke-width: .6; transition: fill-opacity .15s; }
.workmap .m-worked:hover { fill-opacity: 1; }
.workmap .m-lab { font: 700 13px var(--f-display); fill: #fff; pointer-events: none; }
.workmap .m-office circle { fill: var(--navy); stroke: #fff; stroke-width: 2.5; }
.workmap .m-olab { font: 700 14px var(--f-display); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4; stroke-linejoin: round; }
.map-side { display: grid; gap: 18px; }
.map-legend { display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.map-legend span { display: flex; align-items: center; gap: 10px; }
.map-legend i { width: 16px; height: 16px; border-radius: 3px; display: inline-block; }
.lg-w { background: var(--green); }
.lg-o { background: var(--navy); border-radius: 50% !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.map-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.map-list li { padding: 9px 2px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } .map-side { position: static; } .map-list { columns: 2; } }
:root[data-theme="dark"] .workmap .m-office circle { fill: #fff; stroke: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .workmap .m-office circle { fill: #fff; stroke: var(--navy); } }

/* events */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.event { display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ev-date { background: var(--navy); color: #fff; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 16px 6px; text-align: center; }
.ev-date span { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #b7c4d6; }
.ev-date b { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1.05; color: #fff; white-space: nowrap; }
.ev-body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.ev-body .tag { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.ev-body h3 { color: var(--ink); font-size: 1.12rem; }
.ev-where { font-weight: 600; color: var(--ink); font-size: .95rem; }
.ev-body .muted { font-size: .92rem; color: var(--ink-2); }
.ev-body .textlink { justify-self: start; font-size: .92rem; margin-top: 4px; }
@media (max-width: 1000px) { .events { grid-template-columns: 1fr; } }

.map-list a { display: flex; justify-content: space-between; color: var(--ink); text-decoration: none; }
.map-list a:hover { color: var(--green-ink); }
.map-list a span { color: var(--green-ink); }
.workmap a { cursor: pointer; }
.workmap a:hover .m-worked { fill-opacity: 1; fill: var(--green-ink); }
.workmap a:focus-visible .m-worked { stroke: var(--ink); stroke-width: 2; }

.cl-intro .lead a { color: var(--ink); font-weight: 600; text-decoration-color: var(--green); }
.cl-intro .lead a:hover { color: var(--green-ink); }
.cl-topics { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; max-width: 760px; }
.cl-topics li { display: block; color: var(--ink-2); font-size: .98rem; padding-left: 16px; position: relative; }
.cl-topics li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.cl-topics strong { color: var(--ink); font-weight: 600; }

/* slim talk bar (home, top) */
.talkbar { background: transparent; color: var(--band-ink); }
.talkbar .talk-inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: flex-end; gap: 10px 20px; flex-wrap: wrap; padding-block: 14px 0; }
.talkbar p { margin: 0; }
.talkbar strong { color: #fff !important; }
.hero .talkbar + .wrap { padding-top: clamp(28px, 4vw, 52px); }
.talkbar .btn { flex: none; }
.talkbar strong { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
@media (max-width: 640px) { .talkbar span { display: none; } }

.workmap .m-lab-dk { fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; font-size: 14px; }
.map-fig { padding: 4px; }

/* world map: full width, regions listed below */
.map-wrap { grid-template-columns: 1fr !important; gap: 18px; }
.map-side { position: static !important; grid-template-columns: auto 1fr; align-items: start; gap: 24px; }
.map-legend { padding-top: 10px; white-space: nowrap; }
.map-list { columns: 4; column-gap: 28px; border-top: 0; }
.map-list li { break-inside: avoid; }
@media (max-width: 860px) { .map-side { grid-template-columns: 1fr; } .map-list { columns: 2; } }

/* contact: centered form under heading */
.msg-center { max-width: 760px; display: grid; gap: 24px; }
.msg-center .cl-head { text-align: center; }
.msg-center .cl-head .lead { margin-inline: auto; }
.dropdown { z-index: 1001; }
.page-hero .lead-wide { max-width: none; }
.hero-center .wrap { justify-items: center; text-align: center; }
.center-head { text-align: center; }
.center-head .lead { max-width: none; margin-inline: auto; }
#message.section { padding-block: clamp(28px, 4vw, 44px); }
#message .msg-center { gap: 14px; }
#message .cl-head { margin-bottom: 0; }
#message + .section { padding-top: 8px !important; }
.map-list.nolink li span { display: block; }
/* nav: center the tabs in the space to the right of the logo */
@media (min-width: 1081px) {
  .site-header .nav { flex: 1; justify-content: center; position: relative; }
  .site-header .nav > ul { margin-inline: auto; }
  .site-header .nav .theme-btn { margin-left: 0; }
}
.full-banner { background: #c62828; color: #fff; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: .08em; padding: 16px var(--gutter); border-bottom: 3px solid #8e1b1b; }
@media (max-width: 640px) { .full-banner { font-size: .95rem; padding: 8px var(--gutter); letter-spacing: .05em; } }
body:has(.full-banner) .side-nav, body:has(.full-banner) .map-side { top: 160px; }
body:has(.full-banner) .method, body:has(.full-banner) [id] { scroll-margin-top: 160px; }
.full-banner { display: flex; align-items: center; justify-content: center; gap: 8px 24px; flex-wrap: wrap; }
.fb-exit { font-size: .62em; letter-spacing: .04em; color: #c62828; background: #fff; text-decoration: none; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.fb-exit:hover { background: #ffe5e5; }
/* resources */
.res-jump { background: var(--surface); border-bottom: 1px solid var(--line); }
.res-jump .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 14px; }
.res-jump a { font-family: var(--f-display); font-weight: 700; color: var(--ink); text-decoration: none; }
.res-jump a:hover { color: var(--green-ink); }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.proj-card h3 { margin: 0; }
.proj-where { margin: 0; font-size: .9rem; color: var(--ink-2); }
.deliv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.deliv-card { background: var(--surface); color: var(--ink); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.deliv-img { aspect-ratio: 16 / 9; background: #fff; overflow: hidden; }
.deliv-img img { width: 100%; height: 100%; object-fit: cover; }
.deliv-body { padding: 20px; display: grid; gap: 10px; align-content: start; }
.deliv-body h3 { margin: 0; color: var(--ink); }
.deliv-body .checks { font-size: .92rem; }
@media (max-width: 960px) { .proj-grid, .deliv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .proj-grid, .deliv-grid { grid-template-columns: 1fr; } }
.deliv-card .muted { color: var(--ink-2) !important; } .deliv-card .checks, .deliv-card .checks li { color: var(--ink) !important; }
