/* BBC Painting: bright and airy, their navy and sky used sparingly, blueprint drawings in their two blues. */
:root {
  --white: #ffffff;
  --paper: #f5f8fb;
  --rule: #dfe7ef;
  --ink: #0f1834;
  --muted: #4a5674;
  --navy: #1b2756;
  --navy-2: #233470;
  --sky: #47a0d9;
  --sky-ink: #1b66a0;
  --bp: #1b2756;
  --bp-deep: #151f47;
  --bp-line: rgba(220, 237, 251, 0.9);
  --bp-soft: rgba(220, 237, 251, 0.55);
  --bp-faint: rgba(220, 237, 251, 0.13);
  --bp-sky: #6fbbed;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --head-h: 64px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  padding-bottom: var(--bar-h);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--sky-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 7.4vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.kicker { font: 600 0.78rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-ink); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6em; }
.kicker::before { content: ""; width: 14px; height: 16px; flex: none; background: currentColor; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); opacity: 0.9; }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 48px; padding: 0.7em 1.25em; border-radius: var(--radius); font: 600 1rem/1.1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-sky { background: var(--sky); color: var(--bp-deep); }
.btn-sky:hover { background: #6db4e4; color: var(--bp-deep); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Header: settles into a compact bar once the page moves */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head-h); transition: height 0.3s var(--ease); }
.is-scrolled .site-head { border-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(15, 24, 52, 0.5); }
.is-scrolled .site-head .wrap { height: 54px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; transition: height 0.3s var(--ease); }
.is-scrolled .brand img { height: 34px; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(12px, 1.8vw, 26px); margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--sky); color: var(--navy); }
.head-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: none; border: 1.5px solid var(--rule); border-radius: var(--radius); font: 600 0.95rem var(--sans); color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (min-width: 960px) {
  .nav { display: block; }
  .head-cta { display: inline-flex; min-height: 42px; padding: 0.55em 1em; }
  .menu-btn { display: none; }
}
.mobile-nav { border-top: 1px solid var(--rule); background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 18px; columns: 2; column-gap: 24px; }
.mobile-nav a { display: block; padding: 11px 0; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.mobile-nav[hidden] { display: none; }

/* The phone bar: the number never leaves the screen on a phone */
.call-bar { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--navy); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.6); transition: padding 0.25s var(--ease); }
.call-bar a, .call-bar button { min-height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 0.98rem/1.1 var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.call-bar .call { background: var(--sky); color: var(--bp-deep); }
.call-bar .quote { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.call-bar svg { width: 18px; height: 18px; }
.call-bar .label-long { display: none; }
.is-scrolled .call-bar { padding-top: 6px; }
@media (min-width: 380px) { .call-bar .label-long { display: inline; } }
@media (min-width: 900px) { .call-bar { display: none; } }

/* Blueprint panels: the drawings */
.bp { background: var(--bp); color: var(--bp-line); position: relative; overflow: hidden; }
.bp-grid { background-image: linear-gradient(var(--bp-faint) 1px, transparent 1px), linear-gradient(90deg, var(--bp-faint) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.drawing text { font-family: var(--mono); }

/* Hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); background: linear-gradient(var(--white), var(--paper)); }
.hero .wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--sky-ink); }
.hero-art { border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(15, 24, 52, 0.75); }
.hero-art figcaption { position: absolute; left: 14px; bottom: 10px; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-soft); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 1.4rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 8px; background: var(--sky); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* The building in the hero: drawn, then painted floor by floor from a swing stage */
.elev .paint { opacity: 1; }
.elev .stage { transform: translateY(var(--stage-end, 0)); }
.elev .ropes { transform-box: view-box; transform-origin: 0 0; }
.elev .ropes line { transform-box: fill-box; transform-origin: top; transform: scaleY(var(--rope-end, 1)); }
@media (prefers-reduced-motion: no-preference) {
  .elev .ink { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
  .elev .paint { clip-path: inset(0 0 100% 0); animation: coat 0.62s var(--ease) forwards; animation-delay: var(--d, 0s); }
  .elev .stage { transform: translateY(0); animation: lower var(--drop, 5s) linear forwards; animation-delay: 1.5s; }
  .elev .ropes line { transform: scaleY(1); animation: payout var(--drop, 5s) linear forwards; animation-delay: 1.5s; }
  .elev .roller { animation: roll 0.42s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
  .elev .stamp { opacity: 0; animation: stamp 0.5s var(--ease) forwards; animation-delay: var(--d, 7s); transform-box: fill-box; transform-origin: center; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes coat { to { clip-path: inset(0 0 0 0); } }
@keyframes lower { to { transform: translateY(var(--stage-end, 0)); } }
@keyframes payout { to { transform: scaleY(var(--rope-end, 1)); } }
@keyframes roll { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }

/* Sections */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(22px, 3.5vw, 40px); }
.section-head p { color: var(--muted); margin: 0; }
.paper { background: var(--paper); }
.band { background: var(--navy); color: #e8f1fa; }
.band h2, .band h3 { color: #fff; }
.band .kicker { color: var(--bp-sky); }
.band a { color: #bfe0f7; }

/* Arrive as they scroll in (CSS only; still where motion is turned down or unsupported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* The scope tool */
.scope { display: grid; gap: 22px; }
@media (min-width: 960px) { .scope { grid-template-columns: 380px 1fr; gap: 36px; align-items: start; } }
.scope fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.scope legend { font: 700 0.76rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 13px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; font-size: 0.94rem; font-weight: 500; color: var(--ink); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip input[type="checkbox"] + span::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.chip input[type="checkbox"]:checked + span::before { background: var(--sky); border-color: var(--sky); }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.chip span:hover { border-color: var(--navy); }
.storeys { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.storeys input { width: 100%; accent-color: var(--navy); height: 32px; }
.storeys output { font: 700 1.05rem var(--mono); color: var(--navy); min-width: 3.5ch; text-align: right; }
.scope-sheet { border-radius: 6px; }
.scope-sheet .sheet-draw { padding: 10px 10px 0; }
.scope-sheet .sheet-draw svg { width: 100%; height: auto; }
.title-block { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--bp-soft); font: 500 0.8rem/1.45 var(--mono); }
.title-block div { padding: 10px 14px; border-bottom: 1px solid var(--bp-faint); }
.title-block dt { color: var(--bp-soft); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.title-block dd { margin: 2px 0 0; color: #fff; }
@media (min-width: 620px) { .title-block { grid-template-columns: 1.4fr 1fr; } .title-block .span { grid-column: 1 / -1; } }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; }
.sheet-foot p { margin: 0; font-size: 0.92rem; color: var(--bp-soft); max-width: 40ch; }
.zone { transition: opacity 0.35s var(--ease); }
.zone[data-on="false"] { opacity: 0; }
.legend-key { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0 14px 12px; margin: 0; list-style: none; font: 500 0.74rem/1.3 var(--mono); color: var(--bp-soft); }
.legend-key li { display: flex; align-items: center; gap: 7px; }
.legend-key li[hidden] { display: none; }
.legend-key i { width: 18px; height: 12px; border: 1px solid var(--bp-line); display: inline-block; }

/* Rows that swipe on a phone */
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 330px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; overscroll-behavior-x: contain; }
.swipe > * { scroll-snap-align: start; }
@media (min-width: 960px) { .swipe { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }

/* Sector tabs */
.tabs [role="tablist"] { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.tabs [role="tab"] { flex: none; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; font: 600 0.94rem var(--sans); color: var(--navy); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel { display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .panel { grid-template-columns: 1.15fr 1fr; gap: 40px; } }
.panel[hidden] { display: none; }
.panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.panel h3 { margin-bottom: 0.35em; }
.no-js .tabs [role="tablist"] { display: none; }
.no-js .panel[hidden] { display: grid; margin-bottom: 36px; }

/* Project cards: on site lately */
.job { background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.job .bp { aspect-ratio: 16 / 10; }
.job .bp svg { width: 100%; height: 100%; }
.job-body { padding: 14px 16px 18px; }
.job h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.job p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.job .meta { font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky-ink); margin-bottom: 6px; }

/* Builders: names running past like a site board */
.builders { overflow: hidden; display: grid; gap: 10px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.builders ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; width: max-content; font: 600 clamp(1.15rem, 2.4vw, 1.5rem)/1.3 var(--serif); color: #fff; white-space: nowrap; }
.builders li { display: flex; align-items: center; gap: 34px; }
.builders li::after { content: ""; width: 8px; height: 9px; background: var(--sky); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@media (prefers-reduced-motion: no-preference) {
  .builders ul { animation: run 70s linear infinite; }
  .builders ul.back { animation-direction: reverse; animation-duration: 80s; }
  .builders:hover ul { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .builders ul { flex-wrap: wrap; width: auto; white-space: normal; row-gap: 6px; } .builders ul[aria-hidden="true"], .builders .dup { display: none; } .builders { mask-image: none; } }
@keyframes run { to { transform: translateX(-50%); } }

/* Offices along the coast */
.coast { display: grid; gap: 24px; }
@media (min-width: 960px) { .coast { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.coast-map { border-radius: 6px; }
.coast-map svg { width: 100%; height: auto; }
.offices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.offices li { border-bottom: 1px solid var(--rule); }
.offices details summary { list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 14px 2px; cursor: pointer; font: 600 1.15rem/1.2 var(--serif); color: var(--navy); }
.offices details summary::-webkit-details-marker { display: none; }
.offices summary small { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.offices summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--sky-ink); grid-column: 2; grid-row: 1; }
.offices details[open] summary::after { content: "−"; }
.offices .addr { padding: 0 2px 16px; color: var(--muted); }
.offices .addr p { margin: 0 0 6px; }
.offices .addr a { font-weight: 600; }
.pin { cursor: pointer; }
.pin .ring { transition: r 0.25s var(--ease); }
.pin.is-on .ring { r: 13; }

/* Inner pages */
.page-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(26px, 4vw, 48px); background: linear-gradient(var(--white), var(--paper)); }
.page-hero .wrap { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr 1.05fr; } }
.page-hero .photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--rule); }
.page-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font: 500 0.82rem var(--mono); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.two { display: grid; gap: 28px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 12px; height: 14px; margin-top: 6px; background: var(--sky); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ticks strong { color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--rule); }
.gallery figcaption { font: 500 0.74rem/1.35 var(--mono); color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.names { columns: 2 180px; column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.names li { padding: 9px 0; border-bottom: 1px solid var(--rule); font: 600 1.05rem var(--serif); color: var(--navy); break-inside: avoid; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 1.12rem/1.3 var(--serif); color: var(--navy); }
.faq details p { color: var(--muted); }
.note { font-size: 0.88rem; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; margin: 0; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row div { background: #fff; padding: 18px; }
.stat-row dt { font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.stat-row dd { margin: 6px 0 0; font: 600 1.5rem/1.15 var(--serif); color: var(--navy); }

/* Forms: the quote form rises over the page */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 13px; border: 1.5px solid #c5d2df; border-radius: var(--radius); background: #fff; width: 100%; min-height: 48px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--navy); outline: 2px solid var(--sky); outline-offset: 1px; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .fine { font-size: 0.84rem; color: var(--muted); margin: 0; }
.drawer { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 14px 14px 0 0; background: #fff; color: var(--ink); box-shadow: 0 -24px 60px -20px rgba(15, 24, 52, 0.55); }
@media (min-width: 760px) { .drawer { margin: auto; width: min(640px, 94vw); border-radius: 10px; } }
.drawer::backdrop { background: rgba(15, 24, 52, 0.55); backdrop-filter: blur(2px); }
.drawer[open] { animation: up 0.42s var(--ease); }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 6px; position: sticky; top: 0; background: #fff; }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.drawer-body { padding: 6px 20px 22px; overflow: auto; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; flex: none; }
.drawer .handle { width: 44px; height: 4px; background: var(--rule); border-radius: 4px; margin: 8px auto 0; }
@media (min-width: 760px) { .drawer .handle { display: none; } }

/* Closing call to action and footer */
.closer { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .closer { grid-template-columns: 1.4fr 1fr; } }
.closer h2 { margin: 0; }
.site-foot { background: var(--bp-deep); color: #c9d6e8; padding: 52px 0 28px; font-size: 0.95rem; }
.site-foot a { color: #e3eefa; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h2 { font-size: 1.05rem; color: #fff; font-family: var(--sans); letter-spacing: 0.02em; margin-bottom: 0.8em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot .badge { width: 64px; margin-bottom: 14px; }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: 0.85rem; color: #9fb0c8; }
.legal a { color: #b9c8dc; }
.credit { font-size: 0.8rem; }

/* A job's picture grows into the top of its own page */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Small helpers (no inline styles anywhere: the security policy forbids them) */
.hero-art { margin: 0; }
.more { margin: 18px 0 0; }
.btn-row.flush { margin: 0; }
.btn-ghost { border-color: #bfe0f7; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.band .btn-ghost { color: #fff; }
.two.middle { align-items: center; }
.draw-frame { border-radius: 6px; display: grid; place-items: center; }
.panel .draw-frame { aspect-ratio: 4 / 3; }
.vt-ph-multi { view-transition-name: ph-multi; }
.vt-ph-commercial { view-transition-name: ph-commercial; }
.vt-ph-industrial { view-transition-name: ph-industrial; }
.vt-ph-repaints { view-transition-name: ph-repaints; }
.legend-key .k-ext { background: repeating-linear-gradient(45deg, #6fbbed 0 1px, transparent 1px 5px); }
.legend-key .k-dots { background: radial-gradient(#6fbbed 1px, transparent 1.5px) 0 0 / 6px 6px; }
.legend-key .k-stip { background: radial-gradient(#6fbbed 0.8px, transparent 1.2px) 0 0 / 4px 4px; }
.legend-key .k-cross { background: repeating-linear-gradient(45deg, #6fbbed 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, #6fbbed 0 1px, transparent 1px 5px); }
.legend-key .k-line { border-color: #6fbbed; border-width: 0 0 0 3px; }
.legend-key .k-roof { background: repeating-linear-gradient(0deg, #6fbbed 0 1px, transparent 1px 4px); }

/* Phones: the home page stays short. The drawing sits above its controls, each set of choices is one row to swipe,
   and the hero leaves its buttons to the phone bar, which carries the same two. */
@media (max-width: 959px) {
  .hero .btn-row { display: none; }
  .hero .trust { margin-top: 1rem; }
  .scope-sheet { order: -1; }
  .scope fieldset { margin-bottom: 12px; min-width: 0; }
  .scope legend { margin-bottom: 6px; }
  .scope .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .scope .chips::-webkit-scrollbar { display: none; }
  .chip span { white-space: nowrap; min-height: 40px; padding: 7px 12px; font-size: 0.9rem; }
  .title-block { grid-template-columns: 1fr 1fr; font-size: 0.76rem; }
  .title-block div { padding: 7px 12px; }
  .title-block .span { grid-column: 1 / -1; }
  .sheet-foot { padding: 12px; }
  .sheet-foot p { display: none; }
  .sheet-foot .btn { width: 100%; }
  .legend-key { padding-bottom: 8px; }
  .coast .btn-row { display: none; }
}
.scope { grid-template-columns: minmax(0, 1fr); }
.scope > * { min-width: 0; }
@media (min-width: 960px) { .scope { grid-template-columns: 380px minmax(0, 1fr); } }
@media (max-width: 959px) {
  .section { padding: 48px 0; }
  .section.tight { padding: 40px 0; }
  .site-foot { padding: 40px 0 20px; }
  .site-foot .foot-grid > div:last-child ul { columns: 2; column-gap: 20px; display: block; }
  .site-foot .foot-grid > div:last-child li { margin-bottom: 8px; }
  .site-foot .badge { width: 48px; }
  .legal { margin-top: 24px; }
}
@media (max-width: 959px) {
  .scope { gap: 0; }
  .scope-sheet { display: contents; }
  .scope-sheet > * { background-color: var(--bp); color: var(--bp-line); background-image: linear-gradient(var(--bp-faint) 1px, transparent 1px), linear-gradient(90deg, var(--bp-faint) 1px, transparent 1px); background-size: 24px 24px; }
  .sheet-draw { order: 1; border-radius: 6px 6px 0 0; }
  .legend-key { order: 2; border-radius: 0 0 6px 6px; margin-bottom: 18px; padding-top: 4px; }
  #scope { order: 3; margin-bottom: 14px; }
  .title-block { order: 4; border-radius: 6px 6px 0 0; border-top: 0; }
  .sheet-foot { order: 5; border-radius: 0 0 6px 6px; }
}
@media (min-width: 960px) { .scope-sheet { position: sticky; top: 76px; } }
@media (max-width: 899px) {
  .page-hero { padding-top: 0; }
  .page-hero .photo { order: -1; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; aspect-ratio: 16 / 10; }
  .page-hero .btn-row { display: none; }
  .page-hero .crumbs { margin-top: 4px; }
}
.page-hero .photo.bp { background-color: var(--bp); }
.draw-frame svg { width: 100%; height: auto; }

/* Hero drawing timings (made by the build) */
.elev .hv0{--d:1.83s} .elev .hv1{--d:2.44s} .elev .hv2{--d:3.04s} .elev .hv3{--d:3.65s} .elev .hv4{--d:4.25s} .elev .hv5{--d:4.86s} .elev .hv6{--d:5.46s} .elev .hv7{--d:6.07s} .elev .hv8{--d:6.65s} .elev .hv9{--len:1000;--d:0s} .elev .hv10{--len:300;--d:0.25s} .elev .hv11{--len:300;--d:0.35s} .elev .hv12{--len:1200;--d:0.3s} .elev .hv13{--len:2400;--d:0.55s} .elev .hv14{--len:900;--d:0.7s} .elev .hv15{--rope-end:14.5333;--drop:5.2s} .elev .hv16{--stage-end:406px;--drop:5.2s} .elev .hv17{--d:6.9s}
