/* ==========================================================================
   MIRA Image Construction — site styles
   Confident-industrial: black / silver / warm white, amber safety accent.
   Zero build, zero dependencies. Self-hosted variable fonts.
   ========================================================================== */

/* ----- Fonts (self-hosted latin variable subsets) ----- */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/Oswald-var.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/SourceSans3-var.woff2") format("woff2");
}

/* ----- Design tokens ----- */
:root {
  /* palette */
  --warm-white: #f7f6f2;
  --paper: #fffefb;
  --ink: #111111;
  --charcoal: #242424;
  --graphite: #4b4d50;
  --silver: #b9bdc1;
  --concrete: #d8d5ce;
  --amber: #d99a2b;
  --amber-deep: #b87e18;
  --amber-text: #8a5e0e;   /* AA-safe amber for small text on light bg */

  /* semantic */
  --bg: var(--warm-white);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: #45474a;
  --text-faint: #585a5d;
  --rule: #d7d4cc;
  --rule-strong: #b9bdc1;
  --accent: var(--amber);
  --focus: var(--ink);

  /* type */
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* spacing scale (8pt) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;

  --container: 1200px;
  --measure: 68ch;
  --radius: 3px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(17, 17, 17, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; }
strong { font-weight: 700; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
p { margin: 0 0 var(--s2); max-width: var(--measure); }

/* ----- Focus (keyboard) ----- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--warm-white); }

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

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark {
  background: var(--charcoal);
  color: var(--warm-white);
}
.section--ink { background: var(--ink); color: var(--warm-white); }
.section--concrete { background: #efece5; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--s2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
}
.on-dark .eyebrow { color: var(--silver); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: 0.005em;
}
.section-head p { color: var(--text-soft); font-size: 1.125rem; margin-bottom: 0; }
.on-dark .section-head p { color: var(--silver); }

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-toggle { display: none; }
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.4rem);
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--charcoal);
  padding: 0.5rem 0.35rem;
  position: relative;
  white-space: nowrap;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0.35rem; right: 0.35rem; bottom: 0.15rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
  color: var(--ink);
}
.phone-link svg { width: 18px; height: 18px; }
.phone-link:hover { color: var(--amber-text); }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  min-height: 48px;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--ink); border-color: var(--amber); }
.btn--amber:hover { --btn-bg: var(--amber-deep); border-color: var(--amber-deep); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.on-dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn svg { width: 17px; height: 17px; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.on-dark .arrow-link { color: #fff; }

/* ----- Hero ----- */
.hero {
  position: relative;
  color: var(--warm-white);
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.72) 42%, rgba(17,17,17,0.35) 100%),
    linear-gradient(0deg, rgba(17,17,17,0.55), rgba(17,17,17,0.15));
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 12vw, 8.5rem);
  max-width: 46rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0.004em;
  margin-bottom: var(--s3);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--amber); }
.hero__sub {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: #e7e5df;
  max-width: 40rem;
  margin-bottom: var(--s4);
}
.hero .btn-row { margin-top: var(--s2); }

/* ----- Proof band ----- */
.proof {
  border-top: 1px solid rgba(255,255,255,0.14);
  background: var(--charcoal);
  color: var(--warm-white);
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
.proof__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--charcoal);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.2rem, 2.5vw, 1.8rem);
}
.proof__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1;
  color: #fff;
}
.proof__num .u { color: var(--amber); }
.proof__label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--silver);
  text-transform: uppercase;
  font-family: var(--display);
  font-weight: 500;
}

