/* ==========================================================================
   Fenestra Window Cleaning Services
   Black & white, editorial. Motion: transform/opacity only, custom curves.
   ========================================================================== */

:root {
  --ink: #0c0c0c;
  --ink-2: #1a1a19;
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --muted: #6d6a63;
  --muted-light: #9e9a91;
  --line: rgba(12, 12, 12, 0.14);
  --line-light: rgba(243, 241, 236, 0.16);

  --serif: "EB Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
html.is-intro, html.is-menu { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.section-title em { font-style: italic; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 7vw, 96px); }
.section-head .section-title { max-width: 14ch; }

.link {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.link span { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover span { transform: translateX(4px); }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 13px; }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost-light { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243, 241, 236, 0.5); }
.btn-ghost-dark { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #fff; }
  .btn-dark:hover { background: #262624; }
  .btn-ghost-light:hover { background: rgba(243, 241, 236, 0.12); }
  .btn-ghost-dark:hover { background: rgba(12, 12, 12, 0.05); }
}

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; font-size: 18px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.round-btn:active { transform: scale(0.95); }
.round-btn:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .round-btn:not(:disabled):hover { background: var(--ink); color: var(--paper); }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { display: none; }
.js .intro {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  color: var(--ink);
}
.js.no-intro .intro { display: none; }
.intro.is-cut { background: transparent; }

.intro-stage { position: absolute; inset: 0; }
.intro-cut { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.intro.is-cut .intro-cut { visibility: visible; }
.intro-cut-fill { fill: var(--paper); }

.intro-lockup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* The lockup is the homepage logo at intro size. --H is the mark's height;
   the full logo is 3.985 × --H wide and the mark is 0.448 × --H wide. */
.intro-logo {
  --H: min(clamp(96px, 17vh, 168px), calc((100vw - 40px) / 3.985));
  position: relative;
  height: var(--H);
  width: calc(var(--H) * 3.9847);
}
.intro-mark { position: absolute; left: 0; top: 0; z-index: 1; height: 100%; aspect-ratio: 300.73 / 670.73; }
.intro-mark svg { width: 100%; height: 100%; fill: var(--ink); }
.intro-word { position: absolute; inset: 0; color: var(--ink); }
.intro-word svg { width: 100%; height: 100%; }

/* 1. Mark resolves from a soft blur, centred on screen.
   2. The lockup glides left as the wordmark slides out from behind the mark. */
.js .intro-mark svg { animation: introMark 900ms var(--ease-out) 150ms both; }
.js .intro-logo { animation: introCenter 1000ms var(--ease-in-out) 1050ms both; }
.js .intro-word { animation: introWord 1000ms var(--ease-in-out) 1050ms both; }

@keyframes introMark {
  from { opacity: 0; transform: translateY(12px) scale(0.96); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes introCenter {
  from { transform: translateX(calc(var(--H) * 1.7682)); }
  to   { transform: none; }
}
/* Moving the element and its clip by the same amount keeps the reveal edge
   pinned just behind the mark, so the words appear to slide out from it. */
@keyframes introWord {
  from { transform: translateX(-90.5%); clip-path: inset(0 0 0 100%); }
  to   { transform: none; clip-path: inset(0 0 0 9.5%); }
}

.intro-skip {
  position: absolute; right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom));
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  padding: 10px 4px;
  opacity: 0; animation: fadeIn 400ms ease 1200ms forwards;
}
.intro.is-cut .intro-skip { display: none; }
@keyframes fadeIn { to { opacity: 1; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--paper);
  transition: transform 450ms var(--ease-drawer), color 300ms ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(243, 241, 236, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 300ms ease;
}
.nav.is-solid { color: var(--ink); }
.nav.is-solid::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
html.is-menu .nav { color: var(--ink); transform: none; }
html.is-menu .nav::before { opacity: 0; }

.nav-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: block; width: clamp(150px, 16vw, 190px); }
.logo { width: 100%; height: auto; overflow: visible; }
.logo-tag { font-family: var(--serif); font-size: 28px; font-weight: 600; white-space: pre; }

.nav-links { display: none; gap: 34px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-phone { display: none; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-cta { display: none; }
.nav.is-solid .nav-cta { background: var(--ink); color: var(--paper); }

.nav-toggle {
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-content: center; gap: 7px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; background: currentColor;
  transition: transform 350ms var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links, .nav-phone, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Nav enters after the intro */
.js .nav-inner { opacity: 0; transform: translateY(-8px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js.is-ready .nav-inner { opacity: 1; transform: none; transition-delay: 350ms; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper); color: var(--ink);
  padding: calc(var(--nav-h) + 4vh) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 500ms var(--ease-drawer);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-links { display: grid; gap: 4px; }
.menu-links a, .menu-phone {
  font-family: var(--serif); font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(16px);
  transition: opacity 400ms ease, transform 600ms var(--ease-out);
}
.menu-phone { font-family: var(--sans); font-size: 15px; letter-spacing: 0.04em; font-weight: 500; }
.menu.is-open .menu-links a, .menu.is-open .menu-phone {
  opacity: 1; transform: none; transition-delay: calc(120ms + var(--i) * 45ms);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-media { position: absolute; inset: -4% 0 0; will-change: transform; }
.hero-media picture { display: contents; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* Tall screens: let the photo run above the fold so the view, not the ceiling, leads. */
@media (max-aspect-ratio: 4/5) {
  .hero-media { inset: -34% 0 0; }
  .hero-img { object-position: 46% 100%; }
}
/* Upright phones get their own, wider crop (see <picture> in index.html) that
   shows the window frame as well as the view: the top 10% of the photo is cut
   off, then the crop fills the hero at the normal -4% inset. */
@media (max-width: 899px) and (max-aspect-ratio: 4/5) {
  .hero-media { inset: -4% 0 0; }
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.18) 46%, rgba(0,0,0,0) 70%);
}

.hero-content { position: relative; padding-bottom: clamp(40px, 8vh, 88px); }
.hero-eyebrow { margin-bottom: clamp(18px, 3vh, 28px); opacity: 0.9; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.4rem, 13.2vw, 12rem);
  line-height: 0.88; letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; letter-spacing: -0.03em; }
.hero-foot {
  margin-top: clamp(26px, 5vh, 48px);
  display: grid; gap: 26px; align-items: end;
}
.hero-sub { max-width: 40ch; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.55; color: rgba(243, 241, 236, 0.86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 900px) {
  .hero-foot { grid-template-columns: 1fr auto; }
}

/* Phones: location + headline at the top, intro copy and buttons at the bottom. */
@media (max-width: 899px) {
  .hero-content {
    flex: 1; display: flex; flex-direction: column;
    padding-top: calc(var(--nav-h) + 16px);
  }
  .hero-foot { margin-top: auto; }
  .hero-ctas { justify-content: space-between; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 32%, rgba(0,0,0,0) 50%),
      linear-gradient(0deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.18) 30%, rgba(0,0,0,0) 48%);
  }
}

/* Portrait phones: each line of copy is pinned to a spot in the photo.
   With the phone crop (see .hero-media above), a point at height f of the
   photo lands at (f × 1.16 − 0.16) of the screen height:
     ceiling              ≈ 0–20%   → location line
     window head / sky    ≈ 20–40%  → headline
     foot of the photo              → intro copy, then the buttons */
@media (max-width: 899px) and (max-aspect-ratio: 4/5) {
  .hero-content { position: absolute; inset: 0; display: block; padding: 0; }
  .hero-eyebrow, .hero-title, .hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); margin: 0; }
  .hero-eyebrow { top: max(calc(var(--nav-h) + 10px), 11.5vh); top: max(calc(var(--nav-h) + 10px), 11.5svh); }
  .hero-title {
    top: calc(17.6vh + 10px); top: calc(17.6svh + 10px); margin-left: -0.04em;
    font-size: clamp(3.4rem, 24vw, 7.5rem);
  }
  .hero-foot {
    bottom: calc(clamp(28px, 5vh, 48px) + env(safe-area-inset-bottom));
    display: grid; gap: 18px;
  }
  .hero-sub {
    max-width: 22em;
    font-size: 15px; line-height: 1.5;
    color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 17%, rgba(0,0,0,0) 30%),
      linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 24%, rgba(0,0,0,0) 42%);
  }
}


.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 1px; height: 44px; overflow: hidden; display: none;
}
.hero-scroll span {
  position: absolute; inset: 0; background: var(--paper);
  animation: scrollCue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
@media (min-width: 900px) and (min-height: 700px) { .hero-scroll { display: block; } }

/* Hero entrance: staggered, blurred rise (fires once intro hands over) */
.js [data-hero] {
  opacity: 0; transform: translateY(18px); filter: blur(8px);
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out), filter 900ms var(--ease-out);
}
.js.is-ready [data-hero] {
  opacity: 1; transform: none; filter: blur(0);
  transition-delay: calc(var(--i) * 85ms);
}
.js .hero-title .line[data-hero] { transform: translateY(0.35em); }
.js.is-ready .hero-title .line[data-hero] { transform: none; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 18px 0;
  border-top: 1px solid var(--line-light);
}
.marquee-track { display: flex; width: max-content; animation: marquee 330s linear infinite; } /* ~100 suburbs; keep the speed gentle */
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li {
  font-family: var(--serif); font-size: 19px; font-style: italic; white-space: nowrap;
  padding: 0 26px; position: relative;
}
.marquee-list li::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.45; translate: 0 -50%;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement {
  display: grid; gap: clamp(48px, 8vw, 120px);
  padding-top: clamp(96px, 16vw, 200px);
  padding-bottom: clamp(96px, 14vw, 180px);
  align-items: start;
}
/* Desktop: the label's top lines up exactly with the top of the photo. */
.statement-copy > .eyebrow { line-height: 1; }
.statement-copy { display: grid; gap: clamp(28px, 4vw, 48px); }
.statement-text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.018em;
  max-width: 19ch;
}
.statement-text .w { opacity: 0.16; transition: opacity 260ms ease; }
.statement-text .w.on { opacity: 1; }
.statement-foot { display: grid; gap: 24px; max-width: 46ch; color: var(--muted); }
.statement-foot p { font-size: 16px; }
.statement-foot .link { color: var(--ink); justify-self: start; }
.statement-figure { aspect-ratio: 3 / 4; max-height: 82vh; overflow: hidden; }
.statement-figure img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .statement { grid-template-columns: 1.35fr 1fr; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.services-head { display: grid; gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.services-head .section-head { margin-bottom: 0; }
.services-lede { color: var(--muted); max-width: 40ch; font-size: 16px; }
@media (min-width: 900px) { .services-head { grid-template-columns: 1.5fr 1fr; } }

.svc-grid { display: grid; gap: clamp(12px, 1.4vw, 20px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-link {
  position: relative; display: block; isolation: isolate;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px;
  background: var(--ink); color: var(--paper);
  transition: transform 160ms var(--ease-out);
}
@media (min-width: 640px) { .svc-link { aspect-ratio: 4 / 5; } }
.svc-link:active { transform: scale(0.985); }
.svc-media { position: absolute; inset: 0; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
/* Keep both mirrors in frame on the shorter phone cards. */
.svc-media img[src*="mirror-5950"] { object-position: 50% 40%; }
.svc-link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.28) 42%, rgba(0,0,0,0) 68%);
}
/* Phone cards are shorter, so the text covers more of the photo: darken further up. */
@media (max-width: 639px) {
  .svc-link::after { background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.2) 85%, rgba(0,0,0,0.1) 100%); }
}
.svc-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: clamp(20px, 2.2vw, 30px);
  display: grid; gap: 8px; justify-items: start;
}
.svc-num { font-size: 12px; letter-spacing: 0.12em; opacity: 0.75; font-variant-numeric: tabular-nums; }
.svc-name { font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -0.015em; }
.svc-desc { font-size: 14.5px; line-height: 1.5; color: rgba(243, 241, 236, 0.84); max-width: 34ch; }
.svc-cta { display: inline-flex; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 500; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.svc-cta span { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc-link:hover .svc-media img { scale: 1.05; }
  .svc-link:hover .svc-cta span { transform: translateX(4px); }
}

/* ==========================================================================
   STANDARD (dark)
   ========================================================================== */
.standard {
  background: var(--ink); color: var(--paper);
  padding: clamp(88px, 13vw, 170px) 0;
}
.standard-grid { display: grid; gap: clamp(48px, 7vw, 110px); align-items: start; }
.standard-video { position: relative; aspect-ratio: 9 / 14; max-height: 86vh; overflow: hidden; background: var(--ink-2); border-radius: 2px; }
.standard-video video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.45); border: 1px solid rgba(243, 241, 236, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 200ms var(--ease-out), background 200ms ease;
}
.video-play[hidden] { display: none; }
.video-play span { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--paper); }
.video-play:active { transform: scale(0.94); }
@media (hover: hover) { .video-play:hover { background: rgba(10, 10, 10, 0.65); } }
.standard-video figcaption {
  position: absolute; left: 18px; bottom: 16px; color: var(--paper);
  mix-blend-mode: difference; font-size: 10.5px;
}
.standard-copy { display: grid; gap: 26px; align-content: start; }
.standard-copy .section-title { max-width: 11ch; }
.standard-lede { color: var(--muted-light); max-width: 44ch; font-size: 16.5px; }

