/* ==========================================================================
   WM Directional Drilling — design system
   Extracted from the approved template/ mockup. Shared across all pages.
   ========================================================================== */

/* Self-hosted fonts (woff2). Public Sans + Roboto Mono are variable (one
   file spans every weight); Barlow Condensed ships as static weights. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/roboto-mono-var.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  /* Brand + neutrals */
  --brand: #e11b22;
  --brand-dark: #b8141a;      /* red that meets AA on light panels (soft/cream) */
  --brand-on-dark: #ff5a5f;   /* red that meets AA as small label text on dark grounds */
  --brand-tint: rgba(225, 27, 34, 0.14);
  --brand-tint-line: rgba(225, 27, 34, 0.40);

  --ink: #141618;          /* primary text / dark panels */
  --ink-hero: #171310;     /* warm near-black hero ground */
  --ink-footer: #0c0d0f;   /* footer ground */
  --muted: #6a7075;        /* secondary text on light */
  --paper: #ffffff;
  --soft: #f5f6f7;         /* light panel */
  --cream: #faf7f3;        /* warm panel (team) */
  --line: #ececec;         /* hairline on light */
  --line-2: #e2e4e6;
  --focus: #1677c8;

  /* On-dark text */
  --on-dark: #ffffff;
  --on-dark-muted: #a7adb3;
  --on-dark-soft: #c8bfb5;
  --dark-line: #33373b;

  /* Type */
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 82rem;
  --gutter: clamp(1.25rem, 5vw, 3.75rem);

  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand); color: #fff; }

/* Layout ------------------------------------------------------------------ */
.shell { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5rem); }

/* Spacing utilities */
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mb-6 { margin-bottom: 2rem; }
.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; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; }
.display,
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.2rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.9rem;
}
.lede { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 44rem; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.4rem;
}
.section-head p { margin: 0; max-width: 26rem; color: var(--muted); font-size: 0.95rem; }
.section-head .display { margin: 0; }

/* Skip link / focus ------------------------------------------------------- */
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: 0.75rem 1rem; background: #fff; color: var(--ink); text-decoration: none; }
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Buttons ----------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 3px;
  padding: 0.95rem 1.6rem;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--brand-dark); }
.button-ghost {
  background: transparent;
  border: 1.5px solid var(--dark-line);
  color: #fff;
}
.button-ghost:hover { background: transparent; border-color: #fff; }
.text-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink-hero); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; }
.brand img { height: 2.85rem; width: auto; background: #fff; padding: 0.4rem 0.7rem; border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.site-nav a {
  color: #e7e0d8;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--brand-on-dark); text-decoration: underline; text-underline-offset: 5px; }
.site-nav a.button { color: #fff; font-family: var(--font-display); }
.site-nav a.button[aria-current="page"] { color: #fff; }
.nav-toggle {
  display: none;
  border: 1px solid var(--dark-line);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; background: var(--ink-hero); overflow: hidden; color: #fff; }
.hero-picture { position: absolute; inset: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 12, 10, 0.94) 0%, rgba(15, 12, 10, 0.78) 46%, rgba(15, 12, 10, 0.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6rem); max-width: 54rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6.6vw, 4.1rem); margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--brand); }
.hero .lede { color: var(--on-dark-soft); max-width: 35rem; margin-bottom: 2.25rem; }
.hero .actions { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-line);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0b9bb;
}
.badge .dot { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; flex: none; }

/* Marquee strip ----------------------------------------------------------- */
.marquee {
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  padding: 0.9rem var(--gutter);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(0.875rem, 1.6vw, 1.05rem);
  font-weight: 600;
}
.marquee .sep { opacity: 0.5; }

