/* ==========================================================================
   Benchline Technical website styles.
   One plain CSS file, no build step. Sections follow the page from top to bottom.
   Motion rule for the whole file: only transform and opacity ever animate,
   and everything that moves is switched off for reduced motion (end of file).
   ========================================================================== */

/* The brand typeface is served from this site, so nothing loads from another website */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-Variable.ttf") format("truetype");
  font-weight: 400 900; /* one variable file covers every weight used below */
  font-display: swap;   /* show text straight away in a fallback font while this loads */
}

/* Brand tokens (BRAND.md), then shape and motion tokens. Every colour on the site comes from this list */
:root {
  --paper: #FFFFFF;      /* the page */
  --navy: #16233A;       /* Datum Navy: text, line work, the main buttons */
  --brass: #A8782A;      /* Survey Brass: accent lines only, never text */
  --brass-ink: #7E5A1E;  /* Brass Ink: small brass text that still passes contrast */
  --slate: #5B6472;      /* secondary text */
  --hairline: #D8DCE2;   /* rules and outlines */
  --concrete: #EFECE6;   /* surfaces: the drafting table behind the drawings */
  --navy-tint: rgba(22, 35, 58, 0.06); /* navy at 6 %, for hover and pressed fills */
  --on-navy: rgba(255, 255, 255, 0.78); /* secondary text on navy, above 7 : 1 contrast */
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;        /* side margin on phones */
  --header-h: 64px;      /* sticky header height */
  --r-xl: 28px; --r-lg: 22px; --r-md: 14px; --r-pill: 999px; /* bigger surfaces get rounder corners */
  --section: clamp(72px, 10vw, 136px); /* space above and below each section */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* things arriving or answering a press */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* things moving across the screen */
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 72px; }
}

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

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

html {
  scroll-padding-top: calc(var(--header-h) + 20px); /* linked headings stop below the sticky header */
  -webkit-text-size-adjust: 100%;                   /* stop phones inflating text in landscape */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; } /* menu links glide to their section; off for reduced motion */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 430 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; /* a long email address can never push the page sideways */
  overflow-x: clip;          /* safety net against sideways scroll; clip keeps sticky working */
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 640; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* a picture that shrinks to fit keeps its proportions */
[hidden] { display: none !important; } /* the hidden attribute always wins, even over .button's display */

/* Large type is set tight; small type is left open (size-specific tracking) */
h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.04; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.18; letter-spacing: -0.015em; font-weight: 620; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--navy); text-decoration-thickness: 2px; }

/* One visible focus ring for everything a keyboard can reach */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

/* Shared building blocks */
.wrap { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; max-width: 36em; }
.muted { color: var(--slate); }
.label { font-size: 0.8125rem; font-weight: 600; color: var(--brass-ink); letter-spacing: 0.01em; }
.note { font-size: 0.875rem; color: var(--slate); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .js-only { display: none; } /* hide controls that only work with scripts on */
html.js .no-js-only { display: none; }    /* things shown only when scripts are off */
[data-contact="abn"], .nowrap { white-space: nowrap; } /* an ABN, or "take-offs", never breaks across two lines */
.section-head { display: grid; gap: 16px; max-width: 46rem; }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--hairline); } /* a hairline between two white sections */

/* Lets keyboard users jump past the header. Off-screen until focused */
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 30; padding: 10px 16px; border-radius: var(--r-pill); background: var(--navy); color: #fff; }
.skip-link:focus { top: 10px; }

/* Buttons: pill shaped, large enough to tap, and they answer the press at once */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--r-pill);
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), opacity 160ms ease;
}
.button:active { transform: scale(0.97); transition-duration: 70ms; }
.button.quiet { background: var(--paper); color: var(--navy); border-color: var(--hairline); }
.button.light { background: var(--paper); color: var(--navy); border-color: var(--paper); } /* on navy */
.button.small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { opacity: 0.88; }                 /* gated so a tap on a phone does not leave a stuck hover */
  .button.quiet:hover { opacity: 1; border-color: var(--navy); }
}

/* The brand's dimension tick: a short 45 degree brass stroke, used as the bullet in short lists */
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 13px; height: 2px; background: var(--brass); transform: rotate(-45deg); }

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

.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--hairline);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Brand rule: the full logo is never shown under 180 px wide. Phones get the mark plus the short name;
   from tablet width (768 px) up the header shows the full lockup */
