/* ==========================================================================
   PMR Operations Pty Ltd — pmroperationstec.site
   Art direction: coastal-industrial operations. Basalt-teal + bronze,
   sharp shape language, monospace "job docket" utility layer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — every value below this block references these.
   -------------------------------------------------------------------------- */
:root {
  /* Brand + accent */
  --primary: #1c3b39;
  --primary-dark: #122726;
  --primary-deep: #0d1c1b;
  --primary-soft: #2a5451;
  --accent: #8c5a16;
  --accent-hover: #74490f;
  --accent-bright: #d9a441;
  --accent-tint: #f6efe2;

  /* Neutral ramp (cool, green-shifted shell greys) */
  --bg: #f3f5f3;
  --surface: #ffffff;
  --surface-alt: #e9edea;
  --border: #d2dad6;
  --border-strong: #b6c2bd;

  /* Text */
  --text-dark: #131c1b;
  --text-body: #34413f;
  --text-light: #5c6a67;
  --text-invert: #e8edea;
  --text-invert-soft: #a9b8b4;

  /* Overlays, rules and shadows */
  --rule-invert: rgba(232, 237, 234, 0.16);
  --rule-invert-soft: rgba(232, 237, 234, 0.08);
  --surface-invert: rgba(255, 255, 255, 0.045);
  --glow-accent: rgba(217, 164, 65, 0.16);
  --glow-cool: rgba(64, 132, 126, 0.3);
  --nav-bg: rgba(243, 245, 243, 0.82);
  --nav-bg-solid: #f3f5f3;
  --shadow-sm: 0 1px 2px rgba(19, 28, 27, 0.05);
  --shadow-md: 0 1px 2px rgba(19, 28, 27, 0.04), 0 10px 28px rgba(19, 28, 27, 0.07);
  --shadow-lg: 0 22px 56px rgba(19, 28, 27, 0.16);

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

  /* Geometry */
  --radius: 2px;
  --hair: 1px;
  --container: 1140px;
  --gutter: 22px;
  --measure: 66ch;

  /* Type */
  --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
  --fs-hero: clamp(2.35rem, 5.2vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.15rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;
  --tr-tight: -0.025em;
  --tr-label: 0.12em;

  /* Motion */
  --t-fast: 150ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --t-base: 190ms cubic-bezier(0.2, 0.7, 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: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-snug);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

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

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: var(--hair);
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

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

ul,
ol {
  margin: 0 0 var(--s3);
  padding-left: var(--s4);
}

li {
  margin-bottom: var(--s1);
  max-width: var(--measure);
}

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

svg {
  display: block;
}

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(var(--s3) * -6);
  z-index: 60;
  padding: var(--s2) var(--s3);
  background: var(--primary-dark);
  color: var(--text-invert);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--t-base);
}

.skip-link:focus {
  top: var(--s3);
  color: var(--text-invert);
}

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

/* --------------------------------------------------------------------------
   3. Utility layer — the monospace "docket" device
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: var(--s4);
  height: var(--hair);
  background: var(--accent);
  flex: none;
}

.eyebrow-invert {
  color: var(--accent-bright);
}

.eyebrow-invert::before {
  background: var(--accent-bright);
}

.mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: var(--hair) solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

.navbar {
  position: relative;
  width: 100%;
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  background: var(--primary);
  border-radius: var(--radius);
  color: var(--text-invert);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
}

.brand-sub {
  color: var(--text-light);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

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

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

.nav-links li {
  margin: 0;
  max-width: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  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-base);
}

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

.nav-link.is-active {
  color: var(--text-dark);
  font-weight: 700;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 var(--s2);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   5. 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(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-base), background-color var(--t-base),
    color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

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

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

.btn-invert {
  background: transparent;
  border-color: var(--rule-invert);
  color: var(--text-invert);
}

.btn-invert:hover {
  background: var(--surface-invert);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.btn-sm {
  padding: var(--s1) var(--s3);
  font-size: var(--fs-xs);
}

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

.btn-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --------------------------------------------------------------------------
   6. Hero (homepage) + page hero (inner pages)
   -------------------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--primary-dark);
  background-image: radial-gradient(60% 80% at 82% 8%, var(--glow-accent), transparent 62%),
    radial-gradient(70% 90% at 6% 96%, var(--glow-cool), transparent 60%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 52%, var(--primary-deep) 100%);
  border-bottom: 3px solid var(--accent);
  color: var(--text-invert);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
      to bottom,
      var(--rule-invert-soft) 0,
      var(--rule-invert-soft) var(--hair),
      transparent var(--hair),
      transparent 34px
    ),
    repeating-linear-gradient(
      to right,
      var(--rule-invert-soft) 0,
      var(--rule-invert-soft) var(--hair),
      transparent var(--hair),
      transparent 34px
    );
}

.hero-coast {
  position: absolute;
  right: -4%;
  bottom: -6%;
  z-index: -1;
  width: 62%;
  max-width: 720px;
  height: auto;
  color: var(--accent-bright);
  opacity: 0.16;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--s6);
  min-height: 60vh;
  padding: var(--s7) 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-title {
  margin: 0 0 var(--s3);
  color: var(--text-invert);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  max-width: 15ch;
}

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

.hero-lead {
  max-width: 46ch;
  color: var(--text-invert-soft);
  font-size: var(--fs-lead);
}

.page-hero-inner {
  padding: var(--s6) 0;
  max-width: 62ch;
}

.page-title {
  color: var(--text-invert);
  font-weight: 800;
}

.page-lead {
  margin: var(--s3) 0 0;
  max-width: 58ch;
  color: var(--text-invert-soft);
  font-size: var(--fs-lead);
}

/* The signature docket panel — always renders dark, on light or dark bands */
.docket {
  position: relative;
  z-index: 1;
  background-color: var(--primary-dark);
  background-image: radial-gradient(70% 90% at 88% 4%, var(--glow-accent), transparent 62%),
    linear-gradient(155deg, var(--primary-soft) 0%, var(--primary-dark) 55%, var(--primary-deep) 100%);
  border: var(--hair) solid var(--rule-invert);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.docket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-bottom: var(--hair) solid var(--rule-invert);
  color: var(--accent-bright);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.docket-head span {
  color: var(--text-invert-soft);
  font-weight: 400;
}

.docket-list {
  margin: 0;
  padding: var(--s2) var(--s3);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
}

.docket-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: var(--hair) dashed var(--rule-invert-soft);
}

