/* ==========================================================================
   Stage in Style — Property Staging, Melbourne
   Design system derived from brand palette. No frameworks, no dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --ink:            #153243;
  --ink-90:         rgba(21, 50, 67, 0.90);
  --ink-70:         rgba(21, 50, 67, 0.70);
  --ink-55:         rgba(21, 50, 67, 0.72);  /* muted body — 5.3:1 */
  --ink-38:         rgba(21, 50, 67, 0.68);  /* subtle helper — 4.65:1 */
  --ink-line:       rgba(21, 50, 67, 0.32);  /* hairlines only, never text */
  --ink-14:         rgba(21, 50, 67, 0.14);
  --ink-07:         rgba(21, 50, 67, 0.07);

  --sage:           #838F87;
  --sage-deep:      #47705F;
  --sage-mist:      #DDE2DC;
  --sage-light:     #9AA79D;  /* on dark surfaces — 5.35:1 on ink */

  --blush:          #E59385;
  --blush-soft:     #F3D9D3;

  --paper:          #FBFAF8;
  --paper-warm:     #F4F1EC;
  --paper-grey:     #ECE9E9;
  --white:          #FFFFFF;

  /* Typography */
  --font-display:   'Cormorant Garamond', 'Times New Roman', serif;
  --font-script:    'Ephesis', 'Cormorant Garamond', cursive;
  --font-ui:        'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacious scale (density 3/10) */
  --space-2xs:  0.5rem;
  --space-xs:   0.875rem;
  --space-sm:   1.5rem;
  --space-md:   2.5rem;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-2xl:  clamp(5.5rem, 11vw, 10rem);

  /* Corner radius — images and media only; buttons stay square by design */
  --radius-img:   14px;
  --radius-tile:  10px;

  --gutter:     clamp(1.5rem, 5vw, 5rem);
  --measure:    68ch;
  --container:  1320px;
  --container-narrow: 860px;

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   680ms;

  /* Layers */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 40;
  --z-nav: 100;
  --z-overlay: 500;
  --z-modal: 1000;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.35em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--sage-deep); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-modal);
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY PRIMITIVES
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 var(--space-sm);
  display: block;
}
.eyebrow--light { color: var(--sage-mist); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--sage-deep);
  line-height: 0.9;
  text-transform: none;
}

.h-display { font-size: clamp(2.75rem, 7.5vw, 6rem); }
.h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.h2 { font-size: clamp(2.125rem, 4.6vw, 3.75rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink-70);
}

.muted { color: var(--ink-55); }

.rule {
  width: 100%;
  height: 1px;
  background: var(--ink-14);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-2xl); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--paper { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lede { color: rgba(251, 250, 248, 0.72); }
.section--ink .rule { background: rgba(251, 250, 248, 0.16); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--paper); }

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 46ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

.grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; align-items: center; }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--split { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-fg: var(--white);
  --btn-bg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transition: color var(--dur-base) var(--ease-soft),
              border-color var(--dur-base) var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: -1;
}

.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--white); border-color: var(--sage-deep); }

.btn--ghost {
  --btn-fg: var(--ink);
  --btn-bg: transparent;
  border-color: var(--ink-line);
}
.btn--light {
  --btn-fg: var(--ink);
  --btn-bg: var(--paper);
  border-color: var(--paper);
}
.btn--outline-light {
  --btn-fg: var(--paper);
  --btn-bg: transparent;
  border-color: rgba(251, 250, 248, 0.4);
}
.btn--block { width: 100%; }

.btn__icon { width: 14px; height: 14px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }

/* Text link with animated underline */
.link-u {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 0.85rem;
}
.link-u::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0.6rem;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform var(--dur-base) var(--ease-out);
}
.link-u:hover::after { transform: scaleX(0); }

/* --------------------------------------------------------------------------
   6. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: clamp(1rem, 2vw, 1.75rem);
  padding-top: max(clamp(1rem, 2vw, 1.75rem), env(safe-area-inset-top));
  transition: background var(--dur-base) var(--ease-soft),
              padding var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.nav.is-stuck {
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding-block: 0.75rem;
  box-shadow: 0 1px 0 var(--ink-14);
}

/* Hero-overlap state: white nav text over the dark hero image */
.nav:not(.is-stuck):not(.is-open) .nav__link { color: rgba(251, 250, 248, 0.82); }
.nav:not(.is-stuck):not(.is-open) .nav__link:hover,
.nav:not(.is-stuck):not(.is-open) .nav__link.is-active { color: var(--paper); }
.nav:not(.is-stuck):not(.is-open) .nav__link::after { background: var(--blush); }
.nav:not(.is-stuck):not(.is-open) .nav__cta { --btn-fg: var(--ink); --btn-bg: var(--paper); border-color: var(--paper); }
.nav:not(.is-stuck):not(.is-open) .nav__toggle span,
.nav:not(.is-stuck):not(.is-open) .nav__toggle span::before,
.nav:not(.is-stuck):not(.is-open) .nav__toggle span::after { background: var(--paper); }

