/* ==============================================================
   Melbourne Art Services - Homepage mockup v3
   --------------------------------------------------------------
   Direction: Wardle Studio (primary) / Breathe / Fini Frames / NGV.
   Refined typography doing the work, generous whitespace, large
   calm photography with the artwork as the hero.

   Type (client direction, doc 2026-07-13): Suisse Int'l.
     Light   -> large hero headings
     Book    -> body copy
     Regular -> navigation, labels, buttons
     Medium  -> occasional emphasis only
   One family across the site; the logo lockup keeps Prelia (image).
   NOTE: Suisse Int'l TRIAL weights are embedded for this private,
   no-index preview only. A licensed Suisse Int'l webfont must be
   funded before go-live and dropped in over these files.

   Case: sentence/Title case headings. Uppercase reserved for
         small eyebrows, labels and nav only.
   Client instruction honoured (email 2026-07-05): tile text
   "appears prominently (pop) over a shaded image" on hover; on
   mobile a permanent subtle shade keeps title + description legible
   and the whole card is a single-tap link (doc 2026-07-13).
   All imagery provisional; see IMAGE_SOURCES.md.
   ============================================================== */

/* ---------- Fonts (self-hosted, offline-safe) ----------
   Suisse Int'l trial weights. Book sits at 450 (between Regular
   400 and Medium 500), matching the family's real weight order. */
@font-face {
  font-family: "Suisse Intl";
  src: url("./assets/fonts/SuisseIntlTrial-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("./assets/fonts/SuisseIntlTrial-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("./assets/fonts/SuisseIntlTrial-RegularIt.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("./assets/fonts/SuisseIntlTrial-Book.woff2") format("woff2");
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("./assets/fonts/SuisseIntlTrial-BookIt.woff2") format("woff2");
  font-weight: 450;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("./assets/fonts/SuisseIntlTrial-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Palette: warm paper, near-black ink, stone for quiet UI.
     The artwork provides the colour; the UI stays neutral. */
  --paper: #f4f1ea;
  --paper-2: #ece7dd;            /* footer / deeper panel */
  --panel: #e7e1d3;              /* placeholder thumb panels */
  --panel-2: #ddd5c3;
  --ink: #1b1a17;
  --ink-soft: #3a352e;
  --muted: #726b61;              /* stone: captions, labels, hairline text */
  --line: rgba(114, 107, 97, 0.34);        /* hairlines on paper */
  --line-soft: rgba(114, 107, 97, 0.2);
  --dark: #171613;               /* warm near-black (reviews) */
  --on-dark: rgba(255, 253, 248, 0.93);
  --on-dark-muted: rgba(255, 253, 248, 0.58);
  --line-dark: rgba(255, 253, 248, 0.16);  /* hairlines on dark */

  /* Type: one family (Suisse Int'l) with named weights */
  --display: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  --sans: "Suisse Intl", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-light: 300;
  --w-regular: 400;
  --w-book: 450;
  --w-medium: 500;

  /* Layout rhythm: ~120-140px desktop sections, wide side margins */
  --max: 1400px;
  --side: clamp(22px, 6.5vw, 104px);
  --section: clamp(84px, 11vw, 140px);
  --gutter: clamp(20px, 2.4vw, 32px);
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: var(--w-book);       /* body copy = Suisse Book */
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* belt-and-braces: no accidental horizontal scroll, ever */
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: #d9c7a8; color: var(--ink); }

/* Visible, consistent focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.reviews :focus-visible,
.hero :focus-visible,
.tile:focus-visible {
  outline-color: rgba(255, 253, 248, 0.85);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--side);
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 10px; }

/* ---------- Shared type ---------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--w-light);     /* large headings = Suisse Light */
  letter-spacing: -0.014em;
  text-transform: none;            /* sentence/Title case, never all-caps */
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 7.2vw, 6.6rem);
  line-height: 1.03;
}
h2 {
  font-size: clamp(1.95rem, 3.5vw, 3.25rem);
  line-height: 1.07;
}

/* Small uppercase eyebrow, used sparingly (~12px, +0.14em) = Regular */
.eyebrow {
  margin: 0 0 26px;
  font-family: var(--sans);
  font-weight: var(--w-regular);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.on-dark {
  color: rgba(255, 253, 248, 0.82);
  text-shadow: 0 0 24px rgba(15, 14, 12, 0.45);
}

/* Eyebrow with a short leading hairline: quiet wayfinding detail */
.eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-rule::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--line);
}
.eyebrow.on-dark.eyebrow-rule::before { background: var(--line-dark); }

/* Small status labels for pending/provisional items (honest chrome) */
.pending-note {
  margin: 14px 0 0;
  font-weight: var(--w-regular);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pending-note.on-dark { color: var(--on-dark-muted); }

/* Quiet underlined text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  font-family: var(--sans);
  font-weight: var(--w-regular);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(27, 26, 23, 0.4);
  transition: border-color 0.35s var(--ease);
}
.text-link:hover { border-color: var(--ink); }
.text-link .arrow { transition: transform 0.35s var(--ease); }
.text-link:hover .arrow { transform: translateX(5px); }
.text-link.on-dark { border-color: rgba(255, 253, 248, 0.44); }
.text-link.on-dark:hover { border-color: rgba(255, 253, 248, 0.92); }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--side);
  padding-right: var(--side);
}
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-tight {
  padding-top: calc(var(--section) * 0.66);
  padding-bottom: calc(var(--section) * 0.66);
}

/* Full hairline sitting above a section, inset to the margins */
.rule-top { position: relative; }
.rule-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--side);
  right: var(--side);
  height: 1px;
  background: var(--line-soft);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Reveal on scroll (gentle fade + translate) ----------
   Hidden state only applies once app.js tags <html> with .js, so
   the page is fully visible even if JavaScript never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 1. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
  padding: 16px var(--side);
  background: rgba(244, 241, 234, 0.88);
  border-bottom: 1px solid rgba(27, 26, 23, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
/* subtle strengthen once the page is scrolled (class set by app.js) */
.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.96);
  border-bottom-color: rgba(27, 26, 23, 0.12);
}
.brand { flex: none; }
.brand img { width: 190px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: var(--w-regular);       /* nav = Suisse Regular */
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav a { position: relative; padding: 6px 0; transition: color 0.35s var(--ease); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

/* Hamburger toggle (hidden on large desktop; shown below 1440) */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-right: -10px;             /* optical align to margin */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 26px;
  height: 13px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.site-header.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  /* cinematic: fills the first viewport under the sticky header */
  min-height: max(540px, calc(100vh - var(--header-h)));
  min-height: max(540px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;   /* favour the artworks, trim dead ceiling */
  /* one slow settle on load; not a parallax, not a loop */
  transform: scale(1.045);
  animation: heroSettle 3.4s cubic-bezier(0.16, 0.6, 0.26, 1) 0.1s forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }

/* Bottom-weighted scrim + a soft lower-left vignette behind the copy:
   the image stays luminous up top, the headline zone reads cleanly */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(76deg, rgba(16, 15, 13, 0.38) 0%, rgba(16, 15, 13, 0.12) 34%, rgba(16, 15, 13, 0) 56%),
    linear-gradient(
      180deg,
      rgba(16, 15, 13, 0.16) 0%,
      rgba(16, 15, 13, 0.02) 22%,
      rgba(16, 15, 13, 0) 40%,
      rgba(16, 15, 13, 0.16) 58%,
      rgba(16, 15, 13, 0.46) 76%,
      rgba(16, 15, 13, 0.8) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--side) clamp(60px, 8vw, 118px);
}
.hero-inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 1.1s var(--ease) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.45s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.6s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }

.hero h1 { max-width: 16ch; }
.h1-line { white-space: nowrap; }   /* keep "Museum-standard" unbroken */

.hero-line {
  max-width: 50ch;
  margin: 28px 0 40px;
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.85);
}

.hero-caption {
  position: absolute;
  right: var(--side);
  bottom: 24px;
  z-index: 2;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.52);
}

/* ---------- 3. Intro (two columns: image left, statement right - doc 2026-07-13) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.intro-media {
  grid-column: 1 / 6;
  margin: 0;
}
.intro-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 55%;
}
.intro-media .pending-note { margin-top: 12px; }
.intro-statement {
  grid-column: 6 / 13;
  margin: 0;
  font-family: var(--display);
  font-weight: var(--w-light);
  font-size: clamp(1.5rem, 2.7vw, 2.45rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
}

/* ---------- 4. Services (four tall image tiles) ---------- */
.services .eyebrow { margin-bottom: 44px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 10 / 15;
  overflow: hidden;
  background: var(--dark);
  isolation: isolate;
  color: #fffdf8;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
/* Rest state: soft bottom gradient only, artwork colour stays true */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(15, 14, 12, 0.78) 0%,
    rgba(15, 14, 12, 0.36) 28%,
    rgba(15, 14, 12, 0) 56%
  );
}
/* Hover state (pointer): even shade rises over the image so the text
   pops (client instruction, email 2026-07-05) */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 14, 12, 0.52);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.tile:hover img,
.tile:focus-visible img { transform: scale(1.045); }
.tile:hover::after,
.tile:focus-visible::after { opacity: 1; }

