/* PERIMETERMANN - demo site
   Palette: concrete, slate, KZN red clay, energiser yellow, aquifer blue.
   Type: Archivo variable (width axis used for headlines). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"),
       url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --concrete: #E8EBE4;
  --concrete-2: #D7DCD3;
  --paper: #F4F5F1;
  --slate: #1F2B32;
  --slate-soft: #4C5A62;
  --clay: #A3432A;
  --ochre: #C98A3E;
  --volt: #F4C21B;
  --volt-deep: #D9A800;
  --aquifer: #0E3B55;
  --aquifer-deep: #0A2C40;
  --water: #3A9BD0;
  --water-light: #8FD0F2;
  --bedrock: #1E1C1B;

  --font: "Archivo", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--slate);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--volt); color: var(--slate); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-volt { background: var(--volt); color: var(--slate); border-color: var(--slate); box-shadow: 3px 3px 0 var(--slate); }
.btn-volt:hover { background: #FFD43D; }
.btn-line { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-line:hover { background: var(--slate); color: var(--concrete); }
.btn-ink { background: var(--slate); color: var(--paper); }
.btn-ink:hover { background: #2C3C45; }
.btn-wide { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 235, 228, .97);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
  padding-top: env(safe-area-inset-top);
}
.site-header.scrolled { border-bottom-color: rgba(31, 43, 50, .15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; color: var(--slate); }
.mark-bolt { stroke: var(--clay); }
.mark-drop { fill: var(--water); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 850; font-stretch: 72%; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; }
.brand-tag { font-size: .74rem; color: var(--slate-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 12px; text-decoration: none; font-weight: 600; border-radius: var(--radius); }
.nav a:not(.btn):hover { background: var(--concrete-2); }
.nav-cta { margin-left: 8px; min-height: 42px; box-shadow: 2px 2px 0 var(--slate); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 24px; height: 2.5px; background: var(--slate); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .25s var(--ease), background-color .2s; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 56px); align-items: center; }
.hero-lede { margin-top: 0; }
.hero h1 {
  font-stretch: 62%; font-weight: 850;
  font-size: clamp(3.2rem, 10.4vw, 9.4rem);
  grid-column: 1 / -1;
  line-height: .86; letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { color: var(--aquifer); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 34em; margin-top: 22px; color: var(--slate-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { margin-top: 28px; display: grid; gap: 8px; color: var(--slate-soft); font-size: .98rem; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; }
.hero-points li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--volt); border: 2px solid var(--slate); transform: translateY(1px); }
.hero-scene { margin: 0; }
.scene { width: 100%; height: auto; overflow: visible; }

/* Hero load sequence: ground opens, then the property assembles */
.st, .above, .bore, .strata-labels { transform-box: fill-box; }
.st { transform-origin: 50% 0; animation: strata-in .7s var(--ease) both; }
.st1 { animation-delay: .25s; } .st2 { animation-delay: .35s; } .st3 { animation-delay: .45s; } .st4 { animation-delay: .55s; } .st5 { animation-delay: .65s; }
.strata-labels { animation: fade-in .6s ease 1.1s both; }
.ground { stroke-dasharray: 720; animation: draw 1s var(--ease) both; }
.above { animation: rise .7s var(--ease) both; }
.a1 { animation-delay: .9s; } .a2 { animation-delay: .8s; } .a3 { animation-delay: 1s; } .a4 { animation-delay: 1.15s; } .a5 { animation-delay: 1.25s; }
.bore { animation: fade-in .4s ease 1.4s both; }

@keyframes strata-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 720; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Hero loops */
.pulse path { stroke-dasharray: 18 260; animation: pulse 2.2s linear infinite; }
.pulse path:nth-child(2) { animation-delay: -.55s; }
.pulse path:nth-child(3) { animation-delay: -1.1s; }
.pulse path:nth-child(4) { animation-delay: -1.65s; }
@keyframes pulse { from { stroke-dashoffset: 278; } to { stroke-dashoffset: 0; } }

.cam { transform-box: view-box; transform-origin: 26px 175px; animation: sweep 5s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-9deg); } to { transform: rotate(12deg); } }
.cam-rec { animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.gate { animation: gate-slide 10s var(--ease) infinite; }
@keyframes gate-slide {
  0%, 22% { transform: translateX(0); }
  36%, 62% { transform: translateX(-122px); }
  76%, 100% { transform: translateX(0); }
}
.motor-led { animation: blink .8s steps(2, jump-none) infinite; }

.garage-door { animation: garage 10s var(--ease) infinite; animation-delay: -5s; }
@keyframes garage {
  0%, 20% { transform: translateY(0); }
  36%, 60% { transform: translateY(-58px); }
  76%, 100% { transform: translateY(0); }
}

.aquifer-wave { animation: wave 6s linear infinite; }
.aquifer-wave.w2 { animation-duration: 9s; animation-direction: reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(80px); } }

