/*
  EMPIRE DESIGN & CONSTRUCTION — shared stylesheet
  Static prototype, no build step. One file, linked from every page.
  Architectural/editorial system: Open Sauce Sans throughout (self-hosted,
  /fonts), crisp off-white + deep charcoal + client teal accent, full-bleed
  breaks and asymmetric grids. Photography supplies the only warmth —
  the UI itself stays neutral.

  DIVI 5 BUILD MAP (applies site-wide — see BUILD_MAP.md for the full
  page-by-page breakdown, and each .html file for inline section comments):
  - Colours below (--bg, --paper, --charcoal, --stone, --teal, --ink) →
    Divi Global Colors, set once in Theme Builder, reused everywhere.
  - --sans (Open Sauce Sans) → Divi Custom Fonts (Theme Options > General),
    picked per text element with the native font picker.
  - Breakpoints mirror Divi's real 3-point responsive editor:
    Desktop (>980px) / Tablet (981–767px) / Phone (<767px).
  - Full-bleed sections (.bleed, .hero-full, .filmstrip, .panels) → Divi's
    native "Full Width" section setting with zero inner padding — not a
    hack, a first-class Divi layout option.
  - Parallax hero background → the section/row's own "Background Image >
    Parallax Effect" toggle (native, zero JS on the real build).
  - Scroll-reveal headlines (`[data-reveal]`) → each module's native
    "Animation" setting (Advanced tab: style, duration, delay) — the
    IntersectionObserver in main.js exists only so this static file
    animates without Divi running it.
  - Image hover-zoom → Image/Gallery module's native hover Transform
    (Advanced > Transforms, scale on hover) — no code on the real build.
  - Nav/link hover underline-draw → a few lines of custom CSS in that
    module's own Advanced > Custom CSS field (native field, not a plugin).
  - .ph placeholder blocks → an Image module with no image uploaded (Divi's
    native empty state). .ph-cap → that module's built-in Caption field.
  - Lightbox gallery → Divi Gallery module ships a lightbox natively.
  - Contact form success panel → Contact Form module's built-in
    "Success Message" setting (native, no JS required on the real build).
*/

/* ================================================================
   DESIGN TOKENS — fonts, colors, root variables
   ================================================================ */

@font-face {
  font-family: "Open Sauce Sans";
  src: url("../fonts/open-sauce-sans-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../fonts/open-sauce-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../fonts/open-sauce-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../fonts/open-sauce-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../fonts/open-sauce-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../fonts/open-sauce-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbf9; /* page background — crisp off-white, not cream */
  --paper: #f1f1ee; /* alternate-band background — neutral, barely-there */
  --charcoal: #1e1e1c; /* body copy — soft off-black */
  --charcoal-70: rgba(30, 30, 28, 0.68);
  --stone: #83817a; /* neutral secondary text/meta — warmth comes from photos, not UI */
  --line: rgba(30, 30, 28, 0.12);
  --teal: #009b9e; /* client brand accent — tags, links, borders, active states */
  --teal-deep: #00767a; /* teal hover/active on light backgrounds */
  --teal-bright: #3fd9d2; /* teal lifted for use on dark backgrounds */
  --ink: #171715; /* deep charcoal — dark structural sections, footer */
  --sans:
    "Open Sauce Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  --rule: 1px solid var(--line);
}

/* ================================================================
   BASE ELEMENTS & GLOBAL UTILITIES
   ================================================================ */

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}
h1 {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
p {
  margin: 0 0 1.1em;
  font-weight: 300;
}
.wrap {
  max-width: 100%;
  margin: 0 auto;
  padding-inline: 48px;
}
/* break a .wrap-nested element out to the full viewport width — Divi: "Full Width" section setting.
   Negative margins only (no 100vw width) so a vertical scrollbar's width never causes overflow. */
.bleed {
  /* margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); */
  min-width: 0;
}
.tag {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
}
/* .tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--teal);
  flex: 0 0 14px;
} */
.lede {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--charcoal-70);
  max-width: 42ch;
}
.back-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  position: relative;
}
.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--teal);
  transition: right 0.3s ease;
}
.back-link:hover {
  color: var(--charcoal);
}
.back-link:hover::after {
  right: 0;
}
.btn,
.cta {
  border: var(--rule);
  border-radius: 999px;
  padding: 0.7em 1.4em;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover,
.cta:hover {
  background: var(--charcoal);
  color: var(--bg);
  border-color: var(--charcoal);
}
.btn.solid {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn.solid:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--bg);
  padding: 0.8em 1.2em;
  z-index: 100;
  font-weight: 500;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- scroll-reveal (IntersectionObserver in main.js adds .in-view) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .wrap {
    padding-inline: 36px;
  }
  h1 {
    font-size: 2.9rem;
  }
  h2 {
    font-size: 2.05rem;
  }
  .lede {
    font-size: 1.06rem;
  }
}
@media (max-width: 676px) {
  .wrap {
    padding-inline: 16px;
  }
  h1 {
    font-size: 2.1rem;
    letter-spacing: -0.02em;
  }
  h2 {
    font-size: 1.65rem;
  }
}

