/* ============================================================
   stonenz.co.nz - shared stylesheet
   Stone NZ brand: rust / charcoal / warm stone, DM Serif Display
   + Source Sans 3, and the laid-stone motif.
   Built on the queenstownmarina.com design system (same layout and
   components), re-skinned for Stone NZ.
   Order: tokens → base → typography → components (A–Z)
   → sections → utilities.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --rust: #da440e;          /* brand rust - decorative, logo "NZ" */
  --rust-btn: #b5370a;      /* button fill with white text (AA) */
  --rust-btn-hover: #963007;
  --rust-ink: #b5370a;      /* rust for text on light backgrounds (AA) */
  --rust-light: #ff6b22;    /* rust/orange for text on charcoal (AA), logo tagline */

  --charcoal: #1d1b19;      /* header, dark bands */
  --charcoal-deep: #141311; /* footer */
  --charcoal-soft: #2e2a26; /* enquiry band */

  --paper: #ffffff;
  --stone: #f3efe9;         /* alternating section background */
  --stone-2: #e7e1d8;       /* placeholders, viewer background */
  --ink: #262321;           /* body text, headings */
  --muted: #5f5850;         /* secondary text on light */
  --muted-on-dark: rgba(255,255,255,.76);
  --line: #e2dbd0;

  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;  /* chunky condensed caps-friendly face, echoes the block-letter logo */
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px rgba(29, 27, 25, .16);
  --ease: cubic-bezier(.33,.9,.25,1);
  --pad-x: clamp(20px, 6vw, 96px);   /* global horizontal gutter */
  --max: 1320px;                     /* content max width */
  --gutter: max(var(--pad-x), calc((100% - var(--max)) / 2));
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

[id] { scroll-margin-top: 96px; } /* anchors land clear of the fixed header */

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--charcoal); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Typography ---------- */
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: .005em; }
h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.25; }

.section {
  padding-block: clamp(64px, 9vh, 120px);
  padding-inline: var(--gutter);
  position: relative;
}
.section--alt { background: var(--stone); }
.section--dark { background: var(--charcoal); color: #fff; }
.section--narrow > * { max-width: 860px; }
.section--tight-top { padding-top: clamp(44px, 6vh, 80px); }

.section__head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.section__title { font-size: clamp(32px, 3.8vw, 52px); text-wrap: balance; color: var(--ink); }
/* the Stone NZ signature: a little laid-stone mark under every section heading */
.section__title::after {
  content: ""; display: block; width: 62px; height: 17px; margin-top: 18px;
  background: url("../images/stone-mark.svg") no-repeat left center / contain;
}
.section__intro { margin-top: 20px; color: var(--muted); max-width: 64ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.75; }
.section__intro p + p { margin-top: 12px; }
.section__intro a { color: var(--rust-ink); }

.section--dark .section__title { color: #fff; }
.section--dark .section__intro { color: var(--muted-on-dark); }

/* space between a heading (and its stone mark) and the copy below it */
.section__title + .prose { margin-top: clamp(22px, 2vw, 30px); }
.prose p { color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.8; }
.prose p + p { margin-top: 16px; }
.prose a { color: var(--rust-ink); }
.prose strong { color: var(--ink); }
.prose ul { margin-top: 12px; padding-left: 1.2em; color: var(--muted); }
.prose--lead p { font-size: clamp(18px, 1.45vw, 22px); color: var(--ink); line-height: 1.7; }
.prose--small p { font-size: 16px; }

/* ============================================================
   4. Components (alphabetical)
   ============================================================ */

/* ---------- .actions (button row) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.actions--center { justify-content: center; }

/* ---------- .btn (buttons - squared-off like a cut stone) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--rust-btn); text-decoration: none;
  padding: 15px 28px; border-radius: 6px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--rust-btn-hover); transform: translateY(-1px); }
.btn--accent { background: var(--rust-btn); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------- .card (Stone & Craft cards) ---------- */
.cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4/3; background: var(--stone-2) center / cover no-repeat; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 26px; border-top: 4px solid var(--rust); }
.card__title { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.15; color: var(--ink); }
.card__text { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.card__text p + p { margin-top: 10px; }
.card__text a { color: var(--rust-ink); }
.card__link {
  margin-top: auto; padding-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rust-ink); text-decoration: none;
}
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1020px) { .cards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cards__grid { grid-template-columns: 1fr; } }

