/* ============================================================
   Chitra Consulting — chitraconsult.com
   Palette: mine-dark ink, basalt surfaces, bone text,
            copper accent, gold highlights.
   Type:    Marcellus (display) · IBM Plex Sans (body)
            IBM Plex Mono (labels/tags)
   ============================================================ */

:root {
  --ink: #0B0A08;
  --basalt: #16130F;
  --basalt-2: #1E1A15;
  --line: #2B251E;
  --stone: #A69C8A;
  --bone: #EDE6DA;
  --copper: #C87F42;
  --copper-soft: #A56A39;
  --gold: #E0B36A;

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --w-max: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --sec-y: clamp(72px, 10vw, 140px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--copper); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Monospace eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 18px;
}

/* Strata divider — two hairlines, copper over stone, like a
   stratigraphic boundary. The site's recurring mark. */
.strata {
  border: 0;
  height: 7px;
  position: relative;
  margin: 0;
}
.strata::before, .strata::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.strata::before { top: 0; background: var(--copper-soft); opacity: 0.85; }
.strata::after { top: 6px; background: var(--line); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(11, 10, 8, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  line-height: 1.15;
  transform-origin: left center;
  will-change: transform;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
/* On the landing page the brand loads large and shrinks as you
   scroll into the page; scale is driven by main.js. */
.page-home .site-header .brand { transform: scale(2); }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--stone);
  transition: color 0.2s ease;
  padding: 8px 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"] {
  border-bottom: 1px solid var(--copper);
}

/* Services dropdown */
.has-menu > button {
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--stone);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease;
}
.has-menu > button:hover, .has-menu.open > button { color: var(--bone); }
.has-menu > button .chev {
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.has-menu.open > button .chev { transform: rotate(225deg) translateY(-1px); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 268px;
  background: var(--basalt);
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.has-menu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 22px;
  font-size: 14px;
  color: var(--stone);
}
.submenu a:hover { color: var(--bone); background: var(--basalt-2); }
.submenu .tag { flex: none; }

/* Specimen tag — core-box style sample label */
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--copper);
  border: 1px solid var(--copper-soft);
  padding: 2px 7px;
  display: inline-block;
  line-height: 1.5;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--bone);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (landing) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: hero-drift 22s ease-out forwards;
}
@keyframes hero-drift {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11,10,8,0.72) 0%, rgba(11,10,8,0.28) 55%, rgba(11,10,8,0.12) 100%),
    linear-gradient(to top, var(--ink) 4%, rgba(11,10,8,0.6) 38%, rgba(11,10,8,0.28) 72%, rgba(11,10,8,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(64px, 10vh, 120px);
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  max-width: 12ch;
  color: var(--bone);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lead {
  margin-top: 26px;
  max-width: 52ch;
  color: var(--stone);
  font-size: clamp(16px, 1.4vw, 18px);
}
.hero-cta {
  margin-top: 38px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Pit cross-section — the signature line. Draws on load. */
.pit-line {
  display: block;
  width: min(560px, 72vw);
  margin-top: 34px;
  overflow: visible;
}
.pit-line path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.4;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-pit 2.6s cubic-bezier(0.6, 0, 0.2, 1) 0.5s forwards;
}
.pit-line .datum {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: none;
}
@keyframes draw-pit {
  to { stroke-dashoffset: 0; }
}

/* Load-in for hero text */
.hero-inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.45s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.6s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.7s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--copper);
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease;
}
.btn:hover { background: var(--copper); color: var(--ink); }
.btn-solid { background: var(--copper); color: var(--ink); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); }
.btn-quiet { border-color: var(--line); color: var(--stone); }
.btn-quiet:hover { border-color: var(--copper); background: transparent; color: var(--bone); }

/* ---------- Sections ---------- */

.section { padding: var(--sec-y) 0; }
.section-tight { padding: calc(var(--sec-y) * 0.62) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
}
.section-head p {
  margin-top: 16px;
  color: var(--stone);
}

/* Big statement (landing intro) */
.statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.35;
  max-width: 24ch;
  color: var(--bone);
}
.statement em {
  font-style: normal;
  color: var(--copper);
}
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.statement-side p { color: var(--stone); }
.statement-side p + p { margin-top: 1em; }
.statement-side .btn { margin-top: 28px; }

