/* GeoServices — Minnesota geotechnical practice
   Palette from the GS mark: charcoal, paper, gold, iron red, navy. */

:root {
  --ink: #12110f;
  --char: #1c1a17;
  --char-2: #2a2622;
  --paper: #f3eee4;
  --paper-2: #e8e0d2;
  --rule: #d4c9b4;
  --muted: #5e574c;
  --gold: #d4af37;
  --gold-2: #c49a22;
  --gold-hi: #e8c85a;
  --red: #8b1a1a;
  --red-deep: #6a1414;
  --navy: #1e3a8a;
  --navy-deep: #162e6e;
  --peat: #3a2a22;
  --till: #7a6550;
  --sand: #c4a36a;
  --clay: #9c3b2a;
  --iron: #a34a28;
  --lake: #4a5a6a;
  --header-h: 3.85rem;
  --serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --max: 74rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 5vw, 3.85rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.95rem); margin: 0 0 0.55rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }
address { font-style: normal; margin: 0 0 0.9rem; }
.lede { font-size: 1.18rem; max-width: 38rem; color: var(--char-2); }
.lede.tight { margin-bottom: 0; }
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.5rem;
}
.kicker-gold { color: var(--gold-hi); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.4rem 1.1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--gold-hi); }
.brand img {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  background: #000;
  border-radius: 2px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-place {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav {
  display: flex;
  gap: 1.05rem;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold-hi); }
.header-phone {
  flex: none;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.42rem 0.75rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.header-phone:hover { background: var(--gold-hi); color: var(--ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--paper);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
}
.header-strata,
.footer-strata {
  height: 6px;
  background: linear-gradient(
    to right,
    var(--peat) 0 12%,
    var(--sand) 12% 28%,
    var(--clay) 28% 42%,
    var(--gold) 42% 55%,
    var(--till) 55% 70%,
    var(--navy) 70% 84%,
    var(--iron) 84% 100%
  );
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-phone {
    order: 3;
    padding: 0.38rem 0.55rem;
    font-size: 0.9rem;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + 6px);
    background: var(--char);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 0.75rem;
    margin: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.8rem 1.15rem;
    border-bottom: 1px solid var(--char-2);
  }
}

/* Full-bleed photo hero */
.hero-photo {
  position: relative;
  min-height: min(88vh, 46rem);
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(105deg, rgba(18,17,15,0.88) 0%, rgba(18,17,15,0.55) 48%, rgba(18,17,15,0.18) 100%),
    var(--hero);
  background-size: cover;
  background-position: center 40%;
}
.hero-photo .hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.2rem 1.2rem 3.6rem;
  min-height: min(88vh, 46rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-copy { max-width: 40rem; }
.hero-photo h1 { color: var(--paper); max-width: 22ch; }
.hero-photo .lede { color: var(--paper-2); }
.hero-photo .kicker { color: var(--gold-hi); }
.hero-photo .btn-ghost {
  color: var(--paper);
  border-color: var(--gold);
}
.hero-photo .btn-ghost:hover { background: var(--gold); color: var(--ink); }

.page-hero-photo {
  position: relative;
  min-height: min(52vh, 28rem);
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(105deg, rgba(18,17,15,0.86) 0%, rgba(18,17,15,0.5) 55%, rgba(18,17,15,0.22) 100%),
    var(--hero);
  background-size: cover;
  background-position: center;
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem 1.2rem 2.6rem;
  min-height: min(52vh, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-hero-photo h1,
.page-hero-photo .lede { color: var(--paper); }
.page-hero-photo .lede { color: var(--paper-2); max-width: 36rem; }
.page-hero-photo .kicker { color: var(--gold-hi); }

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.1rem 1.2rem 0.4rem;
}
.page-hero .lede { color: var(--muted); }
.onelog-hero { padding-bottom: 1.2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.12rem;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-2) 100%);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 22px rgba(18,17,15,0.22);
  border-color: transparent;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #f0d56a 0%, var(--gold-hi) 50%, var(--gold) 100%);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 10px 28px rgba(18,17,15,0.28);
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: var(--gold);
}
.btn-ghost-light:hover { background: var(--gold); color: var(--ink); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.1rem 1.2rem;
}
.section.alt {
  background: var(--paper-2);
  max-width: none;
  padding-left: max(1.2rem, calc(50vw - 37rem));
  padding-right: max(1.2rem, calc(50vw - 37rem));
}
.section-head { margin-bottom: 1.25rem; max-width: 42rem; }

.card-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0 1.1rem 1.1rem;
}
.card-strip {
  height: 7px;
  margin: 0 -1.1rem 0.9rem;
  background: linear-gradient(to right, var(--peat), var(--sand), var(--clay), var(--gold), var(--navy));
}
.card a { font-weight: 600; }

