/* Pool Fencing Melbourne Co. — one stylesheet, no build step.
   Identity: deep pool-tile ink, limestone-coping neutrals, pool-water teal, and one loud amber for the quote button.
   Type: Archivo (wide, for headings), Hanken Grotesk (body), IBM Plex Mono (measurements and prices). */

:root {
  --bg: #F2F3EF;
  --surface: #FFFFFF;
  --ink: #10262D;
  --muted: #55666A;
  --line: #D6DCD9;
  --water: #0B6F78;
  --water-soft: #DCEDEC;
  --amber: #F0B13C;
  --amber-ink: #1D1705;
  --dark: #0F252C;
  --dark-2: #163640;
  --on-dark: #E9F1EF;
  --on-dark-muted: #9DB3B2;
  --dark-line: rgba(233, 241, 239, .18);
  --hatch: #E2E7E4;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: clamp(1.75rem, 4vw, 2.25rem);
  --s4: clamp(2.5rem, 7.5vw, 4.5rem);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
img, svg, picture { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.06; margin: 0; text-wrap: balance; letter-spacing: -.012em; }
h2 { font-size: var(--s3); font-weight: 760; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 106%; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
.sr-only, .hp { 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; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; z-index: 100; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band-white { background: var(--surface); }
.band-tint { background: var(--water-soft); }
.eyebrow { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .09em; text-transform: uppercase; color: var(--water); }
.eyebrow-amber { color: var(--amber); }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.0625rem; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 72ch; }
.section-head-split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; max-width: none; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.text-link { color: var(--water); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--f-body); padding: 17px 24px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, filter .12s, background .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { filter: brightness(1.07); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.06); }
.btn-ink { background: var(--ink); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--dark); color: var(--on-dark); border-bottom: 1px solid var(--dark-line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand-text { display: grid; gap: 3px; min-width: 0; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-name { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 1.1875rem; letter-spacing: .01em; }
.brand-sub { font-family: var(--f-display); font-stretch: 125%; font-weight: 600; font-size: .6875rem; letter-spacing: .46em; margin-right: -.46em; color: var(--amber); }
.nav-desktop { display: none; margin-left: auto; }
.nav-desktop > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { display: block; padding: 10px 12px; color: var(--on-dark-muted); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: var(--radius); }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--on-dark); background: rgba(255,255,255,.05); }
.has-children { position: relative; }
.has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 8px; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: var(--dark); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-children:hover .dropdown, .has-children:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.header-call { display: none; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.header-call.is-visible { display: inline-flex; }
.header-quote { display: none; }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border: 1px solid var(--dark-line); border-radius: var(--radius); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 18px; height: 2px; background: var(--on-dark); transition: .2s; }
.nav-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
.nav-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile nav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: var(--dark); padding: 12px var(--gutter-r) 40px var(--gutter-l); overflow-y: auto; border-top: 1px solid var(--dark-line); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--dark-line); text-decoration: none; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 1.25rem; }
@media (min-width: 640px) { .header-quote { display: inline-flex; } }
@media (min-width: 1060px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .header-actions { margin-left: 8px; }
  .header-call { display: inline-flex; }
}

