/* ============================================================
   WMTA Website — Shared Stylesheet
   ============================================================ */

:root {
  /* Brand color — change here, every page picks it up.
     #2E5A8C = engineering marker blue (primary); #1F4880 = deeper variant for headlines. */
  --brand: #2E5A8C;
  --brand-deep: #1F4880;

  --bg: #ffffff;
  --grid-line: rgba(140, 150, 165, 0.13);
  --ink: #333333;
  --muted: #6a7178;
  --rule: #d4d8de;
  --rule-soft: #e4e7ec;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Visually hidden, available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== Masthead + Nav ===== */
header.site-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.masthead-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--brand);
  line-height: 1;
}
.wta-mark {
  height: 108px;
  width: auto;
  flex-shrink: 0;
  color: inherit;
  display: block;
}
.wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wordmark-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--brand);
  line-height: 1.1;
}
.wordmark-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.30em;
  color: var(--brand);
  margin-top: 6px;
  line-height: 1;
}

nav.primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav.primary a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.primary a:hover { border-bottom-color: var(--brand); }
nav.primary a.current { border-bottom-color: var(--brand); color: var(--brand-deep); }

/* ===== Hero ===== */
section.hero {
  position: relative;
  padding: 132px 0 120px;
  margin: 0 -48px;
  background-image:
    linear-gradient(to right,
      rgba(255,255,255,0.94) 0%,
      rgba(255,255,255,0.78) 45%,
      rgba(255,255,255,0.40) 85%,
      rgba(255,255,255,0.30) 100%),
    url('images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding-left: 48px;
  padding-right: 48px;
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0 0 28px 0;
  max-width: 720px;
  color: var(--brand-deep);
}
.hero p.lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
  color: var(--ink);
}

/* ===== Page title (interior pages) ===== */
section.page-title {
  padding: 72px 0 48px;
}

/* Interior page hero — page title over a photo, same fade language as home */
section.page-title.page-hero {
  margin: 0 -48px;
  padding: 88px 48px 72px;
  background-image:
    linear-gradient(to right,
      rgba(255,255,255,0.94) 0%,
      rgba(255,255,255,0.80) 45%,
      rgba(255,255,255,0.45) 85%,
      rgba(255,255,255,0.35) 100%),
    var(--page-hero-img);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.page-title h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 20px 0;
  color: var(--brand-deep);
}
.page-title p.lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
  color: var(--ink);
}

/* ===== Section heading ===== */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: none; }
.section-label,
.section h2.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.20em;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0 0 18px 0;
  max-width: none;
}
.section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: -0.008em;
  margin: 0 0 28px 0;
  color: var(--brand-deep);
  max-width: 760px;
}
.section p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px 0;
  color: var(--ink);
  max-width: 720px;
}
.section p.spacious { max-width: 760px; }

/* ===== Two-pillar block ===== */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 12px;
}
.pillar h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.003em;
  margin: 0 0 16px 0;
  color: var(--brand-deep);
}
.pillar p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 14px 0;
}
.pillar ul {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
}
.pillar li {
  font-size: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}
.pillar li:first-child { border-top: 1px solid var(--rule-soft); }

/* ===== Engagement modes (4-way) ===== */
.engagement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-top: 16px;
}
.mode {
  padding-top: 2px;
}
.mode .mode-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mode h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 12px 0;
  color: var(--brand-deep);
}
.mode p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  max-width: none;
}

/* ===== Photo plates / placeholders ===== */
.plates {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.plate {
  display: flex;
  flex-direction: column;
}
.plate-frame {
  background: #f4f6f9;
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.plate-frame.lg { aspect-ratio: 3 / 2; }
.plate-frame.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 45%, var(--rule) 45%, var(--rule) 55%, transparent 55%);
  opacity: 0.35;
}
.plate-frame.placeholder::after {
  content: 'PLACEHOLDER';
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--brand);
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  position: relative;
  z-index: 1;
}
.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plate-caption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.plate-caption .label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ===== Anchor / current project block ===== */
.anchor {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.anchor .plate-frame { aspect-ratio: 3 / 2; }
.anchor h2 { margin-top: 0; }

/* ===== Call-to-action band ===== */
.cta {
  padding: 64px 0 56px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  color: var(--brand-deep);
  letter-spacing: -0.005em;
}
.cta .cta-links {
  font-size: 16px;
  color: var(--ink);
}
.cta .cta-links a {
  color: var(--brand-deep);
  font-weight: 500;
  margin-left: 14px;
}

/* ===== Footer ===== */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 40px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0 0 14px 0;
}
.footer-block p, .footer-block a {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 4px 0;
  display: block;
  text-decoration: none;
}
.footer-block a { color: var(--brand-deep); }
.footer-block a:hover { color: var(--brand); }
.footer-block .mark {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
}

