/* Miller Drilling Company: shared styles
   Palette: aquifer ink, well-water blue, sandstone strata, cool paper.
   Type: Zilla Slab (headings) + Public Sans (body). */
:root {
  --ink: #2a3035;
  --ink-soft: #333333;
  --brand-charcoal: #43494f;
  --teal: #337f87;
  --water: #1f747b;
  --water-dark: #175960;
  --water-tint: #dcecee;
  --strata: #cdb98c;
  --strata-dark: #7a6531;
  --paper: #f4f6f6;
  --mist: #e5ecec;
  --white: #ffffff;
  --line: #c6d3d3;
  --focus: #b86b00;
  --serif: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  color: #333333; background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--water-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 200; border-radius: 4px; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.prose { max-width: 68ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); color: var(--ink); height: var(--header-h); border-bottom: 1px solid var(--line); box-shadow: 0 3px 0 var(--teal); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 46px; width: auto; max-width: none; display: block; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #7f9396; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; padding: 0; }
.icon-btn:hover { background: var(--mist); color: var(--ink); }
.icon-btn.call { background: var(--water); border-color: var(--water); color: var(--white); }
.icon-btn.call:hover { background: var(--water-dark); border-color: var(--water-dark); color: var(--white); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 3px); background: var(--white); color: var(--ink); border-top: 1px solid var(--line); padding: 18px 0 26px; display: none; box-shadow: 0 18px 30px rgba(42,48,53,.25); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.menu-panel.open { display: block; }
.menu-cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
.menu-panel .menu-h { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft); margin: 0 0 6px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; color: var(--ink); text-decoration: none; padding: 11px 0; min-height: 44px; border-bottom: 1px solid var(--line); }
.menu-panel a:hover { color: var(--water-dark); text-decoration: underline; }