/* Home hero */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,28,34,.92) 0%, rgba(10,28,34,.72) 45%, rgba(10,28,34,.2) 100%), linear-gradient(0deg, rgba(10,28,34,.7), transparent 50%); }
.hero-grid { display: grid; gap: 40px; padding-block: 44px 56px; }
.hero-copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.hero h1 { font-size: var(--s4); font-weight: 820; font-stretch: 122%; letter-spacing: -.02em; }
.hero-sub { font-size: 1.25rem; max-width: 34ch; line-height: 1.45; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--on-dark-muted); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks svg { margin-top: 4px; }
.hero .ticks { color: var(--on-dark); font-weight: 500; }
.hero.has-photo :is(h1, .hero-sub, .ticks, .eyebrow) { text-shadow: 0 1px 14px rgba(10,28,34,.6); }
/* Phones and tablets: text sits on a dark top half, and the job photo shows through clearly underneath the buttons. */
@media (max-width: 959px) {
  .hero.has-photo .hero-media { top: 50%; }
  .hero-media::after { inset: -2px 0 0; background: linear-gradient(180deg, var(--dark) 0%, var(--dark) 4%, rgba(15,37,44,.75) 24%, rgba(15,37,44,0) 55%); }
  .hero.has-photo .hero-grid { padding-bottom: 240px; }
  .hero.has-photo .hero-media img { object-position: 100% 50%; } /* keeps the trampoline hoop on the far left of the Mount Martha shot out of frame (no court gear) */
}
@media (min-width: 600px) and (max-width: 959px) { .hero-media::after { background: linear-gradient(180deg, var(--dark) 0%, var(--dark) 4%, rgba(15,37,44,.85) 40%, rgba(15,37,44,0) 72%); } }
.hero-fine { font-size: var(--s-1); color: var(--on-dark-muted); }
.hero-fine b { color: var(--on-dark); }
.hero-fine a { color: var(--on-dark); }
.hero-art { display: grid; gap: 8px; }
.elevation { width: 100%; height: auto; display: block; }
.art-cap { font-family: var(--f-mono); font-size: .6875rem; color: var(--on-dark-muted); letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; padding-block: 80px 96px; min-height: min(78vh, 760px); }
  .hero.has-photo .hero-grid { grid-template-columns: minmax(0, 640px); }
}

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; padding-block: 24px; }
.trust-item { display: grid; gap: 3px; min-width: 0; padding-left: 14px; border-left: 2px solid var(--water); }
.trust-k { font-family: var(--f-display); font-stretch: 112%; font-weight: 760; font-size: 1.0625rem; line-height: 1.2; }
@media (min-width: 640px) { .trust-k { font-size: 1.1875rem; } }
.trust-v { font-size: var(--s-1); color: var(--muted); line-height: 1.4; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Closing quote section: job photo behind, pitch left, questions card right */
.quote-band { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); scroll-margin-top: var(--header-h); }
.quote-bg { position: absolute; inset: 0; z-index: -1; }
.quote-bg picture, .quote-bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,28,34,.86), rgba(10,28,34,.94)); }
.quote-grid { display: grid; gap: 32px; padding-block: clamp(56px, 8vw, 104px); }
.quote-intro { display: grid; gap: 18px; align-content: start; }
.quote-intro h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 820; font-stretch: 122%; letter-spacing: -.02em; line-height: 1.02; }
.quote-lede { font-size: 1.1875rem; line-height: 1.5; max-width: 36ch; }
.quote-intro .ticks { color: var(--on-dark); }
@media (max-width: 899px) {
  .quote-band-compact .quote-grid { padding-block: 40px 48px; gap: 22px; }
  .quote-band-compact .quote-intro .ticks, .quote-band-compact .quote-lede { display: none; }
  .quote-band-compact .quote-intro h2 { font-size: 2rem; }
  /* Ad pages: a shorter photo strip under the hero so the first quote question is closer. */
  .hero-landing.has-photo .hero-grid { padding-bottom: 150px; }
}
.quote-call { color: var(--on-dark-muted); }
.quote-call a { color: var(--on-dark); font-weight: 700; }
@media (min-width: 960px) {
  .quote-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 12px; }
  .quote-bg::after { background: linear-gradient(90deg, rgba(10,28,34,.92) 0%, rgba(10,28,34,.8) 45%, rgba(10,28,34,.45) 100%); }
}
.qflow { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(4,14,18,.35); min-width: 0; }
.qflow-main { padding: clamp(22px, 4.5vw, 40px); display: grid; gap: 32px; align-content: start; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--surface); }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.tile-art { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 112px; padding: 20px 0 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.tile-art svg { display: block; width: 70%; max-width: 190px; height: auto; }
.tile-art::after { content: ""; position: absolute; left: 9%; right: 9%; bottom: 17px; height: 1.5px; background: rgba(16,38,45,.3); }
.tile-text { padding: 13px 14px 14px; font-weight: 600; line-height: 1.25; font-size: .9375rem; }
@media (max-width: 420px) { .tile-art { height: 92px; padding: 16px 0 14px; } .tile-art::after { bottom: 13px; } }
.tile:hover { border-color: var(--water); }
.tile:has(input:checked) { border-color: var(--water); box-shadow: inset 0 0 0 1px var(--water); }
.tile:has(input:checked) .tile-art { background: var(--water-soft); border-bottom-color: transparent; }
.tile:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.q-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.q-title { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.15; letter-spacing: -.01em; padding: 0; margin: 0 0 4px; outline: none; }
.q-progress { display: grid; gap: 8px; font-size: var(--s-1); color: var(--muted); }
.q-bar { display: block; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.q-bar span { display: block; height: 100%; width: 0; background: var(--water); transition: width .25s ease-out; }
.opts { display: grid; border-top: 1px solid var(--line); }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 15px 10px 15px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #9AA9AB; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.opt:hover { background: #F7F8F5; }
.opt:hover .opt-dot { border-color: var(--water); }
.opt:has(input:checked) { background: var(--water-soft); }
.opt input:checked ~ .opt-dot { border-color: var(--water); box-shadow: inset 0 0 0 5px var(--water); }
.opt input:focus-visible ~ .opt-dot { outline: 3px solid var(--amber); outline-offset: 2px; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.q-back { background: none; border: 0; padding: 8px 0; font: 600 .9375rem var(--f-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.q-back:hover { color: var(--ink); }
.q-next { padding: 14px 26px; }
.q-size { display: grid; gap: 14px; }
.q-size-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.metres-out { font-family: var(--f-display); font-stretch: 108%; font-size: var(--s2); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--water); height: 44px; margin: 0; }
@media (pointer: coarse) {
  input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
  input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
  input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--water); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
  input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
  input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--water); border: 3px solid #fff; }
}
.hint { font-size: var(--s-1); color: var(--muted); }
.gates-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--bg); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--water-soft); }
.stepper output { min-width: 3ch; text-align: center; font-weight: 700; font-size: var(--s1); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--water); margin-top: 3px; flex: none; }
.q-summary { color: var(--muted); margin: -8px 0 0; max-width: 56ch; }
.q-edit { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--water); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.q-final .quote-form { gap: 16px; }
/* Without JavaScript every question shows, so hide only the step controls */
.qflow:not(.is-live) .q-nav, .qflow:not(.is-live) .q-final > .q-back { display: none; }
.qflow.is-live .q-step:not(.is-current) { display: none; }
.result { background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; }