.logo { display: flex; align-items: center; flex: none; min-height: 44px; min-width: 44px; border-radius: 6px; text-decoration: none; }
.logo .logo-full { display: none; width: 176px; height: auto; }
.logo-short { display: flex; align-items: center; gap: 8px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-short img { width: 36px; height: 36px; }
.logo-short span { display: none; } /* under 375 px the header has room for the mark only */
@media (min-width: 375px) { .logo-short span { display: inline; } }
@media (min-width: 768px) {
  .logo .logo-full { display: block; }
  .logo .logo-short { display: none; }
}

/* Strap above the header: the motto, and on wider screens the address. It scrolls away with the page */
.strap { background: var(--navy); color: #fff; font-size: 0.8125rem; }
.strap .wrap { display: flex; align-items: center; justify-content: center; gap: 8px 24px; min-height: 34px; }
.strap .motto { font-weight: 600; letter-spacing: 0.02em; }
.strap-meta { display: none; color: var(--on-navy); }
.strap-meta a { display: inline-flex; align-items: center; min-height: 34px; margin-left: 6px; color: #fff; }
@media (min-width: 768px) {
  .strap .wrap { justify-content: space-between; }
  .strap-meta { display: block; }
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-links { display: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 0.9375rem; text-decoration: none; }
.nav-links a:hover { background: var(--navy-tint); }
.nav-links a[aria-current="page"] { background: var(--navy-tint); }
@media (min-width: 1080px) {
  .nav-links { display: flex; gap: 2px; margin-right: 10px; } /* below this the Menu button holds the links */
  .menu { display: none; }
}

/* Phone menu: a native <details>, so it opens and closes with scripts off too */
.menu { position: relative; }
.menu summary { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 600; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy-tint); }
.menu ul {
  position: absolute; right: -60px; top: calc(100% + 10px); width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 6px; background: var(--paper); border: 1px solid var(--navy); border-radius: var(--r-md);
  transform-origin: calc(100% - 90px) 0; /* grows out of the Menu button */
}
.menu a { display: block; padding: 13px 14px; border-radius: 10px; text-decoration: none; }
.menu a:hover { background: var(--navy-tint); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] ul { animation: drop-in 220ms var(--ease-out); }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(36px, 6vw, 88px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: start; } /* the sheet stack sits beside the headline, not adrift in the middle of a tall column */
}

/* The headline is "dimensioned end to end", the same idea as the logo */
.headline { display: inline-block; font-size: clamp(2.25rem, 4.5vw, 4rem); } /* shrink-wraps, so the dimension line is exactly as long as the words; sized so each line fits its column */
.headline-dim { display: flex; align-items: center; gap: 14px; position: relative; margin-top: clamp(16px, 2.4vw, 28px); padding-inline: 1px; font-size: clamp(0.8125rem, 1.3vw, 1rem); font-weight: 600; letter-spacing: 0.01em; line-height: 1; color: var(--brass-ink); }
.headline-dim .rule { flex: 1; height: 2px; background: var(--brass); }
.headline-dim .rule:nth-child(2) { transform-origin: left; }  /* each half is drawn from its end towards the words */
.headline-dim .rule:nth-child(4) { transform-origin: right; }
.headline-dim .text { white-space: nowrap; }
/* End marks: an upright witness line with a 45 degree tick, as on a drawing */
.end-mark { position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--brass); stroke-width: 2; }
.end-mark:first-child { left: -11px; }
.end-mark:last-child { right: -11px; }

.hero .lead { margin-top: clamp(24px, 3vw, 36px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-mail { margin-top: 16px; font-size: 0.9375rem; color: var(--slate); }
.hero-services { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.hero-services ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-services a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border: 1px solid var(--hairline); border-radius: var(--r-pill); line-height: 1.25;
  font-size: 0.9375rem; font-weight: 560; text-decoration: none; transition: transform 140ms var(--ease-out);
}
.hero-services a:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .hero-services a:hover { border-color: var(--navy); } }

/* The drawing set on the drafting table: three sample sheets, fanned. The whole stack is one link to the samples */
.hero-stack { position: relative; display: none; aspect-ratio: 10 / 9; border-radius: var(--r-xl); background: var(--concrete); overflow: hidden; }
@media (min-width: 960px) { .hero-stack { display: block; } }
.hero-stack img {
  position: absolute; left: 9%; top: 14%; width: 84%;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper);
  transform: translate(var(--x), var(--y)) rotate(var(--turn));
  transition: transform 520ms var(--ease-out);
}
.hero-stack img:nth-child(1) { --x: -6%; --y: -9%; --turn: -6deg; }
.hero-stack img:nth-child(2) { --x: 4%; --y: 2%; --turn: 3.5deg; }
.hero-stack img:nth-child(3) { --x: -1%; --y: 15%; --turn: -1.2deg; }
.stack-note { position: absolute; left: 20px; bottom: 16px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); font-size: 0.8125rem; font-weight: 600; color: var(--brass-ink); }
@media (hover: hover) and (pointer: fine) {
  /* On hover the set fans out a little further, like lifting the corner of a stack of prints */
  .hero-stack:hover img:nth-child(1) { --x: -10%; --y: -12%; --turn: -9deg; }
  .hero-stack:hover img:nth-child(2) { --x: 9%; --y: 0%; --turn: 6deg; }
  .hero-stack:hover img:nth-child(3) { --y: 13%; --turn: -0.5deg; }
}