.nap-grid {
  display: grid;
  gap: 1.3rem;
}
@media (min-width: 720px) { .nap-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
.quote-panel {
  background: var(--char);
  color: var(--paper);
  padding: 1.5rem 1.3rem;
}
.quote-panel h2 { color: var(--paper); }
.quote-panel p { color: var(--paper-2); }

.split {
  display: grid;
  gap: 1.3rem;
}
@media (min-width: 720px) { .split { grid-template-columns: 1.15fr 0.85fr; gap: 2.2rem; align-items: start; } }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.spec-list li {
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-grid article {
  border-top: 3px solid var(--gold);
  padding-top: 0.75rem;
}
.feature-grid article:nth-child(2) { border-top-color: var(--red); }
.feature-grid article:nth-child(3) { border-top-color: var(--navy); }
.feature-grid article:nth-child(4) { border-top-color: var(--iron); }
.feature-grid article:nth-child(5) { border-top-color: var(--till); }
.feature-grid article:nth-child(6) { border-top-color: var(--lake); }

.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(212,175,55,0.12), transparent 50%),
    linear-gradient(160deg, #161412 0%, var(--ink) 55%, #0c0b0a 100%);
  color: var(--paper);
  max-width: none;
  padding: 3rem max(1.2rem, calc(50vw - 37rem)) 3.2rem;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, var(--peat), var(--gold), var(--navy)) 1;
}
.cta-band h2 { color: var(--paper); font-size: clamp(1.55rem, 3vw, 2.15rem); }
.cta-band p { color: var(--paper-2); max-width: 38rem; }
.trial-note { margin-top: 1.2rem; font-size: 0.95rem; }
.trial-note a { color: var(--gold-hi); }

