/* ==========================================================================
   LTRX Pty Ltd — ltrxtec.site
   Art direction: "drawing sheet" — technical-documentation vernacular.
   Deep petrol teal + oxidised copper, cool paper neutrals, sharp shape
   language (2-4px radii, hairline rules), monospace utility labels and
   corner registration ticks borrowed from engineering drawings.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */
:root {
  /* Brand */
  --primary: #0d2f35;
  --primary-deep: #071e23;
  --primary-600: #1a5b64;
  --primary-300: #6c9ba1;
  --accent: #a44a17;
  --accent-bright: #e08a4c;
  --accent-tint: rgba(164, 74, 23, 0.10);
  --accent-tint-strong: rgba(164, 74, 23, 0.20);

  /* Neutral ramp (cool paper) */
  --bg: #f2f4f3;
  --bg-alt: #e7ebe9;
  --surface: #ffffff;
  --border: #d8dedb;
  --text-dark: #101816;
  --text-mid: #4b5754;
  --text-light: #dbe3e1;
  --text-dim: rgba(219, 227, 225, 0.74);
  --border-dark: rgba(219, 227, 225, 0.18);

  /* Decorative */
  --grid-line: rgba(13, 47, 53, 0.055);
  --grid-line-light: rgba(219, 227, 225, 0.075);
  --grid-size: 44px;
  --glow: rgba(26, 91, 100, 0.42);
  --glow-warm: rgba(224, 138, 76, 0.16);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas,
    "Liberation Mono", Menlo, monospace;
  --fs-hero: clamp(2.25rem, 5vw, 3.85rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-lead: clamp(1.02rem, 1.5vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.78rem;

  /* Space */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* Geometry */
  --radius: 3px;
  --radius-sm: 2px;
  --radius-lg: 6px;
  --container: 1140px;
  --pad-x: 22px;
  --hair: 1px;
  --cut: 3.5rem;
  --nav-h: 68px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 24, 22, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 24, 22, 0.04), 0 8px 24px rgba(16, 24, 22, 0.07);
  --shadow-lg: 0 18px 50px rgba(7, 30, 35, 0.18);
  --ring: 0 0 0 3px rgba(164, 74, 23, 0.38);
  --ring-light: 0 0 0 3px rgba(224, 138, 76, 0.55);

  --t-fast: 150ms ease;
  --t-med: 200ms ease;
}

/* --- Base -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--primary-600); }

ul, ol { margin: 0 0 var(--s3); padding-left: var(--s4); }
li { margin-bottom: var(--s1); }
li:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.measure { max-width: 68ch; }
.measure-narrow { max-width: 56ch; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Utility label (mono, drawing-sheet callout) ----------------------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow-light { color: var(--accent-bright); }

/* --- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  background: rgba(242, 244, 243, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hair) solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--nav-h);
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--text-dark); }

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wordmark-text { font-size: var(--fs-sm); line-height: 1.15; }
.wordmark-suffix {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-link {
  position: relative;
  padding: var(--s1) 0;
  color: var(--text-mid);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--text-dark); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--text-dark); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  border: var(--hair) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-dark);
  border-radius: var(--radius-sm);
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 0.8rem 1.6rem;
  border: var(--hair) solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t-fast),
    color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-med);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}

.btn-light {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border-dark);
}
.btn-light:hover {
  background: rgba(219, 227, 225, 0.10);
  color: var(--surface);
  border-color: var(--text-dim);
}

.btn-sm { padding: 0.55rem 1.05rem; font-size: var(--fs-xs); }

.btn-light:focus-visible { box-shadow: var(--ring-light); }

/* --- Sections ---------------------------------------------------------- */
.section { padding-top: var(--s7); padding-bottom: var(--s7); }
.section-tight { padding-top: var(--s6); padding-bottom: var(--s6); }
.section-alt { background: var(--bg-alt); }
.section-paper { background: var(--surface); }

.section-dark {
  position: relative;
  background: var(--primary);
  color: var(--text-light);
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line-light) var(--hair), transparent var(--hair)),
    linear-gradient(90deg, var(--grid-line-light) var(--hair), transparent var(--hair));
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
}
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: var(--surface); }

