/* ==========================================================================
   Site stylesheet. Tokens (colours, radius, fonts) are defined in
   app/views/partials/critical.css (:root, inlined in <head>); use them, never new
   hex values. Breakpoints (ngn.au set; later blocks win), in this order at the
   bottom: >= 1100 · <= 900 (mobile nav) / >= 901 · 720 · 480 · 420 · 389 ·
   prefers-reduced-motion · hover · print. Do not invent new breakpoints.
   No scroll-reveal starting at opacity: 0; no content-visibility by default.
   ========================================================================== */

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--nav-h) + 1rem); }
body { font-size: 1.0625rem; }
a { color: var(--brand); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem); margin: .3em 0 .35em; }
h2, .h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); margin: 0 0 .5em; }
h3, .h3 { font-size: 1.2rem; margin: 0 0 .4em; font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.narrow { max-width: 46rem; }
.container.narrow { max-width: calc(46rem + 4rem); }
.skip-link:focus { top: 1rem; z-index: 100; background: var(--white); padding: .5rem 1rem; border-radius: var(--radius); }
/* Tracked caps labels echo CONSTRUCTIONS in the logo; the red tick is the logo's dot */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .6rem; font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: var(--red); }
.hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow { color: var(--accent-hover); }
.hero .eyebrow, .page-hero .eyebrow { text-shadow: 0 1px 10px rgb(0 0 0 / 60%); }
.hero .eyebrow::before, .page-hero .eyebrow::before, .section-dark .eyebrow::before { background: #d0263f; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .75rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 .95rem/1.2 var(--font-display); letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 80%); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; } /* long labels wrap at 390 to 430 px */
.btn[aria-busy="true"] { opacity: .8; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header + navigation ---------- */
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .5em; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone svg.icon { color: var(--brand); }
.nav-toggle { align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg.icon { width: 28px; height: 28px; }

/* ---------- Hero (home) ---------- */
.hero { display: flex; align-items: flex-end; }
.hero-content { padding-block: 7rem clamp(3rem, 2rem + 4vw, 6rem); }
.hero h1 { color: var(--white); max-width: 13em; font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.8rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero-lead { text-shadow: 0 1px 12px rgb(0 0 0 / 35%); }
.hero-scroll { position: absolute; left: 50%; bottom: 1.25rem; width: 1px; height: 3.5rem; background: rgb(255 255 255 / 35%); overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--white); }
.hero-lead, .page-hero-lead { max-width: 34em; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgb(255 255 255 / 92%); }
.hero-slide { transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-leaving { opacity: 0; z-index: 0; }
.hero-slide img { transform-origin: var(--kb-origin, 50% 50%); }
.hero-slide:nth-child(1) { --kb-origin: 30% 60%; }
.hero-slide:nth-child(2) { --kb-origin: 70% 40%; }
.hero-slide:nth-child(3) { --kb-origin: 50% 30%; }
.hero-media::after { z-index: 2; }
.hero-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; }
.hero-controls { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 2rem; min-height: 40px; } /* the pause button arrives with JS: reserve its height (CLS) */
.hero-caption { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: rgb(255 255 255 / 90%); transition: opacity .6s ease; }
.hero-caption.is-changing { opacity: 0; }
.js .hero-pause:not([hidden]) { visibility: visible; } /* its space is reserved from the first paint, so the caption never rewraps (CLS) */
.hero-pause { align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 80%); background: rgb(0 0 0 / 30%); color: var(--white); cursor: pointer; }
.hero-pause .icon-play, .hero-paused .hero-pause .icon-pause { display: none; }
.hero-paused .hero-pause .icon-play { display: block; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Page hero ---------- */
.page-hero { display: flex; align-items: flex-end; }
.page-hero-content { padding-block: 4.5rem clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.page-hero-plain { background: var(--brand-deep); }
.page-hero-plain .page-hero-content { padding-block: 2.5rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 1rem 0; padding: 0; font-size: .9rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .7; }
.breadcrumbs-light ol { margin-top: 0; color: rgb(255 255 255 / 90%); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--brand-deep); color: #ece6dd; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .text-link, .text-link-light { color: var(--accent-hover); }
.section-lead { max-width: 38em; margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-dark .section-lead { color: #c9c1b6; }
.section-head { margin-bottom: 2rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head-row h2 { margin: 0; }
.split { display: grid; gap: 2.5rem; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.signature { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 1.5rem 0; }
.signature span { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Points, ticks, chips ---------- */
.points, .ticks, .chips, .contact-list, .error-links, .social { list-style: none; margin: 0; padding: 0; }
.points { display: grid; gap: 1.25rem; }
.points li { display: flex; gap: .9rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.points h3 { font-size: 1.05rem; margin-bottom: .2em; }
.points svg.icon, .ticks svg.icon { color: var(--brand); margin-top: .2em; }
.points p { margin: 0; color: var(--muted); }
.ticks li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .5rem 1.1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: .95rem; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 1.5rem; }
.service-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.service-grid-home .card-media img { aspect-ratio: 4 / 5; }
.card-num { position: absolute; left: .9rem; top: .8rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .15em; color: var(--white); text-shadow: 0 1px 6px rgb(0 0 0 / 50%); }
.card-title { font-size: 1.15rem; }
.card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--brand); }
.service-cta { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1.75rem 1.5rem; border-radius: var(--radius); background: var(--brand-deep); color: #ece6dd; }
.service-cta .h3 { color: var(--white); font-size: 1.4rem; }
.service-cta .btn { margin: .75rem 0 1rem; }

/* ---------- Side card, areas ---------- */
.side-card, .contact-card, .form-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.side-card .btn + .btn { margin-top: .75rem; }
.side-card .ticks { margin-bottom: 1.25rem; }
.area-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.area-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.area-card p { margin: 0 0 .5rem; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red); }
.faq[open] summary::after { content: "\2212"; }
.faq-q { margin: 0; font-size: 1.1rem; }
.faq-a { padding-bottom: 1rem; color: var(--muted); }

/* ---------- Google reviews ---------- */
.reviews-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.review-stars { display: inline-flex; gap: 2px; color: var(--accent); }
.review-star { fill: none; stroke: currentColor; }
.review-star.is-on { fill: currentColor; }
.review-star-half { position: relative; display: inline-flex; }
.review-star-half .is-on { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: clamp(1rem, .6rem + 2vw, 2rem); }
.rail-track { display: flex; gap: 1rem; list-style: none; margin: 0 auto; padding: 0 0 1rem; max-width: 1200px; }
.review-item { flex: 0 0 min(340px, 85%); scroll-snap-align: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.review-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.review-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-deep); color: var(--white); font-weight: 700; }
.review-who { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.review-when { font-size: .85rem; color: var(--muted); }
.review-text { margin: .75rem 0; }
.rail-controls { display: flex; gap: .5rem; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand); background: var(--white); color: var(--brand); cursor: pointer; display: inline-grid; place-items: center; }
[data-rail-prev] svg { transform: rotate(180deg); }
.reviews-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.review-card .btn { margin-top: 1rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
.form-title { margin-bottom: 1rem; }
.field { margin-bottom: 1.1rem; border: 0; padding: 0; }
.field-row { display: grid; gap: 0 1rem; }
label, legend { display: block; margin-bottom: .35rem; font-weight: 700; }
.req { color: #a33a1c; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #8a8f98; border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--white);
}
textarea { min-height: 9rem; resize: vertical; }
[aria-invalid="true"] { border-color: #a33a1c; box-shadow: 0 0 0 1px #a33a1c; }
.field-error { margin: .35rem 0 0; color: #a33a1c; font-weight: 600; font-size: .95rem; }
.field-radios .radio { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1.25rem; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; }
.alert-error { background: #fbecea; border: 1px solid #a33a1c; color: #5c1c0b; }
.form-note, .recaptcha-note { font-size: .92rem; color: var(--muted); }
.contact-list li { display: flex; gap: .75rem; margin-bottom: 1rem; }
.contact-list li > div, .footer-col address span { min-width: 0; overflow-wrap: anywhere; } /* the long email address at 320 px */
.contact-list small { display: block; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.contact-list svg.icon { color: var(--brand); margin-top: .25em; }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; background: var(--brand-deep); color: #ece6dd; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); text-align: center; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.cta-band h2 { color: var(--white); }
.cta-band .actions { justify-content: center; }
.site-footer { background: var(--brand-deep); color: #ece6dd; padding-block: 3.5rem 6rem; }
.site-footer a { color: #ece6dd; text-decoration: none; }
/* Links inside a sentence keep their underline (they must stand out from the text around them) */
.footer-reviews a, .footer-bottom a:not(.ngn-credit) { text-decoration: underline; text-decoration-color: rgb(236 230 221 / 45%); }
.footer-grid { display: grid; gap: 2rem; }
.footer-title { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col address { font-style: normal; }
.footer-col address p { display: flex; gap: .6rem; margin-bottom: .9rem; }
.footer-col address a { display: inline-flex; align-items: center; gap: .6rem; min-height: 32px; }
.footer-col address svg.icon { margin-top: .3em; color: var(--accent-hover); }
.footer-col address a svg.icon { margin-top: 0; }
.brand-footer img { width: 150px; height: auto; margin-bottom: 1rem; }
.brand-footer { color: var(--white); margin-bottom: 1rem; }
.social { display: flex; gap: .75rem; margin-top: 1rem; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid rgb(255 255 255 / 40%); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 20%); font-size: .92rem; }
.footer-bottom p { margin: 0; }

/* ---------- Footer credit (seo.ngn.au assets/ngn-credit.css, unchanged) ---------- */
/* "Website by NGN" footer credit (assets/ngn-credit.html). Full footer text
   colour, no opacity: dimming it failed contrast on dim footers. */
a.ngn-credit { display: inline-flex; align-items: center; gap: 0.45em; color: inherit; text-decoration: none; }
.ngn-credit svg { display: block; width: auto; height: 1.05em; transform: translateY(0.12em); }

/* ---------- Mobile CTA bar (sticky Call / Free quote; not rendered on /contact/) ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: .6rem; padding: .6rem clamp(1rem, .6rem + 2vw, 2rem) calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(0 0 0 / 8%); }
.mobile-cta .btn { flex: 1; }

/* ---------- Error pages ---------- */
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 2rem; }


/* ---------- Home: statement, detail strip ---------- */
.statement { overflow-x: clip; }
.statement-grid { display: grid; gap: 2.5rem; align-items: start; }
.statement-quote { margin: 0; }
.statement-quote blockquote { margin: 0; }
.statement-quote p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; }
.statement-quote p::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 1.5rem; background: var(--red); }
.statement-quote figcaption { margin-top: 1.25rem; font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.statement-body .h3 { font-size: 1.3rem; }
.statement-body .points { margin-top: 1.5rem; }
.detail-strip { list-style: none; display: flex; gap: 1rem; margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 0; padding: 0 clamp(1rem, .6rem + 2vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.detail-strip::-webkit-scrollbar { display: none; }
.detail-strip li { flex: 0 0 clamp(220px, 62vw, 340px); scroll-snap-align: start; }
.detail-strip figure { margin: 0; }
.detail-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.detail-strip figcaption { margin-top: .6rem; font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mosaic (home services): full-bleed photo tiles ---------- */
.mosaic-section { background: var(--brand-deep); color: #ece6dd; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.mosaic-section h2 { color: var(--white); }
.mosaic-section .eyebrow { color: var(--accent-hover); }
.mosaic-section .eyebrow::before { background: #d0263f; }
.mosaic-section .section-lead { color: #c9c1b6; }
.mosaic-section .text-link { color: var(--accent-hover); }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-template-columns: 1fr; }
.mosaic-tile { position: relative; min-height: clamp(320px, 92vw, 520px); overflow: hidden; background: #0e0d0c; }
.mosaic-link { position: absolute; inset: 0; display: flex; align-items: flex-end; color: var(--white); text-decoration: none; }
.mosaic-tile picture { position: absolute; inset: 0; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.mosaic-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 13 12 / 0%) 35%, rgb(14 13 12 / 85%)); transition: background-color .6s ease; }
.mosaic-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .35rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); max-width: 34rem; }
.mosaic-num { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .22em; color: var(--accent-hover); }
.mosaic-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.08; letter-spacing: -.02em; }
.mosaic-text { color: rgb(255 255 255 / 85%); font-size: .98rem; }
.mosaic-more { display: inline-flex; align-items: center; gap: .45em; margin-top: .35rem; font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hover); }
.mosaic-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .25rem; min-height: 0; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem); background: var(--brand); color: #f6efe6; }
.mosaic-cta .h3 { color: var(--white); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.mosaic-cta .btn { margin: 1rem 0 1rem; background: var(--white); border-color: var(--white); }
.mosaic-cta .text-link-light { color: var(--white); }

/* ---------- Bands: full-height photo sections ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-deep); color: #ece6dd; }
.band h2 { color: var(--white); font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
.band .eyebrow { color: var(--accent-hover); }
.band .eyebrow::before { background: #d0263f; }
.band-lead { max-width: 34em; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgb(255 255 255 / 88%); }
.band-media picture { height: 100%; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-split .band-media { aspect-ratio: 4 / 3; }
.band-split .band-body { padding: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(1rem, .6rem + 2vw, 2rem); }
.points-light li { border-top-color: rgb(255 255 255 / 16%); }
.points-light h3 { color: var(--white); }
.points-light p { color: #c9c1b6; }
.points-light svg.icon { color: var(--accent-hover); }
.band-full { display: flex; align-items: flex-end; min-height: clamp(560px, 100vh, 1000px); min-height: clamp(560px, 100svh, 1000px); }
.band-full .band-media { position: absolute; inset: -10% 0; z-index: -1; }
.band-full .band-media img { object-position: center 70%; }
.band-full .band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(21 20 19 / 35%), rgb(21 20 19 / 0%) 30%, rgb(21 20 19 / 30%) 55%, rgb(21 20 19 / 88%)); }
.band-full .band-body { padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem); }
.chips-glass { margin: 1.75rem 0 1.25rem; }
.chips-glass li { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 30%); color: var(--white); }

/* ---------- Work rail (real job photos): full-bleed horizontal scroller ---------- */
.work-section { overflow: hidden; }
.work-rail { list-style: none; margin: 0; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 clamp(1rem, .6rem + 2vw, 2rem) .5rem; scroll-padding-inline: clamp(1rem, .6rem + 2vw, 2rem); }
.work-rail::-webkit-scrollbar { display: none; }
.work-rail .work-card { flex: 0 0 clamp(250px, 78vw, 440px); scroll-snap-align: start; }
.work-card a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: var(--white); text-decoration: none; }
.work-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-card a:has(.work-caption)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(21 20 19 / 85%)); }
.work-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; padding: 1.25rem; }
.work-place { font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hover); }
.work-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }

/* ---------- CTA band photo ---------- */
.cta-band { isolation: isolate; overflow: hidden; }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media picture { height: 100%; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: rgb(21 20 19 / 62%); }
.cta-band p { max-width: 36em; margin-inline: auto; color: rgb(255 255 255 / 90%); }

/* ---------- Videos (partials/video.php): muted loop on screen, tap for sound ---------- */
.video-grid { display: grid; gap: 2rem; align-items: center; }
.video-auto { position: relative; margin: 0; width: 100%; max-width: 380px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: var(--brand-deep); box-shadow: 0 24px 50px rgb(21 20 19 / 25%); }
.video-grid .video-auto { justify-self: center; }
.video-auto video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.video-sound, .video-pause { position: absolute; z-index: 1; display: none; align-items: center; gap: .45rem; min-height: 44px; border: 0; border-radius: 999px; background: rgb(21 20 19 / 70%); color: var(--white); font: 700 .8rem/1 var(--font-display); letter-spacing: .04em; cursor: pointer; }
.video-sound { left: .75rem; bottom: .75rem; padding: .5rem .9rem .5rem .7rem; }
.video-pause { right: .75rem; bottom: .75rem; width: 44px; justify-content: center; }
.video-auto.is-ready .video-sound, .video-auto.is-ready .video-pause { display: inline-flex; }
.video-auto.is-ready .video-fallback { display: none; }
.video-sound .icon-on, .video-auto.has-sound .video-sound .icon-off { display: none; }
.video-auto.has-sound .video-sound .icon-on { display: block; }
.video-pause .icon-play, .video-auto.is-paused .video-pause .icon-pause { display: none; }
.video-auto.is-paused .video-pause .icon-play { display: block; }
.video-fallback { position: absolute; inset: auto 0 0 0; padding: 1rem; background: rgb(21 20 19 / 80%); color: var(--white); font-weight: 700; text-align: center; }

/* ---------- Home: about band ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-media::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 40%; height: 40%; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); z-index: -1; }
.about-band { isolation: isolate; }


/* ---------- Projects (the work gallery) ---------- */
.section-tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) 0; }
.projects-intro { max-width: 46rem; }
.projects-count { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.jump-nav { margin-top: 1.5rem; }
.jump-nav a { color: var(--ink); text-decoration: none; }
.chip-count { margin-left: .35em; color: var(--brand); }
.project-group + .project-group { padding-top: 0; }
.project-list { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); }
.project { display: grid; gap: 1.25rem; padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 1px solid var(--line); }
.project-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-content: start; }
.project-photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.project-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.project-photo-main { grid-column: 1 / -1; }
.project-photo-main img { aspect-ratio: 4 / 5; }
.project-photo-more { display: none; }
/* Two photos: side by side, both portrait */
.project-media:has(> .project-photo:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.project-media:has(> .project-photo:nth-child(2):last-child) .project-photo-main { grid-column: auto; }
.project-media:has(> .project-photo:nth-child(2):last-child) img { aspect-ratio: 4 / 5; }
.project-photo-extra { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(21 20 19 / 55%); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.project-body h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.project-body .work-place { margin: 0 0 .4rem; color: var(--brand); }
.project-body .video-auto { max-width: 300px; margin-top: 1.25rem; box-shadow: none; }

/* ---------- Lightbox (built by site.js on first use) ---------- */
.lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 3.5rem 1rem 1rem; border: 0; background: rgb(14 13 12 / 96%); color: var(--white); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
.lightbox::backdrop { background: rgb(14 13 12 / 80%); }
.lb-open { overflow: hidden; }
.lb-frame { position: relative; max-width: 100%; max-height: calc(100dvh - 8rem); height: calc(100dvh - 8rem); overflow: hidden; border-radius: var(--radius); background: #000; }
.lb-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-thumb { filter: blur(14px); transform: scale(1.06); }
.lb-frame:not(.is-loading) .lb-thumb { visibility: hidden; }
.lb-spinner { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 3px solid rgb(255 255 255 / 30%); border-top-color: var(--white); border-radius: 50%; display: none; }
.lb-frame.is-loading .lb-spinner { display: block; animation: lb-spin .8s linear infinite; }
.lb-caption { max-width: 46rem; margin: 0; text-align: center; font-size: .95rem; color: #ddd5ca; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 12%); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .5rem; top: 50%; }
.lb-next { right: .5rem; top: 50%; }
@keyframes lb-spin { to { transform: rotate(360deg); } }

/* ---------- Split page hero (portrait photos: text beside the photo on wide screens) ---------- */
.page-hero-split .page-hero-media img { object-position: center 40%; }

/* ---------- About: crew photos ---------- */
.crew-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.crew-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* ==========================================================================
   Breakpoints (ngn.au set, in this order)
   ========================================================================== */
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid-home { grid-template-columns: repeat(4, 1fr); }
  .crew-grid { grid-template-columns: repeat(4, 1fr); }
  /* Mosaic: [1 1 2 3] [1 1 4 5] [6 7 cta cta] */
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(300px, 36vh, 420px); }
  .mosaic-tile { min-height: 0; }
  .mosaic-tile:first-child { grid-column: span 2; grid-row: span 2; }
  .mosaic-cta { grid-column: span 2; }
  /* Small tiles: title and link; the line of copy slides in on hover (and is always on the big tile) */
  .mosaic-tile:not(:first-child) .mosaic-title { font-size: 1.4rem; }
  .mosaic-tile:not(:first-child) .mosaic-text { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .5s ease; }
  .mosaic-tile:not(:first-child) .mosaic-text > span { overflow: hidden; }
  .mosaic-link:hover .mosaic-text, .mosaic-link:focus-visible .mosaic-text { grid-template-rows: 1fr; opacity: 1; }
  .mosaic-tile:first-child .mosaic-title { font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem); }
  .work-rail .work-card { flex-basis: clamp(300px, 28vw, 440px); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.25fr 1fr .8fr 1.45fr; }
}
@media (min-width: 901px) {
  /* Full-bleed photo hero: a left-hand scrim keeps the headline readable on any photo */
  .hero-media::after { background: linear-gradient(90deg, rgb(21 20 19 / 70%), rgb(21 20 19 / 0%) 60%), linear-gradient(180deg, rgb(21 20 19 / 55%), rgb(21 20 19 / 0%) 25%, rgb(21 20 19 / 0%) 60%, rgb(21 20 19 / 75%)); }
  .band-split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(600px, 100vh, 980px); }
  .band-split .band-media { aspect-ratio: auto; }
  .band-split .band-body { align-self: center; padding-inline: clamp(2.5rem, 1rem + 4vw, 6rem); max-width: 44rem; }
  .split { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .project { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .project-media { grid-template-columns: repeat(3, 1fr); }
  .page-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); align-items: stretch; min-height: 520px; }
  .page-hero-split .page-hero-media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; }
  .page-hero-split .page-hero-media::after { background: linear-gradient(90deg, rgb(28 26 24 / 100%), rgb(28 26 24 / 0%) 30%); }
  .page-hero-split .page-hero-content { grid-column: 1; grid-row: 1; align-self: center; margin: 0; max-width: none; padding-block: 4rem; padding-left: max(2rem, calc((100vw - 1240px) / 2 + 2rem)); padding-right: 3rem; }
  .lb-prev { left: 1.5rem; }
  .lb-next { right: 1.5rem; }
  .statement-grid { grid-template-columns: 1.15fr .85fr; gap: 5rem; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .about-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .detail-strip { padding-left: max(2rem, calc((100vw - 1240px) / 2 + 2rem)); }
  .work-rail { padding-left: max(2rem, calc((100vw - 1240px) / 2 + 2rem)); scroll-padding-inline: max(2rem, calc((100vw - 1240px) / 2 + 2rem)); }
  .split-wide { grid-template-columns: 1.6fr 1fr; }
  .side-card { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  .contact-grid { grid-template-columns: 1.5fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 3rem; }
}
@media (min-width: 721px) and (max-width: 1099px) {
  .service-grid, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(300px, 46vw, 440px); }
  .mosaic-tile { min-height: 0; }
  .mosaic-tile:first-child, .mosaic-cta { grid-column: span 2; }
  .work-rail .work-card { flex-basis: 42vw; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Full-screen menu under the header */
  .site-nav { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem clamp(1rem, .6rem + 2vw, 2rem); background: var(--white); overflow-y: auto; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); }
  .no-js .site-nav { position: static; height: auto; padding: 0 0 1rem; }
  .no-js .header-inner { flex-wrap: wrap; }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: inline; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { min-height: 48px; }
  .mobile-cta { display: flex; }
  input[type="text"], input[type="email"], input[type="tel"], select, textarea { font-size: 16px; }
}
@media (max-width: 720px) {
  /* Compact horizontal service cards */
  .service-card a { flex-direction: row; }
  .card-media { flex: 0 0 34%; }
  .card-media picture, .card-media img { height: 100%; }
  .card-media img { aspect-ratio: auto; }
  .card-body { padding: 1rem; }
  .card-body p { font-size: .95rem; margin-bottom: .5rem; }
  .hero-content { padding-block: 5rem 2rem; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .actions .btn { flex: 1 1 100%; }
  .hero-controls { justify-content: space-between; }
}
@media (max-width: 420px) {
  .card-body .card-more { display: none; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 389px) {
  .btn { white-space: normal; text-align: center; }
  .header-inner { min-height: 64px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Scroll-driven drift (DES-09): the whole detail strip glides sideways as it crosses
     the viewport; transform only, content always visible */
  @supports (animation-timeline: view()) {
    .detail-strip { animation: strip-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
  /* The drift starts only once the page has loaded (.hero-ready, set by site.js), so the first
     paint of the LCP photo is a plain image; the zoom starts from scale(1) so there is no jump. */
  .hero-ready .hero-slide.is-active img, .hero-ready .hero-slide.is-leaving img { animation: kenburns 9s ease-out both; }
  .hero-paused .hero-slide img { animation-play-state: paused !important; }
  html { scroll-behavior: smooth; }
  .hero-scroll::after { animation: scroll-cue 2.4s cubic-bezier(.6,0,.4,1) infinite; }
  /* Parallax on full-bleed bands (DES-09: scroll-driven, transform only, content always visible) */
  @supports (animation-timeline: view()) {
    .band-full .band-media img, .cta-media img { animation: band-parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .band-split .band-media img { animation: band-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes scroll-cue { from { transform: translateY(0); } to { transform: translateY(350%); } }
@keyframes band-parallax { from { transform: translateY(-6%) scale(1.06); } to { transform: translateY(6%) scale(1.06); } }
@keyframes band-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .lb-frame.is-loading .lb-spinner { animation: none; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes strip-drift { from { transform: translateX(4vw); } to { transform: translateX(-4vw); } }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn-outline:hover { background: var(--ink); color: var(--white); }
  .btn-outline-light:hover { background: var(--white); color: var(--brand-deep); }
  .service-card a:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgb(21 20 19 / 14%); }
  .service-card a:hover .card-media img, .work-card a:hover img { transform: scale(1.05); }
  .mosaic-link:hover img { transform: scale(1.06); }
  .mosaic-link:hover::after { background-color: rgb(14 13 12 / 15%); }
  .mosaic-cta .btn:hover { background: var(--paper); border-color: var(--paper); }
  .site-nav a:not(.btn):hover { color: var(--brand); }
  .footer-col a:hover { color: var(--white); text-decoration: underline; }
  .video-sound:hover, .video-pause:hover { background: rgb(21 20 19 / 90%); }
  .project-photo:hover img { transform: scale(1.05); }
  .jump-nav a:hover { border-color: var(--ink); }
  .lb-btn:hover { background: rgb(255 255 255 / 25%); }
}
@media print {
  .site-header, .mobile-cta, .cta-band, .hero-media, .page-hero-media, .nav-toggle { display: none !important; }
  .hero, .page-hero { color: #000; background: none; min-height: 0; }
  .band-media, .cta-media { display: none !important; }
  .hero h1, .page-hero h1 { color: #000; }
}