.nav__logo { display: block; flex: none; line-height: 0; }
.nav__logo-img {
  width: clamp(124px, 12vw, 158px);
  height: auto;
  display: block;
  transition: width var(--dur-base) var(--ease-soft);
}
.nav.is-stuck .nav__logo-img { width: clamp(110px, 10vw, 136px); }

/* The logo is a flat SVG file, so it can't be recoloured with CSS. Ship both
   colourways and swap which one is shown: white over the dark hero, ink once
   the nav is stuck or the mobile menu is open. */
.nav__logo-img--dark { display: none; }
.nav.is-stuck .nav__logo-img--light,
.nav.is-open  .nav__logo-img--light { display: none; }
.nav.is-stuck .nav__logo-img--dark,
.nav.is-open  .nav__logo-img--dark { display: block; }

.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }

.nav__link {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.75rem 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-70);
  transition: color var(--dur-fast) var(--ease-soft);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { padding: 0.75rem 1.6rem; min-height: 44px; font-size: 0.6875rem; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  margin-right: -12px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ink);
  position: relative;
  transition: background var(--dur-fast) var(--ease-soft);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px; height: 1px;
  background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }

.nav.is-open .nav__toggle span { background: transparent !important; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__toggle { display: flex; }

  /* The open menu is a full-screen opaque panel. Without this the panel paints
     over the logo and the close button — leaving no visible way to dismiss the
     menu on a touch device, where there is no Escape key. */
  .nav__logo,
  .nav__toggle { position: relative; z-index: 2; }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--paper);
    padding: var(--space-xl) var(--gutter);
    padding-top: max(var(--space-xl), env(safe-area-inset-top));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-soft),
                transform var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: 0.875rem; letter-spacing: 0.3em; padding: 0.75rem 0; }
  .nav__links .btn { margin-top: var(--space-sm); }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 9vw, 7rem);
  padding-top: 30vh;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__poster {
  transform: scale(1.08);
  animation: kenburns 26s var(--ease-soft) infinite alternate;
}

/* Video sits above the still and cross-fades in once it can actually play,
   so there is never a black or empty frame. */
.hero__video {
  opacity: 0;
  transition: opacity 1200ms var(--ease-soft);
  pointer-events: none;
}
.hero__video.is-playing { opacity: 1; }
/* Once the video is up, stop animating the still underneath it — no point
   burning frames on something nobody can see. */
.hero__media.has-video .hero__poster { animation-play-state: paused; }
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(21,50,67,0.80) 0%,
    rgba(21,50,67,0.44) 42%,
    rgba(21,50,67,0.14) 72%,
    rgba(21,50,67,0.34) 100%);
}

.hero__inner { width: 100%; }

.hero__script {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--blush-soft);
  display: block;
  margin-bottom: -0.3em;
  margin-left: -0.06em;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 300;
  max-width: 15ch;
  color: var(--paper);
}