/* The one orchestrated moment on page load: the dimension line draws in and the sheets are dealt onto the table */
@media (prefers-reduced-motion: no-preference) {
  .headline-dim .rule { animation: rule-draw 900ms var(--ease-out) 200ms both; }
  .headline-dim .text, .end-mark { animation: fade-in 500ms ease 700ms both; }
  .hero-stack img { animation: deal 760ms var(--ease-out) backwards; }
  .hero-stack img:nth-child(2) { animation-delay: 90ms; }
  .hero-stack img:nth-child(3) { animation-delay: 180ms; }
}
@keyframes rule-draw { from { transform: scaleX(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes deal { from { opacity: 0; transform: translate(0, 18%) rotate(0deg); } }

.hero-scope { margin-top: 10px; max-width: 36em; }
.start { padding-top: clamp(16px, 3vw, 40px); } /* the hero above already ends with generous space */

/* ---------- Start from whatever you have ---------- */

.start-grid { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.start-grid li { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px); border-top: 2px solid var(--navy); background: var(--concrete); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.start-grid li > p:not(.label) { color: var(--slate); }
.start-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 8px; font-weight: 600; }
.start-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Monthly work ---------- */

.monthly-grid { display: grid; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--navy); }
@media (min-width: 700px) { .monthly-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1040px) { .monthly-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.monthly-grid li { padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.monthly-grid h3 { font-size: 1.1875rem; }
.monthly-grid p { margin-top: 6px; color: var(--slate); }

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

.services { padding-block: var(--section); border-top: 1px solid var(--hairline); }
.svc-grid { display: grid; gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 700px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-lead, .svc-cta { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  /* Weighted by Junaid's order: structural take-offs lead, finishes and tender support beside them, then shop drawings, measured drawings and the "not sure" tile */
  .svc-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .svc-lead { grid-column: 1 / 8; grid-row: 1 / 3; }
  .svc-finishes, .svc-tender { grid-column: 8 / 13; }
  .svc-shop { grid-column: 1 / 5; }
  .svc-plans { grid-column: 5 / 9; }
  .svc-cta { grid-column: 9 / 13; }
}

.svc {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--paper);
  transition: transform 260ms var(--ease-out);
}
.svc h3 a { text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole tile is the link */
.svc h3 a:focus-visible { outline: none; }
.svc:has(h3 a:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
.svc > p { color: var(--slate); }
.svc .art { width: auto; max-width: 100%; height: 104px; align-self: flex-start; margin-bottom: 6px; } /* left-aligned with the words under it */
.svc .tag { align-self: flex-start; padding: 5px 12px; border-radius: var(--r-pill); background: var(--concrete); font-size: 0.8125rem; font-weight: 600; color: var(--brass-ink); }
.svc .formats { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 0.875rem; color: var(--slate); }
.svc .formats strong { color: var(--navy); font-weight: 600; }
.svc:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .svc:not(.svc-cta):hover { transform: translateY(-3px); border-color: var(--navy); }
}

/* The lead tile sits on the concrete surface and lists the trades by name */
.svc-lead { background: var(--concrete); border-color: var(--concrete); }
.svc-lead h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.svc-lead .art { height: clamp(120px, 14vw, 160px); }
.trades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.trades li { padding: 6px 13px; border-radius: var(--r-pill); background: var(--paper); font-size: 0.875rem; font-weight: 560; }
.svc-lead .formats { border-top-color: rgba(22, 35, 58, 0.14); }
.art .wall { stroke-width: 3; } /* outside walls drawn heavier, as on a plan */

/* Add-ons: smaller jobs, shown as a plain ruled list under the main tiles */
.addons { margin-top: clamp(40px, 5vw, 64px); }
.addons > p { margin-top: 6px; }
.addon-list { display: grid; margin-top: 18px; border-top: 1px solid var(--navy); }
@media (min-width: 700px) { .addon-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.addon-list a { display: grid; gap: 2px; min-height: 44px; padding: 14px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.addon-list strong { font-weight: 620; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 0.22em; }
.addon-list span { font-size: 0.9375rem; color: var(--slate); }
@media (hover: hover) and (pointer: fine) { .addon-list a:hover strong { text-decoration-color: var(--navy); text-decoration-thickness: 2px; } }

/* "Not sure which?" tile: the one navy surface in the list, with its own button */
.svc-cta { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: space-between; }
.svc-cta > p { color: var(--on-navy); }
.svc-cta .button { align-self: flex-start; margin-top: 8px; }

/* Line drawings inside the tiles */
.art .fill { fill: var(--concrete); stroke: var(--navy); stroke-width: 1.5; }
.svc-lead .art .fill { fill: var(--paper); }
.art .ln { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .thin { fill: none; stroke: var(--slate); stroke-width: 1; stroke-linecap: round; }
.art .cut { fill: var(--paper); stroke: var(--navy); stroke-width: 1.2; }
.art .dim { fill: none; stroke: var(--brass); stroke-width: 1.2; }
.art .scan { fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.art text { font-family: var(--font); font-size: 10px; font-weight: 600; fill: var(--brass-ink); }
.art .t { fill: var(--navy); font-weight: 500; } /* table text in the take-off drawing */
.art .shade { fill: var(--hairline); stroke: var(--navy); stroke-width: 1.2; stroke-linejoin: round; }

/* ---------- Sample drawings ---------- */

.work { padding-block: var(--section); background: var(--concrete); }
.work-head { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .work-head { grid-template-columns: minmax(0, 1fr) auto; } }

/* Sheet picker: one pill per drawing, plus previous and next */
.sheet-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
@media (max-width: 899px) {
  /* Phones: the pills sit in one row that scrolls sideways, so the drawings stay close to the heading */
  .sheet-nav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .sheet-nav::-webkit-scrollbar { display: none; }
  .sheet-nav button { flex: none; }
}
.sheet-nav button, .step-buttons button {
  min-height: 44px; padding: 0 16px; background: var(--paper); color: var(--navy); border: 1px solid var(--paper); border-radius: var(--r-pill);
  font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 140ms var(--ease-out);
}
.sheet-nav button[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sheet-nav button:active, .step-buttons button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .sheet-nav button:not([aria-current="true"]):hover { border-color: var(--navy); } }
.step-buttons { display: flex; gap: 8px; }
.step-buttons button { width: 48px; padding: 0; display: grid; place-items: center; }
.step-buttons button:disabled { opacity: 0.4; cursor: default; }
.step-buttons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The sheets sit in a row that scrolls sideways and snaps: native momentum on phones, arrow keys when focused */
.gallery {
  --edge: max(var(--gutter), calc((100% - 1160px) / 2)); /* lines the first sheet up with the page column */
  position: relative; /* so each sheet's offsetLeft is measured from the row, for script.js */
  display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 840px); gap: clamp(14px, 2vw, 24px);
  margin-top: 28px; padding: 6px var(--edge) 22px; scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.gallery:focus-visible { outline-offset: -2px; }
.sheet { display: grid; gap: 16px; align-content: start; scroll-snap-align: start; }
.sheet-frame { display: block; padding: clamp(8px, 1.1vw, 14px); border-radius: var(--r-lg); background: var(--paper); }
.sheet-frame img { width: 100%; border-radius: 8px; }
.sheet figcaption { display: grid; gap: 6px; padding-inline: 6px; }
.sheet figcaption p { color: var(--slate); max-width: 44em; }
.sheet-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; font-size: 0.9375rem; font-weight: 600; }
.sheet-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); } /* 44 px tap targets */

/* ---------- How to send work ---------- */

.process .section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.steps { position: relative; display: grid; gap: 32px; }
.steps li { position: relative; padding-left: 64px; }
.steps .num { position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--navy); border-radius: 50%; background: var(--paper); font-weight: 650; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 8px; color: var(--slate); max-width: 30em; }
/* The line joining the steps: down the left on phones, along the top on wide screens */
.steps::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--brass); transform-origin: top; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { padding: 68px 0 0; }
  .steps .num { top: 0; }
  .steps::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
}
/* Where the browser can tie animation to scrolling, the line is drawn as the steps come into view */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::before { animation: line-down linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    @media (min-width: 900px) { .steps::before { animation-name: line-across; } }
  }
}
@keyframes line-down { from { transform: scaleY(0); } }
@keyframes line-across { from { transform: scaleX(0); } }
.process-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Scan-to-CAD comparison ---------- */

.drafting, .monthly { border-top: 1px solid var(--hairline); } /* sections that follow a non-.section block still get the hairline */
.drafting-body { max-width: 860px; margin-top: 28px; }
.drafting-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }

/* Units switch: a segmented control whose navy thumb slides to the chosen side */
.segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--concrete); }
.segmented::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--navy); transition: transform 280ms var(--ease-out); }
.segmented[data-on="1"]::before { transform: translateX(100%); }
.segmented button { position: relative; min-height: 44px; padding: 0 20px; background: none; border: 0; border-radius: var(--r-pill); font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; touch-action: manipulation; }
.segmented button[aria-pressed="true"] { color: #fff; }

/* The two drawings sit on top of each other. The clean one is slid across and clipped, using transform only */
.compare { position: relative; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--r-lg); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; --pos: 50; }
.plan { display: block; width: 100%; height: auto; -webkit-user-drag: none; } /* the sheets are pictures; dragging moves the divider, never the picture */
.plan-clip, .plan-clip-inner { position: absolute; inset: 0; }
.plan-clip { overflow: hidden; transform: translateX(calc(var(--pos) * 1%)); }      /* moves right by pos% of the width, hiding the left part of the clean drawing */
.plan-clip-inner { transform: translateX(calc(var(--pos) * -1%)); }                 /* moves back by the same amount, so the drawing itself stays put */
.compare-track { position: absolute; inset: 0; transform: translateX(calc(var(--pos) * 1%)); pointer-events: none; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: -24px; width: 48px; display: grid; place-items: center; pointer-events: auto; touch-action: pan-y; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--navy); }
.compare-handle span { position: relative; width: 48px; height: 48px; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--navy); border-radius: 50%; transition: transform 160ms var(--ease-out); }
.compare-handle svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare.is-dragging .compare-handle span { transform: scale(1.08); } /* the knob swells a touch while held */
.compare-handle:focus-visible { outline: none; }
.compare-handle:focus-visible span { outline: 2px solid var(--navy); outline-offset: 3px; }
.compare-tag { position: absolute; top: 12px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--paper); font-size: 0.8125rem; font-weight: 600; pointer-events: none; }
.compare-tag.left { left: 12px; color: var(--slate); }
.compare-tag.right { right: 12px; color: var(--navy); }