/* ================================================================
   HEADER — transparent + fixed, asymmetric grid, adapts to hero vs. page theme
   No fill, no border, no pill on load (Arc/Tandem reference: /references/header). Text colour is
   set by the page (`body[data-header-theme]`) until scroll, when a blurred scrim takes over for
   legibility — see header.is-scrolled below.
   ================================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  color: var(--charcoal);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.3s ease;
}
body[data-header-theme="dark"] header:not(.is-scrolled) {
  color: #fff;
}
header.is-scrolled {
  background: rgba(251, 251, 249, 0.4);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  color: var(--charcoal);
}

/* far-left bold mark · wide-spread nav · far-right CTA — an asymmetric grid, never a centred boxed bar */
.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 32px;
  padding-block: 32px;
  position: relative;
  transition: padding-block 0.3s ease;
}
header.is-scrolled .bar {
  padding-block: 24px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
  color: inherit;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.mark i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--teal);
  display: inline-block;
  transform: rotate(45deg);
}

nav.primary {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  font-size: 0.86rem;
  font-weight: 500;
  color: inherit;
}
nav.primary > a {
  text-decoration: none;
  color: inherit;
  opacity: 0.76;
  padding-block: 4px;
  position: relative;
  transition: opacity 0.25s ease;
}
nav.primary > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}
nav.primary > a:hover,
nav.primary > a[aria-current="page"] {
  opacity: 1;
}
nav.primary > a:hover::after,
nav.primary > a[aria-current="page"]::after {
  right: 0;
}
/* "Projects" nav item with a Commercial / Residential / Aged Care submenu */
.has-sub {
  position: relative;
}
.has-sub > a {
  text-decoration: none;
  color: inherit;
  opacity: 0.76;
  padding-block: 4px;
  cursor: default;
  transition: opacity 0.25s ease;
}
.has-sub:hover > a,
.has-sub:focus-within > a {
  opacity: 1;
}
.submenu {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 15rem;
  background: var(--paper);
  border: var(--rule);
  display: none;
  box-shadow: 0 18px 32px rgba(23, 23, 21, 0.14);
  color: var(--charcoal);
}
.submenu::before {
  content: "";
  display: block;
  position: inherit;
  width: 100%;
  height: 16px;
  top: -16px;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  display: block;
}
.submenu a {
  display: block;
  text-decoration: none;
  color: var(--charcoal-70);
  padding: 0.6em 1.1em;
  font-size: 0.84rem;
}
.submenu a:hover,
.submenu a[aria-current="page"] {
  color: var(--teal);
  background: var(--bg);
}

/* far-right CTA — a quiet underline-draw link, never a boxed pill */
header .bar > .cta {
  justify-self: end;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  position: relative;
  font-weight: 500;
}
header .bar > .cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}
header .bar > .cta:hover {
  background: transparent;
  color: inherit;
}
header .bar > .cta:hover::after {
  right: 0;
}