.values {
  margin-top: clamp(16px, 3vw, 36px);
  display: grid; column-gap: 36px;
  border-top: 1px solid var(--line-light);
}
@media (min-width: 600px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { display: grid; gap: 6px; align-content: start; padding: 24px 0 26px; border-bottom: 1px solid var(--line-light); }
.values-num { font-size: 12px; letter-spacing: 0.08em; color: var(--muted-light); font-variant-numeric: tabular-nums; }
.values h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 1.95rem); line-height: 1.1; }
.values p { color: var(--muted-light); font-size: 15px; max-width: 36ch; }

.guarantee {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid; gap: 14px 32px; align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 4px;
  background: var(--paper); color: var(--ink);
}
@media (min-width: 600px) { .guarantee { grid-template-columns: auto 1fr; } }
.guarantee .guarantee-num {
  font-family: var(--serif); font-size: clamp(4.2rem, 8vw, 6.4rem); line-height: 0.85; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink); max-width: none;
}
.guarantee .guarantee-num span { display: inline-block; text-align: right; }
.guarantee h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1.05; margin-bottom: 8px; }
.guarantee p { color: var(--muted); max-width: 40ch; font-size: 15.5px; }

@media (min-width: 900px) {
  .standard-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .standard-video { position: sticky; top: 100px; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews {
  --rv-pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --rv-gap: clamp(12px, 1.4vw, 18px);
  padding: clamp(88px, 12vw, 160px) 0;
}
.reviews-head { display: grid; gap: 28px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.reviews-head .section-head { margin-bottom: 0; }
@media (min-width: 1000px) { .reviews-head { grid-template-columns: 1fr auto; } }

.rs {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px; background: #fbfaf7;
}
.rs-score { display: flex; align-items: center; gap: 16px; }
.rs-num { font-family: var(--serif); font-size: clamp(2.8rem, 4vw, 3.4rem); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.rs-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.rs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.g-badge { display: inline-grid; place-items: center; }

.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 15px; height: 15px; display: block; }

.rv-carousel {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--rv-pad);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rv-carousel::-webkit-scrollbar { display: none; }
.rv-carousel.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rv-track { display: flex; align-items: stretch; gap: var(--rv-gap); width: max-content; padding: 4px var(--rv-pad); }

.rv-card {
  --w: min(84vw, 400px);
  position: relative; flex: none; width: var(--w);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
  padding: clamp(22px, 2.4vw, 30px);
  background: #fbfaf7; border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 250ms ease, scale 160ms var(--ease-out);
}
@media (min-width: 700px) { .rv-card { --w: calc((min(100vw, var(--max)) - 2 * var(--gutter) - var(--rv-gap)) / 2); } }
@media (min-width: 1100px) { .rv-card { --w: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 2 * var(--rv-gap)) / 3); } }
.rv-card:active { scale: 0.99; }
@media (hover: hover) and (pointer: fine) {
  .rv-card:hover { border-color: rgba(12, 12, 12, 0.4); }
  .rv-card:hover .rv-view span { transform: translate(2px, -2px); }
}

/* The whole card opens the review on Google; name and "Read more" sit above it. */
.rv-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.rv-link:focus-visible { outline-offset: 3px; }
.rv-top { display: flex; align-items: center; gap: 14px; }
.rv-avatar {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 20px;
}
.rv-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rv-avatar .g-badge {
  position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px #fbfaf7;
}
.rv-avatar .g-badge svg { width: 12px; height: 12px; }
.rv-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.rv-name a { position: relative; z-index: 2; }
@media (hover: hover) and (pointer: fine) { .rv-name a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.rv-time { font-size: 13px; color: var(--muted); }
.rv-text {
  font-family: var(--serif); font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
  white-space: pre-line;
}
.rv-card.is-open .rv-text { display: block; -webkit-line-clamp: unset; }
.rv-more {
  position: relative; z-index: 2; align-self: flex-start;
  font-size: 13px; font-weight: 500; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.rv-view {
  margin-top: auto; padding-top: 6px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.rv-view span { display: inline-block; transition: transform 250ms var(--ease-out); }

/* Cards rise in, staggered, the first time the carousel comes into view. */
.js .rv-card { opacity: 0; transform: translateY(22px); }
.rv-track.is-in .rv-card {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), border-color 250ms ease, scale 160ms var(--ease-out);
  transition-delay: calc(min(var(--i), 5) * 70ms), calc(min(var(--i), 5) * 70ms), 0ms, 0ms;
}

.rv-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(24px, 3vw, 36px); }
.rv-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-dot { width: 24px; height: 24px; display: grid; place-items: center; }
.rv-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(12, 12, 12, 0.2); transition: background-color 200ms ease, transform 250ms var(--ease-out);
}
.rv-dot[aria-current="true"]::before { background: var(--ink); transform: scale(1.25); }
.rv-nav { display: none; gap: 10px; }
@media (hover: hover) and (pointer: fine) { .rv-nav { display: flex; } }
.rv-empty { color: var(--muted); }

/* ==========================================================================
   GALLERY MOSAIC (home)
   ========================================================================== */
.work { padding: clamp(88px, 13vw, 170px) 0 clamp(80px, 11vw, 150px); }
.work-head { margin-bottom: clamp(36px, 5vw, 64px); }
.work-head .section-head { margin-bottom: 0; }

.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 8px; }
.mosaic-item { overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.mosaic-item:nth-child(3n + 1) { grid-column: span 2; }
.mosaic-btn { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.mosaic-btn img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .mosaic-btn:hover img { scale: 1.04; }
}

/* Desktop: a hand-placed 12-column editorial grid (two 6-row blocks). */
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(44px, 5.2vw, 80px); gap: 12px; }
  .mosaic-item:nth-child(3n + 1) { grid-column: auto; }
  .mosaic-item:nth-child(1)  { grid-area: 1 / 1 / 7 / 5; }
  .mosaic-item:nth-child(2)  { grid-area: 1 / 5 / 4 / 10; }
  .mosaic-item:nth-child(3)  { grid-area: 1 / 10 / 5 / 13; }
  .mosaic-item:nth-child(4)  { grid-area: 4 / 5 / 7 / 8; }
  .mosaic-item:nth-child(5)  { grid-area: 4 / 8 / 7 / 10; }
  .mosaic-item:nth-child(6)  { grid-area: 5 / 10 / 7 / 13; }
  .mosaic-item:nth-child(7)  { grid-area: 7 / 1 / 10 / 4; }
  .mosaic-item:nth-child(8)  { grid-area: 7 / 4 / 13 / 9; }
  .mosaic-item:nth-child(9)  { grid-area: 7 / 9 / 10 / 13; }
  .mosaic-item:nth-child(10) { grid-area: 10 / 1 / 13 / 4; }
  .mosaic-item:nth-child(11) { grid-area: 10 / 9 / 13 / 11; }
  .mosaic-item:nth-child(12) { grid-area: 10 / 11 / 13 / 13; }
}
.work-foot { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ==========================================================================
   GALLERY PAGE
   ========================================================================== */
.page-gallery .nav { color: var(--ink); }
.page-gallery .nav::before { opacity: 1; }
.page-gallery .nav-cta { background: var(--ink); color: var(--paper); }

.gallery-hero {
  display: grid; gap: 22px;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 120px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.gallery-title { font-size: clamp(3.2rem, 9vw, 8rem); line-height: 0.92; }
.gallery-lede { color: var(--muted); max-width: 44ch; font-size: 16.5px; }

.masonry { columns: 1; column-gap: 12px; }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 12px; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.masonry .mosaic-btn img { height: auto; transition: scale 900ms var(--ease-out); }

.gallery-cta { background: var(--ink); color: var(--paper); margin-top: clamp(80px, 10vw, 140px); padding: clamp(80px, 10vw, 140px) 0; }
.gallery-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.gallery-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 10, 10, 0.95);
  color: var(--paper);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.lb-stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 12px 72px; }