.aside-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.2rem 1.15rem;
  border-top: 6px solid var(--gold);
}
.person {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-grid {
  display: grid;
  gap: 1.8rem;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
form { display: grid; gap: 0.75rem; }
label {
  display: grid;
  gap: 0.28rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.opt { font-weight: 400; color: var(--muted); }
input, textarea, select {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--till);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form-note { font-size: 0.92rem; color: var(--muted); }
.form-row {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.site-footer {
  background: var(--ink);
  color: var(--paper-2);
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.7rem 1.2rem 2rem;
  display: grid;
  gap: 1.3rem;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.3fr 0.7fr 1fr; } }
.footer-name {
  font-family: var(--serif);
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 600;
}
.site-footer a { color: var(--gold-hi); }
.site-footer a:hover { color: #fff; }
.privacy { font-size: 0.82rem; color: var(--sand); max-width: 22rem; }
.onelog-dev {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.2rem 1.4rem;
  color: var(--sand);
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 420px) {
  .brand-place { display: none; }
  .header-phone { font-size: 0.82rem; padding: 0.36rem 0.45rem; }
}

.photo-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0 0 1.05rem;
  display: flex;
  flex-direction: column;
}
.photo-card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  display: block;
}
.photo-card .card-body { padding: 0.9rem 1.05rem 0; }
.photo-card a { font-weight: 600; }

.split-photo { margin: 0; }
.split-photo img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  display: block;
}
.split-photo figcaption {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.hub-grid {
  display: grid;
  gap: 0.95rem;
}
@media (min-width: 720px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card {
  background: #fff;
  border: 1px solid var(--rule);
  display: grid;
}
.hub-card img {
  width: 100%;
  height: 13.5rem;
  object-fit: cover;
  display: block;
}
.hub-card .card-body { padding: 1rem 1.1rem 1.15rem; }
.hub-card a { font-weight: 600; }

.map-embed {
  width: 100%;
  min-height: 17rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 17rem;
  border: 0;
}

.footer-quiet {
  font-size: 0.84rem;
  color: var(--sand);
}
.footer-quiet a { color: var(--sand); }
.footer-quiet a:hover { color: var(--gold-hi); }

/* Services dropdown */
.nav-item { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: 0.28rem; }
.nav-parent::after {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% - 0.12rem);
  left: 0;
  min-width: 18rem;
  background: var(--char);
  border: 1px solid var(--char-2);
  padding: 0.35rem 0;
  z-index: 60;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.nav-sub a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-sub a:hover,
.nav-sub a[aria-current="page"] { color: var(--gold-hi); background: rgba(0,0,0,0.25); }
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { display: block; }

@media (max-width: 860px) {
  .nav-item { display: contents; }
  .nav-parent { padding: 0.8rem 1.15rem; border-bottom: 1px solid var(--char-2); }
  .nav-parent::after { display: none; }
  .nav-sub {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.3rem;
    background: var(--ink);
  }
  .nav-sub a {
    padding: 0.6rem 1.15rem 0.6rem 1.7rem;
    border-bottom: 1px solid var(--char-2);
    font-size: 0.88rem;
    color: var(--sand);
  }
}

.test-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) { .test-grid { grid-template-columns: 1fr 1fr; } }
.test-grid article {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  border-top: 4px solid var(--gold);
}
.test-grid article:nth-child(2) { border-top-color: var(--red); }
.test-grid article:nth-child(3) { border-top-color: var(--navy); }
.test-grid article:nth-child(4) { border-top-color: var(--iron); }
.test-grid article:nth-child(5) { border-top-color: var(--till); }
.test-grid article:nth-child(6) { border-top-color: var(--lake); }

/* Work gallery — field and lab, not named jobs */
.work-gallery-wrap { padding-top: 2rem; padding-bottom: 1.4rem; }
.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
@media (min-width: 800px) {
  .work-gallery {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .work-gallery figure:nth-child(1) {
    grid-row: span 2;
  }
  .work-gallery figure:nth-child(1) img { height: 100%; min-height: 28rem; }
}
.work-gallery figure {
  margin: 0;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.work-gallery img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
}
.work-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.7rem 0.55rem;
  background: linear-gradient(to top, rgba(18,17,15,0.88), rgba(18,17,15,0));
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.gallery-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.do-grid {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 720px) { .do-grid { grid-template-columns: repeat(3, 1fr); } }
.do-item {
  background: #fff;
  border-top: 4px solid var(--gold);
  padding: 0.95rem 1rem 1rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.do-item:nth-child(2) { border-top-color: var(--red); }
.do-item:nth-child(3) { border-top-color: var(--navy); }
.do-item h3 { font-size: 1.08rem; }
.do-item p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

.hero-photo-caption {
  position: absolute;
  right: 1.2rem;
  bottom: 0.65rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(243,238,228,0.88);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.photo-band { margin: 0.4rem 0 0; }
.photo-band img {
  width: 100%;
  height: min(46vh, 26rem);
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-band figcaption {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.45rem 1.2rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (min-width: 720px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .card-grid.four { grid-template-columns: repeat(4, 1fr); }
}
.team-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  max-width: 40rem;
}
.team-list li {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.team-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  background: #000;
  border-radius: 2px;
}
.team-list .person { margin: 0 0 0.12rem; font-size: 1.12rem; }
.team-title { margin: 0; color: var(--muted); font-size: 0.92rem; }

@media (min-width: 1040px) {
  .do-grid { grid-template-columns: repeat(4, 1fr); }
  .hub-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.do-item:nth-child(4) { border-top-color: var(--iron); }
.do-item:nth-child(5) { border-top-color: var(--till); }
.do-item:nth-child(6) { border-top-color: var(--lake); }
.do-item:nth-child(7) { border-top-color: var(--gold); }
.do-item:nth-child(8) { border-top-color: var(--red); }
.do-item a { font-weight: 600; display: inline-block; margin-top: 0.45rem; }
.related-links { font-weight: 500; }
.related-links a { font-weight: 600; }

.mail-dir {
  list-style: none;
  margin: 0.4rem 0 1.1rem;
  padding: 0;
  border-top: 1px solid var(--rule);
  max-width: 32rem;
}
.mail-dir li {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.6rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (max-width: 520px) {
  .mail-dir li { grid-template-columns: 1fr; gap: 0.15rem; }
}
.mail-dir .role { font-weight: 500; color: var(--ink); }
.footer-mail {
  font-size: 0.9rem;
  margin-top: 0.55rem;
}
.footer-mail a { display: inline; }
.footer-mail span { display: block; line-height: 1.55; }

/* Capability catalog — complete-looking field/lab list */
.caps {
  background: #fff;
  border: 1px solid var(--rule);
}
.caps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--char);
  background: var(--paper-2);
}
.caps-tabs button {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.85rem 1.1rem 0.7rem;
  cursor: pointer;
  color: var(--muted);
}
.caps-tabs button:hover { color: var(--ink); }
.caps-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: #fff;
  border-bottom-color: var(--gold);
}
.caps-panel { padding: 1.15rem 1.2rem 1.3rem; }
.caps-panel[hidden] { display: none; }
.caps-panel h3 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}
.caps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 2rem;
}
@media (min-width: 640px) {
  .caps-list { columns: 2; }
}
.caps-list li {
  break-inside: avoid;
  padding: 0.42rem 0 0.42rem 0.95rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-weight: 500;
  font-size: 0.97rem;
}
.caps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--gold);
}
.caps-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
  max-width: 46rem;
}