/* ---------- .cat-card (gallery category cards) ---------- */
.cat-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-cards--compact { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.cat-card:hover, .cat-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card__img {
  display: block; aspect-ratio: 4/3; background: var(--stone-2) center / cover no-repeat;
  transition: filter .35s ease;
}
.cat-card:hover .cat-card__img { filter: saturate(1.08) brightness(1.03); }
.cat-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 24px; }
.cat-card__title { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--ink); }
.cat-card__text { color: var(--muted); font-size: 16px; line-height: 1.65; }
.cat-card__meta {
  margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rust-ink);
}
.cat-cards--compact .cat-card__body { padding: 16px 18px 18px; }
.cat-cards--compact .cat-card__title { font-size: 21px; }
@media (max-width: 1100px) { .cat-cards--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1020px) { .cat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cat-cards { grid-template-columns: 1fr; } .cat-cards--compact { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cat-cards--compact .cat-card__title { font-size: 18px; } }

/* ---------- .exp (image + copy split) ---------- */
.exp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.exp__img {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.exp--flip .exp__img { order: 2; }
.exp--text { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 1020px) {
  .exp { grid-template-columns: 1fr; }
  .exp--flip .exp__img { order: 0; }
}

/* ---------- .form (enquiry form) ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label, .form legend {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 8px;
}
.form abbr { text-decoration: none; color: var(--rust-ink); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid #d3cabd; border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.form ::placeholder { color: #9a9187; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 4px rgba(218,68,14,.16); }
.form [aria-invalid="true"] { border-color: #c62828; }
.form textarea { min-height: 140px; resize: vertical; }
.form__checks { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.form__checks legend { margin-bottom: 12px; }
.check { display: flex !important; align-items: flex-start; gap: 10px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 16px !important; color: var(--ink) !important; margin: 0 !important; line-height: 1.45; }
.check input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--rust-btn); cursor: pointer; }
.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.form__small { font-size: 14px; color: var(--muted); max-width: 46ch; }
.form__small a { color: var(--rust-ink); }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 16px; line-height: 1.5; }
.form__note--error { background: #fdecea; border: 1px solid #f3b4ae; color: #8e1c12; }
.form__err { display: block; margin-top: 6px; color: #b3261e; font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .form__row, .form__checks { grid-template-columns: 1fr; } }

/* ---------- .legal (policy prose) ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: clamp(24px, 2.3vw, 32px); color: var(--ink); margin: 48px 0 6px; }
.legal h3 { font-size: 18px; margin: 28px 0 0; }
.legal p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.legal a { color: var(--rust-ink); }
.legal__lead { font-weight: 700; color: var(--ink) !important; border-left: 4px solid var(--rust); padding-left: 16px; margin-top: 0 !important; }

/* ---------- .membership (association badge + text) ---------- */
.membership__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1040px; }
.membership__logo { display: block; width: clamp(130px, 14vw, 190px); }
.membership__logo img { width: 100%; height: auto; }
.membership .prose { margin-top: 4px; }
@media (max-width: 640px) { .membership__inner { grid-template-columns: 1fr; } .membership__logo { width: 130px; } }

/* ---------- .coursed (home "Our Work": gallery tiles laid like a coursed stone wall) ----------
   Five-column grid; tiles alternate 3+2 / 2+3 spans so each course breaks joint with the one
   below it (running bond). The charcoal gaps read as mortar. */
.coursed__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 44px); }
.coursed__head .section__head { margin-bottom: 0; }
.coursed__all {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--rust);
}
.coursed__all:hover { color: var(--rust-light); }
.coursed__wall { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.coursed__wall > li { grid-column: span 3; min-height: clamp(280px, 30vw, 420px); }
.coursed__wall > li:nth-child(4n+2), .coursed__wall > li:nth-child(4n+3) { grid-column: span 2; }
.coursed__wall > li:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: clamp(240px, 24vw, 340px); }
.stone-tile {
  position: relative; display: flex; align-items: flex-end; height: 100%; overflow: hidden;
  border-radius: 6px; background: var(--charcoal-soft); color: #fff; text-decoration: none; isolation: isolate;
}
.stone-tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: saturate(.85) brightness(.88); transition: transform .8s var(--ease), filter .5s ease;
}
.stone-tile::before { /* legibility scrim */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,19,17,.92) 0%, rgba(20,19,17,.5) 42%, rgba(20,19,17,0) 75%);
}
.stone-tile::after { /* rust course line that runs along the bottom on hover */
  content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%;
  background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.stone-tile:hover .stone-tile__img, .stone-tile:focus-visible .stone-tile__img { transform: scale(1.06); filter: saturate(1.05) brightness(.95); }
.stone-tile:hover::after, .stone-tile:focus-visible::after { transform: scaleX(1); }
.stone-tile:focus-visible { outline: 3px solid var(--rust-light); outline-offset: 3px; }
.stone-tile__body { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: clamp(20px, 2.4vw, 34px); }
.stone-tile__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--rust-light); }
.stone-tile__title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.3vw, 38px); line-height: 1.08; text-wrap: balance; }
.stone-tile__tag { max-width: 46ch; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.86); }
.stone-tile__cta { margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.stone-tile__cta span { display: inline-block; transition: transform .3s ease; }
.stone-tile:hover .stone-tile__cta span { transform: translateX(4px); }
@media (max-width: 860px) {
  .coursed__wall { grid-template-columns: 1fr; }
  .coursed__wall > li, .coursed__wall > li:nth-child(4n+2), .coursed__wall > li:nth-child(4n+3) { grid-column: auto; min-height: 300px; }
}

/* ---------- .rule-list (policy lists) ---------- */
.rule-list { list-style: none; margin-top: 16px; }
.rule-list li { position: relative; padding: 8px 0 8px 32px; color: var(--muted); line-height: 1.7; border-bottom: 1px solid var(--line); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 10px;
  background: url("../images/stone-mark.svg") no-repeat left center / contain;
}

/* ---------- .services (home "What we do": a schedule of work, ruled like courses) ---------- */
.services__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services__head { position: sticky; top: 120px; margin-bottom: 0; }
.services__list { list-style: none; border-top: 2px solid var(--ink); }
.service-row {
  display: grid; row-gap: 4px;
  padding: 20px 4px 20px 0; border-bottom: 1px solid #d3cabd;
  transition: padding-left .35s var(--ease), background-color .35s ease;
}
.service-row:hover { padding-left: 12px; background: linear-gradient(to right, rgba(218,68,14,.07), transparent 70%); }
.service-row__name { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; color: var(--ink); }
.service-row__text { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .services__layout { grid-template-columns: 1fr; }
  .services__head { position: static; }
}

/* ---------- .viewer (gallery: stage + thumbnail strip) ---------- */
.viewer { --thumb-w: 96px; --thumb-h: 72px; }
.viewer__frame { background: var(--stone-2); border-radius: var(--radius); overflow: hidden; }
.viewer__stage {
  position: relative; aspect-ratio: 3 / 2; max-height: 76vh; min-height: 240px;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.viewer__figure { position: absolute; inset: 0; margin: 0; }
.viewer__image {
  position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px);
  object-fit: contain; transition: opacity .25s ease; -webkit-user-drag: none;
}
.viewer__stage.is-loading .viewer__image { opacity: .35; }
.viewer__stage.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 3px solid rgba(29,27,25,.15); border-top-color: var(--rust); border-radius: 50%;
  animation: viewer-spin .8s linear infinite;
}
@keyframes viewer-spin { to { transform: rotate(360deg); } }
.viewer__caption, .viewer__counter {
  position: absolute; z-index: 2; margin: 0; padding: .32rem .8rem; border-radius: 6px;
  background: rgba(20,19,17,.78); color: #fff; font-size: 14px; line-height: 1.4; pointer-events: none;
}
.viewer__caption { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
.viewer__caption[hidden] { display: none; }
.viewer__counter { top: 16px; left: 16px; font-variant-numeric: tabular-nums; }
.viewer__nav, .viewer__fs {
  position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: background-color .2s ease, color .2s ease;
}
.viewer__nav[hidden], .viewer__fs[hidden] { display: none; }
.viewer__nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer__fs { top: 16px; right: 16px; width: 40px; height: 40px; }
.viewer__nav:hover, .viewer__fs:hover { background: var(--rust-btn); color: #fff; }
.viewer__thumbs {
  list-style: none; display: flex; gap: 8px; margin: 0; padding: 4px 12px 12px;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b9afa2 transparent;
}
.viewer__thumbs li { flex: 0 0 auto; }
.viewer__thumb {
  display: block; width: var(--thumb-w); height: var(--thumb-h); border-radius: 4px; overflow: hidden;
  opacity: .55; transition: opacity .2s ease;
}
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb:hover { opacity: .85; }
.viewer__thumb:focus-visible { opacity: 1; outline: 3px solid var(--ink); outline-offset: -3px; }
.viewer__thumb[aria-current="true"] { opacity: 1; outline: 3px solid var(--rust); outline-offset: -3px; }
/* full screen */
.viewer__frame.is-fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 0; background: var(--charcoal-deep); }
.viewer__frame.is-fullscreen .viewer__stage { flex: 1 1 auto; aspect-ratio: auto; max-height: none; }
.viewer__frame.is-fullscreen .viewer__thumbs { flex: 0 0 auto; padding-top: 12px; scrollbar-color: #555 transparent; }
.viewer__frame.is-fullscreen .viewer__stage.is-loading::after { border-color: rgba(255,255,255,.2); border-top-color: var(--rust); }
@media (min-width: 768px) { .viewer { --thumb-w: 120px; --thumb-h: 90px; } }
@media (max-width: 639px) {
  .viewer__stage { aspect-ratio: 4 / 3; }
  .viewer__image { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .viewer__nav { width: 40px; height: 40px; margin-top: -20px; }
  .viewer__nav--prev { left: 8px; }
  .viewer__nav--next { right: 8px; }
  .viewer__caption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .viewer__counter { top: 8px; left: 8px; }
  .viewer__fs { top: 8px; right: 8px; }
}

/* ============================================================
   5. Sections
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  background: linear-gradient(to bottom, rgba(20,19,17,.78), rgba(20,19,17,0));
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.is-solid { background: var(--charcoal); padding-block: 10px; box-shadow: 0 6px 24px rgba(20,19,17,.3); }
.wordmark { display: block; line-height: 0; flex-shrink: 0; }
.wordmark img { width: clamp(124px, 11vw, 168px); height: auto; transition: width .3s ease; }
.site-header.is-solid .wordmark img { width: clamp(108px, 8.5vw, 128px); }
.site-header nav { display: flex; align-items: center; }
.site-header nav a {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: 15px; font-weight: 600; margin-left: 30px; letter-spacing: .08em; text-transform: uppercase;
  padding-block: 6px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--rust); }
.site-header nav .nav-btn {
  margin-left: 30px; padding: 11px 20px; border: 0; border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: #fff; background: var(--rust-btn);
}
.site-header nav .nav-btn:hover { background: var(--rust-btn-hover); }

/* Burger toggle - hidden on desktop */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin-left: 14px;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slide-out drawer (from the right) + scrim */
.nav-scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(20,19,17,.6);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(330px, 86vw); height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--charcoal); color: #fff;
  padding: 20px 28px 32px;
  transform: translateX(100%); transition: transform .45s var(--ease);
  visibility: hidden;
}
body.nav-open .nav-drawer { transform: none; visibility: visible; }
body.nav-open { overflow: hidden; }
.nav-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nav-drawer__title { font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--rust-light); }
.nav-drawer__close { width: 44px; height: 44px; margin-right: -10px; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.8); }
.nav-drawer__close:hover { color: #fff; }
.nav-drawer nav { display: flex; flex-direction: column; }
.nav-drawer nav a {
  margin: 0; padding: 16px 0; font-family: var(--display); font-weight: 600; font-size: 26px;
  color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav-drawer nav a:hover, .nav-drawer nav a[aria-current="page"] { color: var(--rust-light); }
.nav-drawer__actions { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 32px; }

@media (max-width: 900px) {
  .site-header > nav a:not(.nav-btn) { display: none; } /* menu links live in the drawer */
  .site-header > nav { margin-left: auto; }
  .nav-toggle { display: flex; }
}
@media (max-width: 520px) {
  .site-header > nav .nav-btn { display: none; } /* the drawer has it */
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: linear-gradient(200deg, #3a342e, var(--charcoal) 55%, var(--charcoal-deep));
  color: #fff;
}
.home-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.home-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,19,17,.5) 0%, rgba(20,19,17,0) 70%),
    linear-gradient(to top, rgba(20,19,17,.88) 0%, rgba(20,19,17,.42) 50%, rgba(20,19,17,.18) 100%);
}
.home-hero__content { position: relative; z-index: 2; width: 100%; padding: 140px var(--pad-x) clamp(90px, 15vh, 150px); max-width: calc(1000px + 2 * var(--pad-x)); }
.home-hero__kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--rust-light); margin-bottom: 14px; }
.home-hero__title { font-size: clamp(38px, 7vw, 96px); line-height: 1; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.home-hero__sub { margin-top: 20px; font-size: clamp(17px, 1.5vw, 21px); color: rgba(255,255,255,.9); max-width: 54ch; line-height: 1.6; }
.home-hero .actions { margin-top: 34px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(36px, 5vw, 64px); z-index: 2; transform: translateX(-50%);
  color: rgba(255,255,255,.7); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@media (max-width: 820px) { .scroll-cue { display: none; } }

/* small light text over photos: a soft shadow keeps it legible on bright skies */
.home-hero__kicker, .home-hero__sub, .page-hero__eyebrow, .page-hero__sub, .page-hero__crumb { text-shadow: 0 1px 10px rgba(20,19,17,.6); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: 58vh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: linear-gradient(200deg, #3a342e, var(--charcoal) 55%, var(--charcoal-deep));
  color: #fff;
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,19,17,.45) 0%, rgba(20,19,17,0) 70%), linear-gradient(to top, rgba(20,19,17,.85) 0%, rgba(20,19,17,.4) 55%, rgba(20,19,17,.18) 100%); }
.page-hero__content { position: relative; z-index: 2; width: 100%; padding: 150px var(--gutter) clamp(72px, 10vh, 110px); }
.page-hero__crumb {
  display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.85); text-decoration: none;
}
.page-hero__crumb:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.page-hero__eyebrow { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--rust-light); margin-bottom: 14px; }
.page-hero__title { font-size: clamp(40px, 5.6vw, 78px); color: #fff; text-wrap: balance; max-width: 18ch; }
.page-hero__sub { margin-top: 16px; font-size: clamp(17px, 1.45vw, 21px); color: rgba(255,255,255,.9); max-width: 56ch; }
.page-hero--plain { min-height: 0; }
.page-hero--plain .page-hero__scrim { display: none; }
.page-hero--plain .page-hero__content { padding-top: clamp(130px, 18vh, 170px); padding-bottom: clamp(64px, 9vh, 96px); }
.page-hero--plain .page-hero__title { font-size: clamp(36px, 4.6vw, 60px); }
.tpl--category .page-hero, .tpl--gallery .page-hero { min-height: 52vh; }

/* ---------- Enquiry (charcoal band, form on a white card) ---------- */
.enquiry { background: var(--charcoal-soft); color: #fff; }
/* optional photo behind the band (Site > Enquiry Form > Background Photo), tinted charcoal -
   darker on the left where the heading sits, lighter on the right behind the white form card */
.enquiry__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.enquiry--photo .enquiry__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,19,17,.88) 0%, rgba(29,27,25,.74) 45%, rgba(29,27,25,.45) 100%);
}
.enquiry::before { /* soft rust glow, top right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 100% 0%, rgba(218,68,14,.18), transparent 60%);
}
.enquiry__inner { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.enquiry .section__title { color: #fff; }
.enquiry .section__intro { color: var(--muted-on-dark); }
.enquiry .section__intro a { color: #fff; }
.enquiry__direct { list-style: none; margin-top: 28px; display: grid; gap: 10px; }
.enquiry__direct li { display: flex; align-items: baseline; gap: 14px; }
.enquiry__direct span { min-width: 52px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rust-light); }
.enquiry__direct a { color: #fff; font-size: 19px; font-weight: 600; text-decoration: none; }
.enquiry__direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.enquiry__inner > .form, .enquiry__inner > .form__note { grid-column: 2; }
.enquiry__inner > .form__note { margin-bottom: 0; }
.enquiry .form { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.enquiry__head { grid-row: 1 / span 2; position: sticky; top: 110px; }
@media (max-width: 1020px) {
  .enquiry__inner { grid-template-columns: 1fr; }
  .enquiry__inner > .form, .enquiry__inner > .form__note { grid-column: 1; }
  .enquiry__head { grid-row: auto; position: static; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-grid .prose { margin-bottom: 30px; }
.contact-grid__form { background: var(--stone); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 3vw, 40px); }
.form-title { font-size: clamp(28px, 2.5vw, 36px); color: var(--ink); margin-bottom: 10px; }
.contact-grid__form .prose { margin-bottom: 24px; }
.c-block { margin-top: 26px; }
.c-block__h { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rust-ink); margin-bottom: 8px; }
.c-block__person { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink) !important; margin-bottom: 4px; }
.c-block a { display: block; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 600; line-height: 1.8; }
.c-block a:hover { color: var(--rust-ink); }
.c-block p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 52ch; }
.c-block p a { display: inline; font-size: inherit; color: var(--rust-ink); }
@media (max-width: 1020px) { .contact-grid { grid-template-columns: 1fr; } }

/* Map: full width, straight into the footer */
.map-full { position: relative; width: 100%; }
.map-full .js-map { position: relative; width: 100%; height: clamp(340px, 50vh, 560px); background: var(--stone); z-index: 0; }
.map-full .leaflet-control-attribution { border-radius: 6px 0 0 6px; background: rgba(255,255,255,.85); font-size: 11px; }
.leaflet-container { font-family: var(--sans); }
.leaflet-marker-icon { filter: drop-shadow(0 6px 10px rgba(20,19,17,.35)); }

/* ---------- Thank you / 404 ---------- */
.thanks { text-align: center; }
.thanks .section__title::after { margin-inline: auto; }
.thanks .section__intro { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: #fff; }
.site-footer__body { background: var(--charcoal-deep); padding: clamp(48px, 8vh, 80px) var(--gutter) 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__about { margin-top: 18px; font-size: 15px; line-height: 1.75; color: var(--muted-on-dark); max-width: 42ch; }
.footer__h { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rust-light); margin-bottom: 16px; }
.footer__grid a { display: block; color: rgba(255,255,255,.88); text-decoration: none; font-size: 16px; margin-bottom: 10px; line-height: 1.55; }
.footer__grid a:hover { color: var(--rust-light); }
.footer__grid a.footer__sub { font-size: 14.5px; margin: -4px 0 8px 14px; color: rgba(255,255,255,.66); }
.footer__grid .wordmark img { width: 170px; }
.footer__person { font-weight: 600; margin-bottom: 8px; }
.footer__text { font-size: 15px; color: var(--muted-on-dark); line-height: 1.6; margin-bottom: 10px; max-width: 32ch; }
.footer__social { display: flex; gap: 14px; margin-top: 14px; }
.footer__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); margin: 0; }
.footer__social a:hover { background: var(--rust-btn); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.footer__bar {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,.7);
}
.footer__bar a { color: inherit; }
.footer__bar a:hover { color: #fff; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   6. Utilities
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