.docket-row:last-child {
  border-bottom: 0;
}

.docket-k {
  margin: 0;
  color: var(--text-invert-soft);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docket-v {
  margin: 0;
  max-width: none;
  color: var(--text-invert);
  overflow-wrap: anywhere;
}

.docket-v a {
  color: var(--accent-bright);
}

.docket-v a:hover {
  color: var(--text-invert);
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--s7) 0;
}

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

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

.section.section-dark {
  background-color: var(--primary-dark);
  background-image: linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--text-invert-soft);
}

.section.section-dark h2,
.section.section-dark h3 {
  color: var(--text-invert);
}

.section.section-tight {
  padding: var(--s6) 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: var(--s5);
}

.section-head p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: var(--fs-lead);
}

.section-dark .section-head p {
  color: var(--text-invert-soft);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  max-width: none;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

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

.prop {
  padding-top: var(--s3);
  border-top: 2px solid var(--primary);
}

.prop-title {
  margin: var(--s3) 0 var(--s1);
}

.prop-text {
  margin: 0;
  color: var(--text-light);
  font-size: var(--fs-sm);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-tint);
  border-radius: var(--radius);
  color: var(--accent);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

.icon-tile-invert {
  background: var(--surface-invert);
  border: var(--hair) solid var(--rule-invert);
  color: var(--accent-bright);
}

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

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

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

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

.service-index {
  display: block;
  margin-bottom: var(--s3);
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-label);
}

.service-title {
  margin: var(--s3) 0 var(--s2);
}

.service-text {
  margin: 0 0 var(--s3);
  color: var(--text-light);
  font-size: var(--fs-sm);
}

.service-points {
  margin: auto 0 0;
  padding: var(--s3) 0 0;
  border-top: var(--hair) solid var(--border);
  list-style: none;
}

.service-points li {
  position: relative;
  margin: 0 0 var(--s1);
  padding-left: var(--s4);
  color: var(--text-body);
  font-size: var(--fs-sm);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: var(--s2);
  height: var(--hair);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   10. Split band + process rail
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s6);
}

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

.split-copy p {
  color: var(--text-light);
}

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

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

.process {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process li {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0 0 var(--s4) var(--s5);
  border-left: var(--hair) solid var(--border);
  counter-increment: step;
}

.process li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.process li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  background: var(--primary);
  border-radius: var(--radius);
  color: var(--text-invert);
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.process-title {
  margin: 0 0 var(--s1);
}

.process-text {
  margin: 0;
  color: var(--text-light);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   11. Dark-band overrides (hold AA contrast when components sit on a dark band)
   -------------------------------------------------------------------------- */
.section-dark .split-copy p,
.section-dark .process-text,
.section-dark .service-text {
  color: var(--text-invert-soft);
}

.section-dark .process li {
  border-left-color: var(--rule-invert);
}

.section-dark .process li:last-child {
  border-left-color: transparent;
}

.section-dark .process li::before {
  background: var(--accent-bright);
  color: var(--primary-deep);
}

.section-dark .service-card {
  background: var(--surface-invert);
  border-color: var(--rule-invert);
}

.section-dark .service-card:hover {
  border-color: var(--accent-bright);
  box-shadow: none;
}

.section-dark .service-index {
  color: var(--accent-bright);
}

.section-dark .service-points {
  border-top-color: var(--rule-invert);
}

.section-dark .service-points li {
  color: var(--text-invert-soft);
}

.section-dark .service-points li::before {
  background: var(--accent-bright);
}

.section-dark .icon-tile {
  background: var(--surface-invert);
  border: var(--hair) solid var(--rule-invert);
  color: var(--accent-bright);
}

.section-dark a {
  color: var(--accent-bright);
}

.section-dark a:hover {
  color: var(--text-invert);
}

/* --------------------------------------------------------------------------
   12. Credentials strip + service area
   -------------------------------------------------------------------------- */
.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hair);
  background: var(--rule-invert);
  border: var(--hair) solid var(--rule-invert);
  border-radius: var(--radius);
  overflow: hidden;
}