.tile-index {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-family: var(--display);
  font-weight: var(--w-regular);
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 253, 248, 0.9);
  /* a whisper of shade for legibility on light walls */
  text-shadow: 0 0 22px rgba(15, 14, 12, 0.5);
}
.tile-provisional {
  position: absolute;
  top: 25px;
  right: 24px;
  z-index: 2;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.62);
  text-shadow: 0 0 22px rgba(15, 14, 12, 0.5);
}
.tile-body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 26px;
  z-index: 2;
}
.tile-title {
  display: block;
  font-family: var(--display);
  font-weight: var(--w-regular);     /* presence over photography */
  font-size: clamp(1.3rem, 1.45vw, 1.55rem);
  line-height: 1.14;
  letter-spacing: -0.008em;
  text-shadow: 0 1px 26px rgba(15, 14, 12, 0.55);
}
.tile-desc {
  display: block;
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.88);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease) 0.05s, transform 0.55s var(--ease) 0.05s;
}
.tile:hover .tile-desc,
.tile:focus-visible .tile-desc { opacity: 1; transform: none; }

/* ---------- 5. Trusted By (quiet, airy row) ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) 9fr;
  gap: var(--gutter);
  align-items: center;
}
.trust-grid .eyebrow { margin: 0; }
.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.logo-cell {
  display: grid;
  place-items: center;
  min-height: 108px;
  border-left: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.logo-cell:first-child { border-left: 0; }
.trust .pending-note { margin-top: 10px; }

/* ---------- 6. Featured In (text only; no mastheads / branding rights) ---------- */
.press .eyebrow { margin-bottom: 40px; }
.press-list {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.press-item {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  font-family: var(--display);
  font-weight: var(--w-light);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.press-item .arrow {
  font-size: 0.52em;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.press-item:hover { border-bottom-color: var(--ink); }
.press-item:hover .arrow { transform: translateX(6px); color: var(--ink); }
.press .pending-note { margin-top: 26px; }

/* ---------- 7. Editorial: from acquisition to installation ---------- */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}
.editorial-media {
  grid-column: 1 / 7;
  margin: 0;
}
.editorial-media img {
  width: 100%;
  aspect-ratio: 5 / 4.4;
  object-fit: cover;
}
.editorial-media .pending-note { margin-top: 12px; }
.editorial-copy { grid-column: 8 / 13; }
.editorial-copy p {
  margin: 24px 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 17.5px;
}
.editorial-copy p:first-of-type { margin-top: 30px; }

/* ---------- 8. Client reviews (dark, scrolling set) ---------- */
.reviews {
  background: var(--dark);
  color: var(--on-dark);
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
}
.reviews-head .pending-note { margin-top: 18px; }
.review-nav { display: flex; gap: 10px; }
.rev-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.3);
  background: transparent;
  color: var(--on-dark);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              opacity 0.35s var(--ease);
}
.rev-btn:hover { background: rgba(255, 253, 248, 0.07); border-color: rgba(255, 253, 248, 0.55); }
.rev-btn[disabled] { opacity: 0.28; cursor: default; }
.rev-btn[disabled]:hover { background: transparent; border-color: rgba(255, 253, 248, 0.3); }