/* ----- Generic grids ----- */
.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ----- Service cards ----- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.service-card:hover { border-color: var(--rule-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.35rem; letter-spacing: 0.02em; }
.service-card p { font-size: 1rem; color: var(--text-soft); margin: 0; }
.service-card ul {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-card li {
  font-size: 0.82rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--graphite);
  background: #efece5;
  border-radius: 2px;
  padding: 0.25rem 0.55rem;
}

/* ----- Project cards ----- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.project-card__media {
  aspect-ratio: 3 / 2;
  background: var(--concrete);
  overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.045); }
.project-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.project-card__tag {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber-text);
}
.project-card h3 { font-size: 1.3rem; letter-spacing: 0.015em; }
.project-card__meta {
  margin-top: auto;
  font-size: 0.86rem;
  color: var(--text-faint);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.4rem;
}
.project-card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--silver); }
.project-card a.stretched { position: absolute; inset: 0; text-indent: -9999px; }

/* ----- Facts table (project detail) ----- */
.facts {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.facts dl { margin: 0; }
.facts__row {
  display: grid;
  grid-template-columns: 40% 60%;
  border-bottom: 1px solid var(--rule);
}
.facts__row:last-child { border-bottom: 0; }
.facts dt {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  padding: 0.85rem 1rem;
  background: #f2efe9;
}
.facts dd {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  font-weight: 600;
}

/* Two-column narrative + aside */
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split--media { grid-template-columns: 1fr 1fr; align-items: center; }
.prose p { color: var(--text-soft); font-size: 1.08rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.prose h3:first-child { margin-top: 0; }

/* Framed image */
.framed {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--surface);
}
.framed img { border-radius: 2px; width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ----- Feature (image + text) ----- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature__media img { border-radius: var(--radius); width: 100%; }
.feature__media { position: relative; }
.feature--dark { color: var(--warm-white); }

/* Amber stat/quote callout */
.callout {
  border-left: 4px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: var(--s3) 0;
}
.callout p { font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 0; }
.on-dark .callout p { color: #fff; }

/* Value / list items with rule */
.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.on-dark .stack-list li { border-color: rgba(255,255,255,0.15); }
.stack-list li:last-child { border-bottom: 0; }
.stack-list .k {
  font-family: var(--display);
  font-weight: 700;
  color: var(--amber);
  font-size: 1.1rem;
  min-width: 2.2rem;
}
.stack-list h4 { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
.stack-list p { margin: 0; font-size: 0.98rem; color: var(--text-soft); }
.on-dark .stack-list p { color: var(--silver); }

/* ----- CTA band ----- */
.cta-band { background: var(--ink); color: var(--warm-white); }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 20ch; }
.cta-band p { color: var(--silver); margin: 0.6rem 0 0; }

/* ----- Page header (interior) ----- */
.page-hero {
  background: var(--charcoal);
  color: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border: 2px solid rgba(217,154,43,0.25);
  border-radius: 4px;
  transform: rotate(12deg);
  pointer-events: none;
}
.page-hero__inner { padding-block: clamp(2.75rem, 7vw, 5rem); position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: 0.01em; }
.page-hero p { color: var(--silver); font-size: 1.15rem; max-width: 55ch; margin-top: var(--s2); margin-bottom: 0; }

/* Breadcrumb */
.crumbs { font-size: 0.85rem; color: var(--silver); margin-bottom: var(--s2); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; }
.crumbs a { color: var(--silver); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255,255,255,0.45); margin: 0 0.4rem; }

/* ----- Gallery ----- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--rule); }

/* ----- Project video ----- */
.project-video h3 { margin-bottom: 1rem; }
.video-embed {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-credit { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-faint); }
.video-credit a { color: var(--ink); }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.info-list .ic {
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--ink);
}
.info-list .ic svg { width: 22px; height: 22px; }
.info-list .lab { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--text-faint); }
.info-list .val { font-size: 1.1rem; font-weight: 600; }
.info-list a { color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--amber-text); text-decoration: underline; }
.map-embed { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--concrete); }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Positions list (careers) */
.pos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.pos-col h3 { font-size: 1.3rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); }
.pos-col ul { list-style: none; margin: 0; padding: 0; }
.pos-col li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.pos-col li:last-child { border-bottom: 0; }

.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.perk { background: var(--surface); padding: 1.1rem 1.2rem; display: flex; gap: 0.7rem; align-items: center; font-weight: 600; font-size: 0.98rem; }
.perk svg { width: 20px; height: 20px; color: var(--amber-deep); flex-shrink: 0; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--silver);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.site-footer img.f-logo { height: 54px; width: auto; margin-bottom: var(--s2); }
.site-footer h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: var(--s2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer p { color: var(--silver); max-width: 34ch; }
.f-contact { display: grid; gap: 0.4rem; }
.f-contact .big { font-family: var(--display); font-size: 1.35rem; color: #fff; font-weight: 600; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--silver); }
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--silver);
}
.social a:hover { border-color: var(--amber); color: var(--amber); }
.social svg { width: 18px; height: 18px; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.2rem; color: var(--text-soft); }
.on-dark .lead { color: var(--silver); }
.divider { height: 1px; background: var(--rule); border: 0; margin: var(--s5) 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.8rem; font-weight: 600; color: var(--graphite);
  border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0.3rem 0.65rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
a.tag { text-decoration: none; }
a.tag:hover, a.tag:focus-visible {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

.label-heading {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 2rem 0 0.8rem;
}
.label-heading:first-child { margin-top: 0; }
.center-narrow { max-width: 60ch; margin-inline: auto; text-align: center; }
.center-narrow p { margin-inline: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { height: 36px; }

  /* Mobile nav: toggle */
  .nav-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: transparent;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-toggle .close-ic { display: none; }
  .nav-toggle[aria-expanded="true"] .open-ic { display: none; }
  .nav-toggle[aria-expanded="true"] .close-ic { display: block; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .primary-nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem) 1.25rem;
  }
  .primary-nav li { border-bottom: 1px solid var(--rule); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a {
    display: block;
    padding: 0.95rem 0.2rem;
    font-size: 1.15rem;
  }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="page"] { color: var(--amber-text); }

  /* No-JS fallback: show nav stacked in normal flow */
  html.no-js .primary-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; max-height: none; border: 0;
  }
  html.no-js .nav-toggle { display: none; }

  .header-actions .phone-label { display: none; }
}

@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split, .split--media, .feature, .contact-grid { grid-template-columns: 1fr; }
  .split--media .split__media, .feature .feature__media { order: -1; }
  .pos-grid { grid-template-columns: 1fr; }
  .perk-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .facts__row { grid-template-columns: 42% 58%; }
}

@media (max-width: 460px) {
  body { font-size: 1rem; }
  .perk-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn-row .btn { width: auto; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
}

/* ----- Motion / print ----- */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .hero__media { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .page-hero { color: #000; background: #fff; }
}