/* Scripts off: no sliding, just both drawings one after the other, each with a caption */
html:not(.js) .compare { display: grid; gap: 28px; overflow: visible; border: 0; cursor: auto; }
html:not(.js) .plan-clip, html:not(.js) .plan-clip-inner { position: static; transform: none; }
html:not(.js) .compare-track { display: none; }
@media (min-width: 760px) { html:not(.js) .compare { grid-template-columns: 1fr 1fr; } }
.plan-caption { margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--brass-ink); }

/* The three figures under the plan */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--navy); }
.figure dt { font-size: 0.8125rem; color: var(--slate); }
.figure dd { font-size: clamp(1.25rem, 4.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; } /* no tabular figures: in this typeface they widen the full stop (BRAND.md) */
.figure dd small { font-size: 0.5em; font-weight: 500; letter-spacing: 0; color: var(--slate); }
.drafting .note { margin-top: 14px; max-width: 46em; }

/* ---------- Working with clients outside Australia ---------- */

.world-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .world-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.world-list { margin-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--navy); }
.world-list li { display: grid; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.world-list h3 { font-size: 1.1875rem; }
.world-list p { color: var(--slate); }
@media (min-width: 700px) { .world-list li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

/* Two clocks on a navy card: Melbourne and the visitor's own time. Filled in by script.js */
.clock-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--navy); color: #fff; }
.clock-card dl { display: grid; gap: 22px; }
.clock-card div + div { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.clock-card dt { font-size: 0.875rem; color: var(--on-navy); }
.clock-card dd { margin-top: 2px; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.clock-card dd small { display: block; margin-top: 4px; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--on-navy); }
.clock-card p { margin-top: 24px; font-size: 0.9375rem; color: var(--on-navy); }

/* ---------- Not on the list? Ask ---------- */

.ask-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .ask-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.ask-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.ask-list li { padding: 7px 14px; border: 1px solid var(--hairline); border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 560; }
.ask-box { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--concrete); }
.ask-box h3 { margin-bottom: 16px; }
.ask-box label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; }
.ask-box textarea { display: block; width: 100%; min-height: 120px; padding: 12px 16px; resize: vertical; background: var(--paper); border: 1px solid var(--slate); border-radius: var(--r-md); font: inherit; color: var(--navy); } /* 17 px text: phones do not zoom in on focus */
.ask-box textarea[aria-invalid="true"] { border: 2px solid var(--navy); }
.ask-box .button { margin-top: 16px; }
.ask-box .note { margin-top: 12px; }

