/* M11 Plumbing & Heating — "spec sheet" draft.
   Numbered full-screen panels alternating ink and paper, blueprint grid, wide Archivo headings
   with IBM Plex Mono labels. Palette from the vault's Assets/Brand/brand.json:
   blue #027EFC, orange #FF780D, flame #FFA000, white #FFFFFF, black #010101.
   The phone scroll system (one swipe per panel, fixed Call/Email bar) is kept from the previous build. */

:root {
  --ink: #010101;
  --ink-2: #0d0f13;
  --paper: #F2F0EB;
  --paper-2: #E7E4DD;
  --blue: #027EFC;
  --blue-ink: #0062CC;      /* blue for text on paper (WCAG AA) */
  --blue-soft: #7DB9FF;
  --orange: #FF780D;
  --flame: #FFA000;
  --on-ink: #F4F5F7;
  --on-ink-muted: #A3ABB7;
  --on-paper: #121417;
  --on-paper-muted: #4B515B;
  --line-ink: rgba(255, 255, 255, .13);
  --line-paper: rgba(1, 1, 1, .15);
  --header: 64px;
  --gutter: clamp(20px, 5vw, 72px);
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--flame); outline-offset: 4px; }
img { max-width: 100%; }
.skip { position: fixed; top: -80px; left: 0; z-index: 60; background: var(--orange); color: var(--ink); padding: 14px; }
.skip:focus { top: 0; }

/* Business details still to be confirmed. Every one must be resolved before launch. */
.tbc {
  display: inline-block;
  border: 2px dashed var(--orange);
  border-radius: 4px;
  padding: 0 6px;
  background: rgba(255, 120, 13, .12);
  font-style: normal;
  font-size: max(.6em, 14px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}

.mono, .label {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label { font-size: 12px; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--line-ink);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 104px; height: auto; }
.where { display: flex; align-items: center; gap: 14px; justify-self: center; color: var(--on-ink-muted); font-size: 12px; }
.where b { color: var(--orange); font-weight: 600; }
.where span { color: var(--on-ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--orange); color: var(--ink); border-radius: 4px;
  font-weight: 700; font-stretch: 112%; font-size: 14px; text-decoration: none;
}
.header-call:hover { background: var(--flame); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--on-ink); border: 1px solid var(--line-ink); border-radius: 4px;
  font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.menu-btn i { position: relative; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-btn:hover { border-color: var(--on-ink-muted); }

/* Segmented progress: one tick per panel */
.ticks { position: absolute; left: 0; right: 0; bottom: -1px; display: flex; gap: 3px; height: 3px; padding: 0 var(--gutter); }
.ticks span { flex: 1; background: rgba(255, 255, 255, .1); transition: background .4s; }
.ticks span.on { background: var(--blue); }
.ticks span.now { background: var(--orange); }

/* ---------- Full-screen menu ---------- */

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-content: center;
  padding: calc(var(--header) + 24px) var(--gutter) 40px;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(2, 126, 252, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 126, 252, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s .35s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 900px; }
.menu a {
  display: flex; align-items: baseline; gap: 18px; padding: 8px 0;
  border-bottom: 1px solid var(--line-ink); text-decoration: none;
  font-weight: 800; font-stretch: 125%; font-size: clamp(22px, 4.2vw, 46px); line-height: 1.1; text-transform: uppercase;
  transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s, color .2s;
}
.menu.open a { transform: none; opacity: 1; }
.menu a b { font: 500 12px var(--mono); color: var(--orange); letter-spacing: .08em; min-width: 2.2em; }
.menu a:hover { color: var(--blue-soft); }
.menu-close { position: absolute; top: 10px; right: var(--gutter); }
.menu-open { overflow: hidden; }

/* ---------- Panels ---------- */

main, footer { position: relative; z-index: 1; }

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 48px) var(--gutter) 64px;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
}
.ink { background: var(--ink); color: var(--on-ink); }
.paper { background: var(--paper); color: var(--on-paper); }
.signal { background: var(--orange); color: var(--ink); }

/* Blueprint grid */
.panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 70% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 70% 50%, #000 30%, transparent 85%);
}
.ink { --grid: rgba(2, 126, 252, .09); }
.paper { --grid: rgba(1, 1, 1, .06); }
.signal { --grid: rgba(1, 1, 1, .08); }

