/* ==========================================================================
   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)
   -------------------------------------------------------------------------- */
/* Brother 1816 (ALC's brand face) is switched OFF until the licensed webfont
   files are in /assets/fonts/. Declaring it without the files made every page
   request four missing fonts (four 404s per visit). When the files arrive,
   remove the comment markers around these two rules and deploy.

@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 {
  --error: #A23B2A;
  /* 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 */
  --sage-ink: #5F6450; /* sage darkened for small text on light grounds: 5.5:1 on bone, 5:1 on bone-deep */

  /* 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:   98px;

  --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;
  /* Keeps anchored sections AND keyboard focus clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* Light-only site. Declaring it stops the OS/UA force-darkening form
     controls and scrollbars, which made the <select> unreadable on Android. */
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  touch-action: manipulation;              /* no 300ms tap delay */
  -webkit-tap-highlight-color: transparent; /* our own states, not the blue box */
  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);
  text-wrap: balance;
  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); }
/* Surfaces the browser would otherwise style for us, themed from the palette. */
:root { accent-color: var(--slate); caret-color: var(--ink); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--stone, #B4B2A6) var(--bone-deep); scrollbar-width: thin; }
}
: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 {
  text-wrap: pretty;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 54ch;
}
.lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--ink-soft); transition: text-decoration-color 0.3s var(--ease); }
.lead a:hover { text-decoration-color: var(--ink); }
.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; }
/* Lockup: ginkgo leaf + wordmark. The leaf is fine line art drawn for
   signage, so it is never rendered below ~44px — smaller than that the
   strokes merge into a grey smudge. */
.logo--lockup { display: flex; align-items: center; gap: 0.85rem; }
/* Taller than the wordmark block on purpose. The stem is ~44% of the artwork,
   so a leaf sized to match the type leaves a fan too small to read. */
.logo__leaf { height: 78px; width: auto; flex: none; }
.logo__type { display: block; }
/* No text-indent here. letter-spacing adds a trailing gap after the last
   letter, so a centred lockup needs an equal indent to look centred — but that
   indent is proportional to each line's own font-size, which is what threw the
   wordmark and the subline out of alignment when they sit left-aligned. The
   compensation now lives only in the .gateway block, where the type IS centred. */
.logo__mark {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: 0.34em; text-indent: 0;
  text-transform: uppercase;
}
/* Regular, not Light like the wordmark above it. At 0.62rem with 0.2em of
   tracking the light weight thinned out to nearly nothing. 400 is deliberate:
   it's a real face in both Jost and Brother 1816, so it won't shift when the
   licensed font is dropped in. Nothing heavier exists in either family. */
.logo__sub {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  letter-spacing: 0.22em; text-indent: 0;
  text-transform: uppercase;
  color: inherit;
}

/* --------------------------------------------------------------------------
   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: max(var(--gutter), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  animation: gwIn 1.2s var(--ease) both 0.2s;
}
@keyframes gwIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* No text-indent needed here either: .logo is an inline-block, so it shrinks
   to the widest line and the trailing letter-space sits inside it — both lines
   measure dead-centre with the indent at zero. The old 0.34em/0.22em
   compensation was pushing the wordmark 19px right of centre at 1440px. */
.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; }
/* Tracking leaves an invisible gap after the last letter, and centring
   centres that gap too, so the visible letters sat left of the leaf (19px
   at 1920 wide). An equal gap in front of the first letter evens it out.
   Each indent must match that line's own letter-spacing above. */
.gateway .logo__mark { text-indent: 0.34em; }
.gateway .logo__sub  { text-indent: 0.22em; }
.gateway__leaf { height: clamp(96px, 15vh, 168px); width: auto; margin: 0 auto clamp(1.6rem, 3vh, 2.4rem); opacity: 0.92; }
.gateway__divider { width: 40px; height: 1px; background: rgba(245,243,238,0.45); margin: 2.6rem auto 2.8rem; 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; }
/* The dots stay optically centred; the pause control hangs off the right so
   it never shifts them. */
