/* ==========================================================================
   ADELAIDE LANDSCAPE CONCEPTS
   Built to the ALC 2023 Branding Guidelines (Alexandra Creative).
   --------------------------------------------------------------------------
   Every brand value lives in the BRAND block below. To adjust the whole
   site, edit only those variables.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS
   --------------------------------------------------------------------------
   BROTHER 1816 (TipoType) is a licensed typeface — it cannot be served from
   a public CDN. Drop the licensed webfont files into /assets/fonts/ using the
   filenames below and they will be picked up automatically, sitewide.
   Until then the site falls back to Jost, the closest free geometric-
   humanist match, which is loaded from Google Fonts in each page <head>.

   Required files:
     /assets/fonts/Brother1816-Light.woff2   (weight 300 — the guide's weight)
     /assets/fonts/Brother1816-Regular.woff2 (weight 400)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother1816-Light.woff2") format("woff2"),
       url("../fonts/Brother1816-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother1816-Regular.woff2") format("woff2"),
       url("../fonts/Brother1816-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   BRAND
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours — PANTONE Colour Bridge Coated, per the guidelines */
  --ink:    #222E34;   /* PANTONE 433 CP  — primary dark */
  --slate:  #38484E;   /* PANTONE 432 CP  — secondary dark */
  --sage:   #A6AA92;   /* PANTONE 4219 CP — accent */
  --sand:   #CAC1A9;   /* PANTONE 4239 CP — warm neutral */

  /* Working neutrals derived from the sand/ink axis */
  --bone:      #F5F3EE;  /* page background */
  --bone-deep: #EAE7DF;  /* alternating sections */
  --line:      #D6D1C4;  /* hairlines */
  --ink-soft:  #56646A;  /* secondary text */
  --white:     #FFFFFF;

  /* Typography */
  --font-display: "Brother 1816", "Jost", sans-serif;
  --font-body:    "Montserrat", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.3rem, 5.6vw, 4.6rem);
  --fs-h1:      clamp(1.9rem, 4vw, 3.1rem);
  --fs-h2:      clamp(1.5rem, 2.6vw, 2.2rem);
  --fs-h3:      clamp(1.05rem, 1.5vw, 1.28rem);
  --fs-body:    clamp(0.92rem, 1vw, 1rem);
  --fs-small:   0.8rem;
  --fs-label:   0.66rem;

  /* Rhythm */
  --gutter:     clamp(1.4rem, 5vw, 4.5rem);
  --max:        1340px;
  --max-narrow: 700px;
  --section:    clamp(4.5rem, 10vw, 9rem);
  --header-h:   82px;

  --ease: cubic-bezier(0.33, 0.02, 0.16, 1);
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.bg-deep { background: var(--bone-deep); }
.bg-ink  { background: var(--ink); color: var(--bone); }
.bg-ink .label { color: var(--sage); }
.bg-ink .lead, .bg-ink p { color: rgba(245,243,238,0.72); }
.bg-ink .rule { background: rgba(245,243,238,0.22); }

/* The "/" motif from the brand mark, used as a quiet divider */
.slash { font-family: var(--font-display); font-weight: 300; color: var(--sage); }

.label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.4rem;
}
.lead {
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 54ch;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--ink); color: var(--bone); padding: 0.8rem 1.2rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05rem 2.2rem;
  border: 1px solid var(--ink);
  color: var(--ink); background: transparent;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--solid:hover { background: var(--slate); border-color: var(--slate); }
.btn--light { border-color: rgba(245,243,238,0.4); color: var(--bone); }
.btn--light:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.arrow-link svg { transition: transform 0.35s var(--ease); }
.arrow-link:hover { border-color: var(--ink); }
.arrow-link:hover svg { transform: translateX(5px); }
.bg-ink .arrow-link { border-color: rgba(245,243,238,0.3); }
.bg-ink .arrow-link:hover { border-color: var(--sage); color: var(--sage); }

/* --------------------------------------------------------------------------
   LOGOTYPE  (type-set to the guidelines: wide-tracked light caps)
   -------------------------------------------------------------------------- */
.logo { display: inline-block; line-height: 1; }
.logo__mark {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: 0.34em; text-indent: 0.34em;
  text-transform: uppercase;
}
.logo__sub {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: 0.22em; text-indent: 0.22em;
  text-transform: uppercase;
  color: inherit; opacity: 0.85;
}