/* Outlined panel number in the corner */
.panel::after {
  content: attr(data-index);
  position: absolute; z-index: -1;
  right: calc(var(--gutter) - .06em); bottom: -.18em;
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(160px, 30vw, 440px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke);
  pointer-events: none;
}
.ink { --stroke: rgba(2, 126, 252, .28); }
.paper { --stroke: rgba(1, 1, 1, .12); }
.signal { --stroke: rgba(1, 1, 1, .22); }

.panel-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(280px, 400px);
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: start;
}
.panel-grid.wide { grid-template-columns: 110px minmax(0, 1fr); }

.meta { display: grid; gap: 8px; padding-top: 10px; border-top: 2px solid currentColor; }
.meta .idx { font: 600 14px var(--mono); }
.ink .meta { border-color: var(--blue); }
.ink .meta .idx { color: var(--blue-soft); }
.paper .meta { border-color: var(--on-paper); }
.paper .meta .idx { color: var(--blue-ink); }
.meta .label { color: inherit; opacity: .7; }

.h1, .h2 {
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h1 { font-size: clamp(36px, 5.6vw, 96px); }
.h2 { font-size: clamp(30px, 4.4vw, 68px); }
.h1 .blue, .h2 .blue { color: var(--blue); }
.h1 .hot, .h2 .hot { color: var(--orange); }
.paper .h2 .blue { color: var(--blue-ink); }
.w { display: block; }

.lead { margin: 24px 0 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.ink .lead { color: var(--on-ink); }
.copy { margin: 18px 0 0; max-width: 36em; font-size: 17px; line-height: 1.65; }
.ink .copy { color: var(--on-ink-muted); }
.paper .copy { color: var(--on-paper-muted); }
.copy a { font-weight: 700; }

.note {
  margin: 18px 0 0; max-width: 36em;
  padding: 12px 14px;
  border: 1px dashed var(--orange);
  border-radius: 4px;
  font-size: 14px; line-height: 1.55;
}
.note b { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 4px; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 52px; padding: 0 18px;
  border-radius: 4px; border: 1px solid transparent;
  font-weight: 700; font-stretch: 112%; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .arrow { font-family: var(--mono); }
.btn-call { background: var(--orange); color: var(--ink); }
.btn-call:hover { background: var(--flame); }
.btn-line { border-color: currentColor; }
.ink .btn-line:hover { background: var(--on-ink); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #222; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Side cards: spec-sheet boxes */
.spec {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.ink .spec { --line: var(--line-ink); background: rgba(13, 15, 19, .8); }
.paper .spec { --line: var(--line-paper); background: rgba(255, 255, 255, .55); }
.spec-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.spec ul { list-style: none; margin: 0; padding: 0; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.spec li:last-child { border-bottom: 0; }
.spec li > span:last-child { text-align: right; }
.spec .k { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; padding-top: 2px; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 8px; vertical-align: middle; }
.dot.hot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 120, 13, .2); }

/* Service index tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.tile {
  display: grid; gap: 30px; align-content: space-between;
  min-height: 150px; padding: 16px;
  border: 1px solid var(--line-paper); border-radius: 6px; background: rgba(255, 255, 255, .55);
  text-decoration: none; transition: border-color .2s, transform .3s var(--ease-out);
}
.tile:hover { border-color: var(--blue-ink); transform: translateY(-3px); }
.tile .mono { font-size: 12px; color: var(--blue-ink); }
.tile strong { font-weight: 800; font-stretch: 120%; font-size: 20px; text-transform: uppercase; line-height: 1.05; }
.tile.hot .mono { color: #B34A00; }

/* Steps */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { padding: 18px 16px 20px; border-top: 3px solid var(--on-paper); background: rgba(255, 255, 255, .55); border-radius: 0 0 6px 6px; }
.steps b { display: block; font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: 1; color: var(--blue-ink); margin-bottom: 14px; }
.steps span { font-size: 16px; line-height: 1.5; color: var(--on-paper); }

/* Areas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-ink); border-radius: 999px; font-size: 15px; }
.radar { width: 100%; max-width: 380px; aspect-ratio: 1; justify-self: end; }
.radar .sweep { transform-origin: 200px 200px; }

/* Contact */
.big-tel {
  display: inline-block; margin-top: 26px; text-decoration: none;
  font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 6.4vw, 92px); line-height: 1; letter-spacing: -.01em;
  color: var(--orange);
}
.big-tel:hover { color: var(--flame); }
.big-mail { display: inline-block; margin-top: 14px; font-size: clamp(16px, 2vw, 24px); font-weight: 600; text-underline-offset: .2em; text-decoration-color: var(--blue); }

/* ---------- Slide motion ----------
   Text never moves: headings, copy and buttons are readable the moment a panel arrives.
   Each panel gives its motion to one blueprint-style graphic, drawn once per visit when the panel
   is half in view (script.js adds .drawn; .instant marks panels already drawn this visit).
   Without JS, or with reduced motion, every graphic shows its finished state. */

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fig { flex-shrink: 0; width: 120px; height: 120px; overflow: visible; }
.fig path, .fig line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ink .fig .ln { stroke: var(--blue-soft); }
.ink .fig .ln-dim { stroke: rgba(125, 185, 255, .35); }
.paper .fig .ln { stroke: var(--on-paper); }
.paper .fig .ln-dim { stroke: rgba(18, 20, 23, .3); }
.fig .ln-blue { stroke: var(--blue); }
.fig .ln-warm { stroke: var(--orange); }

/* Strokes trace themselves: paths carry pathLength="1" */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 340ms cubic-bezier(.45, 0, .2, 1) var(--t, 0ms); }
.js .drawn .draw { stroke-dashoffset: 0; }
/* The M11 flame lights at the end of the boiler outline */
.js .pop { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity 200ms ease-out var(--t, 0ms), transform 260ms var(--ease-out) var(--t, 0ms); }
.js .drawn .pop { opacity: 1; transform: none; }

/* 02: a fine rule connects the service tiles in reading order */
.tiles { position: relative; }
.tiles::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px;
  background: var(--blue-ink); transform-origin: 0 50%;
}
/* 07: a connector runs through the three steps along their top edge */
.steps { position: relative; }
.steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--orange); transform-origin: 0 50%;
}
/* 10: one orange underline beneath the phone number; the digits stay put */
.big-tel { position: relative; }
.big-tel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 3px;
  background: var(--orange); transform-origin: 0 50%;
}
.js .tiles::after, .js .steps::after, .js .big-tel::after { transform: scaleX(0); transition: transform 360ms cubic-bezier(.45, 0, .2, 1) 80ms; }
.js .drawn .tiles::after, .js .drawn .steps::after, .js .drawn .big-tel::after { transform: none; }
/* 08: the radar makes one short sweep, then settles */
.js .radar .sweep { transform: rotate(-120deg); transition: transform 400ms var(--ease-out) 60ms; }
.js .drawn .radar .sweep { transform: none; }