.gateway__controls {
  position: absolute; bottom: max(1.6rem, env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center;
}
.gateway__dots { display: flex; gap: 0.2rem; }
/* Each dot is a real button: 44px target, 2px visible bar. */
.gateway__dot {
  width: 34px; height: 44px; padding: 0; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
}
.gateway__dot::before {
  content: ""; display: block; width: 24px; height: 2px;
  background: rgba(245,243,238,0.28); transition: background 0.6s var(--ease);
}
.gateway__dot[aria-current="true"]::before { background: rgba(245,243,238,0.9); }
.gateway__dot:hover::before { background: rgba(245,243,238,0.6); }
.gateway__pause {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  color: rgba(245,243,238,0.55); background: none; border: 0; cursor: pointer;
  transition: color 0.3s var(--ease);
}
.gateway__pause:hover { color: rgba(245,243,238,0.95); }
.gateway__pause svg { display: block; }
.gateway__pause .icon-play { display: none; }
.gateway__pause[aria-pressed="true"] .icon-play { display: block; }
.gateway__pause[aria-pressed="true"] .icon-pause { display: none; }

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-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.header .logo__mark { font-size: 2.1rem; }
.header .logo__sub  { font-size: 0.62rem; letter-spacing: 0.2em; margin-top: 0.5rem; color: var(--slate); }

.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), transform 0.25s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-current { background: var(--bone-deep); color: var(--ink); transform: translateX(0.4rem); }

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

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }  /* 44px minimum touch target */
.burger span {
  position: absolute; left: 10px; 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: 19px; }
.burger span:nth-child(2) { top: 25px; }
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; }
/* The homepage headline is a plain descriptive sentence, not a slogan, so it
   sits a size down and runs wider. */
.hero__title--statement { font-size: var(--fs-h1); max-width: 24ch; line-height: 1.2; }
.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-ink); 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; }

/* Animating grid-template-rows keeps the open/close on the compositor and
   removes the JS height measurement entirely. */
.acc__panel { display: grid; grid-template-rows: minmax(0, 0fr); overflow: hidden; transition: grid-template-rows 0.55s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: minmax(0, 1fr); }
.acc__panelInner { min-height: 0; 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-ink); }
.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); }
/* Initials tile: same proportions and colours as a portrait would take. */
.member__initial {
  aspect-ratio: 4 / 5; background: var(--sand); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
}
.member__initial span { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; }
.member__initial::after { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.55; }
.member__name { font-family: var(--font-display); font-weight: 300; font-size: 1.05rem; line-height: 1.15; }
.member__role {   /* last element in the card — bios removed at ALC's request */
  display: block; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate); margin: 0.45rem 0 0;
}

@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:not(:has(.member__initial)) { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }
@media (max-width: 420px)  { .member__initial span { font-size: 2.6rem; } .member__name { font-size: 1rem; } }

/* 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-ink); }
.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-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li {
  position: relative;
  padding: clamp(0.85rem, 1.5vw, 1.15rem) 0 clamp(0.85rem, 1.5vw, 1.15rem) 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.5;
}
.spec-list li::before {
  content: "/"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 300; color: var(--sage);
}

/* --------------------------------------------------------------------------
   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.78rem 1.4rem; border: 1px solid var(--line); color: var(--ink-soft);  /* 44px min target */
  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; overscroll-behavior: contain; 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 { display: inline-block; padding-block: 0.3rem; 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;
  /* Explicit, or the UA paints its own (dark on some Android builds) */
  background-color: var(--bone); color: var(--ink);
  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; }
.form__status.is-error { border-left-color: var(--error); }

/* Bots fill in every field they find; people never see this one. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field__opt { margin-left: 0.5em; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--ink-soft); }
.field__hint { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.field__err { margin: 0; font-size: var(--fs-small); color: var(--error); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }

/* Resume upload. The real input stays in the page (keyboard, screen readers,
   the phone's file picker); this second label is just what it looks like. */