/* ---------- Scope ---------- */

.scope-grid { display: grid; gap: 40px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .scope-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.scope-list h3 { padding-bottom: 14px; border-bottom: 1px solid var(--navy); }
.scope-list li { padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.scope-list p { margin-top: 16px; color: var(--slate); }
.scope-stays { margin-top: clamp(32px, 4vw, 48px); max-width: 46em; }
.scope-notice { margin-top: 20px; padding: clamp(20px, 2.4vw, 28px); max-width: 52em; border-radius: var(--r-lg); background: var(--concrete); } /* body-text size on purpose: the legal wording is never small print */
.about { margin-top: clamp(32px, 4vw, 48px); max-width: 40em; }

/* ---------- Questions ---------- */

.questions-list { margin-top: clamp(28px, 4vw, 44px); max-width: 800px; border-top: 1px solid var(--navy); }
.questions details { border-bottom: 1px solid var(--hairline); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: clamp(1.0625rem, 1.8vw, 1.1875rem); font-weight: 600; cursor: pointer; list-style: none; border-radius: 6px; }
.questions summary::-webkit-details-marker { display: none; }
/* A plus sign in a circle that turns into a cross when the answer is open */
.questions summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding-bottom: 2px;
  border: 1px solid var(--hairline); border-radius: 50%; font-size: 1.375rem; font-weight: 400; line-height: 1;
  transition: transform 260ms var(--ease-out);
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding: 0 48px 22px 0; color: var(--slate); max-width: 42em; }
@media (prefers-reduced-motion: no-preference) {
  .questions details[open] p { animation: fade-in 260ms ease; }
}

/* ---------- Enquiry flow ---------- */

.enquiry { padding-block: var(--section); }
.enquiry-panel { padding: clamp(24px, 4.6vw, 64px); border-radius: var(--r-xl); background: var(--concrete); }
.enquiry-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .enquiry-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }
.enquiry-intro .lead { margin-top: 16px; }
.enquiry-intro .ticks { display: grid; gap: 8px; margin-top: 22px; font-size: 0.9375rem; }
.enquiry-plain { margin-top: 20px; } /* shown only when scripts are off */