.hero__meta {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.hero__sub {
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  color: rgba(251, 250, 248, 0.86);
  max-width: 42ch;
  margin: 0;
  padding-right: clamp(1rem, 3vw, 3rem);
  border-right: 1px solid rgba(251, 250, 248, 0.24);
}

@media (max-width: 720px) {
  .hero__sub { border-right: 0; padding-right: 0; }
  .hero { padding-top: 22vh; }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(4rem, 9vw, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.7);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(251,250,248,0.7), rgba(251,250,248,0));
  animation: scrollpulse 2.4s var(--ease-soft) infinite;
  transform-origin: top center;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* --------------------------------------------------------------------------
   8. TRUST STRIP
   -------------------------------------------------------------------------- */
.trust {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
}

/* Infinite marquee.
   Two identical tracks sit side by side; the viewport slides by exactly one
   track width, so the seam is invisible and the loop never jumps.
   Direction: content travels LEFT -> RIGHT. Add .marquee--reverse on
   .trust__viewport to send it the other way. */
.trust__viewport {
  display: flex;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.trust__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-right: clamp(2rem, 5vw, 4.5rem);
  flex: 0 0 auto;
  min-width: 100%;
  justify-content: space-around;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee--reverse .trust__track { animation-direction: reverse; }

@keyframes marquee {
  from { transform: translate3d(-100%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Pause on hover and while a keyboard user is inside the strip */
.trust__viewport:hover .trust__track,
.trust__viewport:focus-within .trust__track { animation-play-state: paused; }

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.86);
}
.trust__item svg { width: 17px; height: 17px; flex: none; color: var(--blush); }

@media (max-width: 720px) {
  .trust__track { animation-duration: 26s; gap: 2rem; padding-right: 2rem; }
}

/* Reduced motion: stop the marquee and lay the items out as a static,
   fully readable list rather than freezing them mid-scroll. */
@media (prefers-reduced-motion: reduce) {
  .trust__viewport {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .trust__track { animation: none; }
  .trust__track--clone { display: none; }
  .trust__track {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem clamp(1.5rem, 4vw, 3rem);
    min-width: 0;
    padding-right: 0;
  }
  .trust__item { white-space: normal; }
}

/* --------------------------------------------------------------------------
   9. FIGURES / IMAGES
   -------------------------------------------------------------------------- */
.figure { position: relative; overflow: hidden; background: var(--paper-grey); border-radius: var(--radius-img); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 3 / 2; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__caption {
  margin-top: 0.875rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-38);
}

/* Offset stacked pair */
.figure-pair { position: relative; padding-bottom: 12%; }
.figure-pair__back { width: 82%; }
.figure-pair__front {
  width: 52%;
  position: absolute;
  right: 0;
  bottom: 0;
  border: 8px solid var(--paper);
  border-radius: calc(var(--radius-img) + 6px);
}
@media (max-width: 640px) {
  .figure-pair { padding-bottom: 8%; }
  .figure-pair__back { width: 100%; }
  .figure-pair__front { width: 46%; border-width: 5px; }
}

/* --------------------------------------------------------------------------
   10. SERVICES
   -------------------------------------------------------------------------- */
.svc { display: flex; flex-direction: column; height: 100%; }
.svc__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-grey); margin-bottom: var(--space-sm); border-radius: var(--radius-img); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.svc:hover .svc__media img { transform: scale(1.05); }

.svc__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 0.75rem;
}
.svc h3 { margin-bottom: 0.85rem; }
.svc p { font-size: 0.9375rem; color: var(--ink-70); }
.svc__foot { margin-top: auto; padding-top: var(--space-sm); }

/* --------------------------------------------------------------------------
   11. AGENTS PANEL
   -------------------------------------------------------------------------- */
.agents__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(251, 250, 248, 0.16);
  border: 1px solid rgba(251, 250, 248, 0.16);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.agents__cell {
  background: var(--ink);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.agents__cell h4 { margin-bottom: 0.65rem; color: var(--paper); }
.agents__cell p { font-size: 0.9375rem; color: rgba(251, 250, 248, 0.68); margin: 0; }
.agents__cell svg { width: 22px; height: 22px; color: var(--blush); margin-bottom: 1.15rem; }

@media (max-width: 760px) { .agents__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   12. PROCESS
   -------------------------------------------------------------------------- */
.process__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--ink-14);
  align-items: start;
}
.process__row:last-child { border-bottom: 1px solid var(--ink-14); }

.process__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--sage-deep);
  font-weight: 300;
}
.process__body h3 { margin-bottom: 0.6rem; }
.process__body p { color: var(--ink-70); font-size: 0.9375rem; margin: 0; }

@media (max-width: 620px) {
  .process__row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* --------------------------------------------------------------------------
   13. GALLERY
   -------------------------------------------------------------------------- */
.gal__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gal__filter {
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-55);
  border: 1px solid var(--ink-14);
  transition: color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              background var(--dur-fast) var(--ease-soft);
}
.gal__filter:hover { color: var(--ink); border-color: var(--ink-line); }
.gal__filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.gal__item {
  position: relative;
  overflow: hidden;
  background: var(--paper-grey);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-tile);
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gal__item:hover img { transform: scale(1.06); }

/* Optional feature tile: spans the full row. Every image is 4:5 by default so
   the two columns stay in step; a wide tile deliberately breaks that rhythm. */
.gal__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.gal__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(to top, rgba(21,50,67,0.86) 0%, rgba(21,50,67,0.22) 55%, transparent 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-soft);
  text-align: left;
}
.gal__item:hover .gal__overlay,
.gal__item:focus-visible .gal__overlay { opacity: 1; }