.bore-casing, .bore-water { transform-box: fill-box; }
.bore-casing { transform-origin: 50% 0; animation: casing 9s var(--ease) infinite 1.6s both; }
.bore-water { transform-origin: 50% 100%; animation: water 9s var(--ease) infinite 1.6s both; }
.bore-bit { animation: bit 9s var(--ease) infinite 1.6s both; }
.bore-splash { transform-box: fill-box; transform-origin: center; animation: splash 9s ease-out infinite 1.6s both; }
@keyframes casing { 0% { transform: scaleY(0); opacity: 1; } 50%, 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bit { 0% { transform: translateY(0); } 50%, 56% { transform: translateY(186px); } 76%, 100% { transform: translateY(0); } }
@keyframes water { 0%, 54% { transform: scaleY(0); opacity: 1; } 84%, 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes splash { 0%, 50% { transform: scale(.2); opacity: 0; } 53% { opacity: 1; } 66%, 100% { transform: scale(3.4); opacity: 0; } }

.is-paused .scene *, .is-paused .plan * { animation-play-state: paused !important; }

/* ---------- Above ground ---------- */
.security { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper); border-top: 1px solid rgba(31, 43, 50, .12); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .bore-intro h2, .oneteam h2, .faq h2, .contact h2 {
  font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .9;
}
.section-head p { color: var(--slate-soft); max-width: 36em; font-size: 1.08rem; }

.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.plan-wrap { position: sticky; top: calc(var(--header-h) + 20px); background: var(--concrete); border: 2px solid var(--slate); border-radius: 10px; padding: clamp(12px, 2vw, 24px); }
.plan { width: 100%; height: auto; }
.plan text { font-family: var(--font); font-weight: 600; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  min-height: 46px; padding: 10px 16px; cursor: pointer;
  background: transparent; border: 2px solid var(--slate); border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  transition: background-color .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.tab:hover { background: var(--concrete); }
.tab[aria-selected="true"] { background: var(--slate); color: var(--paper); box-shadow: 3px 3px 0 var(--volt); }
.panel h3 { font-stretch: 78%; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.02; }
.panel > p { margin-top: 12px; color: var(--slate-soft); max-width: 34em; }
.panel:not([hidden]) { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ticks { margin: 20px 0 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 10px;
  border-left: 3px solid var(--clay); border-bottom: 3px solid var(--clay);
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Plan states */
.cone { fill: var(--volt); opacity: .1; transform-box: view-box; transition: opacity .35s; }
.c1 { transform-origin: 30px 30px; } .c2 { transform-origin: 370px 30px; } .c3 { transform-origin: 30px 370px; } .c4 { transform-origin: 370px 370px; }
.fence-glow { opacity: .14; stroke-dasharray: 16 34; transition: opacity .35s; }
.plan-gate, .plan-door, .car { transform-box: view-box; }
.plan-door { transform-origin: 250px 216px; }
.gate-led { opacity: .35; }

.plan[data-mode="cctv"] .cone { opacity: .42; animation: cone-sweep 4s ease-in-out infinite alternate; }
.plan[data-mode="cctv"] .c2, .plan[data-mode="cctv"] .c3 { animation-delay: -2s; }
@keyframes cone-sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

.plan[data-mode="fence"] .fence-glow { opacity: 1; animation: fence-run 1.4s linear infinite; }
@keyframes fence-run { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }

.plan[data-mode="gate"] .plan-gate { animation: plan-gate 7s var(--ease) infinite; }
.plan[data-mode="gate"] .car { animation: car-in 7s var(--ease) infinite; }
.plan[data-mode="gate"] .gate-led { opacity: 1; animation: blink .8s steps(2, jump-none) infinite; }
@keyframes plan-gate { 0%, 12% { transform: translateX(0); } 28%, 70% { transform: translateX(-92px); } 86%, 100% { transform: translateX(0); } }
@keyframes car-in { 0%, 24% { transform: translateY(96px); opacity: 0; } 27% { opacity: 1; } 52%, 100% { transform: translateY(0); opacity: 1; } }

.plan[data-mode="garage"] .plan-door { animation: plan-door 7s var(--ease) infinite; }
.plan[data-mode="garage"] .car { animation: car-park 7s var(--ease) infinite; }
@keyframes plan-door { 0%, 10% { transform: scaleX(1); } 26%, 74% { transform: scaleX(.08); } 90%, 100% { transform: scaleX(1); } }
@keyframes car-park { 0%, 26% { transform: translateY(0); } 50%, 76% { transform: translateY(-92px); } 100% { transform: translateY(0); } }

.plan-bore { cursor: pointer; }
.plan-bore text { font-weight: 700; text-decoration: underline; }
.ripple { fill: none; stroke: var(--water); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 2.6s ease-out infinite; }
.ripple.r2 { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- Ground band ---------- */
.ground-band { line-height: 0; background: var(--paper); }
.ground-band svg { width: 100%; height: clamp(56px, 7vw, 120px); }

/* ---------- Below ground ---------- */
.boreholes {
  position: relative;
  color: #F4F1EC;
  background: linear-gradient(180deg, #583427 0%, #4A3A32 22%, #3B3936 45%, #24333B 70%, var(--aquifer) 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
}
.bore-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.bore-intro { position: sticky; top: calc(var(--header-h) + 28px); }
.bore-intro .lede { color: #E4DCD3; }
.bore-intro .also { margin: 18px 0 28px; color: #CBBFB3; max-width: 34em; }
.bore-intro .btn-volt { box-shadow: 3px 3px 0 #0A2C40; }

.steps { position: relative; padding-left: 64px; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 6px; border-radius: 3px; }
.steps::before { background: rgba(255, 255, 255, .12); }
.steps::after {
  background: linear-gradient(180deg, var(--volt), var(--water));
  transform-origin: 50% 0; transform: scaleY(var(--p));
}
.step { position: relative; padding: 4px 0 clamp(36px, 5vw, 56px); }
.step:last-child { padding-bottom: 0; }
.step-mark {
  position: absolute; left: -64px; top: 0; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-stretch: 70%; font-size: 1.35rem;
  background: #2C2A28; color: #CBBFB3; border: 3px solid rgba(255, 255, 255, .25);
  transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.step.struck .step-mark { background: var(--volt); color: var(--slate); border-color: var(--volt); transform: scale(1.06); }
.step:last-child.struck .step-mark { background: var(--water); border-color: var(--water-light); color: #fff; }
.step h3 { font-stretch: 78%; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; padding-top: 8px; }
.step p { margin-top: 10px; color: #DCD3CA; max-width: 32em; }

/* ---------- One team ---------- */
.oneteam { background: var(--aquifer); color: #EAF4FA; padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.oneteam h2 { max-width: 14em; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(32px, 5vw, 56px); }
.reason { border-top: 3px solid rgba(143, 208, 242, .45); padding-top: 22px; }
.reason svg { width: 44px; height: 44px; color: var(--water-light); }
.reason h3 { margin-top: 16px; font-stretch: 80%; font-size: 1.5rem; }
.reason p { margin-top: 10px; color: #BBD6E6; }

/* ---------- FAQ ---------- */
.faq { background: var(--aquifer-deep); color: #EAF4FA; padding: clamp(56px, 8vw, 100px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid rgba(255, 255, 255, .18); }
details { border-bottom: 1px solid rgba(255, 255, 255, .18); }
summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0; font-weight: 700; font-size: 1.12rem;
  -webkit-tap-highlight-color: transparent;
}
summary::-webkit-details-marker { display: none; }
summary::after, summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px;
  background: var(--volt); border-radius: 2px; transition: transform .3s var(--ease);
}
summary::before { transform: rotate(90deg); }
details[open] summary::before { transform: rotate(0); }
summary:hover { color: #fff; }
.faq-a { padding: 0 0 22px; color: #BBD6E6; max-width: 40em; }
details[open] .faq-a { animation: panel-in .3s var(--ease); }

/* ---------- Contact ---------- */
.contact { background: var(--concrete); padding: clamp(56px, 8vw, 104px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.direct { margin-top: 28px; display: grid; gap: 6px; }
.direct a, .direct span { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.direct svg { width: 24px; height: 24px; flex: none; color: var(--clay); }

.quote { background: var(--paper); border: 2px solid var(--slate); border-radius: 10px; padding: clamp(20px, 3vw, 32px); box-shadow: 6px 6px 0 var(--slate); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt { font-weight: 400; color: var(--slate-soft); }
input[type="text"], textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; /* stops iOS zooming on focus */
  background: #fff; border: 2px solid #AEB4AA; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 96px; }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(58, 155, 208, .35); }
input[aria-invalid="true"] { border-color: var(--clay); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 2px solid #AEB4AA; border-radius: 999px; background: #fff; cursor: pointer;
  font-weight: 600; font-size: .96rem; user-select: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip span:hover { border-color: var(--slate); }
.chip input:checked + span { background: var(--slate); border-color: var(--slate); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--water); outline-offset: 2px; }
.form-error { color: var(--clay); font-weight: 700; margin: 0 0 14px; }
.form-note { margin-top: 14px; font-size: .92rem; color: var(--slate-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bedrock); color: #CFCAC4; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; }
.f-name { font-weight: 850; font-stretch: 72%; font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
.f-tag { font-size: .88rem; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.f-links a { text-decoration: none; padding: 6px 0; }
.f-links a:hover, .f-meta a:hover { color: var(--volt); }
.f-meta { font-size: .88rem; }

/* ---------- Depth gauge ---------- */
.gauge {
  position: fixed; right: 18px; top: 50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translateY(-50%); pointer-events: none;
  font-weight: 700; font-stretch: 75%; color: var(--slate);
  opacity: 0; transition: opacity .3s, color .3s;
}
.gauge.on { opacity: 1; }
.gauge.dark { color: #EAF4FA; }
.gauge-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .82rem; letter-spacing: .04em; }
.gauge-track { position: relative; width: 6px; height: 160px; border-radius: 3px; background: currentColor; opacity: .9; overflow: hidden; }
.gauge-track::before { content: ""; position: absolute; inset: 0; background: rgba(128, 128, 128, .55); }
.gauge-fill { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(180deg, var(--volt), var(--water)); transform-origin: 50% 0; transform: scaleY(0); }
.gauge-num { font-size: 1rem; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }

/* ---------- Quick bar (phones) ---------- */
.quickbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gauge { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scene { max-width: 680px; margin: 8px auto 0; width: 100%; }
  .section-head, .planner, .bore-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .plan-wrap { position: relative; top: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .bore-intro { position: static; }
  .reasons { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .f-links { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top));
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--concrete); border-bottom: 2px solid var(--slate);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
  .nav a:not(.btn) { padding: 14px 8px; font-size: 1.15rem; border-bottom: 1px solid rgba(31, 43, 50, .12); border-radius: 0; }
  .nav-cta { margin: 14px 0 0; min-height: 50px; }
  .no-js .nav { position: static; flex-direction: row; flex-wrap: wrap; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0; }
  .no-js .menu-btn { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .68rem; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .strata-labels { font-size: 21px; }
  .hero-points { display: none; }
  .hero h1 span { white-space: normal; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .tab { border-radius: var(--radius); font-size: .92rem; padding: 10px 8px; }
  .steps { padding-left: 56px; }
  .steps::before, .steps::after { left: 18px; }
  .step-mark { left: -56px; width: 42px; height: 42px; font-size: 1.15rem; }
  .quote { box-shadow: 4px 4px 0 var(--slate); }

  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(31, 43, 50, .96);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .quickbar.show { transform: none; }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border-radius: var(--radius); text-decoration: none; font-weight: 700;
    background: var(--paper); color: var(--slate);
  }
  .quickbar .qb-wa { background: var(--volt); }
}

@media (max-width: 360px) {
  .brand-tag { display: none; }
  .tabs { grid-template-columns: 1fr; }
}

/* Landscape phones: keep the hero compact */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
  .plan-wrap { position: relative; top: 0; }
  .bore-intro { position: static; }
}

/* Respect reduced motion: everything is shown in its finished state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .bore-casing, .bore-water { transform: none; }
  .pulse path { stroke-dasharray: none; opacity: .6; }
  .plan[data-mode="cctv"] .cone { opacity: .42; }
  .plan[data-mode="fence"] .fence-glow { opacity: 1; }
  .plan[data-mode="gate"] .plan-gate { transform: translateX(-92px); }
  .plan[data-mode="garage"] .plan-door { transform: scaleX(.08); }
  .bore-splash { opacity: 0; }
}

/* High contrast / forced colours (Windows) */
@media (forced-colors: active) {
  .btn, .tab, .chip span { border: 2px solid ButtonText; }
}

@media print {
  .site-header, .gauge, .quickbar, .hero-scene, .plan-wrap, .ground-band, .quote { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .boreholes, .oneteam, .faq, .site-footer { background: #fff !important; color: #000 !important; }
  .step p, .reason p, .faq-a, .bore-intro .lede, .bore-intro .also { color: #000 !important; }
  details { break-inside: avoid; }
  details .faq-a { display: block; }
}