.section-head { max-width: 62ch; margin-bottom: var(--s5); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: var(--fs-lead);
  color: var(--text-mid);
  max-width: 66ch;
}
.section-dark .lede { color: var(--text-dim); }

.rule {
  height: var(--hair);
  background: var(--border);
  border: 0;
  margin: var(--s5) 0;
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(90% 120% at 8% -10%, var(--primary-600) 0%, transparent 58%),
    linear-gradient(158deg, var(--primary) 0%, var(--primary-deep) 72%);
  color: var(--text-light);
  overflow: hidden;
  padding-top: var(--s7);
  padding-bottom: calc(var(--s7) + var(--cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line-light) var(--hair), transparent var(--hair)),
    linear-gradient(90deg, var(--grid-line-light) var(--hair), transparent var(--hair));
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 60%;
  padding-bottom: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s6);
  align-items: center;
  min-height: 58vh;
}

.hero-copy { min-width: 0; }

.hero-title { color: var(--surface); margin-bottom: var(--s4); }
.hero-title em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: var(--s5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: var(--hair) solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Signature: schematic anchor panel */
.hero-anchor {
  position: relative;
  padding: var(--s5);
  background: rgba(7, 30, 35, 0.45);
  border: var(--hair) solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-anchor::before,
.hero-anchor::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: var(--hair) solid var(--accent-bright);
}
.hero-anchor::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-anchor::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero-anchor svg { display: block; width: 100%; height: auto; color: var(--primary-300); }
.schematic-line { stroke: currentColor; stroke-width: 1.5; fill: none; }
.schematic-accent { stroke: var(--accent-bright); stroke-width: 1.5; fill: none; }
.schematic-fill { fill: var(--accent-bright); }
.schematic-label {
  fill: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.anchor-caption {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: var(--hair) solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Compact hero for inner pages */
.page-hero {
  position: relative;
  background:
    radial-gradient(80% 130% at 90% -20%, var(--primary-600) 0%, transparent 60%),
    linear-gradient(158deg, var(--primary) 0%, var(--primary-deep) 78%);
  color: var(--text-light);
  overflow: hidden;
  padding-top: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: var(--hair) solid var(--primary-deep);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line-light) var(--hair), transparent var(--hair)),
    linear-gradient(90deg, var(--grid-line-light) var(--hair), transparent var(--hair));
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--surface); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lede { color: var(--text-dim); }

/* --- Value props ------------------------------------------------------- */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.prop { border-top: 2px solid var(--primary); padding-top: var(--s3); }
.prop h3 { margin-bottom: var(--s1); }
.prop p { color: var(--text-mid); font-size: var(--fs-sm); }
.section-dark .prop { border-top-color: var(--accent-bright); }
.section-dark .prop p { color: var(--text-dim); }

/* --- Services ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.services-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card {
  position: relative;
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.service-card::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: var(--hair) solid var(--accent);
  border-right: var(--hair) solid var(--accent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}
.service-card:hover::after { opacity: 1; }
.service-card p { color: var(--text-mid); font-size: var(--fs-sm); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s3);
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent);
}
.icon-tile svg { display: block; }

.service-index {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  padding: 2px var(--s1);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.detail-list {
  margin: var(--s3) 0 0;
  padding: var(--s3) 0 0;
  border-top: var(--hair) solid var(--border);
  list-style: none;
}
.detail-list li {
  position: relative;
  padding-left: var(--s4);
  font-size: var(--fs-sm);
  color: var(--text-mid);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: var(--hair);
  background: var(--accent);
}

/* --- Split band (two columns) ------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
  align-items: center;
}
.split-copy { min-width: 0; }
.split-reverse .split-media { order: -1; }

.split-media {
  position: relative;
  padding: var(--s5);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) var(--hair), transparent var(--hair)),
    linear-gradient(90deg, var(--grid-line) var(--hair), transparent var(--hair));
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
}
.split-media svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  color: var(--primary-600);
}
.split-media .schematic-label { fill: var(--text-mid); }

/* --- Process (a real sequence, so it is numbered) ---------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s6);
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-left: var(--s6);
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.process-step h3 { margin-bottom: var(--s1); }
.process-step p { color: var(--text-mid); font-size: var(--fs-sm); }
.section-dark .process-step p { color: var(--text-dim); }
.section-dark .process-step::before { color: var(--accent-bright); }

/* --- Credentials strip (factual only) ---------------------------------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--hair);
  background: var(--border-dark);
  border: var(--hair) solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.cred-item {
  padding: var(--s4);
  background: var(--primary);
}
.cred-label {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.cred-value {
  display: block;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--surface);
}

/* --- CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--primary-deep);
  color: var(--text-light);
  overflow: hidden;
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -60%;
  width: 46%;
  padding-bottom: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-warm) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.cta-inner h2 { margin-bottom: var(--s1); color: var(--surface); }
.cta-inner p { color: var(--text-dim); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* --- Contact ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s6);
  align-items: start;
}

.panel {
  padding: var(--s5);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: var(--s3); }
.label {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 600;
}
.input,
.textarea,
.select {
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 8rem; resize: vertical; }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: var(--ring);
}
.form-note {
  margin-top: var(--s3);
  font-size: var(--fs-xs);
  color: var(--text-mid);
}

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  padding: var(--s3) 0;
  border-bottom: var(--hair) solid var(--border);
  margin: 0;
}
.info-list li:last-child { border-bottom: 0; }
.info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 2px;
}
.info-value { font-weight: 600; word-break: break-word; }

/* --- Prose (legal pages) ----------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 {
  margin-top: var(--s6);
  margin-bottom: var(--s3);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  padding-top: var(--s3);
  border-top: var(--hair) solid var(--border);
}
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: var(--s4); }
.prose p, .prose li { color: var(--text-mid); }
.prose strong { color: var(--text-dark); }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-bottom: var(--s5);
  padding: var(--s3) var(--s4);
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* --- Footer ------------------------------------------------------------ */
.footer {
  background: var(--primary-deep);
  color: var(--text-dim);
  border-top: var(--hair) solid var(--primary-600);
  padding-top: var(--s6);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  padding-bottom: var(--s5);
}

.footer-col { min-width: 0; }

.footer .wordmark { color: var(--text-light); margin-bottom: var(--s3); }
.footer .wordmark:hover { color: var(--surface); }
.footer .wordmark-mark { background: var(--accent); color: var(--surface); }
.footer .wordmark-suffix { color: var(--text-dim); }

.footer-blurb { max-width: 42ch; color: var(--text-dim); }

.footer-ids {
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.footer-ids span { display: block; }

.footer-title {
  margin-bottom: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--s2); }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--surface); text-decoration: underline; }