.panel.instant *, .panel.instant *::before, .panel.instant *::after { transition: none !important; }

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

footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 40px;
  align-items: start;
  padding: 40px var(--gutter);
  background: var(--ink);
  border-top: 1px solid var(--line-ink);
  color: var(--on-ink-muted);
  font-size: 13px;
  line-height: 1.6;
}
footer img { display: block; width: 92px; height: auto; }
footer p { margin: 0; }
footer .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
footer .links a { color: var(--on-ink); }
.draft-flag { color: var(--flame); }

.mobile-contact { display: none; }

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .panel-grid, .panel-grid.wide { grid-template-columns: minmax(0, 1fr); }
  .meta { grid-auto-flow: column; justify-content: start; gap: 14px; align-items: baseline; padding-top: 8px; max-width: 260px; }
  .side { max-width: 560px; }
  .radar { justify-self: start; max-width: 240px; }
  .header-call { display: none; }
  .panel { padding: calc(var(--header) + 32px) var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
  footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

  /* Fixed contact bar (kept from the previous build) */
  .mobile-contact {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line-ink);
  }
  .mobile-contact a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; border-radius: 4px; text-decoration: none;
    font-weight: 700; font-stretch: 112%; font-size: 15px;
    border: 1px solid var(--line-ink); color: var(--on-ink);
    touch-action: manipulation;
  }
  .mobile-contact .mobile-call { background: var(--orange); color: var(--ink); border-color: var(--orange); }
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
  :root { --header: 58px; --gutter: 20px; }
  .brand img { width: 88px; }
  .where { font-size: 11px; gap: 8px; }
  .where .name { display: none; }
  .menu-btn { padding: 0 12px; }
  .menu-btn .txt { display: none; }
  .panel { align-items: flex-end; padding-top: calc(var(--header) + 28px); }
  .panel::after { font-size: 46vw; bottom: auto; top: calc(var(--header) + 4px); }
  .h1 { font-size: clamp(32px, 10.5vw, 52px); }
  .h2 { font-size: clamp(28px, 9vw, 44px); }
  .lead { font-size: 17px; margin-top: 16px; }
  .copy { font-size: 15px; margin-top: 12px; }
  .panel-grid { gap: 18px; }
  .spec li { padding: 10px 12px; font-size: 14px; }
  .tiles { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
  .tile { min-height: 0; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 14px; }
  .tile strong { font-size: 17px; }
  .steps { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; align-items: center; padding: 12px; }
  .steps b { font-size: 30px; margin: 0; }
  .steps span { font-size: 15px; }
  .radar { display: none; }
  .hide-phone { display: none; }
  .big-tel { font-size: clamp(30px, 10.5vw, 48px); }
  .fig { width: 72px; height: 72px; }
  /* Stacked tiles and steps: the connecting rule runs down their left edge instead */
  .tiles::after, .steps::after { left: -10px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: 50% 0; }
  .js .tiles::after, .js .steps::after { transform: scaleY(0); }
  .js .drawn .tiles::after, .js .drawn .steps::after { transform: none; }
  .cta { margin-top: 22px; }
  footer { grid-template-columns: 1fr; }
}