/* Quote form */
.quote-form { display: grid; gap: 14px; }
.form-h { font-size: 1.25rem; }
.fields { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .note-toggle summary { font-size: var(--s-1); font-weight: 600; color: var(--muted); }
.req { color: #B42318; font-weight: 700; }
.quote-form.is-dark .req { color: #FFB4A9; }
.optional { font-weight: 400; }
.field input, .field select, .field textarea { font: 500 1rem var(--f-body); padding: 13px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--water); outline-offset: 0; border-color: var(--water); }
.note-toggle summary { cursor: pointer; padding: 4px 0; }
.note-toggle textarea { margin-top: 8px; }
.form-fine { font-size: var(--s-1); color: var(--muted); }
.form-error { color: #B3261E; font-weight: 600; font-size: .9375rem; }
.quote-form.is-dark .field label, .quote-form.is-dark .note-toggle summary, .quote-form.is-dark .form-fine { color: var(--on-dark-muted); }
.quote-form.is-dark .form-fine a { color: var(--on-dark); }
.quote-form.is-dark .field input, .quote-form.is-dark .field select, .quote-form.is-dark .field textarea { background: rgba(255,255,255,.07); border-color: var(--dark-line); color: var(--on-dark); }
.quote-form.is-dark .field select option { color: var(--ink); }
.quote-form.is-dark .form-error { color: #FFB4A9; }
.quote-form button[disabled] { opacity: .7; cursor: progress; }

/* Fence types */
.ranges { display: grid; gap: 18px; }
.range-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; transition: border-color .15s, transform .15s; }
.range-card:hover { border-color: var(--water); }
.range-art { background: var(--water-soft); padding: 22px 22px 0; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; }
.range-art svg { width: 100%; height: auto; display: block; }
.range-photo { padding: 0; aspect-ratio: 16 / 9; }
.range-photo picture, .range-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.range-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.range-body h3 a { text-decoration: none; }
.range-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.range-card:has(h3 a:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.range-body h3 a:focus-visible { outline: none; }
/* Phones: the fence types swipe sideways (next card peeks in) instead of stacking 2,000px deep. */
@media (max-width: 819px) {
  .ranges-5 { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); scroll-padding-inline: var(--gutter-l); padding-bottom: 4px; }
  .ranges-5::-webkit-scrollbar { display: none; }
  .ranges-5 > .range-card { scroll-snap-align: start; }
  .ranges-5 .range-body { padding: 18px; gap: 10px; }
  .swipe-hint { margin-top: 12px; font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .swipe-hint::after { content: ""; width: 28px; height: 1px; background: currentColor; }
}
@media (min-width: 820px) { .swipe-hint { display: none; } }
.range-body > p { color: var(--muted); }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9375rem; border-top: 1px solid var(--line); padding-top: 12px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
@media (min-width: 820px) { .ranges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-block: 24px; border-bottom: 1px solid var(--line); counter-increment: step; }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--s2); color: var(--water); line-height: 1; }
.process h3 { margin-bottom: 8px; }
.process p { color: var(--muted); max-width: 60ch; }
.process-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.process-cta span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 519px) { .process-cta .btn { width: 100%; } .process-cta span { width: 100%; text-align: center; } }
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 28px; } .process li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--ink); } }

