/* Apex Projects Qld. Their cyan glowing on near-black, drawn like a blueprint.
   Colours are measured from apexqld.com: #24A9E1 (the site's link colour), #1E1E1E and the white logo. */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/spacegrotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0a0b0c;          /* page: near-black */
  --ink-2: #121314;
  --panel: #1e1e1e;        /* their dark panel colour */
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --white: #fff;
  --text: #e9eaeb;
  --muted: #a3a6a8;        /* 7.6:1 on --ink */
  --cyan: #24a9e1;         /* their colour */
  --cyan-hi: #5cc4ef;      /* tuned lighter for small text on black */
  --cyan-ink: #04131b;     /* text on cyan */
  --glow: rgba(36, 169, 225, .55);
  --grid: rgba(36, 169, 225, .075);
  --grid-fine: rgba(36, 169, 225, .035);
  --slant: .404;           /* the A's leg: 68 degrees from level */
  --r: 14px;
  --head-h: 68px;
  --gut: 20px;
  --f-head: "Space Grotesk", ui-rounded, system-ui, sans-serif;
  --f-body: "Figtree", ui-rounded, system-ui, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan-hi); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-head); color: var(--white); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 8.4vw, 4.6rem); font-weight: 650; }
h2 { font-size: clamp(1.75rem, 6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }
main { display: block; outline: none; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.mono { font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--cyan-hi); }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--text); max-width: 38ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: var(--cyan-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

/* The motif: the leg of the Apex "A", a heavy diagonal with a thin line beside it */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-hi); margin: 0 0 18px; position: relative; padding-left: 4px; }
/* heavy leg */
.eyebrow::before { content: ""; width: 14px; height: 16px; flex: none; background: var(--white); clip-path: polygon(46% 0, 82% 0, 36% 100%, 0 100%); }
/* the thin line that runs beside it in their logo */
.eyebrow::after { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 16px; margin-top: -8px; background: var(--white); clip-path: polygon(62% 0, 72% 0, 10% 100%, 0 100%); transform: translateX(-3px); opacity: .7; }