.gal__suburb {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--paper);
  line-height: 1.2;
}
.gal__type {
  font-size: 0.5625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blush-soft);
  margin-top: 0.4rem;
}

.gal__item.is-hidden { display: none; }

/* Empty-state placeholder tile */
.gal__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: var(--space-md);
  border: 1px dashed var(--ink-14);
  border-radius: var(--radius-tile);
  background: var(--paper-warm);
  aspect-ratio: 4 / 5;
  color: var(--ink-38);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 2;
}
.gal__placeholder svg { width: 26px; height: 26px; color: var(--ink-14); }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(21, 50, 67, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-soft), visibility var(--dur-base);
}
.lb.is-open { opacity: 1; visibility: visible; }

/* .lb sets display:flex, which beats the UA stylesheet's [hidden]{display:none}.
   Without this the hidden attribute does nothing and a stale overlay can sit on
   top of the page swallowing clicks. */
.lb[hidden] { display: none; }

.lb__figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  transform: scale(0.96);
  transition: transform var(--dur-slow) var(--ease-out);
}
.lb.is-open .lb__figure { transform: scale(1); }
.lb__figure img { max-height: 78vh; width: auto; margin-inline: auto; object-fit: contain; border-radius: var(--radius-img); }

.lb__cap {
  text-align: center;
  color: rgba(251, 250, 248, 0.7);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lb__btn {
  position: absolute;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  border: 1px solid rgba(251, 250, 248, 0.25);
  transition: background var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.lb__btn:hover { background: rgba(251, 250, 248, 0.12); border-color: rgba(251,250,248,0.5); }
.lb__btn svg { width: 18px; height: 18px; }
.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%); }

@media (max-width: 640px) {
  .lb__prev { left: 0.5rem; }
  .lb__next { right: 0.5rem; }
  .lb__figure img { max-height: 64vh; }
}

/* --------------------------------------------------------------------------
   14. TESTIMONIALS
   -------------------------------------------------------------------------- */
/* ---- Auto-advancing review carousel ---- */
.revs { position: relative; }

.revs__track {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* hide the scrollbar without disabling scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.revs__track::-webkit-scrollbar { display: none; }
.revs__track:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 6px; }

.revs__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.revs__slide .quote {
  max-width: 62ch;
  border-top: 0;
  padding-top: 0;
  text-align: center;
  align-items: center;
}
.revs__slide .quote__stars { justify-content: center; }
.revs__slide blockquote {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.5;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .revs__track { scroll-behavior: auto; }
}

.revs__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.revs__btn {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-line);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft);
}
.revs__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.revs__btn svg { width: 15px; height: 15px; }

/* Play/pause swaps which glyph is shown */
.revs__btn .revs__iplay { display: none; }
.revs__btn.is-paused .revs__ipause { display: none; }
.revs__btn.is-paused .revs__iplay { display: block; }

.revs__dots { display: flex; align-items: center; gap: 0.4rem; margin-inline: 0.6rem; }
.revs__dot {
  width: 32px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.revs__dot::before {
  content: '';
  width: 100%; height: 2px;
  background: var(--ink-14);
  transition: background var(--dur-base) var(--ease-soft);
}
.revs__dot[aria-selected="true"]::before { background: var(--sage-deep); }

.quote {
  border-top: 1px solid var(--ink-14);
  padding-top: var(--space-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote__stars { display: flex; gap: 3px; margin-bottom: var(--space-sm); }
.quote__stars svg { width: 13px; height: 13px; color: var(--blush); }
.quote blockquote {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-90);
  flex: 1;
}
.quote__by {
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* --------------------------------------------------------------------------
   15. MULTI-STEP FORM
   -------------------------------------------------------------------------- */
.brief {
  background: var(--paper);
  border: 1px solid var(--ink-14);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.brief__progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ink-07);
}
.brief__bar {
  height: 100%;
  width: 0%;
  background: var(--sage-deep);
  transition: width var(--dur-slow) var(--ease-out);
}

.brief__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-sm);
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-38);
}

.step { display: none; }
.step.is-active { display: block; animation: stepIn var(--dur-slow) var(--ease-out) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.step__q {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}
.step__help { font-size: 0.9375rem; color: var(--ink-55); margin-bottom: var(--space-sm); }

/* Choice cards */
.choices { display: grid; gap: 0.75rem; margin-bottom: var(--space-sm); }
.choices--2 { grid-template-columns: repeat(2, 1fr); }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .choices--2, .choices--3 { grid-template-columns: 1fr; } }