.lb-img {
  max-width: min(100%, 1600px); width: auto; height: auto;
  max-height: calc(100vh - 136px); max-height: calc(100dvh - 136px);
  object-fit: contain; border-radius: 2px; user-select: none; -webkit-user-drag: none;
  transform: scale(0.97); opacity: 0;
  transition: transform 450ms var(--ease-out), opacity 300ms ease;
}
.lightbox.is-open .lb-img.is-in { transform: none; opacity: 1; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  box-shadow: inset 0 0 0 1px var(--line-light);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.lb-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(243, 241, 236, 0.12); } }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; bottom: 14px; }
.lb-next { right: 12px; bottom: 14px; }
@media (min-width: 900px) {
  .lb-stage { padding: 72px 96px; }
  .lb-img { max-height: calc(100vh - 144px); max-height: calc(100dvh - 144px); }
  .lb-prev, .lb-next { top: 50%; bottom: auto; translate: 0 -50%; }
  .lb-prev { left: 24px; } .lb-next { right: 24px; } .lb-close { top: 20px; right: 24px; }
}
.lb-count { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; font-size: 12px; letter-spacing: 0.14em; color: var(--muted-light); font-variant-numeric: tabular-nums; }
html.is-lightbox { overflow: hidden; }

/* ==========================================================================
   AREAS
   ========================================================================== */