.hub-card .card-body p:last-of-type { margin-bottom: 0.55rem; }
.nav-sub { min-width: 19.5rem; }

@media (min-width: 720px) {
  .card-grid.six { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .card-grid.six { grid-template-columns: repeat(3, 1fr); }
}
.nav-sub { min-width: 20rem; }

/* —— Showcase layer: cinematic hero, process, OneLog, dock —— */
:root { --mono: "IBM Plex Mono", ui-monospace, monospace; --dock-h: 3.6rem; }

.header-strata,
.footer-strata {
  background-size: 220% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .header-strata {
    animation: strata-shift 16s linear infinite alternate;
  }
}
@keyframes strata-shift {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

/* Cinematic full-viewport hero */
.hero-cinematic {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute;
  inset: -5%;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media video.is-playing + .hero-poster { opacity: 0; }
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 55% at 18% 78%, rgba(212,175,55,0.16), transparent 55%),
    linear-gradient(105deg, rgba(12,11,10,0.94) 0%, rgba(18,17,15,0.72) 38%, rgba(18,17,15,0.28) 68%, rgba(18,17,15,0.12) 100%),
    linear-gradient(to top, rgba(12,11,10,0.88) 0%, rgba(18,17,15,0.35) 28%, transparent 52%);
  pointer-events: none;
}
.hero-scrim::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(to right, var(--peat), var(--gold), var(--clay), var(--navy), var(--iron));
  opacity: 0.95;
}
.hero-cinematic .hero {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.2rem 4.2rem;
  width: 100%;
}
.hero-cinematic h1 {
  color: var(--paper);
  font-size: clamp(2.75rem, 7.4vw, 5.35rem);
  max-width: 13ch;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);
}
.hero-cinematic .hero-copy {
  position: relative;
  padding-left: 1.05rem;
}
.hero-cinematic .hero-copy::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem; bottom: 0.35rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold-hi), var(--gold), transparent);
  border-radius: 2px;
}
.hero-cinematic .lede {
  color: var(--paper-2);
  font-size: 1.14rem;
  max-width: 36rem;
  margin-top: 0.85rem;
}
.hero-cinematic .kicker { color: var(--gold-hi); }
.hero-cinematic .btn-ghost {
  color: var(--paper);
  border-color: var(--gold);
}
.hero-cinematic .btn-ghost:hover { background: var(--gold); color: var(--ink); }
.hero-cinematic .hero-photo-caption {
  z-index: 2;
  left: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    animation: kenburns 28s ease-out forwards;
  }
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.6%, -1.2%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cinematic .hero-copy {
    animation: hero-reveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}