.cred {
  padding: var(--s4);
  background-color: var(--primary-dark);
}

.cred-k {
  margin: 0 0 var(--s1);
  max-width: none;
  color: var(--accent-bright);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.cred-v {
  margin: 0;
  max-width: none;
  color: var(--text-invert);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  margin: 0;
  max-width: none;
  padding: var(--s1) var(--s3);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  color: var(--text-body);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   13. CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--primary-deep);
  background-image: radial-gradient(50% 120% at 90% 10%, var(--glow-accent), transparent 60%),
    linear-gradient(120deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  border-top: 3px solid var(--accent);
  color: var(--text-invert-soft);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s6) 0;
}

.cta-title {
  margin: 0 0 var(--s2);
  color: var(--text-invert);
  font-size: var(--fs-h2);
  font-weight: 800;
  max-width: 20ch;
}

.cta-text {
  margin: 0;
  max-width: 52ch;
  color: var(--text-invert-soft);
  font-size: var(--fs-sm);
}

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

/* --------------------------------------------------------------------------
   14. Prose (legal + long-form pages)
   -------------------------------------------------------------------------- */
.prose-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s6);
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 var(--s3);
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list li {
  margin: 0;
  max-width: none;
  border-top: var(--hair) solid var(--border);
}

.toc-list li:first-child {
  border-top: 0;
}

.toc-list a {
  display: block;
  padding: var(--s2) 0;
  color: var(--text-body);
  font-size: var(--fs-sm);
  text-decoration: none;
}

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

.prose {
  min-width: 0;
}

.prose h2 {
  margin: var(--s6) 0 var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--primary);
  font-size: calc(var(--fs-h3) * 1.35);
  scroll-margin-top: 92px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin: var(--s4) 0 var(--s2);
}

.prose p,
.prose li {
  color: var(--text-body);
}

.legal-meta {
  margin: 0 0 var(--s5);
  padding: var(--s3) var(--s4);
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.legal-meta p {
  margin: 0;
  max-width: none;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  line-height: 1.9;
  color: var(--text-body);
}

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

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

.contact-card + .contact-card {
  margin-top: var(--s4);
}

.contact-card h3 {
  margin: var(--s3) 0 var(--s2);
}

.contact-card p {
  margin: 0;
  color: var(--text-light);
  font-size: var(--fs-sm);
}

.contact-email {
  display: inline-block;
  margin-top: var(--s2);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-form {
  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(--s4);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

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

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  background: var(--bg);
  border: var(--hair) solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  background: var(--surface);
  border-color: var(--primary);
}

.field-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin: var(--s3) 0 0;
  color: var(--text-light);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-deep);
  border-top: 3px solid var(--accent);
  color: var(--text-invert-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s5);
  padding-top: var(--s6);
  padding-bottom: var(--s5);
}

.footer-col h3 {
  margin: 0 0 var(--s3);
  color: var(--accent-bright);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

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

.footer-brand-name {
  color: var(--text-invert);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
}

.footer-text {
  margin: 0 0 var(--s3);
  max-width: 38ch;
  font-size: var(--fs-sm);
}

.footer-meta {
  margin: 0;
  padding: var(--s3) 0 0;
  border-top: var(--hair) solid var(--rule-invert);
  color: var(--text-invert-soft);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  line-height: 1.9;
  max-width: none;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin: 0 0 var(--s1);
  max-width: none;
}

.footer-list a,
.footer-link {
  color: var(--text-invert-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-list a:hover,
.footer-link:hover {
  color: var(--accent-bright);
}

.footer-bar {
  border-top: var(--hair) solid var(--rule-invert);
  background: var(--primary-dark);
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.footer-copy {
  margin: 0;
  max-width: none;
  color: var(--text-invert-soft);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal li {
  margin: 0;
  max-width: none;
}

.footer-legal a {
  color: var(--text-invert-soft);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .split,
  .contact-grid,
  .prose-layout {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

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

  .toc {
    position: static;
  }

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

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

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

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --s7: 3.5rem;
    --s6: 2.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--nav-bg-solid);
    border-bottom: var(--hair) 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-link {
    padding: var(--s3) 0;
    border-bottom: var(--hair) solid var(--border);
    font-size: var(--fs-body);
  }

  .nav-link::after {
    bottom: 0;
  }

  .nav-cta {
    margin-top: var(--s3);
  }

  .hero-coast {
    display: none;
  }

  .hero-inner {
    min-height: 0;
    padding: var(--s6) 0 var(--s5);
  }

  .hero-title {
    max-width: none;
  }

  .services-grid,
  .services-grid.services-grid-2,
  .props,
  .creds,
  .field-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .docket-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .brand-sub {
    display: none;
  }
}

@media (max-width: 420px) {
  .btn {
    width: 100%;
  }

  .btn.btn-sm {
    width: auto;
  }
}

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