/* button elements don't auto-inherit `color` the way a span/div does, and a span with
   left/right offsets as its own containing block for ::before/::after collapses to a
   near-zero width — both caused the icon to render as a single dark bar. Fixed by giving
   the button an explicit `color`, and making the middle bar a well-defined, explicitly
   sized anchor that ::before/::after position against unambiguously. */
.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 8px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  color: inherit;
  opacity: 0.9;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
@media (max-width: 860px) {
  .bar {
    grid-template-columns: auto auto;
    padding-block: 18px;
  }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: var(--rule);
    padding: 8px 20px 16px;
    color: var(--charcoal);
  }
  nav.primary.open {
    display: flex;
  }
  nav.primary > a {
    padding-block: 10px;
    width: 100%;
    border-top: var(--rule);
    opacity: 1;
  }
  nav.primary > a:first-child {
    border-top: 0;
  }
  .nav-toggle {
    display: flex;
  }
  header .bar > .cta {
    display: none;
  }
  /* mobile: submenu always expanded in place, no hover/JS needed */
  .has-sub {
    width: 100%;
    border-top: var(--rule);
  }
  .has-sub > a {
    padding-block: 10px;
    width: 100%;
    display: block;
    opacity: 1;
  }
  .submenu {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 6px 16px;
    min-width: 0;
    color: var(--charcoal-70);
  }
  .submenu a {
    padding: 0.5em 0;
    font-size: 0.86rem;
  }
}

/* header is now fixed/out-of-flow — give every page's content room, except the home
   full-bleed hero, which should bleed up under the transparent header on purpose. */
main {
  padding-top: 90px;
}
.hero-full {
  margin-top: -90px;
}
@media (max-width: 860px) {
  main {
    padding-top: 76px;
  }
  .hero-full {
    margin-top: -76px;
  }
}

/* ================================================================
   PLACEHOLDER BLOCKS
   ================================================================ */
.ph {
  background: #e9e9e6;
  border: var(--rule);
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  overflow: hidden;
  object-fit: cover;
  transition:
    opacity 0.4s ease,
    transform 0.6s ease;
}
.ph-cap {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--stone);
  margin-top: 10px;
}
a:hover > .ph,
.card:hover .ph {
  opacity: 0.92;
  transform: scale(1.04);
}
.card,
.feature > .ph-col {
  border-radius: 2px;
  overflow: hidden;
}
.ph-col img {
  transition: all 0.5s ease;
}
.ph-col:hover img {
  transform: scale(1.045);
}
.card .ph {
  transform-origin: center;
}

/* ================================================================
   FULL-BLEED HERO (home) — edge-to-edge photo, parallax bg, scrim
   ================================================================ */
