/* ============================================================
   Ezy Done — ezydone.au
   ============================================================ */

:root {
  --paper: #f3efe6;
  --ink: #1e1c16;
  --muted: #5c574c;
  --vis: #d6e600;
  --vis-deep: #c4d400;
  --terracotta: #c43c2c;
  --line: #d9d2c4;
  --cream: #f3efe6;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 100px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 40;
  --z-mobile-cta: 45;
  --z-grain: 50;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-weight: 800;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vis);
  color: var(--ink);
  padding: 0.65em 1em;
  z-index: 60;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 52px;
  padding: 0.7em 1.15em 0.7em 1.35em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  border: 2px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}
.btn-primary {
  background: var(--vis);
  color: var(--ink);
}
.btn-primary:hover { background: var(--vis-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
.btn-nav {
  min-height: 42px;
  padding: 0.4em 0.7em 0.4em 1em;
  font-size: 0.92rem;
}
.btn-arrow {
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--vis);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translate(2px, -1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 3px solid var(--vis);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 5.5rem;
  width: auto;
  transition: opacity 0.2s var(--ease);
}
.brand:hover .brand-logo {
  opacity: 0.78;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 700;
}
.main-nav > a:not(.btn) {
  font-size: 0.98rem;
}
.main-nav > a:not(.btn):hover { color: var(--terracotta); }
.header-phone { font-variant-numeric: tabular-nums; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  color: var(--paper);
  border-bottom: 3px solid var(--vis);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 58%;
  transform-origin: 50% 60%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 28, 22, 0.78) 0%, rgba(30, 28, 22, 0.42) 34%, rgba(30, 28, 22, 0.1) 58%, transparent 78%),
    linear-gradient(180deg, rgba(30, 28, 22, 0.18) 0%, transparent 28%, transparent 72%, rgba(30, 28, 22, 0.22) 100%);
}
.hero .container {
  width: 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin-right: auto;
  text-align: left;
}
.hero-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--vis);
  margin-bottom: 0.7rem;
}
.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  max-width: 12ch;
  text-shadow: 0 2px 28px rgba(30, 28, 22, 0.5);
}
.hero-sub {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: 1.12rem;
  color: color-mix(in srgb, var(--paper) 90%, var(--ink));
  text-shadow: 0 1px 16px rgba(30, 28, 22, 0.55);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

/* ---------- Sections ---------- */
.section,
.how,
.statement,
.quote {
  scroll-margin-top: calc(var(--header-h) + 10px);
}
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.section-head {
  max-width: 22rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--terracotta);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}
.section-head h2,
.gallery-head h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
}
.section-head p,
.gallery-head p {
  margin-top: 0.7rem;
  color: var(--muted);
  max-width: 38ch;
}

/* ---------- Services ---------- */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, 22vw);
  gap: 0.55rem;
}
.job-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  color: var(--paper);
}
.job-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.job-tile:hover img { transform: scale(1.05); }
.job-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(30, 28, 22, 0.78) 100%);
}
.job-tile h3 {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  z-index: 1;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
}
.job-tile--tall {
  grid-row: span 2;
}
.job-tile--wide {
  grid-column: span 2;
}
.services-note {
  margin-top: 1.6rem;
  color: var(--muted);
  max-width: 52ch;
}
.services {
  padding-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
}

/* ---------- Statement ---------- */
.statement {
  padding: clamp(2.6rem, 6vw, 4.8rem) 0 clamp(3rem, 6.5vw, 5.2rem);
}
.statement-inner {
  max-width: none;
  text-align: center;
  font-size: clamp(1.85rem, 4.4vw, 3.6rem);
  text-wrap: balance;
}

/* ---------- How ---------- */
.how {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.how-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1.8rem;
}
.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.how-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 0.5rem 1.2rem 0;
  text-align: center;
}
.how-row li + li {
  border-left: 2px solid var(--terracotta);
}
.how-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 12vw, 9.5rem);
  line-height: 0.8;
  color: var(--vis);
  letter-spacing: -0.06em;
}
.how-row p {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  padding: 0.7em 1.1em;
  width: 100%;
  max-width: 16rem;
}