/* ---------- Services grid ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 26px 34px;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background-color 0.25s ease;
}
.svc-cell .tag, .related-card .tag { align-self: flex-start; }
.svc-cell:hover { background: var(--basalt); }
.svc-cell h3 {
  font-size: 21px;
  margin-top: auto;
}
.svc-cell p {
  font-size: 14.5px;
  color: var(--stone);
}
.svc-cell .go {
  position: absolute;
  top: 30px; right: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--copper);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.svc-cell:hover .go { opacity: 1; transform: translateX(0); }

/* ---------- Process (real sequence: scoping → evaluation) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 28px 22px 8px 0;
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.step .step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--copper);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--stone); }

/* ---------- News cards ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--basalt);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.news-card:hover { border-color: var(--copper-soft); transform: translateY(-4px); }
.news-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-media img { transform: scale(1.04); }
.news-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.news-body .eyebrow { margin-bottom: 0; }
.news-body h3 { font-size: 21px; }
.news-body p { font-size: 14.5px; color: var(--stone); }
.news-body .news-link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}
.news-card:hover .news-link { color: var(--gold); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--basalt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(30px, 4vw, 52px);
  max-width: 18ch;
  margin: 0 auto;
}
.cta-band p {
  color: var(--stone);
  max-width: 54ch;
  margin: 18px auto 0;
}
.cta-band .btn { margin-top: 36px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  min-height: clamp(340px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero .hero-bg { animation: none; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 2%, rgba(11,10,8,0.55) 55%, rgba(11,10,8,0.72) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 130px var(--pad-x) clamp(44px, 6vh, 72px);
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  max-width: 16ch;
}
.page-hero .tag { margin-bottom: 20px; }

/* ---------- Article / body copy ---------- */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
}
.article-copy p {
  color: var(--stone);
  font-size: 17.5px;
}
.article-copy p + p { margin-top: 1.2em; }
.article-copy p:first-of-type {
  color: var(--bone);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.55;
}

.scope-box {
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  background: var(--basalt);
  padding: 30px 30px 34px;
}
.scope-box h2 {
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}
.scope-box ul { list-style: none; }
.scope-box li {
  padding: 11px 0;
  font-size: 15px;
  color: var(--bone);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.scope-box li:last-child { border-bottom: 0; }
.scope-box li::before {
  content: "";
  flex: none;
  width: 14px; height: 1px;
  background: var(--copper);
  transform: translateY(-4px);
}

/* Related services strip */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  border: 1px solid var(--line);
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.related-card:hover { background: var(--basalt); border-color: var(--copper-soft); }
.related-card h3 { font-size: 19px; margin-top: 6px; }
.related-card p { font-size: 14px; color: var(--stone); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-intro p { color: var(--stone); }
.contact-intro p + p { margin-top: 1em; }
.contact-meta {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.contact-meta div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  font-size: 14.5px;
}
.contact-meta dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  width: 110px;
  flex: none;
  padding-top: 2px;
}
.contact-meta dd { color: var(--stone); }

.form {
  background: var(--basalt);
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  padding: clamp(28px, 4vw, 44px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 13px 15px;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
}
.field textarea { min-height: 160px; resize: vertical; }

.form-note {
  font-size: 13px;
  color: var(--stone);
  margin-top: 18px;
}

.form-status {
  display: none;
  border: 1px solid var(--copper);
  background: rgba(200, 127, 66, 0.08);
  color: var(--bone);
  padding: 16px 20px;
  font-size: 15px;
  margin-bottom: 26px;
}
.form-status.error { border-color: #B4543A; background: rgba(180, 84, 58, 0.1); }
.form-status.show { display: block; }

/* Honeypot — hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Mineral strip ---------- */

.mineral-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.min-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}
.min-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.min-tile:hover img { transform: scale(1.05); }
.min-tile figcaption {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(11, 10, 8, 0.72);
  padding: 6px 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 40px;
  background: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--stone);
  max-width: 34ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--stone);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--bone); }
.footer-small {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--stone);
  opacity: 0.65;
  max-width: 980px;
}
.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--stone);
}
.footer-base .mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .hero-inner > *, .pit-line path { animation: none !important; }
  .hero-inner > * { opacity: 1; transform: none; }
  .pit-line path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mineral-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px var(--pad-x);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
    overflow-y: auto;
  }
  body.nav-open .nav-links { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  /* While the menu is open the header must not carry a backdrop-filter:
     a filter on an ancestor re-anchors position:fixed descendants to that
     ancestor, trapping the menu panel inside the 76px header bar. */
  body.nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink);
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a, .has-menu > button {
    display: flex;
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
    justify-content: space-between;
    align-items: center;
  }
  .submenu {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    padding: 0 0 12px 4px;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .has-menu.open .submenu { display: block; transform: none; }
  .submenu a { padding: 9px 16px; }

  /* On phone widths the 2x landing brand collides with the hero
     eyebrow text; start it at 1.3x instead. Scroll events arrive in
     bursts on mobile, so instead of the scroll-linked shrink (which
     visibly steps) the brand flips between two states with a CSS
     transition, in sync with the header going solid. main.js clears
     its inline transform on mobile so these rules can drive. */
  .page-home .site-header .brand {
    transform: scale(1.3);
    transition: transform 0.35s ease;
  }
  .page-home .site-header.is-solid .brand { transform: scale(1); }
  /* On short viewports the bottom-anchored hero content grows past
     the top of the screen, sliding under the fixed header — reserve
     room for the header (76px) plus the enlarged landing brand. */
  .hero-inner { padding-top: 110px; }

  .statement-grid, .article-grid, .contact-grid { grid-template-columns: 1fr; }
  .news-grid, .related-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .svc-cell { min-height: 0; }
}
