/* ==========================================================================
   Gullway Pty Ltd — freight, distribution & warehousing, Melbourne south-east
   Art direction: "harbour slate + signal amber"
   Shape language: SHARP — 3px radius, hairline rules, square marks, tight tracking
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — every value below this block must reference one of these
   -------------------------------------------------------------------------- */
:root {
  /* brand + accent */
  --primary: #14323f;
  --primary-deep: #0d2430;
  --primary-600: #1d4a5c;
  --primary-tint: #e7eef0;
  --accent: #d9930f;
  --accent-deep: #8f5d05;
  --accent-tint: #fbf2de;

  /* surfaces */
  --bg: #ffffff;
  --bg-alt: #f4f7f7;
  --surface: #ffffff;

  /* ink */
  --text-dark: #101b1f;
  --text-body: #3c4b50;
  --text-light: #5c6c71;
  --on-dark: #eef3f4;
  --on-dark-muted: #a9bec5;

  /* lines */
  --border: #dde3e4;
  --border-strong: #c3ced1;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* translucent layers (kept as tokens so no raw colour appears below) */
  --veil: rgba(255, 255, 255, 0.05);
  --veil-strong: rgba(255, 255, 255, 0.16);
  --glow: rgba(217, 147, 15, 0.20);
  --glow-soft: rgba(217, 147, 15, 0.10);
  --scrim: rgba(255, 255, 255, 0.86);
  --ink-wash: rgba(16, 27, 31, 0.06);

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

  /* geometry */
  --radius: 3px;
  --radius-lg: 4px;
  --container: 1140px;
  --gutter: 1.375rem;
  --measure: 66ch;
  --hairline: 1px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(16, 27, 31, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 27, 31, 0.04), 0 8px 24px rgba(16, 27, 31, 0.07);
  --shadow-lg: 0 18px 48px rgba(13, 36, 48, 0.18);

  /* type */
  --ff-display: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --ff-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-h1: clamp(2rem, 4.2vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1.6vw, 1.25rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.78rem;

  /* motion */
  --speed: 180ms;
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. 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-body);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--text-dark);
  margin: 0 0 var(--s3);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

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

p { margin: 0 0 var(--s3); max-width: var(--measure); }
ul, ol { max-width: var(--measure); }

a {
  color: var(--primary-600);
  text-decoration-thickness: var(--hairline);
  text-underline-offset: 3px;
  transition: color var(--speed) var(--ease);
}
a:hover { color: var(--accent-deep); }

strong { color: var(--text-dark); font-weight: 700; }

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

.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;
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(var(--s1) * -8);
  z-index: 60;
  background: var(--accent);
  color: var(--primary-deep);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-small);
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: var(--s2); color: var(--primary-deep); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--s7) 0; }
.section-tight { padding: var(--s6) 0; }
.section-alt { background: var(--bg-alt); }

.section-dark {
  background:
    radial-gradient(760px 320px at 84% 0%, var(--glow-soft), transparent 62%),
    linear-gradient(150deg, var(--primary-deep), var(--primary) 60%, var(--primary-600));
  color: var(--on-dark);
}
.section-dark h2,
.section-dark h3 { color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }

.eyebrow {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 var(--s2);
}
.eyebrow-light { color: var(--accent); }

.section-head { max-width: 46rem; margin: 0 0 var(--s5); }
.section-head p { font-size: var(--fs-lead); color: var(--text-light); margin-bottom: 0; }
.section-dark .section-head p { color: var(--on-dark-muted); }

.lead { font-size: var(--fs-lead); color: var(--text-light); }

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

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

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

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text-dark);
  background: transparent;
}
.btn-outline:hover {
  color: var(--text-dark);
  border-color: var(--primary);
  background: var(--primary-tint);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: var(--veil-strong);
  color: var(--on-dark);
  background: transparent;
}
.btn-outline-light:hover {
  color: var(--primary-deep);
  background: var(--on-dark);
  border-color: var(--on-dark);
  transform: translateY(-1px);
}

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

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--scrim);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hairline) solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--text-dark);
}
.brand:hover { color: var(--text-dark); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.brand-suffix {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
}
.nav-link:hover { color: var(--text-dark); }
.nav-link.active { color: var(--text-dark); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}

.nav-cta { margin-left: var(--s1); }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dark);
  cursor: pointer;
}
.hamburger:hover { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  padding: var(--s7) 0 var(--s7);
  background:
    radial-gradient(900px 440px at 76% 14%, var(--glow), transparent 62%),
    linear-gradient(158deg, var(--primary-deep) 0%, var(--primary) 52%, var(--primary-600) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(118deg, var(--veil) 0 1px, transparent 1px 15px);
}

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

.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  margin-bottom: var(--s3);
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
  max-width: 34rem;
  margin-bottom: 0;
}