.areas { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.areas-figure { height: clamp(320px, 70vh, 760px); overflow: hidden; }
.areas-figure img { width: 100%; height: 100%; object-fit: cover; }
.areas-grid { display: grid; gap: 56px; margin-top: clamp(48px, 7vw, 96px); }
.area h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.015em; }
.area-note { margin-top: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.area-list {
  margin-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px;
}
.area-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.area-more { margin-top: 20px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .areas-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); }
}

/* ==========================================================================
   QUOTE
   ========================================================================== */
.quote { background: var(--ink); color: var(--paper); padding: clamp(88px, 12vw, 160px) 0; }
.quote-grid { display: grid; gap: clamp(48px, 6vw, 96px); align-items: start; }
.quote-intro { display: grid; gap: 24px; align-content: start; }
.quote-lede { color: var(--muted-light); max-width: 38ch; font-size: 16.5px; }
.quote-phone {
  font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.01em;
  justify-self: start; font-variant-numeric: lining-nums;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 6px;
  transition: background-size 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .quote-phone:hover { background-size: 100% 1px; }
}
.quote-figure { display: none; aspect-ratio: 4 / 5; overflow: hidden; margin-top: 24px; max-width: 360px; border-radius: 2px; }
.quote-figure img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .quote-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); align-items: stretch; }
  .quote .section-title { font-size: clamp(2.5rem, 4.6vw, 4.4rem); }
  /* The form sets the section's height; the photo fills whatever is left below
     the intro, so both columns finish level. */
  .quote-intro { display: flex; flex-direction: column; gap: 22px; }
  .quote-figure {
    display: block; position: relative; aspect-ratio: auto;
    flex: 1 1 0; min-height: 200px; max-width: 380px; margin-top: 10px;
  }
  .quote-figure img { position: absolute; inset: 0; }
}

