/* ==========================================================================
   Platinum Finish Rendering Pty Ltd - stylesheet
   Art direction: "sample board". Cool render-stone neutrals, deep slate brand,
   a sparing bronze accent. Sharp shape language (2-4px radius, hairlines),
   condensed DIN-style display type like signwriting on a trade vehicle.
   ========================================================================== */

:root {
  /* Colour */
  --primary: #263540;
  --primary-dark: #1A252D;
  --primary-soft: #E3E8EA;
  --accent: #8A5E17;
  --accent-hover: #6F4B12;
  --accent-light: #D9A94E;
  --bg: #F2F3F1;
  --surface: #FFFFFF;
  --stone: #E4E6E2;
  --border: #D2D6D2;
  --text-dark: #1C2429;
  --text-light: #56616A;
  --text-on-dark: #E9EDEE;
  --muted-on-dark: #A9B5BB;
  --line-on-dark: rgba(233, 237, 238, 0.14);
  --nav-bg: rgba(242, 243, 241, 0.84);
  --glow: rgba(217, 169, 78, 0.22);
  --glow-dark: rgba(217, 169, 78, 0.12);
  --trowel-line: rgba(38, 53, 64, 0.06);
  --grain-dark: rgba(28, 36, 41, 0.14);
  --grain-light: rgba(255, 255, 255, 0.5);
  --sw-white: #EEEEE9;
  --sw-cement: #B8BCB8;
  --sw-sand: #CFC3AC;
  --sw-charcoal: #4B545A;

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Franklin Gothic Medium", "Arial Narrow", -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-page: clamp(2rem, 4.2vw, 3.2rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: var(--s7);

  /* Layout */
  --container: 1140px;
  --gutter: 1.25rem;
  --measure: 66ch;
  --nav-h: 4.25rem;

  /* Shape and depth */
  --radius: 2px;
  --radius-lg: 4px;
  --rule: 1px;
  --bar: 3px;
  --shadow-sm: 0 1px 2px rgba(28, 36, 41, 0.05);
  --shadow-md: 0 1px 2px rgba(28, 36, 41, 0.04), 0 8px 24px rgba(28, 36, 41, 0.07);
  --shadow-lg: 0 2px 4px rgba(28, 36, 41, 0.05), 0 24px 48px rgba(28, 36, 41, 0.14);

  /* Motion */
  --ease: 180ms ease;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--s3));
}

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

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

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

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  transition: color var(--ease);
}

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

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

main { display: block; }

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(-1 * var(--s6));
  z-index: 100;
  padding: var(--s1) var(--s3);
  background: var(--primary);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  text-decoration: none;
}

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

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

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 54ch;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Eyebrow ---------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin: 0 0 var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: var(--s4);
  height: 2px;
  background: currentColor;
}

/* Navigation ------------------------------------------------------------- */

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

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--nav-h);
}

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

.brand:hover { color: var(--text-dark); }

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--primary);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  box-shadow: inset 0 calc(-1 * var(--bar)) 0 var(--accent-light);
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: var(--s0);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
}

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

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

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: var(--s1);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.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(--ease);
}

.nav-link:hover { color: var(--text-dark); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s0);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--ease), opacity var(--ease);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: var(--s2) var(--s4);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}

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

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

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

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

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

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

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

/* Hero (shared texture with page hero) ------------------------------------ */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 70% at 88% 25%, var(--glow), transparent 70%),
    repeating-radial-gradient(circle at 100% 110%, transparent 0 22px, var(--trowel-line) 22px 23px),
    linear-gradient(160deg, var(--surface) 0%, var(--bg) 55%, var(--stone) 100%);
}

.hero {
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding-block: var(--s6) calc(var(--s7) + var(--s4));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s6)), 0 100%);
}

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

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 17ch;
  margin-bottom: var(--s4);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 46ch;
  margin-bottom: var(--s5);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  margin-right: var(--s4);
  margin-bottom: var(--s4);
}