/* --------------------------------------------------------------------------
   GATEWAY
   -------------------------------------------------------------------------- */
.gateway {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}
.gateway[hidden] { display: none; }
.gateway.is-leaving { opacity: 0; visibility: hidden; }

.gateway__slides { position: absolute; inset: 0; }
.gateway__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.07);
  transition: opacity 2s var(--ease), transform 8s linear;
}
.gateway__slide.is-active { opacity: 1; transform: scale(1); }
.gateway__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(34,46,52,0.55) 0%, rgba(34,46,52,0.35) 45%, rgba(34,46,52,0.78) 100%);
}

.gateway__inner {
  position: relative; z-index: 2;
  text-align: center; color: var(--bone);
  padding: var(--gutter);
  animation: gwIn 1.2s var(--ease) both 0.2s;
}
@keyframes gwIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.gateway .logo__mark { font-size: clamp(3.2rem, 11vw, 7rem); }
.gateway .logo__sub  { font-size: clamp(0.6rem, 1.35vw, 0.86rem); margin-top: 1.5rem; }
.gateway__divider { width: 40px; height: 1px; background: rgba(245,243,238,0.45); margin: 2.6rem auto; border: 0; }
.gateway__tag {
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(245,243,238,0.68); margin: 0 0 2.8rem;
}
.gateway__enter { padding: 1.15rem 3.2rem; }
.gateway__dots { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 0.55rem; }
.gateway__dot { width: 24px; height: 2px; background: rgba(245,243,238,0.25); transition: background 0.6s var(--ease); }
.gateway__dot.is-active { background: rgba(245,243,238,0.9); }

body.gateway-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
}
/* The blur lives on a pseudo-element, NOT on .header itself. An element with
   backdrop-filter becomes the containing block for its position:fixed
   descendants — which would break the full-screen mobile menu inside it. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(245,243,238,0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.header .logo__mark { font-size: 1.32rem; }
.header .logo__sub  { font-size: 0.44rem; margin-top: 0.4rem; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__link {
  position: relative;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding-block: 0.4rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link.is-current { color: var(--ink); }

/* Services dropdown */
.nav__item { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav__toggle svg { transition: transform 0.35s var(--ease); }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 1.15rem); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 262px;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 0.45rem 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  box-shadow: 0 24px 50px -28px rgba(34,46,52,0.45);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav__item.is-open .nav__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__menu a {
  display: block; padding: 0.78rem 1.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-current { background: var(--bone-deep); color: var(--ink); padding-left: 1.9rem; }

.header__cta { font-size: 0.64rem; padding: 0.85rem 1.5rem; letter-spacing: 0.18em; }

.burger { display: none; width: 30px; height: 30px; position: relative; }
.burger span {
  position: absolute; left: 3px; width: 24px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 18px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(430px, 72vh, 720px);
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink);
}
.hero--short { min-height: clamp(300px, 46vh, 460px); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,46,52,0.3) 0%, rgba(34,46,52,0.1) 38%, rgba(34,46,52,0.78) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.8rem, 5.5vw, 4.6rem);
  color: var(--bone);
}
.hero__title { font-size: var(--fs-display); max-width: 15ch; }
.hero--short .hero__title { font-size: var(--fs-h1); }
.hero .label { color: rgba(245,243,238,0.7); }
.hero__sub { margin-top: 1.5rem; max-width: 44ch; color: rgba(245,243,238,0.85); }