.flow { min-width: 0; }
.flow-progress { height: 4px; border-radius: var(--r-pill); background: rgba(22, 35, 58, 0.12); overflow: hidden; }
.flow-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brass); transform-origin: left; transform: scaleX(0.2); transition: transform 420ms var(--ease-in-out); }
.flow-count { margin-top: 12px; }

.q { min-width: 0; margin: 0; padding: 18px 0 0; border: 0; }
.q legend { padding: 0; }
.q h3 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); letter-spacing: -0.025em; outline-offset: 6px; }

/* Large tappable answers: white rows with a round marker that fills when chosen */
.choices { display: grid; gap: 8px; margin-top: 20px; }
@media (min-width: 560px) { [data-step="need"] .choices { grid-template-columns: 1fr 1fr; } } /* ten services fit in two columns instead of one long list */
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 18px;
  background: var(--paper); border: 1px solid var(--paper); border-radius: var(--r-md);
  font: inherit; font-size: clamp(1rem, 2.2vw, 1.125rem); font-weight: 560; color: var(--navy); text-align: left; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.choice::before { content: ""; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--navy); border-radius: 50%; }
.choice[aria-pressed="true"] { border-color: var(--navy); }
.choice[aria-pressed="true"]::before { background: var(--navy); box-shadow: inset 0 0 0 4px var(--paper); }
.choice:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: var(--navy); } }

