/* ==========================================================================
   Measured Studio Pty Ltd — measuredstudiotec.site
   Art direction: drafting ink + redline. Sharp shape language, hairline
   rules, monospace annotation type. All values below come from the token
   block; nothing is hard-coded past it.
   ========================================================================== */

:root {
  /* Type stacks ---------------------------------------------------------- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Courier New", monospace;

  /* Type scale ----------------------------------------------------------- */
  --fs-hero: clamp(2.35rem, 5.2vw, 4rem);
  --fs-page-title: clamp(2rem, 4.2vw, 3rem);
  --fs-h2: clamp(1.65rem, 3vw, 2.35rem);
  --fs-h3: 1.15rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.65;
  --track-tight: -0.022em;
  --track-label: 0.14em;

  /* Colour --------------------------------------------------------------- */
  --primary: #203038;
  --primary-deep: #16232a;
  --primary-mid: #35505c;
  --accent: #b8482a;
  --accent-deep: #93361e;
  --accent-light: #e2825e;
  --bg: #f6f7f7;
  --surface: #ffffff;
  --surface-alt: #eceeef;
  --border: #d9dedf;
  --border-strong: #b7bfc2;
  --text-dark: #191e21;
  --text-muted: #56646a;
  --text-light: #cfd7da;
  --text-light-muted: #93a3aa;

  /* Translucent layers --------------------------------------------------- */
  --nav-bg: rgba(246, 247, 247, 0.86);
  --grid-line: rgba(255, 255, 255, 0.055);
  --grid-line-light: rgba(25, 30, 33, 0.05);
  --hairline-dark: rgba(255, 255, 255, 0.13);
  --sheet-bg: rgba(255, 255, 255, 0.035);
  --glow-warm: rgba(184, 72, 42, 0.22);
  --glow-cool: rgba(93, 141, 160, 0.2);
  --tint-accent: rgba(184, 72, 42, 0.1);
  --tint-accent-dark: rgba(226, 130, 94, 0.16);
  --plan-line: rgba(255, 255, 255, 0.6);
  --plan-dim: rgba(255, 255, 255, 0.34);
  --plan-poche: rgba(255, 255, 255, 0.12);
  --ring: rgba(184, 72, 42, 0.4);

  /* Spacing -------------------------------------------------------------- */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 6rem;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --page-hero-y: clamp(2.75rem, 5vw, 4.5rem);
  --container: 1140px;
  --measure: 66ch;

  /* Shape & depth -------------------------------------------------------- */
  --radius: 3px;
  --radius-sm: 2px;
  --shadow-sm: 0 1px 2px rgba(25, 30, 33, 0.06);
  --shadow-md: 0 1px 2px rgba(25, 30, 33, 0.05), 0 10px 28px rgba(25, 30, 33, 0.07);
  --shadow-lift: 0 2px 4px rgba(25, 30, 33, 0.06), 0 18px 40px rgba(25, 30, 33, 0.12);
  --shadow-dark: 0 24px 60px rgba(10, 16, 20, 0.4);
  --speed: 170ms;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-heading);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; }

a { color: var(--accent-deep); }

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(var(--s3) * -6);
  z-index: 100;
  padding: var(--s2) var(--s3);
  background: var(--accent);
  color: var(--surface);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top var(--speed) ease;
}

.skip-link:focus { top: var(--s2); color: var(--surface); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s4);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar { position: relative; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 68px;
}

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

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: var(--fs-small);
}

.wordmark-suffix {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding-block: var(--s2);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.nav-link:hover { color: var(--accent-deep); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) ease;
}

.nav-link.is-active { color: var(--accent-deep); }

.nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0 var(--s2);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-dark);
}

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

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

.btn-sm { padding: 0.55rem 1rem; }

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

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: var(--hairline-dark);
}

.btn-outline-light:hover {
  color: var(--surface);
  border-color: var(--text-light);
  transform: translateY(-1px);
}

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

/* Shared typographic devices ----------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin: 0 0 var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 7px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) left center / 100% 1px no-repeat;
}

.on-dark .eyebrow { color: var(--accent-light); }

.lead {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.on-dark .lead { color: var(--text-light); }

.measure { max-width: var(--measure); }

.prose p + p { margin-top: var(--s3); }

.prose { max-width: var(--measure); color: var(--text-muted); }

.prose strong { color: var(--text-dark); }

/* Signature: dimension rule ------------------------------------------------ */

.dimrule {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-block: var(--s5);
}