/* ---------- Gallery / before-after collage ---------- */
.gallery {
  padding-top: clamp(2.2rem, 4.5vw, 3.4rem);
  padding-bottom: clamp(3.4rem, 7vw, 5.6rem);
}
.gallery-head {
  max-width: 28rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

@property --split {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.ba-grid {
  column-count: 1;
  column-gap: 0.6rem;
}
.ba {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 0.6rem;
  color: var(--paper);
}
.ba h3 {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  z-index: 3;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  pointer-events: none;
  text-shadow: 0 1px 10px color-mix(in srgb, var(--ink) 60%, transparent);
}
.ba::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 28, 22, 0.62) 100%);
  pointer-events: none;
  z-index: 2;
}

.ba-frame {
  --split: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 88%, #3a3428);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.ba--portrait .ba-frame {
  aspect-ratio: 3 / 4;
}
.ba-frame--intro {
  transition: --split 0.9s var(--ease-out);
}
.ba-frame--dragging {
  cursor: grabbing;
}
.ba-frame--dragging .ba-before {
  will-change: clip-path;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  overflow: visible;
  pointer-events: none;
}
.ba-img--portrait {
  object-position: 50% 28%;
}
.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.ba-hint {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  color: var(--paper);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 4;
  width: 3px;
  background: var(--vis);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 45%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--vis);
  color: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 32%, transparent), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.ba-frame--dragging .ba-knob {
  transform: translate(-50%, -50%) scale(0.94);
}

@media (min-width: 700px) {
  .ba-grid { column-count: 2; }
}

@media (min-width: 1100px) {
  .ba-grid { column-count: 3; }
}