.quote-panel { position: relative; }
.form { display: grid; gap: 22px; transition: opacity 300ms ease, transform 400ms var(--ease-out), filter 300ms ease; }
.form.is-leaving { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.field-row { display: grid; gap: 22px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-light); padding: 0;
}
.field > legend { margin-bottom: 10px; }
.opt { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; margin-left: 6px; }

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--paper);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(243, 241, 236, 0.28);
  border-radius: 0;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 200ms ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
  cursor: pointer;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 241, 236, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--paper); }
.field input:user-invalid { border-bottom-color: #e7a59a; }

/* Suburb suggestions: appear under the field only once something is typed. */
.field > .suggest { position: relative; display: block; font-size: 16px; letter-spacing: normal; text-transform: none; color: var(--paper); }
.suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  margin: 0; padding: 6px; list-style: none;
  background: #171717; border: 1px solid rgba(243, 241, 236, 0.14); border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform-origin: top center;
  opacity: 0; transform: translateY(-4px) scale(0.98);
  transition: opacity 140ms ease, transform 180ms var(--ease-out);
}
.suggest-list.is-open { opacity: 1; transform: none; }
.suggest-list li {
  padding: 11px 12px; border-radius: 3px; cursor: pointer;
  font-size: 15px; color: rgba(243, 241, 236, 0.72);
}
.suggest-list li b { font-weight: 500; color: var(--paper); }
.suggest-list li[aria-selected="true"] { background: rgba(243, 241, 236, 0.08); color: var(--paper); }
@media (hover: hover) { .suggest-list li:hover { background: rgba(243, 241, 236, 0.08); color: var(--paper); } }
@media (prefers-reduced-motion: reduce) { .suggest-list { transform: none; transition: opacity 120ms ease; } }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243, 241, 236, 0.28); padding: 4px; max-width: 220px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; height: 40px; border-radius: 999px; font-size: 14px;
  transition: background-color 220ms ease, color 220ms ease;
}
.seg input:checked + span { background: var(--paper); color: var(--ink); }
.seg input:focus-visible + span { outline: 1.5px solid var(--paper); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(243, 241, 236, 0.28);
  font-size: 14px;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 160ms var(--ease-out);
}
.chip:active span { transform: scale(0.97); }
.chip input:checked + span { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }
.chip input:focus-visible + span { outline: 1.5px solid var(--paper); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1px rgba(243, 241, 236, 0.6); }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { --h: 58px; width: 100%; margin-top: 8px; font-size: 15px; overflow: hidden; }
.btn-submit .btn-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); filter: blur(3px);
  transition: opacity 220ms ease, transform 300ms var(--ease-out), filter 220ms ease;
}
.btn-submit[data-state="idle"] .btn-label[data-state="idle"],
.btn-submit[data-state="sending"] .btn-label[data-state="sending"],
.btn-submit[data-state="error"] .btn-label[data-state="error"] { opacity: 1; transform: none; filter: blur(0); }
.btn-submit[data-state="sending"] { pointer-events: none; }
.form-error { min-height: 1.4em; font-size: 14px; color: #e7a59a; }

.form-done {
  display: grid; gap: 16px; justify-items: start; padding: 20px 0;
  opacity: 0; transform: translateY(12px); filter: blur(4px);
  transition: opacity 500ms ease, transform 700ms var(--ease-out), filter 500ms ease;
}
.form-done.is-in { opacity: 1; transform: none; filter: blur(0); }
.form-done:focus { outline: none; }
.form-done-logo { width: clamp(200px, 22vw, 280px); color: var(--paper); margin-bottom: 20px; }
.form-done h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.form-done p { color: var(--muted-light); max-width: 36ch; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--paper); padding: 0 0 calc(28px + env(safe-area-inset-bottom)); }
.footer .wrap { border-top: 1px solid var(--line-light); padding-top: clamp(56px, 8vw, 96px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer-logo { width: clamp(220px, 34vw, 420px); }
.footer-grid { display: grid; gap: 40px; margin-top: clamp(56px, 8vw, 96px); }
.footer-grid .eyebrow { color: var(--muted-light); margin-bottom: 16px; }
.footer-grid li { padding: 4px 0; color: rgba(243, 241, 236, 0.82); font-size: 15px; }
.footer-big { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.footer-email { display: inline-block; margin-top: 10px; font-size: 15px; color: rgba(243, 241, 236, 0.82); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size 350ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-email:hover { background-size: 100% 1px; } }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(56px, 8vw, 96px); padding-top: 24px; border-top: 1px solid var(--line-light);
  font-size: 13px; color: var(--muted-light);
}
.footer-base .muted { color: var(--muted-light); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ==========================================================================
   MOBILE DOCK
   ========================================================================== */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
  padding: 8px; border-radius: 999px;
  background: rgba(243, 241, 236, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--line);
  transform: translateY(calc(100% + 24px));
  transition: transform 500ms var(--ease-drawer);
}
.dock .btn { --h: 46px; }
.dock.is-on { transform: none; }
@media (min-width: 960px) { .dock { display: none; } }
/* Leave room so the floating bar never covers the last footer line on phones. */
@media (max-width: 959px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   SCROLL REVEALS
   ========================================================================== */
.js [data-reveal]:not([data-reveal="clip"]) {
  opacity: 0; transform: translateY(26px);
  transition: opacity 900ms var(--ease-out), transform 1200ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in:not([data-reveal="clip"]) { opacity: 1; transform: none; }

/* The clip sits on the media, not the observed container: IntersectionObserver
   treats a fully clipped element as invisible, so it would never reveal. */
.js [data-reveal="clip"] img,
.js [data-reveal="clip"] video {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.22);
  transition: clip-path 1300ms var(--ease-in-out), transform 1700ms var(--ease-out), scale 900ms var(--ease-out);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms;
}
.js [data-reveal="clip"].is-in img,
.js [data-reveal="clip"].is-in video { clip-path: inset(0 0 0 0); transform: none; }

/* ==========================================================================
   REDUCED MOTION: keep fades, drop movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero-scroll span { animation: none; }
  .js .intro-mark svg, .js .intro-tag { animation: fadeIn 500ms ease both; filter: none; transform: none; }
  .js [data-hero], .js .hero-title .line[data-hero],
  .js [data-reveal]:not([data-reveal="clip"]) { transform: none; filter: none; transition: opacity 600ms ease; }
  .js [data-reveal="clip"] img, .js [data-reveal="clip"] video { clip-path: none; transform: none; opacity: 0; transition: opacity 600ms ease; }
  .js [data-reveal="clip"].is-in img, .js [data-reveal="clip"].is-in video { opacity: 1; }
  .svc-media img, .mosaic-btn img { scale: none !important; }
  .lb-img { transform: none; }
  .js .rv-card { transform: none; }
  .menu { transition: opacity 250ms ease; clip-path: none; opacity: 0; }
  .menu.is-open { opacity: 1; }
  .menu-links a, .menu-phone { transform: none; }
  .statement-text .w { opacity: 1; }
}