.field--file { position: relative; }
.field--file input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
}
.field .file {
  display: flex; align-items: center; gap: 1rem; min-height: 48px;
  padding: 0.35rem 0; border-bottom: 1px solid var(--line); cursor: pointer;
  /* reset the uppercase label styling this inherits from .field label */
  font-size: 0.93rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.field .file__btn {
  flex: none; padding: 0.55rem 1rem; border: 1px solid var(--ink);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.file:hover .file__btn { background: var(--ink); color: var(--bone); }
.file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.field--file.has-file .file__name { color: var(--ink); }
.field--file input[type="file"]:focus-visible + .file { outline: 2px solid var(--ink); outline-offset: 4px; }

.btn[aria-busy="true"] { opacity: 0.55; pointer-events: none; }

/* What replaces the form once it has gone through. */
.form__done { padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--bone-deep); border-left: 2px solid var(--sage); }
.form__done h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h2); margin-bottom: 0.8rem; }
.form__done p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); text-align: center; }
/* Ginkgo watermark. Large enough that the linework reads as drawing rather
   than texture, faint enough that the type stays the loudest thing here. */
.cta__leaf {
  position: absolute; left: 50%; top: 2%;
  transform: translateX(-50%);
  height: clamp(340px, 118%, 760px); width: auto; max-width: none;
  opacity: 0.16;
  pointer-events: none;
  /* The stem runs past the bottom of the band; fade it out rather than letting
     overflow:hidden cut it off with a hard horizontal edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
}
/* Narrow screens: size the leaf by width instead, so the whole fan stays in
   frame rather than bleeding off both sides and reading as noise. */
@media (max-width: 620px) {
  .cta__leaf { height: auto; width: 86%; }
}
.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 { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer > .wrap { position: relative; z-index: 1; }
/* The ginkgo, blown up until it stops reading as a logo and starts reading as
   texture: only part of the fan's linework crosses the footer. It's ALC's own
   vector (source-art/), so it stays crisp at this size where a PNG would go soft. */
/* The texture fades in from the top edge, so where the dark CTA band runs into
   the footer there's no hard line where the leaf starts. The fade lives on
   this unrotated layer; on the rotated leaf it would come out tilted. */
.footer__tex {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
}
.footer__leaf {
  position: absolute; pointer-events: none;
  right: -14%; top: -55%;
  width: auto; max-width: none; height: 230%;
  opacity: 0.07;
  transform: rotate(-16deg);
  transform-origin: 70% 40%;
}
/* A phone's footer is tall and narrow: size the leaf off the width instead,
   or the lines balloon to finger-width. */
@media (max-width: 760px) {
  .footer__leaf { height: auto; width: 230%; right: -120%; top: -4%; transform: rotate(-24deg); opacity: 0.08; }
}
.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.95rem; }
.footer .logo__sub  { font-size: 0.56rem; letter-spacing: 0.2em; margin-top: 0.55rem; color: var(--sage); }
.footer p { font-size: var(--fs-small); color: rgba(245,243,238,0.6); line-height: 1.85; }
.footer__h {
  text-wrap: initial; 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.1rem; }
.footer ul a { display: inline-block; padding-block: 0.4rem; 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; align-items: baseline; 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.62); }
/* Baseline, not centre. Centring made each item's position depend on its own
   box height — the credit link is 33px tall next to a 19px line — and the
   half-pixel that fell out of that rounded to a visible step at 1080p. Sharing
   a baseline is also what the eye actually reads as "lined up". */
.footer__credits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.75rem; }
/* Site by ORDA. Inline SVG on currentColor, so it takes the footer's muted
   text colour and lifts with it on hover. 0.62 on the ink keeps it above
   4.5:1; 44px tall for an easy tap on a phone. */
.orda {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 44px;
  color: rgba(245,243,238,0.62); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; text-decoration: none; transition: color 0.2s var(--ease);
}
.orda svg { display: block; height: 15px; width: auto; }
.orda:hover, .orda:focus-visible { color: var(--bone); }

/* --------------------------------------------------------------------------
   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-list li,
.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-list, .bg-ink .spec-list li { 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: 82px; }
  .burger { display: block; }
  .header .logo__mark { font-size: 1.6rem; }
  .header .logo__sub  { font-size: 0.53rem; }
  .logo__leaf { height: 62px; }
  .logo--lockup { gap: 0.6rem; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    overscroll-behavior: contain;
    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;
    display: grid; grid-template-rows: minmax(0, 0fr); padding: 0; overflow: hidden;
    transition: grid-template-rows 0.4s var(--ease);
  }
  .nav__item.is-open .nav__menu { grid-template-rows: minmax(0, 1fr); }
  .nav__menuInner { min-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; }
}