.hero-full {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-full .hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
  transform: translateY(0);
}
/* Cinematic vignette, three stacked layers (not one flat tint):
   1. top-edge scrim — guarantees header/logo legibility regardless of how bright
      the photo is up there (this is the fix for the overexposed-ceiling bug);
   2. bottom-edge scrim — protects the headline/lede the same way it always did;
   3. a soft elliptical vignette — darkens the outer frame/corners only, leaving
      the actual subject at centre untouched (bright, warm, full original colour).
   Warm near-black (not neutral grey) so the darkened edges read as shadow, not haze. */
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* background:
    linear-gradient(
      to bottom,
      rgba(16, 12, 9, 0.76) 0%,
      rgba(16, 12, 9, 0) 24%
    ),
    linear-gradient(
      to top,
      rgba(16, 12, 9, 0.84) 0%,
      rgba(16, 12, 9, 0.3) 30%,
      rgba(16, 12, 9, 0) 58%
    ),
    radial-gradient(
      ellipse 85% 70% at 50% 42%,
      rgba(16, 12, 9, 0) 42%,
      rgba(16, 12, 9, 0.4) 100%
    ); */
  background: radial-gradient(
    106.97% 50% at 50% 50%,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.6) 75%,
    rgba(0, 0, 0, 0.84) 100%
  );
}
.hero-full-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 64px;
  width: 100%;
}
/* a slower, cinematic ease on the hero's own reveal — distinct from the page-wide default */
.hero-full [data-reveal] {
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-full .tag {
  color: var(--teal-bright);
}
.hero-full .tag::before {
  background: var(--teal-bright);
}
.hero-full h1 {
  max-width: 16ch;
  color: #fff;
}
.hero-full .lede {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 16px;
}
.hero-full .hero-cap {
  margin-top: 24px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 980px) {
  .hero-full-content {
    padding: 0 36px 48px;
  }
}
@media (max-width: 600px) {
  .hero-full {
    min-height: 78vh;
  }
  .hero-full-content {
    padding: 0 20px 48px;
  }
  .hero-full .hero-cap {
    margin-top: 20px;
  }
}

/* ---------- facts strip (Home, below the hero) ---------- */
.facts {
  border-block: var(--rule);
  display: flex;
  flex-wrap: wrap;
}
.facts > div {
  flex: 1 1 100%;
  padding: 24px 0 24px 16px;
  border: var(--rule);

  margin-bottom: -0.5px;
}
@media (min-width: 767px) {
  .facts > div {
    flex: 1 1 0;
    padding-left: 18px;
  }
  .facts > div:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .facts > div:last-child {
    border-right: 0;
    padding-right: 0;
  }
}
.facts strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35em;
}
.facts span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- page hero (non-home pages) ---------- */
.page-hero {
  padding: 32px 48px clamp(4rem, 2.545rem + 7.273vw, 8rem);
  border-bottom: var(--rule);
}
.page-hero h1 {
  max-width: 18ch;
}
.page-hero .lede {
  margin-top: 20px;
}

/* ================================================================
   SECTOR/CATEGORY GALLERY STRIP — gapped editorial grid, not edge-to-edge
   Cards sit inside the site's normal .wrap margins with a real gap between them (not full-bleed —
   that was the old treatment; this section now matches every other grid on the site). Each card
   gets its own top-edge scrim so the caption reads on any photo, not just dark ones.
   ================================================================ */
.filmstrip {
  display: flex;
  flex-flow: row wrap;
  gap: 8px;
  padding: 0 16px;
}
.filmstrip figure {
  position: relative;
  flex: 1 1 0;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  min-width: 0;
  border-radius: 2px;
}
.filmstrip figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(16, 12, 9, 0) 80%,
    rgba(16, 12, 9, 0.8) 100%
  );
}
.filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.filmstrip figure:hover img {
  transform: scale(1.045);
}
.filmstrip figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 94%;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  z-index: 2;
}
.filmstrip figcaption .n {
  opacity: 0.85;
}
@media (max-width: 980px) {
  .filmstrip figure {
    flex: 1 1 50%;
    max-width: calc(50% - 8px);
  }
}
@media (max-width: 767px) {
  .filmstrip {
    flex-wrap: wrap;
    gap: 16px;
  }
  .filmstrip figure {
    flex: 1 1 100%;
    aspect-ratio: 4 / 5;
    max-width: 100%;
  }
}

/* ---------- numbered full-bleed panels (process / values) ---------- */
.panels {
  display: flex;
  flex-wrap: wrap;
}
.panel {
  flex: 1 1 100%;
  min-height: 400px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (min-width: 861px) {
  .panel {
    flex: 1 1 33.3333%;
  }
}
.panel.c-dark-teal {
  background: color-mix(in srgb, var(--teal) 50%, var(--ink) 50%);
}
.panel.c-teal {
  background: var(--teal);
}
.panel.c-ink {
  background: var(--ink);
}
.panel .num {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
.panel h3 {
  color: #fff;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}
.panel p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  margin: 10px 0 0;
  max-width: 34ch;
  position: relative;
  z-index: 2;
}
.panel-art {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  z-index: 1;
  pointer-events: none;
}

/* ---------- homepage pacing: feature break + editorial statement (Section 1) ---------- */
.feature-break {
  width: 100%;
  min-height: 58vh;
  overflow: hidden;
}
.feature-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .feature-break {
    min-height: 40vh;
  }
}
.statement {
  padding: 64px;
  padding-bottom: clamp(6.25rem, 3.977rem + 11.364vw, 12.5rem);
}
.statement-block {
  max-width: 48rem;
}
.statement-block h2 {
  margin-top: 16px;
  max-width: 24ch;
}
.statement-block .back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.92rem;
}