.field { margin-top: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; }
.field input { width: 100%; min-height: 54px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--slate); border-radius: var(--r-md); font: inherit; color: var(--navy); } /* 17 px text: phones do not zoom in on focus */
.field input[aria-invalid="true"] { border: 2px solid var(--navy); }
.field-error { margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--brass); font-size: 0.9375rem; font-weight: 600; }
.field-error:empty { display: none; }
.q .note { margin-top: 14px; }
.q .button { margin-top: 24px; }

.summary { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); white-space: pre-wrap; }
.summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.summary-actions .button { margin-top: 0; }
.copy-status { min-height: 1.5em; margin-top: 12px; font-size: 0.9375rem; font-weight: 600; }
.flow-back { margin-top: 22px; min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-size: 0.9375rem; color: var(--slate); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 0.22em; cursor: pointer; }

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

.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--hairline); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h2 { margin-bottom: 10px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; color: var(--brass-ink); }
.footer-grid li { padding: 0; }
.footer-grid img { width: 176px; margin-bottom: 18px; }
.footer-brand .motto { margin-bottom: 8px; font-weight: 600; }
.footer-grid .footer-sub { margin-top: 22px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; } /* each footer link is a 44 px tap target */
.footer-base { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--slate); font-size: 0.875rem; }
.footer-base p + p { margin-top: 6px; }
.footer-base .scope-short { max-width: 62em; } /* the short scope notice keeps a readable line length */
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; }
}

/* ---------- Service pages ---------- */

.page-hero { padding-block: clamp(28px, 5vw, 72px) clamp(48px, 7vw, 96px); }
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } }
.crumbs { font-size: 0.875rem; color: var(--slate); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; } /* breadcrumb links are 44 px tap targets */
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--hairline); }
.page-hero h1 { margin-top: 24px; font-size: clamp(2.25rem, 5.4vw, 4rem); max-width: 14em; }
.page-hero .lead { margin-top: 22px; }
.page-sheet { display: grid; gap: 10px; }
.page-sheet .sheet-frame { background: var(--concrete); }
.page-sheet figcaption { font-size: 0.875rem; color: var(--slate); padding-inline: 6px; }

.blocks { padding-bottom: var(--section); }
.block { display: grid; gap: 16px 48px; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hairline); }
@media (min-width: 900px) { .block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.block h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
@media (min-width: 900px) { .block h2 { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; } } /* the heading stays beside a long answer */
.block-body > * + * { margin-top: 14px; }
.block-body h3 { font-size: 1.125rem; margin-top: 26px; }
.block-body h3:first-child { margin-top: 0; }
.block-body ul:not(.ticks) li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.block-body ul:not(.ticks) li:first-child { border-top: 1px solid var(--hairline); }
.block-body .ticks { display: grid; gap: 10px; }
.block .questions-list { margin-top: 0; }
.block .questions summary { padding-block: 16px; }
.related { display: grid; gap: 10px; }
.block-body .related li { padding: 0; border: 0; } /* the tiles carry their own outline */
@media (min-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }
.related a { display: flex; align-items: center; min-height: 60px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: var(--r-md); font-weight: 600; text-decoration: none; transition: transform 200ms var(--ease-out); }
.related a:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .related a:hover { border-color: var(--navy); } }
.page-cta { margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--navy); color: #fff; }
.page-cta p { margin-top: 10px; color: var(--on-navy); max-width: 36em; }
.page-cta .hero-actions { margin-top: 24px; }
.page-cta a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }

/* ---------- Plain pages (privacy, 404) ---------- */

.plain { padding-block: clamp(48px, 8vw, 104px) clamp(64px, 10vw, 120px); }
.plain h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
.plain .prose { margin-top: 30px; max-width: 40em; }
.plain h2 { margin: 44px 0 12px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.015em; line-height: 1.2; }
.plain p + p { margin-top: 14px; }
.plain .hero-actions { margin-top: 32px; }

/* ---------- Reduced motion ----------
   Nothing slides, fans, draws or swells. Presses and choices still change colour, and the
   slider and gallery still work, so every feature stays usable. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