.hero-note {
  margin: var(--s4) 0 0;
  padding-top: var(--s3);
  border-top: var(--hairline) solid var(--border-dark);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  max-width: 34rem;
}

/* hero visual anchor */
.hero-anchor { position: relative; }

.anchor-panel {
  position: relative;
  z-index: 1;
  border: var(--hairline) solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: var(--veil);
  padding: var(--s4);
  box-shadow: var(--shadow-lg);
}

.anchor-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-bottom: var(--s2);
  margin-bottom: var(--s3);
  border-bottom: var(--hairline) solid var(--border-dark);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--on-dark-muted);
}
.anchor-chip {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent);
}

.hero-art { display: block; width: 100%; height: auto; color: var(--on-dark); }
.art-line { stroke: currentColor; opacity: 0.85; }
.art-route { stroke: var(--accent); }
.art-node { fill: var(--accent); }
.art-soft { stroke: currentColor; opacity: 0.45; }

.anchor-offset {
  position: absolute;
  inset: auto auto calc(var(--s4) * -1) calc(var(--s4) * -1);
  width: 60%;
  height: 60%;
  border: var(--hairline) solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, var(--veil) 0 2px, transparent 2px 9px);
}

/* compact page hero for inner pages */
.page-hero {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  padding: var(--s6) 0 var(--s6);
  background:
    radial-gradient(700px 320px at 82% 0%, var(--glow), transparent 64%),
    linear-gradient(158deg, var(--primary-deep), var(--primary) 60%, var(--primary-600));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s4)), 0 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(118deg, var(--veil) 0 1px, transparent 1px 15px);
}
.page-hero h1 { color: var(--on-dark); max-width: 22ch; }
.page-hero p {
  color: var(--on-dark-muted);
  font-size: var(--fs-lead);
  max-width: 44ch;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Value props
   -------------------------------------------------------------------------- */
.props {
  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 { margin-bottom: 0; color: var(--text-light); font-size: var(--fs-small); }

/* --------------------------------------------------------------------------
   8. 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;
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: var(--s5);
  height: 3px;
  background: var(--accent);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-card h3 { margin-bottom: var(--s1); }
.service-card p { color: var(--text-light); margin-bottom: 0; font-size: var(--fs-small); }

.service-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s3);
  background: var(--accent-tint);
  color: var(--accent-deep);
  border-radius: var(--radius);
}
.section-dark .service-icon { background: var(--veil); color: var(--accent); }

.service-list {
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-light);
}
.service-list li {
  position: relative;
  padding-left: var(--s4);
  margin-bottom: var(--s1);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Consignment flow (a genuine sequence, so it is numbered)
   -------------------------------------------------------------------------- */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
}
.flow::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 1.1rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
  opacity: 0.55;
}
.flow-step { position: relative; }
.step-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: var(--s3);
  background: var(--accent);
  color: var(--primary-deep);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-small);
  border-radius: var(--radius);
}
.flow-step h3 { color: var(--on-dark); margin-bottom: var(--s1); }
.flow-step p { color: var(--on-dark-muted); font-size: var(--fs-small); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Split band (copy beside a CSS/SVG visual)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}
.split-reverse .split-visual { order: -1; }
.split-copy p { color: var(--text-light); }

.panel-stack { position: relative; padding: 0 var(--s4) var(--s4) 0; }
.panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-md);
}
.panel-behind {
  position: absolute;
  z-index: 0;
  right: 0; bottom: 0;
  width: 72%;
  height: 78%;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--ink-wash) 0 2px, transparent 2px 10px);
}
.panel-mono {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
  margin: 0 0 var(--s2);
}
.panel-caption {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 var(--s4);
}
.panel-svg { display: block; width: 100%; height: auto; color: var(--primary); }