/* Trust strip ------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item { padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2.1rem); border-right: 1px solid #e6e8ea; }
.trust-item:last-child { border-right: 0; }
.trust-num { font-family: var(--font-mono); color: var(--brand-dark); font-size: 0.8125rem; margin-bottom: 0.6rem; }
.trust-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.35; text-transform: none; }
.trust-item p { margin: 0.4rem 0 0; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* Service cards ----------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 60rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .card-grid { grid-template-columns: 1fr; } }
.service-core {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  padding: clamp(1.75rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  min-height: 19rem;
}
.service-core .eyebrow { margin-bottom: 0.5rem; }
.service-core h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.25rem); margin: 0.5rem 0 0.75rem; }
.service-core p { margin: 0; color: #b9bec3; font-size: 1rem; line-height: 1.6; max-width: 34rem; }
.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { font-size: 0.78rem; color: #d7dadd; border: 1px solid var(--dark-line); border-radius: 100px; padding: 0.4rem 0.85rem; }

.service-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s ease;
}
.service-card:hover { border-color: var(--ink); }
.service-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; text-transform: none; }
.service-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.glyph { width: 14px; height: 14px; background: var(--brand); }
.glyph.circle { border-radius: 50%; }
.glyph.ring { background: transparent; border: 3px solid var(--brand); border-radius: 50%; }
.glyph.square { border-radius: 2px; }
.glyph.diamond { transform: rotate(45deg); }

/* How-it-works ------------------------------------------------------------ */
.howto {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.diagram-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 -0.25rem; padding: 0 0.25rem; }
.diagram-scroll svg { width: 100%; min-width: 48rem; height: auto; display: block; border-radius: 4px; }
.diagram-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5f666c;
  margin-top: 0.6rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 1.6rem;
}
.step { background: #fff; padding: 1.4rem 1.5rem; }
.step-head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.5rem; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--brand); line-height: 1; }
.step-kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #63696f; }
.step h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; margin: 0 0 0.4rem; }
.step p { font-size: 0.85rem; line-height: 1.5; color: var(--muted); margin: 0; }

/* Capabilities stats (dark) ---------------------------------------------- */
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow,
.page-header .eyebrow,
.service-core .eyebrow,
.quote-block .eyebrow,
.section-dark .text-link { color: var(--brand-on-dark); }
.testimonial .eyebrow,
.testimonial .text-link { color: var(--brand-dark); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: clamp(1.4rem, 3vw, 1.9rem); }
.stat { border-top: 2px solid var(--dark-line); padding-top: 1.25rem; }
.stat:first-child { border-top-color: var(--brand); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 4.6vw, 3.4rem); line-height: 0.92; }
.stat p { color: var(--on-dark-muted); font-size: 0.9rem; margin: 0.6rem 0 0; line-height: 1.45; }