.dimrule::before,
.dimrule::after {
  content: "";
  flex: 1;
  height: 9px;
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  background: linear-gradient(var(--border), var(--border)) left center / 100% 1px no-repeat;
}

.dimrule-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

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

.section { padding-block: var(--section-y); }

.section-alt { background: var(--surface-alt); }

.section-head { margin-bottom: var(--s6); }

.section-title { font-size: var(--fs-h2); }

.section-head .lead { margin-top: var(--s3); }

/* Dark bands --------------------------------------------------------------- */

.band-dark {
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  background:
    radial-gradient(120% 95% at 84% 4%, var(--glow-warm) 0%, transparent 56%),
    radial-gradient(95% 75% at 4% 104%, var(--glow-cool) 0%, transparent 62%),
    linear-gradient(158deg, var(--primary) 0%, var(--primary-deep) 72%);
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(var(--grid-line) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 78%);
  mask-image: radial-gradient(130% 100% at 50% 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 78%);
}

.band-dark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(38%, 420px);
  height: 2px;
  background: var(--accent);
}

.band-dark .container { position: relative; z-index: 1; }

.band-dark h1,
.band-dark h2,
.band-dark h3 { color: var(--surface); }

.band-dark a:not(.btn) { color: var(--accent-light); }

.band-dark :focus-visible { outline-color: var(--accent-light); }

/* Hero --------------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s7);
  align-items: center;
}

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

.hero-title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  color: var(--surface);
}

.hero-title em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-lead {
  max-width: 54ch;
  margin-top: var(--s4);
  font-size: var(--fs-lead);
  color: var(--text-light);
}

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

/* Drawing sheet (hero visual anchor) --------------------------------------- */

.sheet {
  position: relative;
  padding: var(--s3);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 22px 100%,
    var(--sheet-bg);
  box-shadow: var(--shadow-dark);
}

.sheet-plan {
  display: block;
  width: 100%;
  height: auto;
  color: var(--plan-line);
}

.sheet-plan .plan-wall { fill: var(--plan-poche); stroke: var(--plan-line); stroke-width: 1.2; }
.sheet-plan .plan-line { fill: none; stroke: var(--plan-line); stroke-width: 1.6; }
.sheet-plan .plan-thin { fill: none; stroke: var(--plan-dim); stroke-width: 1; }
.sheet-plan .plan-accent { fill: none; stroke: var(--accent-light); stroke-width: 1.4; }
.sheet-plan .plan-fill-accent { fill: var(--accent-light); stroke: none; }

.sheet-titleblock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--hairline-dark);
}

.tb-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.tb-val {
  display: block;
  margin-top: var(--s0);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-light);
}

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

.page-hero { padding-block: var(--page-hero-y); }

.page-hero-inner { max-width: 72ch; }

.page-title {
  font-size: var(--fs-page-title);
  line-height: var(--lh-tight);
  color: var(--surface);
}

.page-lead {
  max-width: var(--measure);
  margin-top: var(--s3);
  font-size: var(--fs-lead);
  color: var(--text-light);
}

/* Credentials strip -------------------------------------------------------- */

.facts {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  padding-block: var(--s4);
}

.fact {
  padding-left: var(--s3);
  border-left: 2px solid var(--accent);
}

.fact-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.fact-val {
  display: block;
  margin-top: var(--s0);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-dark);
}

/* 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 {
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease,
    border-color var(--speed) ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--s3);
  color: var(--accent-deep);
  background: var(--tint-accent);
  border-radius: var(--radius-sm);
}

.service-title { font-size: var(--fs-h3); }

.service-text {
  margin-top: var(--s2);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.service-list {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.service-list li + li { margin-top: var(--s0); }

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* Split bands -------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
}

.split-reverse .split-art { order: -1; }

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

.split-art { min-width: 0; }

.art-panel {
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.art-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--primary-mid);
}

.art-svg .art-line { fill: none; stroke: currentColor; stroke-width: 1.5; }
.art-svg .art-thin { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.art-svg .art-accent { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.art-svg .art-fill { fill: var(--surface-alt); stroke: var(--border-strong); stroke-width: 1; }
.art-svg .art-fill-accent { fill: var(--accent); stroke: none; }

.art-caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Sequenced steps (a real order: survey, draft, issue) ---------------------- */

