/* ==========================================================================
   PB n' J Carpentry and Joinery
   Brand palette sampled directly from the logo artwork:
   navy #040B17 · cream #FCF0C0 · timber #603018 · amber #DD8301
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --navy:        #040b17;
  --navy-900:    #030812;
  --navy-800:    #070f1e;
  --navy-700:    #0b1628;
  --navy-600:    #101d33;
  --navy-500:    #16253f;
  --line:        #1d2f4d;
  --line-soft:   #14223a;

  --cream:       #fcf0c0;
  --cream-2:     #e4dcc0;
  --cream-3:     #a9b0ba;
  --cream-4:     #78828f;

  --timber:      #603018;
  --timber-2:    #3c240c;
  --amber:       #dd8301;
  --amber-2:     #c06a0a;
  --amber-soft:  rgba(221, 131, 1, 0.14);

  /* Type
     Display  Bitter: a sturdy slab serif. Squared serifs read as solidly
              "trades" rather than editorial, which suits a working carpenter.
     Body     Manrope: warmer and friendlier than a neutral grotesk, same
              level of legibility.
     Script   Parisienne: a refined monoline hand for the tagline, echoing
              the signature script on the logo without shouting. */
  --f-display: "Bitter", "Iowan Old Style", Georgia, serif;
  --f-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-script:  "Parisienne", "Segoe Script", cursive;

  /* Fluid type scale */
  --t-xs:   clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --t-sm:   clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --t-lg:   clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --t-xl:   clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --t-2xl:  clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --t-3xl:  clamp(2.2rem, 1.6rem + 2.8vw, 4rem);
  --t-4xl:  clamp(2.7rem, 1.7rem + 4.4vw, 5.6rem);

  /* Space */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw:   1240px;
  --maxw-narrow: 760px;
  --section-y: clamp(3.75rem, 8vw, 7.25rem);

  /* Radii + shadow */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 16px;
  --shadow:    0 18px 50px -20px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.95);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 92px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--navy);
  color: var(--cream-2);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--amber); color: var(--navy-900); }

/* ---------- 3. Typography ------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.lead {
  font-size: var(--t-lg);
  color: var(--cream-2);
  line-height: 1.6;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber);
  flex: none;
}

.script {
  font-family: var(--f-script);
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.01em;
  /* Parisienne runs small next to a text serif at the same size */
  font-size: 1.28em;
  line-height: 0.9;
}

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 5rem); }

.stack > * + * { margin-top: var(--stack, 1.25rem); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 2rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* Alternating navy bands so sections read as distinct planes */
.band       { background: var(--navy); }
.band-deep  { background: var(--navy-900); }
.band-raise { background: var(--navy-700); }
.band-timber {
  background:
    linear-gradient(180deg, rgba(4, 11, 23, 0.94), rgba(4, 11, 23, 0.97)),
    repeating-linear-gradient(90deg, var(--timber-2) 0 3px, var(--timber) 3px 7px);
}

/* Hairline dividers */
.rule { height: 1px; background: var(--line-soft); border: 0; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
    border: 1.5px solid transparent;
  border-radius: 6px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
    font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--cream); } }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
    border-color: rgba(252, 240, 192, 0.38);
}
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { border-color: var(--amber); color: var(--amber); background: transparent; } }

.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--navy-900); }
.btn--sm { padding: 0.7em 1.25em; font-size: var(--t-xs); }
.btn--block { width: 100%; }