/* ---------- Quote ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "intro panel"
    "map panel";
  min-height: 36rem;
}
.quote-intro {
  grid-area: intro;
  background: var(--ink);
  color: var(--paper);
}
.quote-intro-copy {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.4rem, 5vw, 4.5rem) 1.5rem;
  display: flex;
  flex-direction: column;
}
.quote-intro h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
  max-width: 10ch;
}
.quote-intro-copy p {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--paper) 78%, var(--ink));
}
.quote-map {
  grid-area: map;
  position: relative;
  margin: 0;
  background: var(--ink);
  padding: 0;
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: 20rem;
  overflow: hidden;
}
.quote-map-frame,
.quote-map figcaption {
  grid-area: 1 / 1;
}
.quote-map-frame {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  pointer-events: none;
}
.quote-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 18%, transparent) 0%, transparent 28%, transparent 55%, color-mix(in srgb, var(--ink) 22%, transparent) 100%);
  pointer-events: none;
}
.quote-map-frame iframe {
  position: absolute;
  inset: -88px -36px -110px -36px;
  width: calc(100% + 72px);
  height: calc(100% + 198px);
  max-width: none;
  border: 0;
  color-scheme: light;
  filter: grayscale(0.9) contrast(1.04) brightness(0.78);
  transition: filter 0.35s var(--ease);
}
.quote-map figcaption {
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 0;
}
.quote-map-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  color: var(--ink);
}
.quote-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--vis);
  padding: 0.7em max(1em, env(safe-area-inset-right)) 0.7em max(1em, env(safe-area-inset-left));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.quote-map-place,
.quote-map-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 1.25em;
}
.quote-map-go {
  font-size: 0.82rem;
  letter-spacing: 0;
  flex-shrink: 0;
}
.quote-map-go svg {
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) {
  .quote-map:hover .quote-map-frame iframe {
    filter: grayscale(0.55) contrast(1.05) brightness(0.9);
  }
  .quote-map-link:hover .quote-map-go svg {
    transform: translate(2px, -1px);
  }
}
.quote-phone {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--vis);
  letter-spacing: -0.03em;
}
.quote-mail {
  margin-top: 0.35rem;
  color: var(--vis);
  font-size: 1.05rem;
}
.quote-mail:hover,
.quote-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.quote-panel {
  grid-area: panel;
  background: var(--paper);
  padding: clamp(2.4rem, 5vw, 4.2rem) clamp(1.3rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-form[hidden],
.quote-done[hidden] {
  display: none;
}
.quote-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.quote-done-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--terracotta);
}
.quote-done h3 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  text-transform: uppercase;
  outline: none;
}
.quote-done > p:not(.quote-done-kicker) {
  max-width: 28ch;
  font-size: 1.15rem;
  color: var(--muted);
}
.quote-done .btn {
  margin-top: 0.6rem;
}
.quote-done-again {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quote-done-again:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo {
    animation: hero-photo-in 1.15s var(--ease-out) both;
  }
  .hero-inner > * {
    animation: hero-copy-in 0.7s var(--ease-out) both;
  }
  .hero-kicker { animation-delay: 0.12s; }
  .hero h1 { animation-delay: 0.2s; }
  .hero-sub { animation-delay: 0.28s; }
  .hero-actions { animation-delay: 0.36s; }
  .quote-done:not([hidden]) {
    animation: quote-done-in 280ms var(--ease-out);
  }
}
@keyframes hero-photo-in {
  from { transform: scale(1.06); }
  to { transform: none; }
}
@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes quote-done-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.botcheck {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field label {
  font-size: 0.92rem;
  font-weight: 700;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: transparent;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 7.5rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: color-mix(in srgb, var(--vis) 12%, var(--paper));
}
.quote-form.was-validated .form-field input:invalid,
.quote-form.was-validated .form-field select:invalid,
.quote-form.was-validated .form-field textarea:invalid {
  border-color: var(--terracotta);
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 1.6rem 0 5.5rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.6rem;
}
.site-footer .brand-logo {
  height: 6.25rem;
  filter: brightness(0) invert(1);
}
.footer-inner > p {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: 0.95rem;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-left: auto;
  font-size: 0.92rem;
}
.footer-meta span + span,
.footer-meta a {
  position: relative;
}
.footer-copy {
  width: 100%;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
}

/* ---------- Mobile CTA ---------- */
.mobile-cta {
  display: none;
}
.mobile-cta[hidden] {
  display: none !important;
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.jobs-grid .reveal:nth-child(1),
.ba-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.jobs-grid .reveal:nth-child(2),
.ba-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.jobs-grid .reveal:nth-child(3),
.ba-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.jobs-grid .reveal:nth-child(4),
.ba-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.jobs-grid .reveal:nth-child(5),
.ba-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.jobs-grid .reveal:nth-child(6),
.ba-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.jobs-grid .reveal:nth-child(7),
.ba-grid .reveal:nth-child(7) { transition-delay: 0.35s; }
.jobs-grid .reveal:nth-child(8),
.ba-grid .reveal:nth-child(8) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-photo,
  .hero-inner > * {
    animation: none;
  }
  .job-tile img,
  .btn,
  .btn-arrow,
  .nav-toggle span,
  .ba-frame--intro,
  .quote-map-frame iframe,
  .quote-map-go svg {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, 38vw);
  }
  .job-tile--tall { grid-row: span 1; }
  .job-tile--wide { grid-column: span 2; }
  .quote-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "intro"
      "panel"
      "map";
    min-height: 0;
  }
  .quote-intro-copy {
    padding-bottom: clamp(2rem, 5vw, 2.8rem);
  }
  .quote-map {
    min-height: 0;
    height: 14.5rem;
    padding: 0;
  }
  .quote-map-frame {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  :root { --header-h: 88px; }
  .brand-logo { height: 4.6rem; }
  .site-footer .brand-logo { height: 5.2rem; }
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.4rem;
    gap: 1.4rem;
    transform: translateY(-0.6rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .main-nav a { font-size: 1.4rem; }
  .btn-nav { width: max-content; }

  .hero {
    min-height: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
  }
  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 571;
    object-fit: contain;
    object-position: center;
    animation: none;
  }
  .hero-shade {
    display: none;
  }
  .hero-inner {
    max-width: none;
    padding-top: 1.35rem;
    padding-bottom: 1.7rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    text-shadow: none;
  }
  .hero-sub {
    text-shadow: none;
  }

  .how-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .how-row li + li { border-left: 0; border-top: 2px solid var(--terracotta); padding-top: 1.4rem; }
  .how-num { font-size: 5.2rem; }

  .form-row { grid-template-columns: 1fr; }
  .quote-map {
    height: 13.75rem;
  }
  .quote-map-bar {
    padding: 0.75em 1.1rem;
    min-height: 48px;
    font-size: 0.95rem;
  }
  .quote-map-go {
    font-size: 0.85rem;
  }
  .ba-hint {
    font-size: 0.66rem;
    padding: 0.36em 0.65em;
    top: 0.55rem;
    right: 0.55rem;
  }
  .ba h3 {
    left: 0.7rem;
    bottom: 0.55rem;
  }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mobile-cta);
    background: var(--ink);
    border-top: 2px solid var(--vis);
  }
  .mobile-cta a {
    min-height: 56px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--paper);
  }
  .mobile-cta-quote {
    background: var(--vis);
    color: var(--ink) !important;
  }
  .site-footer { padding-bottom: 6.2rem; }
}

@media (max-width: 520px) {
  .jobs-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .job-tile--wide { grid-column: span 1; }
}