/* Projects + image placeholders */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(4, minmax(0, 1fr)); } .projects.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shot picture, .shot img, .shot .img-placeholder { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius); }
.shot figcaption { display: grid; gap: 2px; }
.shot figcaption b { font-family: var(--f-display); font-stretch: 110%; font-size: 1.0625rem; }
.shot figcaption span { font-size: var(--s-1); color: var(--muted); }
.grid-credit { margin-top: 28px; font-size: var(--s-1); color: var(--muted); }
.img-placeholder { background: repeating-linear-gradient(135deg, var(--hatch) 0 10px, transparent 10px 20px), var(--surface); border: 1px dashed var(--line); display: grid; place-items: center; max-width: 100%; }
.img-placeholder span { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; background: var(--surface); padding: 4px 8px; border-radius: 4px; }

/* Owner + reviews */
.reviews-block { display: grid; gap: 32px; }
.owner { display: grid; gap: 16px; min-width: 0; }
.video-slot { aspect-ratio: 16 / 9; max-width: 100%; background: var(--dark); border-radius: var(--radius-lg); display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--on-dark-muted); }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; }
.video-label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.reviews { display: grid; gap: 14px; align-content: start; }
.rating-big { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: 1; }
.rating-big span { display: block; font: 500 var(--s-1) var(--f-body); color: var(--muted); margin-top: 8px; }
.review-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; color: var(--muted); }
.review-empty b { color: var(--ink); }
@media (min-width: 900px) { .reviews-block { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* Compliance rules */
.rules { display: grid; gap: 32px; }
.rule-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.rule-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rule-list .mono { color: var(--water); font-size: .9375rem; }
.diagram-box { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 10px; }
.diagram-box svg { width: 100%; height: auto; }
.diagram-box figcaption { font-size: var(--s-1); color: var(--muted); }
@media (min-width: 900px) { .rules { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-family: var(--f-mono); font-size: 1.5rem; color: var(--water); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* Closing band */
.closing { background: var(--dark); color: var(--on-dark); }
.closing-row { display: grid; gap: 24px; padding-block: 72px; }
.closing-copy { display: grid; gap: 12px; }
.closing-copy p { color: var(--on-dark-muted); max-width: 54ch; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) { .closing-row { grid-template-columns: 1.4fr 1fr; align-items: center; } .closing-actions { justify-content: flex-end; } }

/* Inner page hero */
.page-hero { background: var(--dark); color: var(--on-dark); }
.page-hero-grid { display: grid; gap: 32px; padding-block: 32px 52px; }
.page-hero-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 820; font-stretch: 120%; letter-spacing: -.02em; }
.is-guide .page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-stretch: 112%; line-height: 1.08; }
.page-hero-sub { font-size: 1.1875rem; color: var(--on-dark); max-width: 52ch; line-height: 1.5; opacity: .92; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--s-1); color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }
.page-hero-art { background: rgba(255,255,255,.04); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); padding: 28px 28px 0; align-self: center; }
.page-hero-art svg g[fill="#0B6F78"] { fill: #4FB7BE; }
.page-hero-art svg [stroke="#10262D"] { stroke: #E9F1EF; }
.page-hero-art svg [fill="#10262D"] { fill: #E9F1EF; }
.page-hero-art svg [stroke="#0B6F78"] { stroke: #4FB7BE; }
.page-hero-media picture, .page-hero-media img, .page-hero-media .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; padding-block: 48px 72px; } }

/* Long-form content with a sticky quote card */
.content-grid { display: grid; gap: 40px; }
.prose { min-width: 0; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #2B3F44; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--water); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose td.mono { white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.callout { background: var(--water-soft); border-radius: var(--radius-lg); padding: 20px 22px; }
.callout p { color: var(--ink); }
.aside-card { background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 14px; align-self: start; }
.aside-card h2 { font-size: 1.5rem; }
.aside-card p { color: var(--on-dark-muted); }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--on-dark-muted); font-size: .9375rem; }
.aside-card li::before { content: "✓"; color: var(--amber); margin-right: 8px; }
@media (min-width: 960px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
  .aside-card { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* Cards for links between pages */
.link-cards { display: grid; gap: 14px; }
.link-card { display: grid; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .15s; }
.link-card:hover { border-color: var(--water); }
.link-card span { color: var(--muted); font-size: .9375rem; }
@media (min-width: 760px) { .link-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Areas */
.area-list { columns: 2; column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.area-list li { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
@media (min-width: 760px) { .area-list { columns: 4; } }

/* Thank you */
.thanks { display: grid; gap: 20px; max-width: 680px; }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 820; font-stretch: 120%; }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); counter-increment: n; }
.next-steps li::before { content: counter(n); font-family: var(--f-mono); color: var(--water); font-size: 1.25rem; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid var(--dark-line); font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 32px; }
.footer-brand { display: grid; gap: 14px; max-width: 360px; }
.footer-brand .brand { color: var(--on-dark); }
.footer-contact a { color: var(--on-dark); }
.footer-h { font-family: var(--f-mono); font-size: var(--s-1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-areas { line-height: 1.8; }
.footer-legal { border-top: 1px solid var(--dark-line); padding-block: 20px 28px; font-size: var(--s-1); }
.site-footer-min .footer-legal { border-top: 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }

/* Mobile action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--dark); border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); transform: translateY(0); transition: transform .2s; }
.action-bar .btn { padding: 15px; }
.action-bar-single { grid-template-columns: 1fr; }
.action-bar.is-hidden { transform: translateY(110%); }
body { padding-bottom: 0; }
@media (min-width: 900px) { .action-bar { display: none; } body { padding-bottom: 0; } }
.thank-you .action-bar { display: none; }
.thank-you { padding-bottom: 0; }

/* Guides */
.guide-date { font-size: var(--s-1); color: var(--muted); }
.guide-list { display: grid; gap: 16px; }
@media (min-width: 760px) { .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.band-white .guide-card { background: var(--bg); }
.guide-card:hover { border-color: var(--water); }
.guide-card h3 { font-size: 1.25rem; line-height: 1.25; }
.guide-card p { color: var(--muted); font-size: .9375rem; }
.guide-card-date { font-size: var(--s-1); color: var(--muted); }
.guide-card-more { font-weight: 700; color: var(--water); font-size: .9375rem; }
/* Five fence types: glass pair on top, then the three metal/batten types */
@media (min-width: 820px) {
  .ranges-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ranges-5 > :nth-child(-n+2) { grid-column: span 3; }
  .ranges-5 > :nth-child(n+3) { grid-column: span 2; }
}
/* Projects page fence-type filter */
.proj-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: .9375rem; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip span { font-weight: 400; color: var(--muted); }
.chip:hover { border-color: var(--water); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.7); }
.shot[hidden] { display: none; }