@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Process strip */
.process-band {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
  padding: 0;
}
.process-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.8rem 1.2rem 2rem;
}
.process-band .kicker { color: var(--gold-hi); }
.process-band h2 { color: var(--paper); max-width: 28rem; }
.process-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(212,175,55,0.28);
}
@media (min-width: 880px) {
  .process-row { grid-template-columns: repeat(5, 1fr); }
}
.process-step {
  padding: 1.15rem 1rem 1.2rem 0;
  border-bottom: 1px solid rgba(212,175,55,0.18);
  position: relative;
}
@media (min-width: 880px) {
  .process-step {
    border-bottom: 0;
    border-right: 1px solid rgba(212,175,55,0.18);
    padding: 1.25rem 1.15rem 0.4rem 0;
  }
  .process-step:last-child { border-right: 0; padding-right: 0; }
}
.process-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-hi);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.process-step h3 {
  color: var(--paper);
  font-size: 1.28rem;
  margin: 0 0 0.35rem;
}
@media (min-width: 880px) {
  .process-step:hover .process-num { color: var(--gold); }
  .process-step:hover h3 { color: var(--gold-hi); }
}
.process-step p {
  margin: 0;
  color: var(--sand);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Why a contractor calls */
.why-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-item {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.15rem 1.15rem 1.2rem;
  border-top: 4px solid var(--gold);
}
.why-item:nth-child(2) { border-top-color: var(--red); }
.why-item:nth-child(3) { border-top-color: var(--navy); }
.why-item:nth-child(4) { border-top-color: var(--iron); }
.why-item h3 { font-size: 1.18rem; }
.why-item p { margin: 0; color: var(--muted); }

/* Full-bleed stills */
.still-pair {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
@media (min-width: 800px) { .still-pair { grid-template-columns: 1.2fr 0.8fr; } }
.still-pair figure,
.still-full figure { margin: 0; position: relative; background: var(--ink); overflow: hidden; }
.still-pair img,
.still-full img {
  width: 100%;
  height: min(58vh, 32rem);
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .still-pair figure:hover img,
  .still-full:hover img { transform: scale(1.045); }
}
.still-pair figcaption,
.still-full figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 0.9rem 0.6rem;
  background: linear-gradient(to top, rgba(18,17,15,0.9), transparent);
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.still-full { margin: 0; }
.still-full img { height: min(62vh, 36rem); }

.ground-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--till);
  margin: 0 0 0.6rem;
}