/* Hidden SVG defs — holds the WTA mark mask + invert filter, referenced by .wta-mark and .footer-block .mark on every page */
.wta-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.colophon {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--brand);
  text-transform: uppercase;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
}

/* ===== Stub page treatment ===== */
.stub-notice {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px dashed var(--rule);
  background: rgba(255,255,255,0.7);
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .container { padding: 0 24px; }
  section.hero { padding: 56px 0 56px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 24px; }
  .page-title h1 { font-size: 30px; }
  .pillars, .engagement, .anchor, .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .plates { grid-template-columns: 1fr; gap: 32px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wta-mark { height: 72px; }
  .wordmark-name { font-size: 20px; }
  .wordmark-tagline { font-size: 11px; letter-spacing: 0.26em; }
  .masthead-logo { gap: 14px; }
  /* Stronger overlay on small screens — text sits over the busier part of the photo */
  section.hero {
    margin: 0 -24px;
    padding: 72px 24px;
    background-image:
      linear-gradient(to right,
        rgba(255,255,255,0.93) 0%,
        rgba(255,255,255,0.88) 60%,
        rgba(255,255,255,0.80) 100%),
      url('images/hero.jpg');
  }
  section.page-title.page-hero {
    margin: 0 -24px;
    padding: 64px 24px 56px;
    background-image:
      linear-gradient(to right,
        rgba(255,255,255,0.93) 0%,
        rgba(255,255,255,0.88) 60%,
        rgba(255,255,255,0.80) 100%),
      var(--page-hero-img);
  }
  nav.primary ul { gap: 18px 22px; justify-content: flex-start; }
  .cta { grid-template-columns: 1fr; }
}

/* ============================================================
   About page — added iteration 3
   ============================================================ */

/* Intro: portrait + narrative */
.bio {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.bio .portrait {
  aspect-ratio: 3 / 4;
}
.bio-text .section-label { margin-top: 4px; }
.bio-text p {
  font-size: 17px;
  line-height: 1.7;
  max-width: none;
}

/* Credentials — one line each, not bulleted */
.credentials {
  margin-top: 6px;
}
.credentials .cred {
  font-size: 16px;
  line-height: 1.5;
  padding: 7px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  max-width: 620px;
}
.credentials .cred:first-child { border-top: 1px solid var(--rule-soft); }
.credentials .cred.past {
  font-style: italic;
  color: var(--muted);
}

/* Selected projects list */
.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 56px;
  margin-top: 8px;
}
.project-list .proj {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
  max-width: none;
}
.proj .proj-name {
  font-weight: 600;
  color: var(--brand-deep);
}
.project-list-note {
  margin-top: 28px;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  max-width: 700px;
}

/* What We Engineer — capability bands */
.engineer-framing {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 760px;
  margin: 0 0 36px 0;
}
.band {
  padding: 26px 0;
  border-top: 1px solid var(--rule-soft);
}
.band h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 14px 0;
  color: var(--brand-deep);
}
.band h3 .qualifier {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}
.band ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}
.band li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  padding: 5px 0;
  break-inside: avoid;
}
/* Primary band — visible weight signals the firm's main focus */
.band.primary {
  border-top: 3px solid var(--brand);
  padding-top: 30px;
}
.band.primary h3 { font-size: 23px; }

/* Closing line */
.closing-line {
  font-size: 20px;
  line-height: 1.6;
  color: var(--brand-deep);
  max-width: 720px;
  margin: 0;
}

@media (max-width: 800px) {
  .bio { grid-template-columns: 1fr; gap: 28px; }
  .bio .portrait { max-width: 260px; }
  .project-list { grid-template-columns: 1fr; gap: 0; }
  .band ul { columns: 1; }
}

/* ===== Projects page ===== */
.section-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px 0;
}
.plate-caption { color: var(--ink); }