.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice__box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 68px;
  justify-content: center;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--ink-14);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-soft),
              background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft);
}
.choice:hover .choice__box { border-color: var(--sage); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.choice input:checked + .choice__box {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.choice input:checked + .choice__box .choice__hint { color: rgba(251,250,248,0.62); }
.choice__label { font-size: 0.875rem; letter-spacing: 0.06em; }
.choice__hint { font-size: 0.75rem; color: var(--ink-38); line-height: 1.5; }

/* Fields */
.field { margin-bottom: var(--space-sm); }
.field__label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.6rem;
}
.field__req { color: var(--blush); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink-14);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.65; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23153243' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 3rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(80, 127, 112, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-38); }

.field__help { font-size: 0.75rem; color: var(--ink-38); margin-top: 0.5rem; line-height: 1.6; }

.field__error {
  display: none;
  font-size: 0.75rem;
  color: #A63D33;
  margin-top: 0.5rem;
  align-items: center;
  gap: 0.4rem;
}
.field__error svg { width: 13px; height: 13px; flex: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #A63D33; }
.field.has-error .field__error { display: flex; }

.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* Nav buttons */
.brief__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--ink-14);
}
.brief__back {
  min-height: 44px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color var(--dur-fast) var(--ease-soft);
}
.brief__back:hover { color: var(--ink); }
.brief__back svg { width: 14px; height: 14px; }
.brief__back.is-hidden { visibility: hidden; }

/* Summary review */
.summary { border-top: 1px solid var(--ink-14); margin-bottom: var(--space-sm); }
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ink-07);
  font-size: 0.875rem;
}
.summary__k { color: var(--ink-38); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.625rem; padding-top: 4px; flex: none; }
.summary__v { text-align: right; color: var(--ink); }

/* Success */
.brief__done { display: none; text-align: center; padding-block: var(--space-md); }
.brief.is-done .brief__steps,
.brief.is-done .brief__nav,
.brief.is-done .brief__meta { display: none; }
.brief.is-done .brief__done { display: block; animation: stepIn var(--dur-slow) var(--ease-out) both; }
.brief__tick {
  width: 62px; height: 62px;
  margin: 0 auto var(--space-sm);
  border: 1px solid var(--sage-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep);
}
.brief__tick svg { width: 24px; height: 24px; }
.brief__done p { margin-inline: auto; }

.brief__spinner {
  width: 15px; height: 15px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .brief__spinner { display: block; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn__icon { display: none; }

.brief__alert {
  display: none;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid #A63D33;
  background: rgba(166, 61, 51, 0.05);
  color: #A63D33;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}
.brief__alert.is-shown { display: flex; }
.brief__alert svg { width: 16px; height: 16px; flex: none; margin-top: 4px; }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(4rem, 8vw, 6.5rem); }
.footer a { color: rgba(251, 250, 248, 0.72); transition: color var(--dur-fast) var(--ease-soft); }
.footer a:hover { color: var(--paper); }

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

.footer__logo { margin-bottom: var(--space-sm); line-height: 0; }
.footer__logo img { width: 172px; height: auto; display: block; }
.footer__brand p { color: rgba(251, 250, 248, 0.62); font-size: 0.9375rem; max-width: 38ch; }

.footer h2 {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin: 0 0 1.15rem;
}
.footer__list li { margin-bottom: 0.25rem; font-size: 0.9375rem; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.footer__list a.btn { min-height: 44px; }

.footer__bottom {
  border-top: 1px solid rgba(251, 250, 248, 0.14);
  padding-block: var(--space-sm);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(251, 250, 248, 0.58);
}

.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(251, 250, 248, 0.2);
  transition: background var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.socials a:hover { background: rgba(251,250,248,0.1); border-color: rgba(251,250,248,0.45); }
.socials svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   17. SCROLL REVEAL
   -------------------------------------------------------------------------- */
/* The hidden start-state is applied ONLY when JS is available to undo it.
   Without JS (or if main.js fails to load) everything renders normally. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="left"]  { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="scale"] { transform: scale(0.965); }

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Masked line reveal for display headings */
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.js .mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1000ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .mask.is-in > span { transform: none; }

/* --------------------------------------------------------------------------
   18. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mask > span { transform: none !important; }
  .hero__media img { animation: none; transform: scale(1.02); }
  .hero__scroll i { animation: none; opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   19. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .nav, .hero__scroll, .brief, .lb, .socials { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mask > span { transform: none !important; }
}