.review-track {
  display: grid;
  grid-auto-flow: column;
  /* a partial next card stays in view: quiet cue that the set scrolls */
  grid-auto-columns: clamp(280px, 34%, 430px);
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.rev-card {
  scroll-snap-align: start;
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 38px 36px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.02);
}
.rev-stars {
  color: rgba(255, 253, 248, 0.78);
  letter-spacing: 4px;
  font-size: 13px;
}
.rev-quote {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--w-regular);
  font-size: clamp(1.14rem, 1.5vw, 1.38rem);
  line-height: 1.42;
}
.rev-src {
  color: var(--on-dark-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 9. Contact CTA (one clear action, email prominent) ---------- */
.cta { scroll-margin-top: calc(var(--header-h) + 12px); }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: end;
}
.cta-grid > div:first-child { grid-column: 1 / 8; }
.cta-copy {
  margin: 26px 0 0;
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 17.5px;
}
.cta-actions {
  grid-column: 8 / 13;
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-bottom: 6px;
}
.cta-email {
  font-family: var(--display);
  font-weight: var(--w-regular);
  font-size: clamp(1.06rem, 1.8vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;       /* long address never overflows small screens */
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  transition: border-color 0.35s var(--ease);
}
.cta-email:hover { border-color: var(--ink); }
.cta-phone {
  font-size: 14.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.35s var(--ease);
}
.cta-phone:hover { color: var(--ink); }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  padding: clamp(56px, 7vw, 88px) var(--side) 44px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1.15fr 0.85fr 0.85fr;
  gap: var(--gutter);
}
.footer-mark img { width: 112px; height: auto; }
.footer-col h3 {
  font-family: var(--sans);
  font-weight: var(--w-regular);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.footer-col a,
.footer-col span { display: block; font-size: 15px; line-height: 2.05; }
.footer-col a { transition: opacity 0.35s var(--ease); }
.footer-col a:hover { opacity: 0.6; }
.footer-col a.ico-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 0;
  line-height: 1.5;
}
.ico-line .ico { width: 17px; height: 17px; flex: none; color: var(--muted); }
.social-row { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.social-link { color: var(--ink-soft); transition: opacity 0.35s var(--ease); }
.social-link:hover { opacity: 0.55; }
.social-link svg { width: 21px; height: 21px; display: block; }

/* Acknowledgement of Country: stretched across the footer, centred to
   the page, with a controlled reading measure (client, doc 2026-07-13) */
.acknowledgement {
  margin: clamp(48px, 6vw, 74px) auto 0;
  max-width: min(100%, 88ch);
  text-align: center;
  color: #5e5850;
  font-size: 13.5px;
  line-height: 1.78;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ==============================================================
   Responsive
   Below 1440px the full 6-item nav no longer fits beside the logo,
   so the header collapses to a single row (logo + hamburger) and the
   nav becomes a drop panel. Zero horizontal overflow from 320px up.
   ============================================================== */
@media (max-width: 1439px) {
  .site-header {
    flex-wrap: nowrap;
    gap: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .brand img { width: 178px; }
  .nav-toggle { display: inline-flex; }

  /* Nav becomes a full-width drop panel under the header */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px var(--side) 20px;
    font-size: 13px;
    white-space: normal;
    background: rgba(244, 241, 234, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -30px rgba(20, 18, 14, 0.5);
    /* closed */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.42s var(--ease), opacity 0.3s var(--ease),
                visibility 0s linear 0.42s;
  }
  .site-header.nav-open .nav {
    max-height: min(76vh, 560px);
    overflow: auto;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease),
                visibility 0s linear 0s;
  }
  .nav a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }   /* no underline sweep inside the panel */
}

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 4 / 5; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-media { grid-column: auto; }
  .intro-statement { grid-column: auto; }
  .intro-media img { aspect-ratio: 3 / 2; }
  .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
  .editorial-media { grid-column: auto; }
  .editorial-copy { grid-column: auto; }
  .editorial-media img { aspect-ratio: 4 / 3; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .cta-grid > div:first-child { grid-column: auto; }
  .cta-actions { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Mobile / tablet service tiles: a permanent subtle shade keeps the
     title and description legible; the whole card is a single-tap link
     with no first-tap hover state (client, doc 2026-07-13). */
  .tile::after { opacity: 1; background: rgba(15, 14, 12, 0.3); }
  .tile-desc { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .brand img { width: 164px; }

  .hero { min-height: max(520px, calc(100svh - var(--header-h))); }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-inner { padding-bottom: 0; }
  .hero-inner .text-link { margin-bottom: 0; }
  .hero-caption {
    position: relative;
    z-index: 2;
    margin: 30px 0 0 var(--side);
    padding-bottom: 22px;
  }

  .service-grid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 5; }
  .services .eyebrow { margin-bottom: 34px; }

  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { min-height: 88px; }
  .logo-cell:nth-child(odd) { border-left: 0; }
  .logo-cell:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }

  .press .eyebrow { margin-bottom: 30px; }

  .reviews-head { flex-direction: column; align-items: flex-start; gap: 26px; }
  .review-track { grid-auto-columns: min(84%, 360px); }
  .rev-card { padding: 30px 26px; }

  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 420px) {
  /* very narrow screens: allow the H1 to break at its hyphen */
  .h1-line { white-space: normal; }
}

/* Touch / no-hover devices: descriptions stay visible and the tiles
   carry a permanent shade for legibility (mirrors the mobile rules) */
@media (hover: none) {
  .tile::after { opacity: 1; background: rgba(15, 14, 12, 0.3); }
  .tile::before {
    background: linear-gradient(
      to top,
      rgba(15, 14, 12, 0.8) 0%,
      rgba(15, 14, 12, 0.42) 34%,
      rgba(15, 14, 12, 0) 62%
    );
  }
  .tile-desc { opacity: 1; transform: none; }
}

/* ---------- Reduced motion: calm becomes still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media img { animation: none; transform: none; }
  .hero-inner > * { animation: none; opacity: 1; transform: none; }
  .tile img, .tile:hover img, .tile:focus-visible img { transition: none; transform: none; }
  .tile::after, .tile-desc, .text-link .arrow, .press-item .arrow { transition: none; }
  .nav { transition: none !important; }
  .nav-toggle-bars span { transition: none !important; }
}