/* Text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--amber);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s var(--ease);
}
.tlink svg { transition: transform 0.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tlink:hover { border-bottom-color: var(--amber); } }
@media (hover: hover) and (pointer: fine) { .tlink:hover svg { transform: translateX(4px); } }

/* ---------- 6. Top bar --------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-xs);
  color: var(--cream-3);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
  padding-block: 0.35rem;
}
.topbar__list { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
.topbar__item svg { width: 0.95em; height: 0.95em; color: var(--amber); flex: none; }
@media (hover: hover) and (pointer: fine) { .topbar a:hover { color: var(--amber); } }
.topbar__area { letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 860px) {
  .topbar__inner { justify-content: center; }
  .topbar__list--meta { display: none; }
}

/* ---------- 7. Header / nav ---------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.header.is-stuck {
  background: rgba(4, 11, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 40px -24px #000;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Brand lockup: the emblem artwork plus live text. The full logo artwork
   carries its own wordmark, but it turns to mush below ~120px tall, so in the
   header we use the emblem alone and set the name in real type where it stays
   crisp and selectable. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 0.95rem);
  flex: none;
}
.brand__mark {
  height: clamp(46px, 6vw, 62px);
  width: auto;
  flex: none;
  transition: height 0.25s var(--ease);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  line-height: 1;
  min-width: 0;
}
.brand__name {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__sub {
  font-size: clamp(0.5rem, 1.05vw, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-4);
  white-space: nowrap;
}
.is-stuck .brand__mark { height: clamp(40px, 4.6vw, 50px); }
.is-stuck .brand__name { font-size: clamp(1.05rem, 2vw, 1.35rem); }

@media (max-width: 560px) {
  .brand__mark { height: 42px; }
  .is-stuck .brand__mark { height: 36px; }
  .brand__sub { letter-spacing: 0.18em; }
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__link {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream-2);
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--cream); } }
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__link[aria-current="page"] { color: var(--amber); }

.nav__cta { margin-left: 0.5rem; }

/* Burger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
/* All three bars are centred on the same point and only rotate to form the X.
   Using a transform list like translateY() rotate() would rotate the
   translation axis too, which is what turned the close icon into a chevron. */
.burger { position: relative; }
.burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 20px;
  height: 1.8px;
  margin: 0;
  background: var(--cream);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger span:nth-child(1) { transform: translate(-50%, -50%) translateY(-7px); }
.burger span:nth-child(3) { transform: translate(-50%, -50%) translateY(7px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__cta { display: none; }
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
    background: var(--navy-800);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.38s var(--ease), visibility 0.38s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  /* The drawer spans the full height and would otherwise sit on top of the
     burger, leaving no way to close it. Lift the burger clear. */
  .nav { z-index: 1; }
  .burger { position: relative; z-index: 2; }
  .nav__link {
    padding: 1.05rem 0;
    font-size: var(--t-lg);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link::after { display: none; }
  .nav__mobile-cta { margin-top: 1.75rem; display: grid; gap: 0.75rem; }
}
@media (min-width: 941px) { .nav__mobile-cta { display: none; } }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 8, 18, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.scrim.is-on { opacity: 1; visibility: visible; }

/* ---------- 8. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(92svh, 900px);
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The hero file is a 3:2 crop of the original, so nearly the whole carport
     is in frame; this just nudges the roofline clear of the header. */
  object-position: center 58%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Deliberately light. The photo is the point; the scrim only needs to buy
     contrast behind the headline, not turn the image into a navy block. */
  background:
    linear-gradient(180deg, rgba(4, 11, 23, 0.5) 0%, rgba(4, 11, 23, 0.08) 45%, rgba(4, 11, 23, 0.72) 100%),
    linear-gradient(96deg, rgba(4, 11, 23, 0.78) 0%, rgba(4, 11, 23, 0.42) 46%, rgba(4, 11, 23, 0.04) 82%);
}
.hero__inner { position: relative; max-width: 60rem; }
.hero h1 { margin-bottom: 0.2em; }
/* The tagline used to sit inside the h1 as a script em, where it collided with
   the descenders and competed with the display type. It is now its own line,
   so the two voices are clearly ranked. */
.hero__script {
  margin: 0 0 1.75rem;
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.15;
  color: var(--amber);
}
.hero__lead { max-width: 46ch; color: var(--cream-2); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* Trust strip */
.trust {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.trust__item { display: flex; flex-direction: column; gap: 0.35rem; }
.trust__num {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1rem + 1.1vw, 1.85rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.trust__label {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
  line-height: 1.45;
}
@media (max-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; } }

/* Page hero (inner pages) */
.phero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
        linear-gradient(180deg, var(--navy-700), var(--navy));
}
.phero__inner { max-width: 54rem; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-4);
  margin-bottom: 1.25rem;
}
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--amber); } }
.crumbs span[aria-current] { color: var(--cream-3); }

/* ---------- 9. Section headers ------------------------------------------- */
.sec-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p:not(.eyebrow) { margin-top: 1.1rem; color: var(--cream-3); font-size: var(--t-lg); }
.sec-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sec-head--row > div { max-width: 46rem; }