/* Blueprint ground */
.grid-bg { background-color: var(--ink); background-image:
  linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
  linear-gradient(var(--grid-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; }

/* Buttons: the left edge is cut on the A's leg */
.btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px 0 calc(var(--h) * var(--slant) + 16px);
  font: 600 1rem/1 var(--f-body); text-decoration: none; border: 0; cursor: pointer; color: var(--white); background: rgba(255,255,255,.09);
  clip-path: polygon(calc(var(--h) * var(--slant)) 0, 100% 0, 100% 100%, 0 100%); transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { background: rgba(255,255,255,.16); color: var(--white); }
.btn-cyan { background: var(--cyan); color: var(--cyan-ink); }
.btn-cyan:hover { background: #4bbbeb; color: var(--cyan-ink); }
.btn-wide { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 16px; height: 16px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.link-arrow:hover { border-color: var(--cyan); color: var(--white); }
.link-arrow::after { content: "\2192"; color: var(--cyan-hi); transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Progress line: a tape measure pulled out across the top as you read */
.tape { position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 60; pointer-events: none; }
.tape-blade { height: 5px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background:
  repeating-linear-gradient(90deg, rgba(4,19,27,.85) 0 1px, transparent 1px 8px) 0 0 / 100% 2px no-repeat,
  repeating-linear-gradient(90deg, rgba(4,19,27,.9) 0 1px, transparent 1px 40px) 0 0 / 100% 4px no-repeat,
  var(--cyan); box-shadow: 0 0 10px var(--glow); }
.tape-case { position: absolute; top: -1px; left: 0; width: 15px; height: 11px; border-radius: 2px 5px 5px 2px; background: #2a2c2e; border: 1px solid var(--line-2); transform: translateX(-15px); }
@supports (animation-timeline: scroll()) {
  .tape-blade { animation: tape-out linear both; animation-timeline: scroll(root); }
  .tape-case { animation: tape-case linear both; animation-timeline: scroll(root); }
}
@keyframes tape-out { to { transform: scaleX(1); } }
@keyframes tape-case { to { transform: translateX(calc(100vw - 15px)); } }

/* Header: clear over the opening, solid once you scroll, tucks away going down and returns going up */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); transition: transform .35s var(--ease), background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-head.is-solid { background: rgba(10, 11, 12, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-head.is-away { transform: translateY(-100%); }
.head-in { height: 100%; width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 20px; }
.brand { flex: none; display: block; }
.brand img { width: 112px; height: auto; }
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.menu-btn { list-style: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; color: var(--white); background: rgba(10,11,12,.5); }
.menu-btn::-webkit-details-marker { display: none; }
.menu-ico { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; transition: transform .25s; }
.menu[open] .menu-ico { border-color: transparent; }
.menu[open] .menu-ico::before, .menu[open] .menu-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: currentColor; transform: rotate(45deg); }
.menu[open] .menu-ico::after { transform: rotate(-45deg); }
.menu .nav-list { position: absolute; left: 12px; right: 12px; top: calc(var(--head-h) - 4px); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.menu .nav-list a { display: block; padding: 14px 14px; font-size: 1.15rem; border-radius: 10px; }
.menu .nav-list a:hover { background: rgba(255,255,255,.05); }
.head-cta { display: none; --h: 44px; font-size: .95rem; }
.nav-wide { display: none; }
@media (min-width: 1000px) {
  .menu { display: none; }
  .nav-wide { display: flex; gap: 26px; }
  .nav-wide a { font-size: .98rem; }
  .head-cta { display: inline-flex; }
  .brand img { width: 132px; }
}

/* The email bar: the way to reach them never leaves the screen */
.callbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(18, 19, 20, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.55); transition: padding .3s var(--ease), grid-template-columns .3s var(--ease), transform .3s var(--ease); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 13px; font-weight: 650; text-decoration: none; transition: min-height .3s var(--ease); }
.callbar-mail { color: var(--white); background: rgba(255,255,255,.07); }
.callbar-go { color: var(--cyan-ink); background: var(--cyan); }
.callbar-txt { display: none; }
.callbar.is-tight { grid-template-columns: .6fr 1.4fr; }
.callbar.is-tight a { min-height: 42px; }
.ico-mail { width: 18px; height: 13px; border: 1.6px solid currentColor; border-radius: 2px; position: relative; overflow: hidden; flex: none; }
.ico-mail::before { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; border: 1.6px solid currentColor; transform: translateX(-50%) rotate(45deg); }
@media (min-width: 1000px) {
  .callbar { left: auto; right: 22px; bottom: 22px; grid-template-columns: auto auto; transform: translateY(140%); }
  .callbar.is-shown { transform: none; }
  .callbar a { padding: 0 18px; }
  .callbar-txt { display: inline; }
  .callbar-short { display: none; }
  .callbar.is-tight { grid-template-columns: auto auto; }
}

/* Reveal as sections arrive (only when the script is running) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* Sections */
.sec { padding: 84px 0; position: relative; }
.sec-tight { padding: 56px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 30px; margin-bottom: 30px; }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head p { max-width: 40ch; margin: 0; color: var(--muted); }
.wry { color: var(--muted); font-style: normal; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Swipe rows: one idea at a time on a phone, the next card peeking in */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px var(--gut) 18px; margin-inline: calc(var(--gut) * -1); scroll-padding-inline: var(--gut); scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.row-hint { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 18px; height: 2px; background: var(--line-2); transition: background .3s, width .3s; }
.dots i.on { background: var(--cyan); width: 30px; }
@media (min-width: 760px) { .row { grid-auto-columns: calc(50% - 7px); } }
@media (min-width: 1000px) {
  .row { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 4), 1fr); overflow: visible; margin: 0; padding: 0; }
  .row-hint { display: none; }
}

/* Cards */
.card { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .mono { margin-bottom: 4px; }
a.card { text-decoration: none; color: inherit; transition: border-color .3s, transform .4s var(--ease); }
a.card:hover { border-color: rgba(36,169,225,.6); transform: translateY(-3px); }
a.card:hover h3 { color: var(--white); }
.card-img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--panel); }
.card-draw { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); background-size: 24px 24px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); display: grid; place-items: center; padding: 16px; }
.card-draw svg { width: 100%; height: 100%; }
.card-more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--white); }
.card-more::after { content: " \2192"; color: var(--cyan-hi); }