/* ---------- Phones and tablets: the scroll system ----------
   Reels-style: one swipe settles on the next panel. Kept unchanged from the previous build. */
@media (max-width: 1000px), (pointer: coarse) {
  html { scroll-snap-type: y mandatory; scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: start; scroll-snap-stop: always; }
  footer { scroll-snap-align: end; }
  .radar .sweep { animation: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  /* Every graphic shows its finished state */
  .js .draw { stroke-dashoffset: 0; transition: none; }
  .js .pop { opacity: 1; transform: none; transition: none; }
  .js .tiles::after, .js .steps::after, .js .big-tel::after, .js .radar .sweep { transform: none; transition: none; }
  .menu a { transform: none; }
}

/* A brief logo entrance plays alongside the first panel. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .header .brand img {
    animation: brand-arrive 180ms ease-out;
  }
  @keyframes brand-arrive {
    from { opacity: .72; transform: translateY(2px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */

html.doc-root { scroll-snap-type: none; }
.doc-page { background: var(--paper); color: var(--on-paper); }
.doc-page .header { grid-template-columns: auto 1fr; }
.doc-back { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-ink); border-radius: 4px; color: var(--on-ink); text-decoration: none; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.doc { max-width: 760px; margin: 0 auto; padding: calc(var(--header) + 48px) var(--gutter) 64px; line-height: 1.7; }
.doc .label { color: var(--blue-ink); }
.doc h1 { margin: 10px 0 0; font-weight: 800; font-stretch: 125%; font-size: clamp(32px, 6vw, 56px); line-height: 1; text-transform: uppercase; }
.doc-updated { margin: 14px 0 8px; font: 500 12px var(--mono); color: var(--on-paper-muted); }
.doc h2 { margin: 34px 0 8px; padding-top: 10px; border-top: 2px solid var(--on-paper); font-weight: 800; font-stretch: 115%; font-size: 18px; text-transform: uppercase; }
.doc p, .doc li { font-size: 16px; color: var(--on-paper-muted); }
.doc p { margin: 0 0 12px; }
.doc strong { color: var(--on-paper); }
.doc a { color: var(--blue-ink); text-underline-offset: .2em; }
.doc-page footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (max-width: 1000px), (pointer: coarse) {
  html.doc-root { scroll-snap-type: none; scrollbar-width: auto; }
}
@media (max-width: 600px) {
  .doc p, .doc li { font-size: 15px; }
}

/* Placeholders on the orange panel need a dark outline to show */
.signal .tbc { border-color: var(--ink); background: rgba(1, 1, 1, .08); }

/* Shorter phones (e.g. 375x667): tighten spacing so every panel still fits one screen,
   which keeps the one-swipe-per-panel snapping clean */
@media (max-width: 600px) and (max-height: 720px) {
  .panel { padding-top: calc(var(--header) + 14px); padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .panel::after { font-size: 34vw; }
  .panel-grid { gap: 12px; }
  .meta { padding-top: 6px; }
  .h1 { font-size: clamp(30px, 9.5vw, 44px); }
  .h2 { font-size: clamp(26px, 8vw, 38px); }
  .lead { font-size: 16px; margin-top: 10px; }
  .copy { font-size: 14px; line-height: 1.5; margin-top: 8px; }
  .note { margin-top: 10px; padding: 8px 10px; font-size: 13px; }
  .spec-head { padding: 7px 12px; }
  .spec li { padding: 7px 12px; font-size: 13px; }
  .tiles { margin-top: 14px; gap: 6px; }
  .tile { padding: 10px 12px; }
  .steps { margin-top: 14px; }
}

/* Small laptops and landscape tablets (1001-1280px): the three-column grid leaves the heading
   column narrow, so long words ("PLUMBING", "SERVICING") need slightly smaller headings */
@media (min-width: 1001px) and (max-width: 1280px) {
  .h1 { font-size: clamp(36px, 4.3vw, 96px); }
  .h2 { font-size: clamp(30px, 4.1vw, 68px); }
}

/* Desktop: the same one-slide-per-move scroll system as phones. script.js turns each mouse-wheel
   or trackpad gesture into exactly one slide. Legal pages (html.doc-root) scroll normally. */
@media (min-width: 1001px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.doc-root) { scroll-snap-type: y mandatory; scrollbar-width: none; }
  html:not(.doc-root)::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-stop: always; }
  footer { scroll-snap-align: end; }
}