/* ---------- 10. Cards ---------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--navy-700);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--timber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-5px); border-color: var(--line); background: var(--navy-600); box-shadow: var(--shadow); } }
@media (hover: hover) and (pointer: fine) { .card:hover::after { transform: scaleX(1); } }

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(221, 131, 1, 0.24);
  margin-bottom: 1.35rem;
  flex: none;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--t-lg); margin-bottom: 0.5rem; }
.card p { color: var(--cream-3); font-size: var(--t-sm); }

.card__list { margin-top: 1.15rem; display: grid; gap: 0.5rem; }
.card__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 560px) { .card__list--2 { grid-template-columns: 1fr; } }
.card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--t-sm);
  color: var(--cream-3);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--amber);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* Service card with image */
.card--media { padding: 0; }
.card--media .card__body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media img { transform: scale(1.06); } }
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 11, 23, 0.85));
}

/* ---------- 11. Split feature ------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
/* Columns of very different heights (the quote form beside the long service-area
   list) start level at the top instead of centring against each other. */
.split--top { align-items: start; }
/* Two photos stacked beside a long block of copy */
.split__stack { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 4 / 5; }
.split__media--wide { aspect-ratio: 4 / 3; }
.split__body > * + * { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* Offset accent frame behind a media block */
.framed { position: relative; }
.framed::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  z-index: -1;
}
@media (max-width: 900px) { .framed::before { inset: 14px -10px -14px 10px; } }

/* ---------- 12. Feature list / values ----------------------------------- */
/* Card rendered as a link */
.card--link { color: inherit; }
@media (hover: hover) and (pointer: fine) { .card--link:hover h3 { color: var(--amber); } }

/* Inline row of credential chips */
.creds { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.creds--center { justify-content: center; }
.creds__item {
  padding: 0.5em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--navy-700);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream-2);
}

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.value {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: clamp(1.35rem, 2.6vw, 1.9rem) clamp(1.35rem, 2.6vw, 2.1rem);
  background: var(--navy-700);
  transition: background-color 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .value:hover { background: var(--navy-600); } }
.value__icon { color: var(--amber); margin-top: 0.15rem; }
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: var(--t-lg); margin-bottom: 0.35rem; }
.value p { color: var(--cream-3); font-size: var(--t-sm); }

@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* ---------- 13. Process steps ------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
  opacity: 0.75;
}
.step::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent 65%);
  opacity: 0.45;
}
.step h3 { font-size: var(--t-lg); margin-bottom: 0.45rem; }
.step p { color: var(--cream-3); font-size: var(--t-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 14. Gallery -------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.filter {
  padding: 0.55em 1.15em;
    border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--cream-3);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease), scale 0.16s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .filter:hover { color: var(--cream); border-color: var(--amber); } }