/* Sample board - the signature element */

.sample-board {
  position: relative;
  padding: var(--s3);
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.sample-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary);
  border-radius: var(--radius-lg);
  transform: translate(var(--s4), var(--s4));
}

.sample-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  padding-bottom: var(--s2);
  margin-bottom: var(--s3);
  border-bottom: var(--rule) solid var(--stone);
}

.sample-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.sample-note {
  font-size: 0.8rem;
  color: var(--text-light);
}

.swatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s2);
}

.swatch { margin: 0; }

.swatch-face {
  aspect-ratio: 4 / 3;
  border: var(--rule) solid var(--grain-dark);
  border-radius: var(--radius);
}

.swatch-label {
  display: flex;
  justify-content: space-between;
  gap: var(--s1);
  padding-top: var(--s1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.swatch-type {
  font-weight: 400;
  color: var(--text-light);
}

.tx-smooth {
  background:
    linear-gradient(135deg, var(--grain-light), transparent 60%),
    var(--sw-white);
}

.tx-sponge {
  background:
    radial-gradient(circle at 30% 40%, var(--grain-dark) 0 1px, transparent 1.6px) 0 0 / 6px 6px,
    radial-gradient(circle, var(--grain-light) 0 1px, transparent 1.6px) 3px 3px / 7px 7px,
    var(--sw-cement);
}

.tx-texture {
  background:
    repeating-linear-gradient(115deg, transparent 0 3px, var(--grain-dark) 3px 4px, transparent 4px 9px),
    radial-gradient(circle, var(--grain-light) 0 1px, transparent 2px) 0 0 / 5px 5px,
    var(--sw-sand);
}

.tx-trowel {
  background:
    repeating-radial-gradient(circle at 0 120%, transparent 0 10px, var(--grain-light) 10px 11px, transparent 11px 18px),
    var(--sw-charcoal);
}

.sample-foot {
  margin: var(--s3) 0 0;
  padding-top: var(--s2);
  border-top: var(--rule) solid var(--stone);
  font-size: 0.78rem;
  color: var(--text-light);
}

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

.page-hero {
  padding-block: var(--s6) calc(var(--s6) + var(--s4));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
}

.page-hero h1 {
  font-size: var(--fs-page);
  max-width: 20ch;
}

.page-hero .lead { margin-bottom: 0; }

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

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

.section-alt {
  background: var(--surface);
  border-block: var(--rule) solid var(--border);
}

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

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

.section-lead {
  color: var(--text-light);
  margin-bottom: 0;
}

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

.section-head-split > div { max-width: var(--measure); }

/* Icons ------------------------------------------------------------------ */

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s3);
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pillars (value props) -------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule) solid var(--border);
}

.pillar {
  padding: var(--s5) var(--s4) 0;
  border-left: var(--rule) solid var(--border);
}

.pillar:first-child {
  padding-left: 0;
  border-left: 0;
}

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

.pillar p {
  margin: 0;
  color: var(--text-light);
}

/* Services --------------------------------------------------------------- */

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

.service-card {
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-top: var(--bar) solid var(--primary);
  border-radius: var(--radius);
}

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

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-light);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: var(--rule) solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 3rem 1.3fr 1fr;
  gap: var(--s5);
  padding-block: var(--s5);
  border-top: var(--rule) solid var(--border);
}

.service-row .icon-tile { margin-bottom: 0; }

.service-row-main h2 {
  font-size: 1.5rem;
  margin-bottom: var(--s2);
}

.service-row-main p {
  margin: 0;
  color: var(--text-light);
}

.service-uses {
  padding-left: var(--s4);
  border-left: 2px solid var(--accent);
}

.uses-title {
  margin: 0 0 var(--s1);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-dark);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s1);
}

.check-list li {
  position: relative;
  padding-left: var(--s4);
  font-size: 0.95rem;
  color: var(--text-light);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: var(--s1);
  height: var(--s1);
  background: var(--accent);
}