/* ---------- Enquiry form (slide 10) and the WhatsApp / email picker ----------
   Spec-sheet look: mono uppercase labels, hairline fields that light up blue on focus,
   the orange call-to-action button, and a picker styled like a slide. */
.enquiry { display: grid; gap: 12px; margin-top: 26px; max-width: 680px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: rgba(255, 255, 255, .03); color: var(--on-ink);
  border: 1px solid var(--line-ink); border-radius: 4px;
  font: 500 16px var(--display); /* 16px stops phones zooming in on focus */
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select:has(option[value=""]:checked) { color: var(--on-ink-muted); }
.field-label .opt { text-transform: none; letter-spacing: .02em; opacity: .75; }
.field option { background: var(--ink-2); color: var(--on-ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: rgba(2, 126, 252, .07); }
.enquiry-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.enquiry .btn { cursor: pointer; font-family: var(--display); }
.form-note { margin: 0; max-width: 340px; font-size: 13px; line-height: 1.45; color: var(--on-ink-muted); }
.form-note a { color: var(--blue-soft); }

.send-via {
  width: min(440px, calc(100vw - 32px)); padding: 0;
  background: var(--ink-2); color: var(--on-ink);
  border: 1px solid var(--line-ink); border-top: 3px solid var(--blue); border-radius: 6px;
}
.send-via::backdrop { background: rgba(1, 1, 1, .72); backdrop-filter: blur(3px); }
.send-via form { display: grid; gap: 14px; padding: 22px; }
.send-via-idx { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-soft); }
.send-via h3 { margin: 0; font-weight: 800; font-stretch: 125%; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.send-opts { display: grid; gap: 10px; }
.send-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 16px; border-radius: 4px; text-decoration: none;
  font-weight: 700; font-stretch: 112%; font-size: 16px; transition: background .2s, color .2s;
}
.send-opt svg { width: 22px; height: 22px; }
.send-opt .arrow { font-family: var(--mono); }
.send-wa { background: #25D366; color: #0B141A; } /* WhatsApp green with its dark ink (passes contrast) */
.send-wa:hover { background: #1EBE5D; }
.send-mail { border: 1px solid var(--on-ink); color: var(--on-ink); }
.send-mail:hover { background: var(--on-ink); color: var(--ink); }
.send-cancel { justify-self: start; min-height: 40px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--on-ink-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.send-cancel:hover { color: var(--on-ink); }

@media (max-width: 600px) {
  .enquiry { gap: 9px; margin-top: 16px; }
  .field-row { gap: 8px; }
  .field { gap: 4px; }
  .field input, .field select { min-height: 42px; padding: 8px 10px; }
  .field textarea { min-height: 64px; padding: 8px 10px; }
  .enquiry .btn { width: 100%; }
  .form-note { font-size: 12px; max-width: none; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .enquiry { gap: 7px; margin-top: 12px; }
  .field-label { font-size: 10px; }
  .field textarea { min-height: 54px; }
  .enquiry .btn { min-height: 46px; }
}

/* ---------- Our work (slide 09): a row of photos on desktop, a 2 x 2 grid on phones ----------
   A blue hairline that lights up on hover. Image heights are
   capped by the screen height so the slide always fits one screen. */
.work-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shot figure { margin: 0; display: grid; gap: 10px; }
.shot picture { display: block; overflow: hidden; border-radius: 4px; border: 1px solid var(--line-ink); border-top: 2px solid var(--blue); background: var(--ink-2); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: calc(100svh - 380px); object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.04); }
@media (max-width: 1000px) and (min-width: 601px) {
  .work-grid { gap: 10px; }
  .shot img { max-height: calc(100svh - 420px); }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .shot img { aspect-ratio: 1 / 1; max-height: calc((100svh - 360px) / 2); }
}