.filter[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--navy-900); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.7rem, 1.5vw, 1.15rem); }
.shot {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--navy-600);
  border-radius: var(--r);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 11, 23, 0.92));
  opacity: 0.85;
  transition: opacity 0.4s var(--ease);
}
.shot__cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(0.9rem, 2vw, 1.35rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transform: translateY(6px);
  transition: transform 0.4s var(--ease);
}
.shot__cap span {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: left;
}
.shot__cap svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
@media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.07); } }
@media (hover: hover) and (pointer: fine) { .shot:hover::after { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .shot:hover .shot__cap { transform: translateY(0); } }
.shot.is-hidden { display: none; }

/* Feature tiles of differing size on the projects page */
.gallery--feature { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery--feature .shot { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery--feature .shot--wide { grid-column: span 3; aspect-ratio: 16 / 9; }
.gallery--feature .shot--tall { grid-column: span 3; aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--feature .shot,
  .gallery--feature .shot--wide,
  .gallery--feature .shot--tall { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* ---------- 15. Lightbox ------------------------------------------------- */
/* Visibility rather than display, so the transition can run in both
   directions without the controls snapping out of hit-testing early. */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 8, 18, 0.95);
  backdrop-filter: blur(8px);
  touch-action: pan-y pinch-zoom;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lb.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.lb__fig { max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 1rem; }
.lb__img {
  max-width: 100%;
  max-height: 76svh;
  width: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.lb__cap { text-align: center; color: var(--cream-3); font-size: var(--t-sm); }
.lb__cap strong { display: block; color: var(--cream); font-family: var(--f-display); font-size: var(--t-lg); font-weight: 600; }
.lb__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7, 15, 30, 0.9);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), scale 0.16s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .lb__btn:hover { background: var(--amber); color: var(--navy-900); border-color: var(--amber); } }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb__prev { left: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; top: clamp(1.25rem, 3vw, 2.25rem); left: 50%; transform: translateX(-50%); font-size: var(--t-xs); letter-spacing: 0.18em; color: var(--cream-4); }

/* ---------- 16. Team ----------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
/* Third card: Jar Jar spans the full row so the two people stay side by side
   on top and the dog reads as a full-width addition rather than a third
   column. */
.team > .person--j { grid-column: 1 / -1; }
.team > .person--j .person__media { aspect-ratio: 21 / 9; }
@media (min-width: 721px) {
  .team > .person--j {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
  }
  .team > .person--j .person__media { aspect-ratio: auto; height: 100%; }
}
.person {
  display: flex;
  flex-direction: column;
  background: var(--navy-700);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .person:hover { transform: translateY(-4px); border-color: var(--line); } }
/* Portrait, to suit the crew portraits rather than cropping heads off. */
.person__media { position: relative; aspect-ratio: 4 / 5; background: var(--navy-600); }
.person__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.person__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: rgba(4, 11, 23, 0.86);
  border: 1px solid rgba(221, 131, 1, 0.35);
  color: var(--amber);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.person__body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.person__name { font-family: var(--f-display); font-size: var(--t-xl); color: var(--cream); font-weight: 600; }
.person__role { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.person p { color: var(--cream-3); font-size: var(--t-sm); }
.person__creds { margin-top: auto; padding-top: 1.15rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  padding: 0.35em 0.75em;
  border-radius: var(--r-sm);
  background: var(--navy-800);
  border: 1px solid var(--line-soft);
  font-size: var(--t-xs);
  color: var(--cream-3);
}
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }

/* ---------- 17. Credentials / awards ------------------------------------ */
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.award {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
  text-align: center;
}
.award__icon { color: var(--amber); margin-bottom: 1rem; }
.award__icon svg { width: 34px; height: 34px; margin-inline: auto; }
.award h3 { font-size: var(--t-lg); margin-bottom: 0.4rem; }
.award p { color: var(--cream-3); font-size: var(--t-sm); }
@media (max-width: 760px) { .awards { grid-template-columns: 1fr; } }

/* ---------- 18. Testimonials -------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--navy-700);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.quote__stars { color: var(--amber); display: flex; gap: 3px; }
.quote__stars svg { width: 17px; height: 17px; }
.quote blockquote { font-size: var(--t-base); color: var(--cream-2); line-height: 1.65; }
.quote figcaption { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); font-size: var(--t-sm); }
.quote cite { display: block; font-style: normal; font-weight: 600; color: var(--cream); }
.quote small { color: var(--cream-4); font-size: var(--t-xs); letter-spacing: 0.06em; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- 19. Service area -------------------------------------------- */
.area { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area.center { justify-content: center; } /* text-align doesn't centre flex items */
.area__pill {
  padding: 0.6em 1.15em;
    border: 1px solid var(--line);
  border-radius: 6px;
  font-size: var(--t-sm);
  color: var(--cream-2);
  background: var(--navy-700);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease), scale 0.16s var(--ease);
}
a.area__pill { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 600; }
a.area__pill::after { content: "\2192"; color: var(--amber); transition: transform 0.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .area__pill:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); } }
@media (hover: hover) and (pointer: fine) { a.area__pill:hover::after { transform: translateX(3px); } }
.area__hint { margin: 0.5rem 0 1.25rem; font-size: var(--t-sm); color: var(--cream-3); }
/* The service area is long, so it is split into labelled groups of smaller
   buttons. The arrow is dropped here: fifty of them is noise. */