/* Comparison cards ------------------------------------------------------- */

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

.compare-card {
  padding: var(--s5) var(--s4);
  background: var(--bg);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
}

.compare-card h3 { font-size: 1.35rem; }

.compare-card p { color: var(--text-light); }

/* Dark band -------------------------------------------------------------- */

.band-dark {
  background:
    radial-gradient(50% 80% at 0% 0%, var(--glow-dark), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 79px, var(--line-on-dark) 79px 80px),
    var(--primary-dark);
  color: var(--text-on-dark);
}

.band-dark h2,
.band-dark h3 { color: var(--text-on-dark); }

.band-dark p { color: var(--muted-on-dark); }

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

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

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

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s6);
  align-items: start;
}

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

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

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--s3);
  padding-block: var(--s4);
  border-top: var(--rule) solid var(--line-on-dark);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-light);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: var(--s1);
}

.step p { margin: 0; }

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--s3);
  padding-block: var(--s3);
  border-top: var(--rule) solid var(--line-on-dark);
}

.detail-row dt {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--muted-on-dark);
}

.detail-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-on-dark);
}

/* Feature (two-column copy + drawing) ------------------------------------ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}

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

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

.elevation {
  padding: var(--s4);
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.elevation-svg {
  display: block;
  width: 100%;
  height: auto;
}

.el-stroke { fill: none; stroke: var(--primary); stroke-width: 2; }
.el-thin { fill: none; stroke: var(--primary); stroke-width: 1; }
.el-wall { fill: var(--sw-white); }
.el-dot { fill: var(--text-light); opacity: 0.35; }
.el-window { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 2; }
.el-ground { stroke: var(--text-dark); stroke-width: 2; }
.el-accent { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.el-node { fill: var(--accent); }
.el-text { fill: var(--text-dark); font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.el-caption { fill: var(--text-light); font-family: var(--font-body); font-size: 11px; letter-spacing: 0.1em; }

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

.credentials {
  padding-block: var(--s5);
  background: var(--surface);
  border-block: var(--rule) solid var(--border);
}

.cred-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin: 0;
}

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

.cred dt {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-light);
}

.cred dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

.cta-strip { padding-block: var(--s6); }

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s5);
  padding: var(--s5);
  background:
    repeating-radial-gradient(circle at 100% 100%, transparent 0 18px, var(--trowel-line) 18px 19px),
    var(--surface);
  border: var(--rule) solid var(--border);
  border-left: var(--s0) solid var(--accent);
  border-radius: var(--radius);
}

.cta-copy h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: var(--s1);
}

.cta-copy p {
  margin: 0;
  color: var(--text-light);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s5);
  align-items: start;
}

.contact-panel {
  padding: var(--s5);
  background:
    radial-gradient(70% 60% at 100% 0%, var(--glow-dark), transparent 70%),
    var(--primary-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
}

.contact-panel h2 {
  font-size: 1.5rem;
  color: var(--text-on-dark);
}

.contact-panel p { color: var(--muted-on-dark); }

.contact-panel h3 {
  margin-top: var(--s5);
  font-size: 1.1rem;
  color: var(--text-on-dark);
}

.contact-panel .check-list li { color: var(--muted-on-dark); }

.contact-panel .check-list li::before { background: var(--accent-light); }

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

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--accent-light);
  overflow-wrap: anywhere;
}

.contact-email:hover { color: var(--text-on-dark); }

.contact-meta {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding-top: var(--s3);
  border-top: var(--rule) solid var(--line-on-dark);
}

.contact-meta div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--s2);
}

.contact-meta dt {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--muted-on-dark);
}

.contact-meta dd {
  margin: 0;
  color: var(--text-on-dark);
}

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

.form-card h2 { font-size: 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s4);
  margin-top: var(--s4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), background-color var(--ease);
}

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

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

.form-note {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-light);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  grid-column: 1 / -1;
  margin-top: var(--s1);
}

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

.legal-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--s6);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding: var(--s4);
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 var(--s2);
  font-size: var(--fs-small);
  font-weight: 700;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s1);
  font-size: var(--fs-small);
}

.toc-list a {
  color: var(--text-light);
  text-decoration: none;
}

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

.legal-body h2 {
  margin-top: var(--s5);
  font-size: 1.4rem;
}

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

.legal-body ul {
  max-width: var(--measure);
  margin: 0 0 var(--s3);
  padding-left: var(--s4);
}

.legal-body li { margin-bottom: var(--s1); }

.legal-updated {
  margin-bottom: var(--s5);
  padding-bottom: var(--s3);
  border-bottom: var(--rule) solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-light);
}

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

.footer {
  background: var(--primary-dark);
  color: var(--muted-on-dark);
  border-top: var(--rule) solid var(--line-on-dark);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--s5);
  padding-block: var(--s6);
}

.footer p {
  color: var(--muted-on-dark);
  max-width: 40ch;
}

.footer a {
  color: var(--text-on-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

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

.brand-footer {
  margin-bottom: var(--s3);
  color: var(--text-on-dark);
}

.footer .brand-footer:hover {
  color: var(--text-on-dark);
  text-decoration: none;
}

.brand-footer .brand-mark {
  background: var(--accent-light);
  color: var(--primary-dark);
  box-shadow: none;
}

.brand-footer .brand-sub { color: var(--muted-on-dark); }

.footer-reg {
  font-size: var(--fs-small);
  line-height: 1.7;
}

.footer .footer-reg { color: var(--text-on-dark); }

.footer-heading {
  margin: 0 0 var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.footer-links {
  display: grid;
  gap: var(--s1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  background: var(--primary);
  border-top: var(--rule) solid var(--line-on-dark);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
  font-size: var(--fs-small);
}

.footer .footer-bottom p { margin: 0; max-width: none; }

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

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

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cred-list { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .service-row { grid-template-columns: 3rem 1fr; }
  .service-uses { grid-column: 2; }
}

@media (max-width: 768px) {
  :root {
    --section-y: var(--s6);
    --nav-h: 3.75rem;
  }

  .nav-toggle { display: inline-flex; }

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

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

  .navbar.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(calc(var(--s0) + 2px)) rotate(45deg); }
  .navbar.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .navbar.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(calc(-1 * (var(--s0) + 2px))) rotate(-45deg); }

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

  .nav-link {
    display: block;
    padding: var(--s2) 0;
    border-bottom: var(--rule) solid var(--stone);
  }

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

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

  .nav-cta { align-self: flex-start; }

  .hero {
    min-height: 0;
    padding-block: var(--s5) calc(var(--s6) + var(--s4));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s4)), 0 100%);
  }

  .hero-grid { grid-template-columns: 1fr; }

  .hero-visual {
    max-width: 24rem;
    width: calc(100% - var(--s4));
  }

  .page-hero {
    padding-block: var(--s5) var(--s6);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s4)), 0 100%);
  }

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

  .pillars { grid-template-columns: 1fr; }

  .pillar,
  .pillar:first-child {
    padding: var(--s4) 0;
    border-left: 0;
    border-bottom: var(--rule) solid var(--border);
  }

  .services-grid,
  .compare-grid,
  .split,
  .feature,
  .contact-grid,
  .legal-layout,
  .form-grid { grid-template-columns: 1fr; }

  .split,
  .feature { gap: var(--s5); }

  .service-row {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .service-uses { grid-column: auto; }

  .detail-row { grid-template-columns: 1fr; gap: var(--s0); }

  .legal-toc { position: static; }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding-block: var(--s5);
  }
}

@media (max-width: 420px) {
  .cred-list { grid-template-columns: 1fr; }
  .brand-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover { transform: none; }
}