/* --------------------------------------------------------------------------
   SPLIT
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.4rem, 6vw, 5.5rem); align-items: start; }
.split--center { align-items: center; }
.split--flip > *:first-child { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3.5vw, 3rem); margin-top: 3.2rem; }
.stat__n { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1; }
.stat__l { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.7rem; }

/* --------------------------------------------------------------------------
   SERVICES ACCORDION
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 2.4rem);
  padding: clamp(1.45rem, 2.5vw, 2.1rem) 0;
  text-align: left;
  transition: color 0.35s var(--ease);
}
.acc__head:hover { color: var(--slate); }
.acc__num {
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-small);
  letter-spacing: 0.14em; color: var(--sage); flex: none; width: 2.4rem;
}
.acc__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h2); flex: 1 1 auto; line-height: 1.14; }
.acc__icon { flex: none; width: 20px; height: 20px; position: relative; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.acc__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.acc__icon::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.acc__item.is-open .acc__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.acc__panel { overflow: hidden; height: 0; transition: height 0.55s var(--ease); }
.acc__panelInner { padding: 0 0 clamp(2rem, 3.4vw, 3rem) calc(2.4rem + clamp(0.9rem, 3vw, 2.4rem)); }
.acc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.acc__body { max-width: 52ch; }
.acc__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.5rem; }
.acc__list li { position: relative; padding-left: 1.4rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; }
.acc__list li::before { content: "/"; position: absolute; left: 0; top: 0; color: var(--sage); font-family: var(--font-display); }
.acc__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

@media (max-width: 760px) {
  .acc__panelInner { padding-left: 0; }
  .acc__grid { grid-template-columns: 1fr; }
  .acc__thumb { display: none; }
  .acc__num { display: none; }
}

/* --------------------------------------------------------------------------
   TILES / CARDS
   -------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(0.9rem, 1.8vw, 1.5rem); }
.tile { position: relative; display: block; overflow: hidden; background: var(--ink); }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.5s var(--ease); }
.tile:hover img { transform: scale(1.05); opacity: 0.85; }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--bone);
  background: linear-gradient(180deg, rgba(34,46,52,0) 0%, rgba(34,46,52,0.8) 100%);
}
.tile__cap h3 { font-size: var(--fs-h3); }
.tile__cap span { display: block; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; margin-top: 0.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bone); padding: clamp(1.8rem, 2.8vw, 2.6rem); display: flex; flex-direction: column; gap: 0.85rem; transition: background 0.4s var(--ease); }
.card:hover { background: var(--bone-deep); }
.card__n { font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: 0.14em; color: var(--sage); }
.card h3 { font-size: var(--fs-h3); }
.card p { font-size: 0.87rem; color: var(--ink-soft); line-height: 1.7; }

/* Team --------------------------------------------------------------------- */
/* Explicit column counts rather than auto-fit, so the roster always reads as a
   deliberate 4-up grid instead of re-flowing to whatever fits. */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem) clamp(1rem, 2vw, 1.7rem); }
.member { min-width: 0; }
.member__photo { overflow: hidden; background: var(--bone-deep); margin-bottom: 1rem; }
.member__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.member:hover .member__photo img { transform: scale(1.03); }
.member__name { font-family: var(--font-display); font-weight: 300; font-size: 1.05rem; line-height: 1.15; }
.member__role {
  display: block; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate); margin: 0.45rem 0 0.7rem;
}
.member p { font-size: 0.8rem; line-height: 1.65; color: var(--ink-soft); }

@media (max-width: 1080px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .team { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }

/* Steps / process ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(1.6rem, 3.2vw, 2.8rem); }
.step { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.bg-ink .step { border-top-color: rgba(245,243,238,0.25); }
.step__n { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-small); letter-spacing: 0.14em; color: var(--sage); }
.step h3 { font-size: 1.05rem; margin: 0.65rem 0 0.55rem; }
.step p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; }

/* Spec list (service pages) ------------------------------------------------ */
.spec { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.3rem, 2.2vw, 1.9rem) 0; border-bottom: 1px solid var(--line); }
.spec__row h3 { font-size: 1.02rem; }
.spec__row p { font-size: 0.89rem; color: var(--ink-soft); line-height: 1.75; margin: 0; }
@media (max-width: 700px) { .spec__row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.7rem 1.4rem; border: 1px solid var(--line); color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.grid { columns: 3; column-gap: clamp(0.7rem, 1.5vw, 1.3rem); }
.grid__item {
  break-inside: avoid; margin-bottom: clamp(0.7rem, 1.5vw, 1.3rem);
  position: relative; display: block; width: 100%; overflow: hidden; background: var(--bone-deep);
}
.grid__item img { width: 100%; transition: transform 1.2s var(--ease), opacity 0.45s var(--ease); }
.grid__item:hover img { transform: scale(1.04); opacity: 0.9; }
.grid__item[hidden] { display: none; }
@media (max-width: 900px) { .grid { columns: 2; } }
@media (max-width: 540px) { .grid { columns: 1; } }

.lb { position: fixed; inset: 0; z-index: 300; background: rgba(34,46,52,0.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: min(92vw, 1150px); max-height: 84vh; object-fit: contain; }
.lb__btn { position: absolute; color: var(--bone); width: 52px; height: 52px; display: grid; place-items: center; opacity: 0.7; transition: opacity 0.3s; }
.lb__btn:hover { opacity: 1; }
.lb__close { top: 1.3rem; right: 1.3rem; }
.lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(245,243,238,0.65); font-size: var(--fs-label); letter-spacing: 0.22em; }

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.info-block + .info-block { margin-top: 2.3rem; }
.info-block h3 { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.55rem; }
.info-block p { font-size: 0.95rem; }
.info-block a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.info-block a:hover { border-bottom-color: var(--ink); }

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }

/* Form controls carry an intrinsic width — a <select> is as wide as its
   longest <option>, and <input> defaults to ~20 characters. Left alone that
   propagates up and forces the grid track wider than the viewport on small
   screens. Pin them to the container instead. */
.field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; }
.contact-grid > *, .split > * { min-width: 0; }
.field label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.93rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2356646A' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.form__note { font-size: var(--fs-small); color: var(--ink-soft); }
.form__status { font-size: 0.9rem; padding: 1rem 1.2rem; background: var(--bone-deep); border-left: 2px solid var(--sage); }
.form__status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); text-align: center; }
.cta__bg { position: absolute; inset: 0; opacity: 0.24; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__inner { position: relative; z-index: 2; padding-block: var(--section); }
.cta h2 { font-size: var(--fs-h1); margin-bottom: 1.3rem; }
.cta p { color: rgba(245,243,238,0.75); max-width: 44ch; margin: 0 auto 2.5rem; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--bone); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.footer .logo__mark { font-size: 1.5rem; }
.footer .logo__sub  { font-size: 0.46rem; margin-top: 0.5rem; color: var(--sage); }
.footer p { font-size: var(--fs-small); color: rgba(245,243,238,0.6); line-height: 1.85; }
.footer h4 { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer ul a { font-size: var(--fs-small); color: rgba(245,243,238,0.72); transition: color 0.3s var(--ease); }
.footer ul a:hover { color: var(--bone); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(245,243,238,0.15); }
.footer__bottom p { font-size: 0.7rem; letter-spacing: 0.05em; margin: 0; color: rgba(245,243,238,0.45); }

/* --------------------------------------------------------------------------
   DARK CONTEXT OVERRIDES
   Kept together at the end so they always win over the component rules above.
   Body copy on --ink must stay well clear of the WCAG AA threshold.
   -------------------------------------------------------------------------- */
.bg-ink,
.cta { color: var(--bone); }

.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4,
.cta h1, .cta h2, .cta h3 { color: var(--bone); }

.bg-ink p, .bg-ink .lead, .bg-ink li,
.bg-ink .step p, .bg-ink .card p, .bg-ink .spec__row p,
.cta p { color: rgba(245, 243, 238, 0.78); }

.bg-ink .label, .cta .label { color: var(--sage); }
.bg-ink .stat__l, .bg-ink .card__n { color: var(--sage); }
.bg-ink .rule, .bg-ink .spec, .bg-ink .spec__row { border-color: rgba(245, 243, 238, 0.22); }
.bg-ink .cards { background: rgba(245, 243, 238, 0.22); border-color: rgba(245, 243, 238, 0.22); }
.bg-ink .card { background: var(--ink); }
.bg-ink .card:hover { background: var(--slate); }

/* --------------------------------------------------------------------------
   REVEAL
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
  .header__cta { display: none; }
  .nav { gap: 1rem; }
  .nav__link { font-size: 0.64rem; letter-spacing: 0.13em; }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }
  .burger { display: block; }
  .header .logo__mark { font-size: 1.15rem; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    background: var(--bone);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 1.2rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  body.menu-open { overflow: hidden; }
  .nav__link { font-size: 0.92rem; letter-spacing: 0.12em; padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__item { display: block; }
  .nav__toggle { width: 100%; justify-content: space-between; }
  .nav__menu,
  .nav__item.is-open .nav__menu {   /* must also beat the desktop open-state transform */
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; border: 0; box-shadow: none; background: transparent;
    overflow: hidden; padding: 0;
    transition: height 0.4s var(--ease);
  }
  .nav__menu { height: 0; }
  .nav__menu a { padding: 0.7rem 0 0.7rem 1.2rem; font-size: 0.78rem; letter-spacing: 0.08em; }
  .nav__menu a:hover, .nav__menu a.is-current { background: transparent; padding-left: 1.5rem; }
  .nav__mobile-cta { margin-top: 1.8rem; align-self: flex-start; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--flip > *:first-child { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (min-width: 941px) { .nav__mobile-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