.areas { display: grid; gap: 1.75rem; }
.areas__label {
  margin-bottom: 0.8rem;
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.areas .area { gap: 0.45rem; }
.areas .area__pill { padding: 0.5em 0.85em; }
.areas a.area__pill::after { content: none; }
/* The suburb list is long, so it shows its first twelve and opens the rest on
   demand at every width. Only when the script is running (.js), so nothing is
   ever stuck hidden. */
.areas__more {
  display: none;
  margin-top: 0.9rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid rgba(221, 131, 1, 0.45);
  background: none;
  color: var(--amber);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.js .areas__group--long .area:not(.is-open) .area__pill:nth-child(n + 13) { display: none; }
.js .areas__more { display: block; }
.js .area.center + .areas__more { margin-inline: auto; }
.areas__more:active { opacity: 0.7; }
@media (max-width: 700px) {
  .js .areas__group--long .area:not(.is-open) .area__pill:nth-child(n + 10) { display: none; }
}
.area__pill--base { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); font-weight: 600; }

/* ---------- 20. Forms ---------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.field label .req { color: var(--amber); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--cream);
  font-size: 1rem; /* 16px minimum: anything smaller makes iOS zoom the page on focus */
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--navy-700);
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
/* The browser's own dropdown arrow sits hard against the right edge. Draw our
   own instead, inset to line up with the field's padding. Listed for :focus
   too, because the focus rule above resets the background. */
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.9rem; cursor: pointer; }
.field select,
.field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd8301' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.15rem;
}
.field--error input, .field--error textarea { border-color: #e0564a; }
.field__err { font-size: var(--t-xs); color: #f0837a; display: none; }
.field--error .field__err { display: block; }

/* Photo upload. The plain file input works on its own; when main.js can
   shrink photos it adds .is-enhanced, hides the input and shows the dashed
   "Add photos" button and the thumbnails instead. */
.field__opt { font-weight: 400; letter-spacing: 0.04em; color: var(--cream-4); }
.field__hint { font-size: var(--t-xs); color: var(--cream-4); }
.field__hint:empty { display: none; }
.field input[type="file"] { padding: 0.7rem 1rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.5em 0.9em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navy-600);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.photos__add { display: none; }
.field--photos.is-enhanced { position: relative; }
.field--photos.is-enhanced input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
}
.field--photos.is-enhanced .photos__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05rem 1rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  background: var(--navy-800);
  color: var(--cream);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.photos__add svg { width: 1.25em; height: 1.25em; color: var(--amber); flex: none; }
@media (hover: hover) and (pointer: fine) { .field--photos.is-enhanced .photos__add:hover { border-color: var(--amber); color: var(--amber); } }
.field--photos.is-enhanced input[type="file"]:focus-visible + .photos__add { outline: 2px solid var(--amber); outline-offset: 3px; }
.field--photos.is-enhanced .photos__add:active { opacity: 0.75; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.6rem; }
.photos:empty { display: none; }
.photos__item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy-600);
}
.photos__item img { width: 100%; height: 100%; object-fit: cover; }
.photos__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(4, 11, 23, 0.86);
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.photos__remove:active { scale: 0.92; }
.btn:disabled { opacity: 0.65; cursor: default; }

.form__note { font-size: var(--t-xs); color: var(--cream-4); }
.form__status {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  font-size: var(--t-sm);
}
.form__status.is-on { display: block; }
.form__status.ok { background: rgba(96, 176, 100, 0.12); border-color: rgba(96, 176, 100, 0.4); color: #b7e0b5; }
.form__status.bad { background: rgba(224, 86, 74, 0.12); border-color: rgba(224, 86, 74, 0.4); color: #f0a49d; }

/* Honeypot. Off-screen rather than display:none, because some bots skip
   hidden inputs entirely. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 21. Contact tiles ------------------------------------------- */
.ctiles { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.ctile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: clamp(1.35rem, 2.8vw, 1.9rem);
  background: var(--navy-700);
  align-items: center;
  transition: background-color 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .ctile:hover { background: var(--navy-600); } }
.ctile__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid rgba(221, 131, 1, 0.24);
  color: var(--amber);
}
.ctile__icon svg { width: 22px; height: 22px; }
.ctile h3 { font-size: var(--t-base); font-weight: 600; margin-bottom: 0.2rem; }
.ctile a, .ctile p { font-size: var(--t-sm); color: var(--cream-3); }
@media (hover: hover) and (pointer: fine) { .ctile a:hover { color: var(--amber); } }

/* ---------- 22. FAQ ------------------------------------------------------ */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--navy-700);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.faq details[open] { border-color: var(--line); background: var(--navy-600); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem clamp(1.15rem, 2.4vw, 1.5rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 1.8px solid var(--amber);
  border-bottom: 1.8px solid var(--amber);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--amber); } }