/* ---------- homepage pacing: text-only breather (Section 2), no images, centred ---------- */
.statement-only {
  text-align: center;
}
.statement-only .wrap {
  max-width: 900px;
}
.statement-only .tag {
  justify-content: center;
  margin-bottom: 20px;
}
.statement-only h2 {
  font-size: 3.4rem;
  letter-spacing: -0.02em;
}
@media (max-width: 980px) {
  .statement-only h2 {
    font-size: 2.3rem;
  }
}
@media (max-width: 600px) {
  .statement-only h2 {
    font-size: 1.8rem;
  }
}

/* ---------- homepage pacing: 3-up services grid (Section 3) — full-bleed, tight seams ---------- */
.services-grid {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: clamp(4rem, 2.545rem + 7.273vw, 8rem);
}
.services-grid figure {
  flex: 1 1 calc((100% / 3) - 16px);
  margin: 0;
  min-width: calc((100% / 3) - 16px);

  transition: all 0.3s ease;
}
.services-grid figure:hover {
  transform: translateY(-16px);
}
.services-grid .ph {
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 0;
}
.services-grid figcaption {
  padding: 16px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}
@media (max-width: 767px) {
  .services-grid {
    flex-wrap: wrap;
    gap: 40px;
  }
  .services-grid figure {
    flex: 1 1 100%;
  }
  .services-grid figure:nth-child(3) {
    flex: 1 1 100%;
  }
}

/* ================================================================
   SECTION SCAFFOLD
   ================================================================ */
section {
  padding-block: clamp(4rem, 2.545rem + 7.273vw, 8rem);
}
@media (max-width: 980px) {
  section {
    padding-block: 84px;
  }
}
@media (max-width: 600px) {
  section {
    padding-block: 56px;
  }
}
/* asymmetric header: tag+heading left (narrower), lede/copy right (wider) */
.head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 64px;
}
.head > :first-child .tag {
  margin-bottom: 16px;
}
@media (min-width: 861px) {
  .head {
    flex-direction: row;
    gap: 24px;
  }
  .head > :first-child {
    flex: 0 0 40%;
  }
  .head > :last-child {
    flex: 1;
    padding-bottom: 4px;
  }
}
/* a lone right-aligned link as the .head's second child (e.g. "View all projects →") —
   sits flush bottom-right against the heading's baseline, not left-adrift mid-row */
.head-link {
  text-align: left;
}
@media (min-width: 861px) {
  .head-link {
    text-align: right;
    white-space: nowrap;
  }
}
.band {
  background: var(--paper);
}

/* ---------- blurb grid (expertise / sectors-teaser) ---------- */
.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0;

  counter-reset: service-counter;
}
.col {
  display: flex;
  flex-direction: row;
  flex: 1 1 100%;
  border: var(--rule);
  padding: 24px;
  align-items: center;
  margin-bottom: -0.5px;

  counter-increment: service-counter;

  transition: all 0.3s ease;
}
.cols .col h3 {
  min-width: 100%;
}
.cols .col .number::before {
  content: counter(service-counter, decimal-leading-zero);

  display: block;
  font-family: "Open Sauce Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal-70);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.col:hover {
  background-color: #000;
  color: #fff;
}
.col:hover .number::before {
  color: #fff;
}
.col:hover p {
  color: #fff;
}
@media (min-width: 768.02px) {
  .col {
    flex: 1 1 calc(50% - 15px);
  }
}
@media (min-width: 1024px) {
  .col {
    flex: 1 1 calc(100% / 3);
  }
}
.col p {
  color: var(--charcoal-70);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- asymmetric offset grid (home "recent work") — unequal column widths,
   every card starts on the same top baseline and shares one aspect ratio, so the
   asymmetry reads as a deliberate editorial column split, not scattered placement. ---------- */
.offset-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 861px) {
  .offset-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 2%;
  }
  .offset-grid > * {
    flex: 0 0 auto;
  }
  .offset-grid .o1 {
    width: 36%;
  }
  .offset-grid .o2 {
    width: 28%;
  }
  .offset-grid .o3 {
    width: 26%;
  }
}
.offset-grid .card .ph {
  aspect-ratio: 3 / 4;
}