/* OneLog gold product band */
.onelog-band {
  background: linear-gradient(180deg, #1a1608 0%, #12110f 100%);
  color: var(--paper);
  max-width: none;
  padding: 0;
  border-top: 6px solid var(--gold);
  border-bottom: 1px solid var(--gold-2);
}
.onelog-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.2rem 2.5rem;
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
@media (min-width: 840px) {
  .onelog-band-inner { grid-template-columns: 1.05fr 0.95fr; gap: 2.4rem; }
}
.onelog-band .kicker { color: var(--gold-hi); }
.onelog-band h2 { color: var(--paper); font-size: clamp(1.7rem, 3.4vw, 2.45rem); max-width: 16ch; }
.onelog-band p { color: var(--paper-2); max-width: 36rem; }
.onelog-shot {
  margin: 0;
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.onelog-shot img { width: 100%; height: auto; display: block; }
.onelog-shot figcaption {
  background: var(--char);
  color: var(--sand);
  font-size: 0.72rem;
  padding: 0.4rem 0.7rem;
}
.onelog-hero-cinematic {
  background: var(--ink);
  color: var(--paper);
  padding: 3.4rem 0 0;
}
.onelog-hero-cinematic .page-hero {
  padding-bottom: 1.4rem;
}
.onelog-hero-cinematic h1 { color: var(--paper); font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; }
.onelog-hero-cinematic .lede { color: var(--paper-2); }
.onelog-hero-cinematic .kicker { color: var(--gold-hi); }

/* Capability board polish */
.caps {
  box-shadow: 0 10px 30px rgba(18,17,15,0.06);
}
.caps-tabs button { min-height: 2.8rem; }

/* Quote ticket */
.quote-ticket {
  background: var(--char);
  color: var(--paper);
  padding: 1.6rem 1.3rem 1.5rem;
  border-top: 6px solid var(--gold);
}
.quote-ticket h2 { color: var(--paper); }
.quote-ticket p, .quote-ticket .form-note { color: var(--paper-2); }
.quote-ticket label { color: var(--paper); }
.quote-ticket input,
.quote-ticket select,
.quote-ticket textarea {
  background: #1c1a17;
  color: var(--paper);
  border-color: var(--till);
  min-height: 2.85rem;
}
.quote-ticket textarea { min-height: 8rem; }
.quote-ticket .opt { color: var(--sand); }

.contact-closer {
  background: var(--paper-2);
  max-width: none;
  padding: 2.4rem max(1.2rem, calc(50vw - 37rem)) 2.8rem;
}
.contact-closer .quote-ticket { max-width: 46rem; }

/* Team board */
.team-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 720px) { .team-board { grid-template-columns: 1fr 1fr; } }
.team-board li {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem 1.15rem;
  border-left: 4px solid var(--gold);
}
.team-board li:nth-child(2) { border-left-color: var(--red); }
.team-board li:nth-child(3) { border-left-color: var(--navy); }
.team-board li:nth-child(4) { border-left-color: var(--iron); }
.team-board .person { margin: 0 0 0.2rem; font-size: 1.28rem; }
.team-board .team-title { margin: 0; color: var(--muted); }

/* Hub as spec, not repeating cards */
.hub-spec {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.hub-spec a.hub-row {
  display: grid;
  gap: 0.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 720px) {
  .hub-spec a.hub-row { grid-template-columns: 11rem 1fr auto; gap: 1.2rem; align-items: baseline; }
}
.hub-spec a.hub-row:hover { color: var(--navy); }
.hub-spec .kicker { margin: 0; }
.hub-spec h2 { font-size: 1.28rem; margin: 0; }
.hub-spec p { margin: 0; color: var(--muted); }
.hub-go { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* Page photo heroes */
.page-hero-photo {
  min-height: min(64vh, 34rem);
}
.page-hero-photo .page-hero-inner {
  min-height: min(64vh, 34rem);
  padding: 4rem 1.2rem 2.8rem;
}
.page-hero-photo h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 16ch;
}

/* Mobile dock */
.mobile-dock {
  display: none;
}
@media (max-width: 860px) {
  body { padding-bottom: var(--dock-h); }
  .mobile-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: var(--ink);
    border-top: 3px solid var(--gold);
  }
  .mobile-dock a {
    text-align: center;
    padding: 0.95rem 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--paper);
    min-height: var(--dock-h);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-dock a:first-child { background: var(--gold); color: var(--ink); }
  .mobile-dock a:hover { color: var(--gold-hi); }
  .mobile-dock a:first-child:hover { color: var(--ink); background: var(--gold-hi); }
}

/* Header OneLog mark */
.nav-software {
  color: var(--gold-hi) !important;
  font-weight: 600;
}
.site-nav a.nav-software:hover { color: #fff !important; }

.btn { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; }
form label { font-size: 0.92rem; }
input, textarea, select { min-height: 2.75rem; font-size: 1rem; }

.mail-dir li { min-height: 2.6rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
  .header-strata { animation: none; }
}


/* Experience / pursuit demo */
.exp-banner {
  background: #3a2a22;
  color: #f3eee4;
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  text-align: center;
}
.exp-banner strong { color: var(--gold-hi); }
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.exp-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 1px 0 rgba(18,17,15,.04);
}
.exp-card .exp-num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.exp-card h3 {
  font-size: 1.05rem;
  margin: 0;
}
.exp-card .exp-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.exp-card .exp-scope {
  font-size: 0.95rem;
  margin: 0.15rem 0 0;
  flex: 1;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.exp-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--char-2);
  padding: 0.22rem 0.45rem;
  border-radius: 2px;
}
.exp-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.exp-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--navy);
}