/* Projects ---------------------------------------------------------------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.4rem; }
.project-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: border-color 0.15s ease, transform 0.15s ease; }
.project-card:hover { border-color: var(--ink); }
.project-card > a { display: block; height: 100%; text-decoration: none; color: inherit; }
.project-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card-content { padding: 1.4rem; }
.project-card .eyebrow { margin: 0 0 0.55rem; font-size: 0.72rem; letter-spacing: 0.1em; }
.project-card h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--ink); }
.project-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.9rem; }
.project-card.is-featured { border-top: 3px solid var(--brand); }

/* Testimonial / team ------------------------------------------------------ */
.testimonial { background: var(--cream); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center; }
.testimonial-figure { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; border: 1px solid #e3d9cc; margin: 0; }
.testimonial-figure img { width: 100%; height: 100%; object-fit: cover; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.05;
  color: #1c1712;
  margin: 0 0 1.5rem;
}
.testimonial .body { font-size: 1.05rem; line-height: 1.65; color: #5c534a; margin: 0 0 1.75rem; max-width: 35rem; }
.byline { display: flex; align-items: center; gap: 1rem; }
.byline .name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: #1c1712; }
.byline .rule { width: 1px; height: 1.6rem; background: #cabfb0; }
.byline .role { font-size: 0.95rem; color: #6f6456; }

/* Quote form -------------------------------------------------------------- */
.quote-block { background: var(--ink); color: #fff; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: clamp(2rem, 4vw, 3.75rem); align-items: start; }
.quote-intro .lede { color: var(--on-dark-muted); max-width: 25rem; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.contact-list a { display: flex; align-items: center; gap: 0.9rem; color: #fff; text-decoration: none; }
.contact-list .ico { width: 2.5rem; height: 2.5rem; border: 1px solid var(--dark-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand); flex: none; }
.contact-list .label { display: block; font-size: 0.78rem; color: #7b8188; }
.contact-list .value { font-weight: 700; }

.quote-form { background: #fff; border-radius: 8px; padding: clamp(1.25rem, 4vw, 2.1rem); display: grid; gap: 1rem; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem; }
/* Contact fields pair up: name + company, then email + phone. */
.form-grid-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 34rem) { .form-grid-pairs { grid-template-columns: 1fr; } }
.quote-form label { display: grid; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; color: #51575d; }
.quote-form input, .quote-form textarea {
  width: 100%;
  border: 1px solid #d9dde1;
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.quote-form textarea { min-height: 5rem; resize: vertical; }
.quote-form .button { width: 100%; justify-content: center; margin-top: 0.25rem; }
.honeypot { position: absolute; left: -10000px; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form-status[data-state="error"] { color: var(--brand-dark); }

/* Outcome panels. Hidden until either the endpoint sends a no-JavaScript
   browser to the matching fragment, or quote-form.js marks one visible. */
.form-alert {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--brand-dark);
  border-radius: 4px;
  background: #fdf1f1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}
.form-alert:target, .form-alert[data-visible] { display: block; }
.form-alert-ok { border-left-color: #10693f; background: #eef6f1; }
.form-alert a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Collapsible project details (progressive enhancement; works with no JS) */
.quote-more { margin: 0; }
.quote-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px dashed #c7ccd1;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
}
.quote-more > summary::-webkit-details-marker { display: none; }
.quote-more > summary::before { content: "+"; font-weight: 700; color: var(--brand-dark); }
.quote-more[open] > summary::before { content: "\2013"; }
.quote-more[open] > summary { border-style: solid; margin-bottom: 1.25rem; }
.quote-more > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.quote-more-hint { font-weight: 400; color: var(--muted); }
.quote-more-body { display: grid; gap: 1rem; }
.quote-more-kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-dark); margin: 0; }
.radio-set { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.radio-set legend { padding: 0; font-size: 0.8rem; font-weight: 600; color: #51575d; }
/* Segmented control: three mutually exclusive answers joined into one strip,
   sized and bordered like the inputs above it. Real radios underneath. */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #d9dde1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.quote-form .segment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 2.95rem;
  padding: 0.6rem 0.5rem;
  border-left: 1px solid #d9dde1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #51575d;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.quote-form .segment:first-child { border-left: 0; }
.quote-form .segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
}
.segment:hover { background: var(--soft); }
.segment:has(input:checked) { background: var(--ink); color: #fff; }
.segment:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (forced-colors: active) {
  .segment:has(input:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* Interior page header ---------------------------------------------------- */
.page-header { background: var(--ink-hero); color: #fff; padding-block: clamp(3rem, 7vw, 4.75rem); }
.page-header h1 { color: #fff; }
.page-header .lede { color: var(--on-dark-soft); margin-top: 1rem; }
.page-content { padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose { max-width: 52rem; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Project detail ---------------------------------------------------------- */
.project-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; margin-block: 1.75rem 0; }
.project-facts dt { font-family: var(--font-mono); color: var(--brand-on-dark); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.project-facts dd { margin: 0.25rem 0 0; color: #fff; font-weight: 600; }
.project-hero-image { width: 100%; max-height: 34rem; object-fit: cover; border-radius: 6px; margin-top: 2rem; }
.project-body { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.project-map, .project-gallery { padding-block: clamp(2rem, 5vw, 3.5rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.4rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 4px; }
.gallery-grid figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink-footer); color: #8b9299; padding-block: clamp(2rem, 5vw, 2.75rem); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.footer-inner .brand img { height: 2.5rem; }
.footer-contact { font-size: 0.9rem; line-height: 1.7; text-align: right; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal { width: 100%; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: #868d93; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 52rem) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter);
    background: var(--ink-hero);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.6rem 0; }
  .site-nav a.button { justify-content: center; margin-top: 0.5rem; }
  .marquee { justify-content: center; }
  .section-head { align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