/* ---------- long-form content blocks (services / about) — alternating asymmetry ---------- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 56px;
  border-bottom: var(--rule);
}
.feature:last-child {
  border-bottom: 0;
}
@media (min-width: 861px) {
  .feature {
    flex-direction: row;
    gap: 80px;
    align-items: center;
  }
  .feature > .ph-col {
    flex: 0 0 38%;
  }
  .feature > .copy {
    flex: 1;
    padding-top: 0;
  }
  .feature:nth-child(even) {
    flex-direction: row-reverse;
  }
  .feature:nth-child(odd) .ph {
    aspect-ratio: 3 / 4;
  }
  .feature:nth-child(even) .ph {
    aspect-ratio: 1 / 1;
  }
}
.feature h3 {
  margin-bottom: 0.4em;
}
.feature ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--charcoal-70);
  font-weight: 300;
}
.feature li {
  margin-bottom: 0.4em;
}

/* ---------- dark band (CTA) ---------- */
.dark {
  background: var(--ink);
  color: var(--bg);
}
.dark .lede {
  color: rgba(251, 251, 249, 0.64);
}
.dark .tag {
  color: var(--teal-bright);
}
.dark .tag::before {
  background: var(--teal-bright);
}
.dark .col {
  border-top-color: rgba(251, 251, 249, 0.2);
}
.dark .col p {
  color: rgba(251, 251, 249, 0.66);
}
.dark .btn {
  border-color: rgba(251, 251, 249, 0.4);
  color: var(--bg);
}
.dark .btn:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ---------- project / sector cards — varied "detail crop" aspect ratios ---------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 26px;
}
.card {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}
@media (min-width: 640px) {
  .card {
    flex: 1 1 calc(50% - 13px);
  }
}
@media (min-width: 1024px) {
  .card {
    flex: 1 1 calc(33.333% - 18px);
  }
}
.card .ph {
  aspect-ratio: 4 / 5;
}
@media (min-width: 640px) {
  .card:nth-child(3n + 2) .ph {
    aspect-ratio: 1 / 1;
  }
  .card:nth-child(3n + 3) .ph {
    aspect-ratio: 16 / 11;
  }
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ================================================================
   PROJECT CATEGORY PAGES (Commercial / Residential / Aged Care)
   ================================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery button {
  all: unset;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.gallery .ph {
  height: 100%;
  aspect-ratio: 1 / 1;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery button:nth-child(3n + 1) .ph {
  aspect-ratio: 3 / 4;
}
.gallery button:hover .ph {
  transform: scale(1.06);
}

/* lightbox → Divi Gallery module ships this natively, JS here for the prototype only */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 9, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 40px 16px;
}
.lightbox.open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lightbox .ph {
  width: min(90vw, 1100px);
  max-height: 80vh;
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #2a2a27;
  border-color: rgba(251, 251, 249, 0.2);
}
.lightbox .ph-cap {
  color: rgba(251, 251, 249, 0.72);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(251, 251, 249, 0.4);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5em 0.9em;
}
.lb-close {
  top: 20px;
  right: 20px;
}
.lb-prev {
  left: 16px;
  top: 50%;
  translate: 0 -50%;
}
.lb-next {
  right: 16px;
  top: 50%;
  translate: 0 -50%;
}
@media (max-width: 600px) {
  .lb-prev,
  .lb-next {
    padding: 0.5em 0.7em;
  }
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 861px) {
  .contact-grid {
    flex-direction: row;
    gap: 72px;
  }
  .contact-grid > :first-child {
    flex: 0 0 36%;
  }
  .contact-grid > :last-child {
    flex: 1;
  }
}
.details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.details a {
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--line);
}
.details a:hover {
  box-shadow: inset 0 -1px 0 var(--teal);
  color: var(--teal);
}
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.row2 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 520px) {
  .row2 {
    flex-direction: row;
  }
  .row2 > label {
    flex: 1;
  }
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--stone);
}
input,
select,
textarea {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-bottom: var(--rule);
  padding: 0.65em 0;
  border-radius: 0;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-bottom-color: var(--teal);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.err {
  font-size: 0.78rem;
  color: #b3261e;
  min-height: 1.1em;
}
.demo-note {
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: -4px;
}
.success {
  display: none;
  border: var(--rule);
  padding: 30px;
  text-align: left;
}
.success.show {
  display: block;
}
.success h3 {
  margin-bottom: 0.4em;
}
form.hide {
  display: none;
}

/* ================================================================
   FOOTER — dark, bold, generous
   ================================================================ */
footer {
  background: var(--ink);
  color: rgba(251, 251, 249, 0.7);
  padding-block: 64px 40px;
  font-size: 0.85rem;
}
/* ---------- final CTA — one full-bleed, bottom-left-aligned block, site-wide ----------
   Replaces the old flat-dark .foot-cta embedded in the footer (which duplicated whatever
   mid-page CTA a page already had) and the per-page `.dark` closing bands. Every page now
   ends on exactly one of these, directly before the footer, each with its own image —
   never the homepage hero photo. */
.cta-immersive {
  position: relative;
  min-height: 54vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.cta-immersive img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-immersive::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(23, 23, 21, 0) 0%,
    rgba(23, 23, 21, 0.8) 75%,
    #171715 100%
  );
}
.cta-immersive-content {
  position: relative;
  z-index: 2;
  padding: 56px 60px;
  max-width: 48rem;
}
.cta-immersive .tag {
  color: var(--teal-bright);
}
.cta-immersive .tag::before {
  background: var(--teal-bright);
}
.cta-immersive h2 {
  color: #fff;
  margin-top: 10px;
}
.cta-immersive .lede {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 14px;
}
.cta-immersive .btn.solid {
  margin-top: 24px;
}
@media (max-width: 980px) {
  .cta-immersive-content {
    padding: 44px 36px;
  }
}
@media (max-width: 600px) {
  .cta-immersive {
    min-height: 48vh;
  }
  .cta-immersive-content {
    padding: 36px 20px;
    max-width: none;
  }
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.foot a {
  text-decoration: none;
  color: rgba(251, 251, 249, 0.7);
}
.foot a:hover {
  color: var(--teal-bright);
}
.foot .mark b {
  color: var(--bg);
}
.foot .mark span {
  color: rgba(251, 251, 249, 0.5);
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
@media (min-width: 768px) {
  .foot {
    flex-direction: row;
    gap: 40px;
  }
  .foot > div,
  .foot > ul {
    flex: 1;
  }
}
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 251, 249, 0.16);
  color: rgba(251, 251, 249, 0.45);
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
  .hero-full .hero-bg {
    transform: none !important;
  }
}

p.desc {
  max-width: 90%;
  margin-bottom: clamp(4rem, 2.545rem + 7.273vw, 8rem);
}

.flex-col {
  flex-direction: column !important;
}

.flex-align-items-center {
  align-items: center;
}

.fullwidth {
  min-width: 100% !important;
}

.half-width {
  min-width: 50% !important;
}

@media all and (max-width: 767px) {
  .mobile-flex-align-items-left {
    align-items: flex-start;
  }
}