/* Trust chips + who-we-serve (simple, competitor-clear) */
.trust-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.1rem 0.25rem;
}
.trust-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.trust-chips li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--char-2);
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.who-band .section-head { max-width: 42rem; }
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 720px) {
  .who-grid { grid-template-columns: 1fr; }
}
.who-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 1px 0 rgba(18,17,15,.04);
}
.who-card-home {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--rule));
  background: linear-gradient(180deg, #fffdf6 0%, #fff 55%);
}
.who-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.45rem;
}
.who-card h3 { margin-bottom: 0.45rem; }
.who-card p { color: var(--char-2); }
.who-card .related-links { margin-bottom: 0; }
.hero-actions .btn-ghost { border-color: rgba(243,238,228,.45); }


/* —— Epic polish pass (visual only) —— */
.header-phone {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(232,200,90,0.25), 0 6px 16px rgba(0,0,0,0.35);
}
.trust-chips li {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(18,17,15,0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.trust-chips li:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.who-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.who-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(18,17,15,0.1);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--rule));
}
.who-card-home {
  box-shadow: 0 1px 0 rgba(18,17,15,0.04), 0 0 0 1px rgba(212,175,55,0.12);
}
.why-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18,17,15,0.08);
}
.caps {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(18,17,15,0.08);
}
.caps-tabs {
  background: linear-gradient(180deg, #1c1a17 0%, #12110f 100%);
}
.caps-tabs button[aria-selected="true"] {
  box-shadow: inset 0 -3px 0 var(--gold);
}
.onelog-band {
  background:
    radial-gradient(ellipse 55% 70% at 12% 30%, rgba(212,175,55,0.14), transparent 55%),
    linear-gradient(145deg, #12110f 0%, #1a1714 45%, #0e0d0b 100%) !important;
}
.onelog-shot {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  border: 1px solid rgba(212,175,55,0.22);
}
.quote-ticket {
  box-shadow: 0 20px 48px rgba(18,17,15,0.12);
  border-radius: 4px;
}
.mobile-dock a:first-child {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  font-weight: 700;
}
.page-hero-photo {
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(212,175,55,0.12), transparent 50%),
    linear-gradient(105deg, rgba(12,11,10,0.9) 0%, rgba(18,17,15,0.55) 55%, rgba(18,17,15,0.22) 100%),
    var(--hero);
}
.hero-cinematic .lede {
  font-size: 1.18rem;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero-actions .btn {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .hero-cinematic h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .hero-cinematic .hero { padding: 4.2rem 1.1rem 3.2rem; }
}