.faq__body {
  padding: 0 clamp(1.15rem, 2.4vw, 1.5rem) 1.3rem;
  color: var(--cream-3);
  font-size: var(--t-sm);
  max-width: 68ch;
}

/* ---------- 23. CTA band ------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
        var(--navy-800);
}
.cta__inner { max-width: 44rem; margin-inline: auto; }
.cta p { margin: 1.25rem auto 2rem; color: var(--cream-3); font-size: var(--t-lg); max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ---------- 24. Footer --------------------------------------------------- */
.footer { background: var(--navy-900); border-top: 1px solid var(--line-soft); padding-top: clamp(3rem, 7vw, 5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
/* The full lockup reads well in the footer, so give it room. */
.footer__brand img { height: clamp(150px, 17vw, 190px); width: auto; }
.footer__meta {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-4);
  margin-top: -0.35rem;
}

/* Big script tagline banded above the footer columns. The logo artwork
   already carries the tagline in script, so this repeats it at a size
   where it actually reads. */
.footer__markline {
  text-align: center;
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
  border-bottom: 1px solid var(--line-soft);
}
.footer__markline .script {
  display: inline-block;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  color: var(--amber);
}
.footer__blurb { color: var(--cream-3); font-size: var(--t-sm); max-width: 34ch; }
.footer h4 {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.15rem;
}
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { display: inline-block; color: var(--cream-3); font-size: var(--t-sm); transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--amber); transform: translateX(4px); } }
.footer__contact { display: grid; gap: 0.85rem; }
.footer__contact a, .footer__contact p { display: flex; gap: 0.7rem; color: var(--cream-3); font-size: var(--t-sm); }
.footer__contact svg { width: 17px; height: 17px; color: var(--amber); flex: none; margin-top: 0.28em; }
@media (hover: hover) and (pointer: fine) { .footer__contact a:hover { color: var(--amber); } }

.social { display: flex; gap: 0.6rem; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream-3);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .social a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy-900); transform: translateY(-2px); } }
.social svg { width: 19px; height: 19px; }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-xs);
  color: var(--cream-4);
}
@media (hover: hover) and (pointer: fine) { .footer__bar a:hover { color: var(--amber); } }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { justify-content: center; text-align: center; }
}

/* ---------- 25. Scroll reveal ------------------------------------------- */
/* Gated behind .js (set by main.js on parse) so that if scripting is blocked
   or fails, every section simply renders visible instead of staying at 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Once the page has settled, stop hiding anything that never intersected. */
.js.is-settled [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none !important; }
}

/* ---------- 26. Utilities ------------------------------------------------ */
.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: 300;
  padding: 0.8rem 1.25rem;
  background: var(--amber);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: 0 0 var(--r) var(--r);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.25rem; }
.center { text-align: center; }
.muted { color: var(--cream-3); }
.maxw-60 { max-width: 60ch; }

/* ---------- 27. Touch & press feedback ----------------------------------- */
/* Every :hover rule in these stylesheets sits inside
   (hover: hover) and (pointer: fine), so nothing stays "hovered" after a tap
   on a phone. Touch gets its feedback from :active instead, which is why the
   browser's grey tap flash is switched off here. */
html { -webkit-tap-highlight-color: transparent; color-scheme: dark; }
a, button, summary, label { touch-action: manipulation; }
button, .btn, .filter, .callbar__btn, .area__pill { -webkit-user-select: none; user-select: none; }

.filter:active, .lb__btn:active, .burger:active, a.area__pill:active,
.callbar__btn:active, .social a:active { scale: 0.97; }
.burger, .callbar__btn { transition: scale 0.16s var(--ease); }
.card--link:active, .masonry__item:active, .shot:active, a.ctile:active { scale: 0.985; }
.nav__link:active, .tlink:active, .topbar a:active, .crumbs a:active,
.footer__links a:active, .footer__contact a:active, .footer__bar a:active,
.faq summary:active { opacity: 0.7; }