.footer-links a:focus-visible { box-shadow: var(--ring-light); }

.footer-bottom {
  border-top: var(--hair) solid var(--border-dark);
  background: var(--primary);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-legal a { color: var(--text-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--surface); text-decoration: underline; }
.footer-legal a:focus-visible { box-shadow: var(--ring-light); }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .props-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: var(--s5); }
}

@media (max-width: 768px) {
  :root { --cut: 2rem; --grid-size: 32px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--s3);
    border-top: var(--hair) solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link {
    padding: var(--s2) 0;
    border-bottom: var(--hair) solid var(--border);
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent); }
  .nav-cta { margin-top: var(--s3); }

  .section { padding-top: var(--s6); padding-bottom: var(--s6); }
  .section-tight { padding-top: var(--s5); padding-bottom: var(--s5); }
  .cta-band { padding-top: var(--s5); padding-bottom: var(--s5); }
  .hero { padding-top: var(--s6); padding-bottom: calc(var(--s6) + var(--cut)); }
  .page-hero { padding-top: var(--s5); padding-bottom: var(--s5); }

  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-anchor { display: none; }

  .props-grid,
  .services-grid,
  .services-grid-2,
  .split,
  .process,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }

  .split-reverse .split-media { order: 0; }
  .panel { padding: var(--s4); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}

@media (max-width: 460px) {
  .cred-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .service-index { position: static; display: inline-block; margin-bottom: var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover, .service-card:hover { transform: none; }
}

@media print {
  .site-header, .cta-band, .hero-anchor { display: none; }
  body { background: var(--surface); color: var(--text-dark); }
}