.check-list { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.check-item {
  position: relative;
  padding-left: var(--s5);
  margin-bottom: var(--s3);
  font-size: var(--fs-small);
  color: var(--text-light);
}
.check-item strong { display: block; color: var(--text-dark); font-size: var(--fs-body); }
.check-icon {
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   11. Credentials strip (factual only)
   -------------------------------------------------------------------------- */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--hairline) solid var(--border);
  border-bottom: var(--hairline) solid var(--border);
}
.cred-item {
  padding: var(--s4) var(--s4) var(--s4) 0;
  border-right: var(--hairline) solid var(--border);
}
.cred-item:last-child { border-right: 0; }
.cred-label {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--s1);
}
.cred-value {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   12. Coverage list
   -------------------------------------------------------------------------- */
.coverage {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  max-width: none;
}
.coverage li {
  padding: var(--s1) var(--s3);
  border: var(--hairline) solid var(--border-dark);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  background: var(--veil);
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--primary-deep);
  color: var(--on-dark);
  padding: var(--s6) 0;
  border-top: 3px solid var(--accent);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--on-dark); margin-bottom: var(--s1); max-width: 20ch; }
.cta-inner p { color: var(--on-dark-muted); margin-bottom: 0; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

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

.contact-form {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.field { display: block; margin-bottom: var(--s3); }
.field label {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s1);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--primary-600); }
.form-hint { font-size: var(--fs-small); color: var(--text-light); margin: var(--s3) 0 0; }

.contact-card {
  background: var(--bg-alt);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
}
.contact-card + .contact-card { margin-top: var(--s4); }
.detail-row {
  padding: var(--s3) 0;
  border-bottom: var(--hairline) solid var(--border);
}
.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-row:first-of-type { padding-top: 0; }
.detail-label {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--s1);
}
.detail-value {
  display: block;
  font-size: var(--fs-body);
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   15. Legal pages
   -------------------------------------------------------------------------- */
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.toc {
  position: sticky;
  top: 5.5rem;
  border-left: 2px solid var(--accent);
  padding-left: var(--s3);
}
.toc-title {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 var(--s2);
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: var(--s1); }
.toc-list a { font-size: var(--fs-small); color: var(--text-body); text-decoration: none; }
.toc-list a:hover { color: var(--accent-deep); text-decoration: underline; }

.legal-body h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: var(--hairline) solid var(--border);
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { margin-top: var(--s4); }
.legal-body ul { padding-left: var(--s4); }
.legal-body li { margin-bottom: var(--s1); }
.legal-updated {
  font-size: var(--fs-small);
  color: var(--text-light);
  padding: var(--s3);
  background: var(--bg-alt);
  border-left: 2px solid var(--primary);
  margin-bottom: var(--s5);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-deep);
  color: var(--on-dark-muted);
  border-top: 3px solid var(--accent);
  padding-top: var(--s6);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  padding-bottom: var(--s5);
}
.footer h4 {
  color: var(--on-dark);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
  font-weight: 700;
}
.footer-blurb {
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  margin: var(--s3) 0;
  max-width: 34ch;
}
.footer-reg {
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.footer-reg span { display: block; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--s1); }
.footer-links a,
.footer-contact a {
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  text-decoration: none;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--accent); text-decoration: underline; }
.footer-contact { font-size: var(--fs-small); margin: 0; }
.footer-contact span { display: block; margin-bottom: var(--s1); word-break: break-word; }
.footer .brand-name { color: var(--on-dark); }
.footer .brand-suffix { color: var(--on-dark-muted); }
.footer .brand:hover { color: var(--on-dark); }

.footer-bottom {
  border-top: var(--hairline) solid var(--border-dark);
  padding: var(--s3) 0 var(--s4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-size: var(--fs-small);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: var(--on-dark-muted); text-decoration: none; font-size: var(--fs-small); }
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }
.footer-copy { margin: 0; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   17. Responsive — breakpoint at 768px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
  .flow::before { display: none; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .toc { position: static; }
}

@media (max-width: 768px) {
  .section { padding: var(--s6) 0; }
  .section-tight { padding: var(--s5) 0; }

  .hamburger { display: inline-flex; }

  .nav-menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--bg);
    border-bottom: var(--hairline) solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: var(--s2) 0; border-bottom: var(--hairline) solid var(--border); }
  .nav-link.active::after { width: var(--s5); right: auto; }
  .nav-cta { margin: var(--s3) 0 0; }

  .hero { padding: var(--s6) 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .hero-anchor { display: none; }

  .props { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .services-grid,
  .services-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); }

  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .split-reverse .split-visual { order: 0; }
  .panel-stack { padding: 0; }
  .panel-behind { display: none; }

  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-item { border-right: 0; border-bottom: var(--hairline) solid var(--border); padding-right: var(--s3); }
  .cred-item:nth-child(2n) { padding-left: var(--s3); border-left: var(--hairline) solid var(--border); }

  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-form { padding: var(--s4); }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: var(--s4); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1rem; }
  .btn { padding: 0.8rem 1.2rem; }
}

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

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