.steps { list-style: none; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: var(--s3);
  padding-block: var(--s3);
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-no {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  color: var(--accent-deep);
  padding-top: 0.35rem;
}

.step-title { font-size: var(--fs-h3); }

.step-text {
  margin-top: var(--s1);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Checklist ---------------------------------------------------------------- */

.checklist { list-style: none; }

.checklist li {
  position: relative;
  padding: var(--s2) 0 var(--s2) var(--s5);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 20px;
  height: 7px;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) left center / 100% 1px no-repeat;
}

.checklist strong { color: var(--text-dark); }

/* Principle rows ----------------------------------------------------------- */

.principles { display: grid; gap: 0; }

.principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--border);
}

.principle:last-child { border-bottom: 1px solid var(--border); }

.principle-title { font-size: var(--fs-h3); }

.principle-text { font-size: var(--fs-small); color: var(--text-muted); }

/* CTA strip ---------------------------------------------------------------- */

.cta-strip { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.cta-title { font-size: var(--fs-h2); }

.cta-text {
  max-width: 52ch;
  margin-top: var(--s2);
  color: var(--text-light);
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s6);
  align-items: start;
}

.contact-card {
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-row { padding-block: var(--s3); border-top: 1px solid var(--border); }

.contact-row:first-of-type { border-top: 0; padding-top: 0; }

.contact-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-val {
  display: block;
  margin-top: var(--s0);
  font-size: var(--fs-small);
  color: var(--text-dark);
  word-break: break-word;
}

.contact-val a { font-weight: 600; }

/* Form --------------------------------------------------------------------- */

.form {
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.field { display: block; margin-bottom: var(--s4); }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.field-label {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-input,
.field-select,
.field-textarea {
  display: block;
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-dark);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.field-textarea { min-height: 9rem; resize: vertical; }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-note {
  margin-top: var(--s3);
  font-size: var(--fs-label);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Legal pages -------------------------------------------------------------- */

.legal { max-width: 74ch; }

.legal-updated {
  display: inline-block;
  margin-bottom: var(--s5);
  padding: var(--s1) var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

.clause { padding-block: var(--s4); border-top: 1px solid var(--border); }

.clause:last-of-type { border-bottom: 1px solid var(--border); }

.clause-head {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.clause-no {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  color: var(--accent-deep);
}

.clause-title { font-size: var(--fs-h3); }

.clause p { color: var(--text-muted); }

.clause p + p { margin-top: var(--s3); }

.clause-list { margin-top: var(--s3); padding-left: var(--s4); }

.clause-list li { color: var(--text-muted); font-size: var(--fs-small); }

.clause-list li + li { margin-top: var(--s1); }

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

.footer {
  padding-top: var(--s7);
  color: var(--text-light);
  background: var(--primary-deep);
  border-top: 1px solid var(--hairline-dark);
}

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

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

.footer-blurb {
  max-width: 44ch;
  margin-top: var(--s3);
  font-size: var(--fs-small);
  color: var(--text-light-muted);
}

.footer-meta {
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.9;
  color: var(--text-light);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.footer-links {
  margin-top: var(--s3);
  list-style: none;
}

.footer-links li + li { margin-top: var(--s1); }

.footer-links a {
  font-size: var(--fs-small);
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: var(--s4);
  border-top: 1px solid var(--hairline-dark);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-light-muted);
}

.footer-legal {
  display: flex;
  gap: var(--s4);
  list-style: none;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-light-muted);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--accent-light); }

.footer :focus-visible { outline-color: var(--accent-light); }

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

@media (max-width: 1000px) {
  .hero-grid,
  .split,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }

  .split-reverse .split-art { order: 0; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
    padding: var(--s3) var(--s4) var(--s4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.is-open { display: flex; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }

  .nav-links li + li { border-top: 1px solid var(--border); }

  .nav-link { padding-block: var(--s3); }

  .nav-link::after { display: none; }

  .nav-link.is-active {
    padding-left: var(--s2);
    border-left: 2px solid var(--accent);
  }

  .hero-art { display: none; }

  .services-grid,
  .services-grid-2 { grid-template-columns: minmax(0, 1fr); }

  .field-row { grid-template-columns: minmax(0, 1fr); }

  .principle { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }

  .step { grid-template-columns: 2.5rem minmax(0, 1fr); }

  .form { padding: var(--s4); }

  .footer { padding-top: var(--s6); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}

@media (max-width: 420px) {
  .facts-grid { grid-template-columns: minmax(0, 1fr); }

  .sheet-titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .btn { width: 100%; }

  .nav-inner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .btn:hover,
  .service-card:hover { transform: none; }
}

@media print {
  .site-header,
  .cta-strip { display: none; }
}