/* Blueprint drawing ink */
.bp { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bp-faint { stroke: var(--cyan); opacity: .38; }
.bp-heavy { stroke-width: 2.2; }
.bp-white { stroke: #fff; }
.bp-fill { fill: rgba(36,169,225,.12); }
.bp-dash { stroke-dasharray: 5 4; }
.bp-txt { fill: var(--cyan-hi); font: 400 10px var(--f-mono); letter-spacing: .08em; stroke: none; }
.bp-txt-w { fill: #fff; }
.bp-glow { filter: drop-shadow(0 0 4px var(--glow)); }

/* ========== HOME: the opening ========== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--head-h) + 26px) 0 108px; overflow: hidden; isolation: isolate; }
.hero-draw { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-draw svg { position: absolute; right: -24%; top: 9%; width: 132%; max-width: none; height: auto; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,11,12,.2) 0%, rgba(10,11,12,.0) 30%, rgba(10,11,12,.82) 62%, var(--ink) 100%); }
.hero-scan { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0 40%, rgba(36,169,225,.10) 48%, rgba(92,196,239,.16) 50%, rgba(36,169,225,.10) 52%, transparent 60% 100%); background-size: 260% 100%; mix-blend-mode: screen; animation: scan 11s ease-in-out 2.6s infinite; opacity: 0; }
@keyframes scan { 0% { background-position: 120% 0; opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { background-position: -40% 0; opacity: 0; } }
.hero .wrap { position: relative; }
.ask { display: flex; align-items: center; gap: 12px; max-width: 560px; min-height: 52px; padding: 0 18px; margin: 0 0 30px; border-radius: 999px; background: rgba(30,30,30,.78); border: 1px solid var(--line-2); box-shadow: 0 10px 40px rgba(0,0,0,.4), 0 0 0 6px rgba(36,169,225,.06); color: var(--text); font-size: .98rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ask svg { flex: none; width: 18px; height: 18px; }
.ask-q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-caret { width: 2px; height: 1.2em; background: var(--cyan); flex: none; margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { max-width: 15ch; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 28px rgba(36,169,225,.45); }
.hero .lede { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 30px; }
.hero-cta .btn { flex: 1 1 auto; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.trust li { font: 400 .74rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trust b { color: var(--white); font-weight: 400; }
@media (min-width: 760px) {
  .hero-cta .btn { flex: 0 0 auto; }
  .hero-draw svg { right: -6%; top: 8%; width: 78%; opacity: .9; }
  .hero::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(10,11,12,.85) 38%, rgba(10,11,12,0) 70%), linear-gradient(180deg, transparent 70%, var(--ink)); }
}
@media (min-width: 1000px) { .hero { justify-content: center; padding-bottom: 80px; } .hero-draw svg { right: -2%; top: 12%; width: 64%; } }
/* the drawing inks itself in, once */
.ink { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 2.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes ink { to { stroke-dashoffset: 0; } }
.ink-fade { opacity: 0; animation: fade 1s ease forwards; animation-delay: var(--d, 1.6s); }
@keyframes fade { to { opacity: 1; } }

/* ========== HOME: the Coast, drawn ========== */
.coast { display: grid; gap: 22px; }
.coast-map { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.coast-map svg { width: 100%; height: auto; }
.pin { cursor: pointer; }
.pin circle { fill: var(--ink); stroke: var(--cyan); stroke-width: 1.4; transition: fill .3s, r .3s; }
.pin text { fill: var(--cyan-hi); font: 400 9px var(--f-mono); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .3s; }
.pin.on circle, .pin:hover circle, .pin:focus-visible circle { fill: var(--cyan); }
.pin.on text, .pin:hover text, .pin:focus-visible text { fill: var(--cyan-ink); }
.pin.on .pin-ring { opacity: 1; }
.pin-ring { fill: none !important; stroke: var(--cyan); opacity: 0; transition: opacity .3s; }
.js .pin.on .pin-ring { animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { r: 9; opacity: .9; } to { r: 22; opacity: 0; } }
.coast-note { position: absolute; left: 14px; bottom: 12px; }
.proj-card .mono { display: flex; gap: 10px; align-items: center; }
.bubble { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan-hi); font: 400 .7rem var(--f-mono); flex: none; }
.proj-card.on { border-color: rgba(36,169,225,.7); }
.proj-card.on .bubble { background: var(--cyan); color: var(--cyan-ink); }
@media (min-width: 1000px) {
  .coast { grid-template-columns: 5fr 7fr; align-items: start; }
  .coast-map { position: sticky; top: calc(var(--head-h) + 20px); }
  .coast .row { --cols: 2; }
}

/* ========== Scope tiles (the home page's way into the tool) ========== */
.tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); color: var(--text); text-decoration: none; transition: border-color .3s, background .3s; }
.tile:hover { border-color: var(--cyan); background: rgba(36,169,225,.05); color: var(--white); }
.tile svg { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.tile b { font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; color: var(--white); }
.tile span { font-size: .9rem; color: var(--muted); }
.tiles { grid-auto-columns: 62%; }
@media (min-width: 760px) { .tiles { grid-auto-columns: calc(33.333% - 10px); } }
@media (min-width: 1000px) { .tiles { --cols: 6; } }

/* ========== Crew photo ========== */
.crew { display: grid; gap: 28px; align-items: center; }
.frame { position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 30%; clip-path: polygon(calc(100% * var(--slant) * .25) 0, 100% 0, 100% 100%, 0 100%); }
.frame::before { content: ""; position: absolute; left: -10px; bottom: 0; width: 2px; height: 46%; background: var(--cyan); transform-origin: bottom; transform: skewX(-22deg); box-shadow: 0 0 12px var(--glow); }
.facts { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts .mono { color: var(--muted); padding-top: 3px; }
@media (min-width: 900px) { .crew { grid-template-columns: 5fr 6fr; gap: 64px; } .frame img { aspect-ratio: 4 / 5; } }

.builders { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.builders li { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .92rem; color: var(--white); }

/* ========== Closing band ========== */
.close { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.close::before { content: ""; position: absolute; right: -60px; bottom: -40px; width: 340px; aspect-ratio: 436 / 446; background: var(--cyan); opacity: .08; -webkit-mask: url("/img/apex-a.png") center / contain no-repeat; mask: url("/img/apex-a.png") center / contain no-repeat; }
.close h2 { max-width: 16ch; }
.close .hero-cta { margin: 26px 0 0; }

/* ========== Inner pages ========== */
.page-head { padding: calc(var(--head-h) + 54px) 0 46px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2rem, 7vw, 3.8rem); max-width: 18ch; }
.page-head .lede { max-width: 46ch; color: var(--muted); }
.page-head-draw { position: absolute; right: -40px; top: 60px; width: 420px; opacity: .35; pointer-events: none; }
@media (max-width: 759px) { .page-head-draw { width: 300px; right: -110px; opacity: .22; } }
.crumbs { font: 400 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; } .split-7-5 { grid-template-columns: 7fr 5fr; } }
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 12px; background: var(--cyan); clip-path: polygon(40% 0, 60% 0, 22% 100%, 2% 100%); }
.ticks b { color: var(--white); font-weight: 600; }
.note { border: 1px dashed rgba(36,169,225,.5); border-radius: var(--r); padding: 18px 20px; color: var(--muted); }
.note b { color: var(--white); }
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.photo-strip figure { margin: 0; }
.photo-strip figcaption { font-size: .85rem; color: var(--muted); padding-top: 6px; }
.photo-strip .wide { grid-column: 1 / -1; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--white); font-size: .95rem; }
.toc a:hover { border-color: var(--cyan); }
.sector { padding: 56px 0; border-top: 1px solid var(--line); }
.sector:first-of-type { border-top: 0; }

/* Service detail drawings */
.detail { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: 18px; }
.detail svg { width: 100%; height: auto; }
.detail figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

/* ========== Projects: gallery by job type ========== */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; padding: 0; border: 0; }
.filter legend { width: 100%; margin-bottom: 12px; }
.filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter label { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.filter label:hover { border-color: var(--cyan); }
.filter input:checked + label { background: var(--cyan); color: var(--cyan-ink); border-color: var(--cyan); }
.filter input:focus-visible + label { outline: 2px solid var(--cyan-hi); outline-offset: 3px; }
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.projects:has(#f-residential:checked) .gallery > :not([data-sector="residential"]),
.projects:has(#f-aged:checked) .gallery > :not([data-sector="aged"]),
.projects:has(#f-education:checked) .gallery > :not([data-sector="education"]),
.projects:has(#f-commercial:checked) .gallery > :not([data-sector="commercial"]) { display: none; }
.g-count { color: var(--muted); }

/* A project, opened: its picture grows into the top of its own page */
.sheet { display: none; }
.sheet:target { display: block; position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); }
.sheet-hero { position: relative; }
.sheet-hero img { width: 100%; aspect-ratio: 3 / 2; max-height: 70vh; object-fit: cover; }
.sheet-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--ink)); }
.sheet-close { position: fixed; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(10,11,12,.8); border: 1px solid var(--line-2); color: var(--white); text-decoration: none; font-weight: 600; backdrop-filter: blur(10px); }
.sheet-body { padding: 0 0 120px; margin-top: -40px; position: relative; }
.sheet-body h2 { font-size: clamp(2rem, 7vw, 3.4rem); }
.spec { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.spec li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec li .mono { display: block; color: var(--muted); margin-bottom: 2px; }
.sheet .photo-strip { margin-top: 24px; }
@media (min-width: 1000px) { .sheet-body .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 50px; } .sheet .photo-strip { margin-top: 0; } }
.has-sheet { overflow: hidden; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
@view-transition { navigation: auto; }
.vt-settlers-cove { view-transition-name: p-settlers-cove; } .vt-botanica { view-transition-name: p-botanica; }
.vt-bokarina-townhouses { view-transition-name: p-bokarina; } .vt-palmlakes { view-transition-name: p-palmlakes; }
.vt-aveo { view-transition-name: p-aveo; } .vt-matthew-flinders { view-transition-name: p-mfac; }
.vt-history-makers { view-transition-name: p-church; } .vt-spotlight { view-transition-name: p-spotlight; }
.vt-western-truck-group { view-transition-name: p-wtg; }

/* ========== The scope sheet (the interactive feature) ========== */
.scope { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: clip; background: var(--ink-2); }
.scope-draw { position: sticky; top: var(--head-h); z-index: 2; background: var(--ink); border-bottom: 1px solid var(--line-2); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; transition: top .35s var(--ease); }
.head-away .scope-draw { top: 0; }
.scope-draw svg { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 34svh; }
.scope-draw .bp, .scope-draw .bp-txt { transition: opacity .4s; }
.sd-new { animation: draw-in .9s var(--ease) both; }
@keyframes draw-in { from { opacity: 0; transform: translateY(6px); } }
.rev { position: absolute; right: 12px; top: 10px; }
.scope-form { padding: 22px 18px 26px; display: grid; gap: 26px; }
.q-step legend, .q-label { font-family: var(--f-head); font-weight: 600; font-size: 1.12rem; color: var(--white); margin-bottom: 12px; padding: 0; display: flex; gap: 10px; align-items: baseline; }
.q-step legend .mono, .q-label .mono { color: var(--muted); }
.q-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 550; font-size: .97rem; transition: background .2s, border-color .2s, color .2s; user-select: none; }
.chips label:hover { border-color: var(--cyan); }
.chips input:checked + label { background: rgba(36,169,225,.16); border-color: var(--cyan); color: var(--white); }
.chips input[type="checkbox"] + label::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-radius: 3px; transition: background .2s, border-color .2s; }
.chips input[type="checkbox"]:checked + label::before { background: var(--cyan); border-color: var(--cyan); box-shadow: inset 0 0 0 2px var(--ink-2); }
.chips input:focus-visible + label { outline: 2px solid var(--cyan-hi); outline-offset: 2px; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.stepper label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.stepper-in { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--white); font-size: 1.3rem; cursor: pointer; flex: none; }
.stepper button:hover { border-color: var(--cyan); }
.stepper input { width: 100%; min-width: 0; text-align: center; background: transparent; border: 0; color: var(--white); font: 600 1.35rem var(--f-head); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.scope-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .scope-row { grid-template-columns: 1fr 1fr; } }
.sheet-out { border: 1px solid var(--cyan); border-radius: 12px; overflow: hidden; }
.tb { display: grid; grid-template-columns: 1fr 1fr; }
.tb > div { padding: 10px 12px; border-right: 1px solid rgba(36,169,225,.35); border-bottom: 1px solid rgba(36,169,225,.35); min-width: 0; }
.tb > div:nth-child(2n) { border-right: 0; }
.tb .mono { display: block; font-size: .66rem; color: var(--muted); margin-bottom: 3px; }
.tb b { font-weight: 600; color: var(--white); font-size: .97rem; overflow-wrap: anywhere; }
.tb .tb-wide { grid-column: 1 / -1; border-right: 0; }
.sheet-acts { display: grid; gap: 10px; padding: 14px 12px; }
.sheet-acts .link-arrow { justify-self: center; }
.saved { font-size: .9rem; color: var(--cyan-hi); text-align: center; min-height: 1.4em; margin: 0; }
@media (min-width: 1000px) {
  .scope { grid-template-columns: 7fr 5fr; }
  .scope-draw { grid-column: 1; grid-row: 1 / span 2; top: calc(var(--head-h) + 20px); align-self: start; border-bottom: 0; border-right: 1px solid var(--line-2); height: auto; }
  .head-away .scope-draw { top: 20px; }
  .scope-draw svg { max-height: none; aspect-ratio: 4 / 3.2; }
  .scope-form { grid-column: 2; padding: 28px; }
}
.no-js-only { display: none; }
.nojs .no-js-only { display: block; }

/* Forms */
.qform { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--white); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--white); background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36,169,225,.25); }
.field input::placeholder, .field textarea::placeholder { color: #75797c; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.fine { font-size: .85rem; color: var(--muted); margin: 0; }
.carry { border: 1px dashed var(--cyan); border-radius: 12px; padding: 12px 14px; background: rgba(36,169,225,.06); }
.carry-h { margin: 0 0 6px; }
.carry-list { margin: 0 0 6px; padding-left: 1.1em; font-size: .93rem; }
.carry-clear { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.contact-card { border: 1px solid var(--line-2); border-radius: 18px; padding: 24px 20px; background: var(--ink-2); }

/* The drawer: the enquiry rises over the page */
.drawer { margin: 0; padding: 0; border: 0; width: 100%; max-width: 100%; max-height: 92svh; inset: auto 0 0 0; position: fixed; background: var(--ink-2); color: var(--text); border-radius: 22px 22px 0 0; border-top: 1px solid var(--cyan); box-shadow: 0 -20px 60px rgba(0,0,0,.6); transform: translateY(100%); transition: transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; overflow-y: auto; overscroll-behavior: contain; }
.drawer[open].up { transform: none; }
.drawer::backdrop { background: rgba(0,0,0,.6); opacity: 0; transition: opacity .4s; backdrop-filter: blur(3px); }
.drawer[open].up::backdrop { opacity: 1; }
.drawer-in { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.drawer-in h2 { font-size: 1.7rem; margin: 0; }
.drawer-sub { color: var(--muted); margin: 0; font-size: .97rem; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-top::before { content: ""; position: absolute; left: 50%; top: 8px; width: 44px; height: 4px; border-radius: 4px; background: var(--line-2); transform: translateX(-50%); }
.drawer-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (min-width: 760px) {
  .drawer { inset: auto 24px 24px auto; width: 480px; border-radius: 22px; border: 1px solid var(--cyan); transform: translateY(calc(100% + 40px)); }
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 120px; background: var(--ink); font-size: .95rem; }
.foot-grid { display: grid; gap: 34px; }
.foot-brand img { width: 130px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); max-width: 34ch; }
.foot-h { font: 400 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-hi); margin-bottom: 14px; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.foot-links li { margin-bottom: 8px; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-base p { margin: 0; }
.credit a { color: var(--muted); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1.2fr 1.4fr; } .site-foot { padding-bottom: 60px; } }

/* 404 */
.lost { min-height: 88svh; display: flex; align-items: center; padding: calc(var(--head-h) + 40px) 0 60px; }
.lost svg { width: min(420px, 100%); margin-bottom: 26px; }

/* Less motion: everything still there, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .ink { stroke-dashoffset: 0; animation: none; }
  .ink-fade { opacity: 1; animation: none; }
  .hero-scan, .ask-caret { display: none; }
  .tape { display: none; }
  @view-transition { navigation: none; }
}
@media (forced-colors: active) { .btn { border: 1px solid; clip-path: none; } }

/* delays, in tenths of a second (no inline styles: the security policy forbids them) */
.d-1{--d:0.1s} .d-2{--d:0.2s} .d-3{--d:0.3s} .d-4{--d:0.4s} .d-5{--d:0.5s} .d-6{--d:0.6s} .d-7{--d:0.7s} .d-8{--d:0.8s} .d-9{--d:0.9s} .d-10{--d:1s} .d-11{--d:1.1s} .d-12{--d:1.2s} .d-13{--d:1.3s} .d-14{--d:1.4s} .d-15{--d:1.5s} .d-16{--d:1.6s} .d-17{--d:1.7s} .d-18{--d:1.8s} .d-19{--d:1.9s} .d-20{--d:2s} .d-21{--d:2.1s} .d-22{--d:2.2s} .d-23{--d:2.3s} .d-24{--d:2.4s} .d-25{--d:2.5s} .d-26{--d:2.6s} .d-27{--d:2.7s} .d-28{--d:2.8s} .d-29{--d:2.9s} .d-30{--d:3s}
.mt { margin-top: 24px; }
.scope[hidden] { display: none; }
figure { margin: 0; }

/* Phone: keep the home page short */
@media (max-width: 759px) {
  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 22px; }
  .proj-card { flex-direction: row; align-items: stretch; }
  .proj-card .card-img { width: 104px; aspect-ratio: auto; height: auto; flex: none; }
  .proj-card .card-body { padding: 12px 14px; gap: 3px; }
  .proj-card h3 { font-size: 1.05rem; }
  .proj-card p { font-size: .88rem; }
  .coast .row { grid-auto-columns: 86%; }
  .card-draw { aspect-ratio: 16 / 9; padding: 10px; }
  .frame img { aspect-ratio: 4 / 3; }
  .crew { gap: 22px; }
  .site-foot { padding-top: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { margin: 0; }
  .foot-links { columns: 1; }
  .foot-base { margin-top: 26px; }
  .hero .lede { font-size: 1.05rem; }
}

.q-step legend.q-sub { font: 400 .72rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 10px; }
@media (max-width: 999px) { .scope-draw .bp-txt { font-size: 15px; } }
@media (min-width: 1000px) {
  .hero-draw svg { right: 1%; top: 50%; width: min(52%, 760px); transform: translateY(-44%); opacity: .95; }
  .hero::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(10,11,12,.9) 36%, rgba(10,11,12,0) 54%), linear-gradient(180deg, transparent 75%, var(--ink)); }
  .hero .wrap > * { max-width: 600px; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.3rem); }
}
@media (min-width: 1000px) { .site-foot { padding-bottom: 104px; } }
.split > *, .crew > *, .coast > * { min-width: 0; }
.facts li > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 759px) { .facts li { grid-template-columns: 6.6em 1fr; } }
@media (max-width: 759px) {
  .hero-draw svg { opacity: .8; top: 7%; }
  .hero::after { background: linear-gradient(180deg, rgba(10,11,12,.15) 0%, rgba(10,11,12,.35) 40%, rgba(10,11,12,.78) 66%, var(--ink) 100%); }
}
@media (max-width: 759px) { .hero-draw svg { opacity: .62; } .hero-draw .bp-white { stroke: var(--cyan); } }