/* ---------- depth gauge ---------- */
.depth-gauge { display: none; }
@media (min-width: 1200px) {
  .depth-gauge { display: block; position: fixed; left: 10px; top: calc(var(--header-h) + 16px); bottom: 16px; width: 46px; z-index: 50; pointer-events: none; }
  .depth-gauge .ruler { position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--line); }
  .depth-gauge .tick { position: absolute; left: 14px; width: 18px; border-top: 1.5px solid var(--ink-soft); font-size: .66rem; color: var(--ink-soft); }
  .depth-gauge .tick span { position: absolute; left: -2px; top: 3px; transform: translateX(-100%); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .depth-gauge .bit { position: absolute; left: 12px; width: 22px; height: 22px; margin-top: -11px; top: 0; transition: top .12s linear; }
  .depth-gauge .readout { position: absolute; left: -2px; bottom: -4px; font-size: .68rem; font-weight: 700; color: var(--water-dark); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .depth-gauge .bit { transition: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { background: #1c2125; color: var(--white); padding: 40px 0 48px; position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,33,37,.94) 0%, rgba(28,33,37,.86) 55%, rgba(28,33,37,.74) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; z-index: 1; background: repeating-linear-gradient(90deg, var(--strata) 0 38px, #a99668 38px 64px, #e0d2b0 64px 92px); }
.crumbs { font-size: .88rem; margin: 0 0 18px; color: #dbe6e8; }
.crumbs a { color: #ffffff; }
.crumbs a:hover { color: var(--white); }
.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
.hero h1 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 16px; font-size: clamp(2rem, 5.4vw, 3.5rem); max-width: 17ch; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #eef4f5; max-width: 36ch; margin: 0 0 24px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--water); color: var(--white); border-color: var(--water); }
.btn-primary:hover { background: var(--water-dark); border-color: var(--water-dark); color: var(--white); }
.hero .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero .btn-primary:hover { background: var(--strata); border-color: var(--strata); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-secondary { background: transparent; color: var(--water-dark); border-color: var(--water); }
.btn-secondary:hover { background: var(--water-tint); color: var(--ink); }
.glance { background: rgba(28,33,37,.72); border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 18px 20px; }
.glance h2 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 10px; color: var(--strata); }
.glance dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.glance dt { font-size: .82rem; color: #cfdde0; margin-top: 10px; }
.glance dd { margin: 0; font-weight: 600; color: var(--white); }
.glance a { color: var(--white); }

/* ---------- sections ---------- */
.section { padding: 46px 0; }
.section.alt { background: var(--mist); }
.section h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.15; margin: 0 0 18px; max-width: 24ch; text-wrap: balance; }
.section h3 { font-family: var(--serif); font-size: 1.28rem; line-height: 1.25; margin: 26px 0 8px; text-wrap: balance; }
.section p { margin: 0 0 1em; text-wrap: pretty; }
.section ul.plain { padding-left: 1.2em; margin: 0 0 1em; }
.section ul.plain li { margin-bottom: .45em; }
.two-col { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
.ref { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--strata); border-radius: 6px; padding: 16px 20px; }
.ref h3 { margin-top: 0; font-size: 1.1rem; }
.ref dl { margin: 0; }
.ref dt { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }
.ref dd { margin: 0; font-weight: 600; }
.note { background: var(--water-tint); border-left: 5px solid var(--water); padding: 14px 18px; border-radius: 4px; margin: 20px 0; font-size: .98rem; }
.note p:last-child { margin-bottom: 0; }

/* process track */
.track { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; max-width: 72ch; }
.track li { counter-increment: step; position: relative; padding: 0 0 22px 56px; border-left: 2px solid var(--line); margin-left: 17px; }
.track li:last-child { border-left-color: transparent; padding-bottom: 0; }
.track li::before { content: counter(step); position: absolute; left: -19px; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; font-size: 1.05rem; }
.track strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 2px; }

/* ruled lists and tables */
.ruled { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 36px; }
.ruled li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ruled strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.table-scroll { overflow-x: auto; margin: 18px 0; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--white); font-size: .97rem; }
table.cmp th, table.cmp td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--ink); color: var(--white); font-weight: 600; }
table.cmp tbody th { background: var(--mist); font-weight: 600; width: 26%; }

/* figures */
figure.diagram { margin: 26px 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
figure.diagram svg { display: block; margin: 0 auto; width: 100%; max-width: 560px; }
figure.diagram svg[viewBox="0 0 410 520"] { max-width: 440px; }
figure.diagram figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 10px; max-width: 70ch; }

/* tools */
.tool { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin: 22px 0; max-width: 760px; }
.tool h3 { margin-top: 0; }
.tool-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 14px 0; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .84rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #6d8791; border-radius: 6px;
}
textarea { min-height: 110px; resize: vertical; }
.tool-out { background: var(--water-tint); border-radius: 6px; padding: 14px 16px; margin-top: 12px; min-height: 52px; }
.tool-out strong { font-family: var(--serif); font-size: 1.25rem; }
.tool .fine { font-size: .86rem; color: var(--ink-soft); margin: 10px 0 0; }

/* reviews */
.review-head { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-bottom: 18px; }
.review-head .score { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.reviews { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.reviews li { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.reviews .who { font-weight: 700; }
.reviews .when { font-size: .85rem; color: var(--ink-soft); }
.stars { color: #8a5a00; letter-spacing: 2px; font-size: 1rem; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-family: var(--serif); font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--water-dark); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 18px 16px; }
.faq .ans p { margin: 0; }

/* form */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; max-width: 720px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.req { color: #9a2d12; font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.form-ok { background: #e1f1e4; border: 1px solid #5e9b6b; border-radius: 6px; padding: 14px 16px; margin-top: 14px; display: none; }
.form-ok.show { display: block; }

/* map */
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: 8px; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.cities { columns: 2; column-gap: 28px; margin: 0 0 16px; padding-left: 1.1em; }
.cities li { margin-bottom: 4px; break-inside: avoid; }
.related { margin-top: 26px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* final CTA */
.final { background: var(--brand-charcoal); color: var(--white); padding: 48px 0; text-align: left; }
.final h2 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 10px; max-width: 22ch; text-wrap: balance; }
.final p { color: #f0f5f6; margin: 0 0 20px; }
.final .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.final .btn-primary:hover { background: var(--strata); border-color: var(--strata); }

/* sources */
.sources { font-size: .93rem; color: var(--ink-soft); }
.sources ul { padding-left: 1.1em; margin: 6px 0 0; }
.sources li { margin-bottom: 4px; }

/* footer */
.site-footer { background: var(--mist); color: var(--ink); padding: 38px 0 26px; font-size: .95rem; border-top: 4px solid var(--teal); }
.site-footer a { color: var(--water-dark); }
.site-footer a:hover { color: var(--ink); }
.site-footer h2 { font-family: var(--sans); font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; letter-spacing: .02em; }
.foot-logo { height: 64px; width: auto; display: block; margin-bottom: 14px; object-fit: contain; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.foot-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-menu a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 10px 0 0; font-size: .92rem; }
.foot-menu li { margin-right: 6px; }
.foot-sites { list-style: none; margin: 0; padding: 0; }
.foot-sites a { display: inline-block; padding: 8px 0; min-height: 40px; }
.fine-print { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }

/* work gallery */
.gallery { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px 12px; font-size: .92rem; color: var(--ink-soft); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 720px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 60px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 44px; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1.6fr 1fr; gap: 44px; }
  .ruled { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cities { columns: 3; }
}
@media (min-width: 1024px) {
  .hero h1 { max-width: 20ch; }
  .section h2 { max-width: 30ch; }
}
.desktop-br { display: none; }
@media (min-width: 768px) { .desktop-br { display: inline; } }

/* =====================================================================
   v41 layout pass: full-width pages that match the home page
   ===================================================================== */
.wrap { max-width: 1160px; padding-left: 20px; padding-right: 20px; }
.hero h1 { max-width: none; }
.hero .lead { max-width: 54ch; }
.section h2 { max-width: none; }
.section .prose { max-width: 84ch; }
.two-col .prose { max-width: none; }
.sources ul { max-width: none; }

/* standalone ruled lists span the width in three columns */
@media (min-width: 1024px) {
  .wrap > .ruled { grid-template-columns: repeat(3, 1fr); gap: 0 44px; }
  .wrap > .ruled li { padding: 18px 0; }
}

/* calculators: full-width card, inputs left, live result right */
.tool { max-width: none; margin: 40px 0 0; padding: 0; border: 1px solid var(--line); border-top: 6px solid var(--water); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(42,48,53,.10); display: grid; grid-template-columns: 1fr; background: var(--white); }
.tool > h3 { margin: 0; padding: 24px 28px 4px; font-size: 1.5rem; }
.tool > h3::before { content: "Quick calculator"; display: block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--water-dark); margin-bottom: 6px; }
.tool > p { margin: 0; padding: 4px 28px 0; max-width: 80ch; color: var(--ink-soft); }
.tool > form { padding: 8px 28px 8px; }
.tool > .tool-out { margin: 12px 28px 0; border-radius: 8px; padding: 18px 20px; background: var(--water-tint); border-left: 6px solid var(--water); min-height: 0; }
.tool > .tool-out strong { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.tool > .tool-out p { margin: 0 0 .5em; }
.tool > .fine { margin: 0; padding: 14px 28px 22px; max-width: none; }
@media (min-width: 900px) {
  .tool { grid-template-columns: 1.25fr 1fr; column-gap: 0; }
  .tool > h3, .tool > p { grid-column: 1 / -1; }
  .tool > form { grid-column: 1; grid-row: 3; padding: 14px 20px 18px 28px; }
  .tool > .tool-out { grid-column: 2; grid-row: 3; margin: 20px 28px 18px 8px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
  .tool > .fine { grid-column: 1 / -1; grid-row: 4; border-top: 1px solid var(--line); background: var(--paper); padding: 12px 28px; }
}
.section.alt .tool { background: var(--white); }

/* quote form: full width */
.form-card { max-width: none; }
@media (min-width: 1024px) { .form-grid { grid-template-columns: repeat(4, 1fr); } .form-grid .full { grid-column: 1 / -1; } }

/* service area: map gets more room */
#area .two-col { grid-template-columns: 1fr; }
@media (min-width: 900px) { #area .two-col { grid-template-columns: 1.15fr 1fr; } }
.map-wrap iframe { height: 420px; }

/* sources in two columns */
@media (min-width: 900px) { .sources ul { columns: 2; column-gap: 40px; } .sources li { break-inside: avoid; } }

/* closing call to action: centered like the home page */
.final { text-align: center; padding: 64px 0; }
.final h2 { max-width: none; margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }

/* =====================================================================
   v41 header: identical to the home page header on every page
   ===================================================================== */
:root { --header-h: 120px; --mh-bar:#41565a; --mh-cream:#f6f1e6; --mh-ochre:#9a4a12; --mh-ochre-d:#7f3c0b; --mh-tex:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 -0.35%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url%28%23n%29%22 opacity=%220.3%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22140%22 height=%2228%22 viewBox=%220 0 140 28%22%3E%3Cpath d=%22M0 14c17.500-8 35-8 52.500 0s35 8 52.500 0 25-6 35 0%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-opacity=%220.027%22 stroke-width=%221.2%22/%3E%3C/svg%3E"),linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.05)); }
@media (max-width: 420px) { :root { --header-h: 104px; } }
.mh-header { position: sticky; top: 0; z-index: 100; background: var(--mh-tex), var(--mh-bar); height: 120px; box-shadow: 0 1px 0 rgba(255,255,255,.08); color: #fff; }
.mh-header .mh-bar { height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mh-brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.mh-brand .logo-svg { display: block; height: 106px; width: auto; max-width: none; aspect-ratio: 423/207.542; background: var(--mh-cream); padding: 8px 12px; box-sizing: border-box; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
@media (max-width: 420px) { .mh-brand .logo-svg { height: 90px; padding: 6px 9px; } .mh-header, .mh-header .mh-bar { height: 104px; } .mh-menu { top: 104px; max-height: calc(100vh - 104px); } }
.mh-actions { display: flex; align-items: center; gap: .5rem; }
.mh-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: transparent; border: 0; cursor: pointer; text-decoration: none; padding: 0; }
.mh-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.mh-btn.call { background: var(--mh-ochre); }
.mh-btn.call:hover { background: var(--mh-ochre-d); }
.mh-btn svg { width: 22px; height: 22px; }
.mh-menu { display: none; position: absolute; top: 120px; left: 0; right: 0; background: var(--mh-bar); border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 30px rgba(0,0,0,.3); max-height: calc(100vh - 120px); overflow-y: auto; }
.mh-menu.open { display: block; }
.mh-menu ul { list-style: none; margin: 0 auto; padding: .5rem 1.25rem 1rem; max-width: 1160px; }
.mh-menu a { display: flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); padding: 0; }
.mh-menu a:hover { color: #f0c27a; }
.tool-grid { align-items: end; }

.more-work a, .related ul a { display: inline-block; padding: 9px 0; }
.more-work ul { gap: 0 18px; }

/* process steps: full-width rows (number, title, description) that work for any number of steps */
.track { max-width: none; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.track li { counter-increment: step; position: relative; margin: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
.track li:last-child { padding-bottom: 20px; border-left: 0; }
.track li::before { position: static; grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; }
.track li > strong { grid-column: 2; margin: 0 0 4px; font-size: 1.2rem; }
.track li > .step-body { grid-column: 2; }
@media (min-width: 768px) {
  .track li { grid-template-columns: 44px minmax(190px, 270px) 1fr; column-gap: 28px; padding: 22px 0; }
  .track li::before { grid-row: 1; }
  .track li > strong { grid-column: 2; margin: 3px 0 0; }
  .track li > .step-body { grid-column: 3; }
}

/* one-line captions under photos */
.gallery figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v44 hero: brighter photo, text kept readable */
.hero-bg { filter: brightness(1.18) saturate(1.06); }
.hero::before { background: linear-gradient(90deg, rgba(20,25,28,.80) 0%, rgba(20,25,28,.64) 42%, rgba(20,25,28,.30) 100%); }
@media (max-width: 719px) { .hero::before { background: linear-gradient(180deg, rgba(20,25,28,.74) 0%, rgba(20,25,28,.62) 100%); } }
.hero h1, .hero .lead, .hero .crumbs { text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 2px 16px rgba(0,0,0,.5); }
.glance { background: rgba(20,25,28,.80); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* v44: remove the striped strata band under the hero */
.hero::after { content: none; display: none; }

/* v44: sections with a diagram go two columns, diagram on the right */
@media (min-width: 900px) {
  .wrap:has(> figure.diagram) { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: 44px; row-gap: 0; align-items: start; }
  .wrap:has(> figure.diagram) { grid-template-rows: auto 1fr auto; }
  .wrap:has(> figure.diagram) > h2 { grid-column: 1; grid-row: 1; margin-bottom: 14px; }
  .wrap:has(> figure.diagram) > .dg-text { grid-column: 1; grid-row: 2; min-width: 0; }
  .wrap:has(> figure.diagram) > figure.diagram { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .wrap:has(> figure.diagram) > .tool { grid-column: 1 / -1; grid-row: 3; }
  .wrap:has(> figure.diagram) .prose { max-width: none; }
  .dg-text > :last-child { margin-bottom: 0; }
}

/* image popup */
.zoomable img{cursor:zoom-in}
.zb{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(10,16,17,.92);padding:3.5rem 3.5rem 4.5rem}
.zb.open{display:flex}
.zb figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center}
.zb img{max-width:100%;max-height:calc(100vh - 10rem);width:auto;height:auto;border-radius:8px;object-fit:contain}
.zb figcaption{color:#fff;margin-top:.8rem;font-weight:600;text-align:center}
.zb button{position:absolute;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.4);color:#fff;width:48px;height:48px;border-radius:50%;font-size:1.6rem;line-height:1;cursor:pointer}
.zb button:hover,.zb button:focus-visible{background:rgba(255,255,255,.3);outline:2px solid #fff}
.zb .zx{top:.9rem;right:.9rem}.zb .zp{left:.9rem;top:50%}.zb .zn{right:.9rem;top:50%}
@media(max-width:600px){.zb{padding:3.5rem .75rem 4.5rem}.zb .zp,.zb .zn{top:auto;bottom:.9rem}.zb .zp{left:calc(50% - 60px)}.zb .zn{right:calc(50% - 60px)}}

/* v54: body text #333333; titles keep the original ink colour */
h1,h2,h3,h4,h5,h6{color:var(--ink)}
.site-footer h2,.menu-panel .menu-h{color:#4d555b}
.hero h1,.final h2{color:#fff}
.sources h2,.sources h3{color:#4d555b}
/* v63: larger title in the diagram sections' left column */
@media (min-width: 900px) {
  .wrap:has(> figure.diagram) > h2 { font-size: clamp(2.2rem, 1.2vw + 1.7rem, 3rem); line-height: 1.12; margin-bottom: 18px; text-wrap: balance; }
  .wrap:has(> figure.diagram) .dg-text .prose, .wrap:has(> figure.diagram) .dg-text p { font-size: 1.12rem; }
}
/* v64: keyword-page hero uses a solid colour treatment instead of a photo */
.hero { background: radial-gradient(120% 140% at 88% -10%, rgba(80,137,148,.34) 0%, rgba(80,137,148,0) 55%), linear-gradient(135deg, #1f2b2d 0%, #28383c 100%); }
.hero::before { content: none; }
.hero h1, .hero .lead, .hero .crumbs { text-shadow: none; }
/* v65: keyword pages use the same footer as the rest of the site */
.mf{background:#1f2b2d;color:#e6ebe8;padding:3rem 0 2rem;font-size:.97rem;border-top:0}
.mf a{color:#fff}
.mf .foot-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:2rem}
.mf h3{font-family:var(--serif);color:#fff;font-size:1.1rem;margin:0 0 .6rem}
.mf p{margin:0 0 .5rem;color:#e6ebe8}
.mf .flogo .logo-svg{display:block;width:200px;height:auto;aspect-ratio:423/207.542;margin-bottom:1rem;border-radius:8px;background:#f6f1e6;padding:10px 12px;box-sizing:border-box}
.mf .foot-menu{margin-top:2rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.18)}
.mf .foot-menu ul,.mf .foot-local ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 1.25rem}
.mf .foot-menu a{display:inline-flex;align-items:center;min-height:44px;font-size:.92rem;text-decoration:none;color:#d6e0dc}
.mf .foot-menu a:hover,.mf .foot-local a:hover{color:#f0c27a;text-decoration:underline}
.mf .foot-local{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.14)}
.mf .foot-local h3{font-size:1rem;margin:0 0 .4rem}
.mf .foot-local ul{margin-bottom:.75rem}
.mf .foot-local a{display:inline-flex;align-items:center;min-height:44px;color:#e6ebe8;text-decoration:none}
.mf .legal{margin:1.5rem 0 0;font-size:.88rem;color:#b9c6c2}
.legal a{color:inherit;text-decoration:underline;margin-left:.75rem}
@media (max-width:900px){.mf .foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.mf .foot-grid{grid-template-columns:1fr}}
.mf .foot-menu{display:block;gap:0;padding-left:0;padding-right:0;padding-bottom:0;margin-bottom:0}
.mf .foot-menu li{margin:0}
.mf .foot-menu a{padding:0;min-width:0}
.mf .foot-grid{gap:2rem}
