/* ============================================================
   Wimble Attorneys — Conveyancing Specialists
   Warm luxury-editorial. Navy / coral / cream.
   ============================================================ */

:root {
  --navy:        #163152;
  --navy-deep:   #0e2238;
  --navy-soft:   #1d3e63;
  --cream:       #f6f1ea;
  --paper:       #fbf8f3;
  --ink:         #2b2723;
  --muted:       #6f665b;
  --coral:       #d98568;   /* decorative only on light, text-safe on navy */
  --coral-ink:   #a64f2e;   /* text-safe coral on light backgrounds */
  --coral-deep:  #c46d50;
  --line:        rgba(43, 39, 35, 0.12);
  --line-light:  rgba(246, 241, 234, 0.18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --shell: 1180px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--cream); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  color: var(--navy);
}
.display em { font-style: italic; color: var(--coral-ink); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--coral); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.95em 1.9em; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-coral { background: var(--coral); color: var(--navy-deep); font-weight: 600; }
.btn-coral:hover { background: #e6957b; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-light); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-ghost-dark { color: var(--navy); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--navy); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  padding: 0.7rem 0;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand-mark { height: 38px; width: auto; transition: height 0.4s var(--ease); filter: brightness(0) invert(1); }
.site-header.scrolled .brand-mark { height: 32px; filter: none; }

.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.08em; font-weight: 400;
  color: var(--cream); position: relative; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--coral); transition: width 0.35s var(--ease);
}
.nav a:hover::after { width: 100%; }
.site-header.scrolled .nav a { color: var(--ink); }

.header-cta { margin-left: 0.5rem; }
.site-header:not(.scrolled) .header-cta { background: transparent; border-color: var(--line-light); color: var(--cream); }
.site-header:not(.scrolled) .header-cta:hover { border-color: var(--cream); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: 0.3s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

.mobile-nav { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--cream); overflow: hidden;
}
/* panelled wall, echoing the brand hero */
.hero-panels { position: absolute; inset: 0; display: flex; opacity: 0.5; }
.hero-panels span {
  flex: 1; margin: 4vh 0.6vw;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
}
.hero-grain { position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-watermark {
  position: absolute; right: -6%; bottom: -12%;
  width: min(46vw, 540px); opacity: 0.07;
  filter: brightness(0) invert(1);
}
.hero-inner { position: relative; z-index: 2; padding: 8rem 28px 6rem; max-width: 900px; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0.4rem 0 1.6rem;
}
.hero-title em { font-style: italic; color: var(--coral); }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); font-weight: 300; max-width: 54ch; color: rgba(246,241,234,0.86); margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-scroll { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(246,241,234,0.6); }
.hero-scroll::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--coral), transparent); animation: scrollPulse 2.2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-lead .display { font-size: clamp(1.9rem, 3.3vw, 2.9rem); }
.about-body p { color: var(--muted); margin-bottom: 1.3rem; }
.stat-row { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--coral-ink); line-height: 1; }
.stat-label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--cream); }
.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.service-list li {
  display: flex; align-items: baseline; gap: 1.1rem;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 500; color: var(--navy);
  padding: 1.35rem 0.5rem; border-top: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.service-list li:hover { background: rgba(217,133,104,0.06); padding-left: 1.2rem; }
.svc-no { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; color: var(--coral-ink); min-width: 1.8rem; }

/* ============================================================
   BAND (parallax photo)
   ============================================================ */
.band {
  position: relative; padding: clamp(5rem, 12vw, 9rem) 0;
  background-image: url("assets/band-office.jpg");
  background-size: cover; background-position: center 50%;
  color: var(--cream); text-align: center;
}
.band-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,34,56,0.74), rgba(14,34,56,0.82)); }
.band-inner { position: relative; z-index: 2; max-width: 740px; }
.band-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 1.3rem; }
.band-title em { font-style: italic; color: var(--coral); }
.band-text { font-weight: 300; font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(246,241,234,0.88); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach { background: var(--paper); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillar { padding: 2.4rem 2rem; background: var(--cream); border: 1px solid var(--line); border-radius: 3px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(22,49,82,0.4); }
.pillar-no { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--coral-ink); display: block; margin-bottom: 1rem; }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin-bottom: 0.7rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--cream); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.member { position: relative; }
.member-photo { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 4; background: var(--navy-soft); }
.member-photo picture { display: block; width: 100%; height: 100%; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,34,56,0.55)); opacity: 0; transition: opacity 0.5s var(--ease); }
.member:hover .member-photo::after { opacity: 1; }
.member figcaption { padding: 1.1rem 0.2rem 0; }
.member-name { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); }
.member-role { display: block; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.2rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.quote { position: relative; padding: 2.6rem 2rem 2rem; background: var(--cream); border-radius: 3px; border: 1px solid var(--line); }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--coral); opacity: 0.4; position: absolute; top: 0.6rem; left: 1.4rem; }
.quote p { position: relative; font-family: var(--serif); font-size: 1.18rem; font-style: italic; line-height: 1.5; color: var(--ink); margin-bottom: 1.4rem; }
.quote cite { font-family: var(--sans); font-style: normal; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); font-weight: 500; }

/* ============================================================
   THE GIFTED PROJECT
   ============================================================ */
.gifted { position: relative; background: linear-gradient(150deg, var(--navy-soft), var(--navy) 55%, var(--navy-deep)); color: var(--cream); overflow: hidden; }
.gifted-grain { position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gifted-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.gifted-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.08; margin: 0.4rem 0 1.4rem; }
.gifted-copy p { color: rgba(246,241,234,0.85); font-weight: 300; margin-bottom: 1.2rem; max-width: 30rem; }
.gifted-copy .btn { margin-top: 0.8rem; }
.gifted-photo { border-radius: 3px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); aspect-ratio: 4 / 5; max-width: 460px; margin-left: auto; }
.gifted-photo picture { display: block; width: 100%; height: 100%; }
.gifted-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.gifted-points { list-style: none; margin: 0.2rem 0 1.9rem; display: grid; gap: 0.9rem; max-width: 32rem; }
.gifted-points li { position: relative; padding-left: 1.5rem; color: rgba(246,241,234,0.85); font-weight: 300; font-size: 0.98rem; line-height: 1.5; }
.gifted-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.gifted-points strong { color: var(--cream); font-weight: 500; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-row { display: flex; gap: 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); min-width: 6rem; }
.contact-row a { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); transition: color 0.3s var(--ease); }
.contact-row a:hover { color: var(--coral-ink); }
.contact-cta-row { display: flex; gap: 0.9rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Visit-us panel (replaces flaky map embed) */
.contact-locations {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-soft), var(--navy) 60%, var(--navy-deep));
  color: var(--cream); border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: 0 30px 60px -34px rgba(22,49,82,0.5);
}
.loc-grain { position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image:
    linear-gradient(rgba(246,241,234,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,241,234,0.4) 1px, transparent 1px);
  background-size: 26px 26px; }
.loc-heading { position: relative; z-index: 2; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.4rem; }
.loc-card { position: relative; z-index: 2; padding: 1.4rem 0; border-top: 1px solid var(--line-light); }
.loc-card:first-of-type { border-top: none; padding-top: 0; }
.loc-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--cream); margin-bottom: 0.5rem; }
.loc-card p { color: rgba(246,241,234,0.78); font-size: 0.95rem; font-weight: 300; }
.office-postal { margin-top: 0.4rem; font-size: 0.86rem; opacity: 0.7; }
.loc-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--coral); transition: gap 0.3s var(--ease), color 0.3s var(--ease); }
.loc-link:hover { gap: 0.85rem; color: #e6957b; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: var(--cream); padding: 3.5rem 0 2.2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 3rem; align-items: center; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.86rem; font-weight: 300; color: rgba(246,241,234,0.7); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: flex-end; }
.footer-nav a { font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(246,241,234,0.8); transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--coral); }
.footer-legal { grid-column: 1 / -1; padding-top: 1.8rem; margin-top: 1rem; border-top: 1px solid var(--line-light); font-size: 0.76rem; color: rgba(246,241,234,0.55); letter-spacing: 0.04em; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4);
  transition: transform 0.35s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-grid, .gifted-grid { grid-template-columns: 1fr; }
  .gifted-photo { order: -1; margin: 0 auto; }
  .approach-grid, .quote-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .band { background-attachment: scroll; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }

  .mobile-nav {
    display: flex; flex-direction: column; gap: 0.4rem;
    background: var(--navy-deep); padding: 0 28px;
    max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
  }
  .mobile-nav.open { max-height: 460px; padding: 1.2rem 28px 1.8rem; }
  .mobile-nav a { color: var(--cream); padding: 0.7rem 0; border-bottom: 1px solid var(--line-light); font-size: 0.95rem; letter-spacing: 0.04em; }
  .mobile-nav .btn { margin-top: 0.8rem; }
  .site-header.scrolled .mobile-nav a { color: var(--cream); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { padding: 0 20px; }
  .service-list { grid-template-columns: 1fr; }
  .stat-row { gap: 1.5rem; flex-wrap: wrap; }
  .hero-inner { padding: 7rem 20px 5rem; }
  .contact-row { flex-direction: column; gap: 0.3rem; }
  .contact-label { min-width: 0; }
}

/* ============================================================
   PRODUCTION PASS — depth, motion, detail
   ============================================================ */

/* Localised section sub-line */
.section-sub { margin-top: 1rem; color: var(--muted); font-size: 1.02rem; max-width: 46ch; }

/* Eyebrow structural hairline (editorial "mark") */
.eyebrow::before { content: ""; display: block; width: 34px; height: 2px; background: var(--coral-ink); margin-bottom: 1rem; }
.eyebrow-light::before { background: var(--coral); }

/* Tighter paragraph leading to partner the serif display */
.about-body p, .gifted-copy p, .pillar p { line-height: 1.55; }

/* Payment-fraud safety note */
.safety-note { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 1.8rem; padding: 1rem 1.15rem; background: rgba(166,79,46,0.06); border-left: 2px solid var(--coral-ink); border-radius: 2px; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.safety-note strong { color: var(--ink); }
.safety-mark { flex: 0 0 auto; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--coral-ink); color: var(--cream); display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 0.9rem; line-height: 1; }

/* Card resting elevation */
.pillar { box-shadow: 0 10px 30px -22px rgba(22,49,82,0.25); }
.quote { box-shadow: 0 10px 30px -24px rgba(22,49,82,0.20); }

/* Deeper, more tactile service-list hover + index motion */
.svc-no { transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.service-list li:hover { background: rgba(217,133,104,0.09); padding-left: 1.2rem; box-shadow: inset 3px 0 0 var(--coral-ink); }
.service-list li:hover .svc-no { transform: translateX(3px); color: var(--coral-deep); }

/* Scrollspy active nav item (reuses the coral underline) */
.nav a[aria-current="true"] { color: var(--cream); }
.site-header.scrolled .nav a[aria-current="true"] { color: var(--coral-ink); }
.nav a[aria-current="true"]::after { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero load choreography — content shows by default (no JS), this only enriches the entrance */
  .hero-inner > * { animation: heroRise 0.9s var(--ease) both; }
  .hero-inner > *:nth-child(1) { animation-delay: 0.10s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.22s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.34s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.46s; }

  /* The panel wall composes itself */
  .hero-panels span { opacity: 0; animation: panelRise 1.1s var(--ease) forwards; }
  .hero-panels span:nth-child(1) { animation-delay: 0.05s; }
  .hero-panels span:nth-child(2) { animation-delay: 0.14s; }
  .hero-panels span:nth-child(3) { animation-delay: 0.23s; }
  .hero-panels span:nth-child(4) { animation-delay: 0.32s; }
  .hero-panels span:nth-child(5) { animation-delay: 0.41s; }

  /* Pointer-tracked warmth on team cards */
  .member-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(246,241,234,0.22), transparent 55%);
    transition: opacity 0.45s var(--ease);
  }
  .member:hover .member-photo::before { opacity: 1; }

  /* Compositor-friendlier band parallax (replaces fixed-attachment repaint) */
  @supports (animation-timeline: view()) {
    .band { animation: bandDrift linear both; animation-timeline: view(); }
    @keyframes bandDrift { from { background-position: center 42%; } to { background-position: center 58%; } }
  }
}

@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes panelRise { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner > * { opacity: 1; transform: none; }
  .hero-scroll::after { animation: none; }
}

/* ============================================================
   BATCH B — trust strip, timeline, FAQ, agents, quote, etc.
   ============================================================ */

/* ---- Trust strip ---- */
.trust-strip { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.7rem 0 1.5rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-cell { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.3rem 1.6rem; border-left: 1px solid var(--line); }
.trust-cell:first-child { border-left: none; padding-left: 0; }
.trust-label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral-ink); font-weight: 600; }
.trust-value { font-size: 0.9rem; color: var(--ink); line-height: 1.4; }
.trust-foot { font-size: 0.78rem; color: var(--muted); margin-top: 1.1rem; }

/* ---- Transfer timeline ---- */
.timeline { background: var(--cream); }
.timeline-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: stage; }
.stage { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 1.8rem 1.5rem; box-shadow: 0 12px 32px -24px rgba(22,49,82,0.3); }
.stage::before { content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 2px; background: var(--coral); opacity: 0.55; }
.stage-week { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); font-weight: 600; margin-bottom: 0.5rem; }
.stage h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--navy); margin-bottom: 0.85rem; }
.stage ul { list-style: none; display: grid; gap: 0.55rem; }
.stage ul li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.stage ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

/* ---- FAQ ---- */
.faq { background: var(--cream); }
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.25rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; color: var(--navy); transition: color 0.3s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--coral-ink); transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--coral-ink); }
.faq-a { padding: 0 0 1.4rem; max-width: 66ch; }
.faq-a p { color: var(--muted); }
.faq-a a { color: var(--coral-ink); text-decoration: underline; }

/* ---- Estate-agent band ---- */
.agents { position: relative; padding: clamp(4rem, 9vw, 6.5rem) 0; background-image: url("assets/band-office.jpg"); background-size: cover; background-position: center; color: var(--cream); text-align: center; }
.agents-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,34,56,0.84), rgba(14,34,56,0.9)); }
.agents-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.agents-inner .eyebrow::before { margin-left: auto; margin-right: auto; }
.agents-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; margin: 0.3rem 0 1.1rem; }
.agents-inner p { font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.12rem); color: rgba(246,241,234,0.88); margin-bottom: 1.7rem; }

/* ---- Quote form ---- */
.quote { background: var(--paper); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; max-width: 780px; }
.quote-form .field { display: flex; flex-direction: column; gap: 0.4rem; }
.quote-form .field-full { grid-column: 1 / -1; }
.quote-form label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.quote-form .opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.7; }
.quote-form input, .quote-form select, .quote-form textarea { font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 2px; padding: 0.8em 0.9em; width: 100%; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--coral-ink); box-shadow: 0 0 0 3px rgba(166,79,46,0.12); }
.quote-form textarea { resize: vertical; }
.quote-form .consent label { flex-direction: row; align-items: flex-start; gap: 0.65rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.quote-form .consent input { width: auto; margin-top: 0.2rem; flex: 0 0 auto; }
.quote-form .consent a { color: var(--coral-ink); text-decoration: underline; }
.quote-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quote-form .form-actions { margin-top: 0.3rem; }
.quote-form .form-status { grid-column: 1 / -1; font-size: 0.95rem; margin-top: 0.4rem; min-height: 1.2em; }
.quote-form .form-status.is-success { color: #2e7d4f; }
.quote-form .form-status.is-error { color: #b0322b; }

/* ---- Misc Batch B ---- */
.gifted-social { margin-top: 1.1rem; font-size: 0.9rem; color: rgba(246,241,234,0.72); }
.gifted-social a { color: var(--coral); text-decoration: underline; }
.contact-row .contact-plain { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.loc-phone { margin-top: 0.55rem; }
.loc-phone a { color: var(--coral); font-size: 0.98rem; font-weight: 500; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.15rem; }
.footer-social a { display: inline-flex; color: rgba(246,241,234,0.7); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer-social a:hover { color: var(--coral); transform: translateY(-2px); }

/* ---- Legal / privacy page ---- */
.legal-header { position: static; background: var(--paper); box-shadow: 0 1px 0 var(--line); padding: 1rem 0; }
.legal-page { padding: 3rem 0 4.5rem; }
.legal-shell { max-width: 760px; }
.legal-page h1.display { margin: 0.4rem 0 1.2rem; }
.legal-lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }
.legal-page h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin: 2.2rem 0 0.6rem; }
.legal-page p { color: var(--muted); margin-bottom: 0.8rem; }
.legal-page a { color: var(--coral-ink); text-decoration: underline; }
.legal-back { margin-top: 2.6rem; font-weight: 500; }

/* ---- Batch B responsive ---- */
@media (max-width: 980px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .trust-cell { padding: 0.6rem 1.4rem; }
  .trust-cell:nth-child(odd) { border-left: none; padding-left: 0; }
  .timeline-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-cell { border-left: none; padding: 0.55rem 0; border-top: 1px solid var(--line); }
  .trust-cell:first-child { border-top: none; }
  .timeline-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL GATE — accessibility + performance fixes
   ============================================================ */

/* AA-safe coral for small text on navy (was #d98568 = 3.91:1) */
:root { --coral-light: #eaa98f; }
.eyebrow-light { color: var(--coral-light); }
.loc-heading { color: var(--coral-light); }
.loc-link { color: var(--coral-light); }
.loc-phone a { color: var(--coral-light); }
.gifted-social a { color: var(--coral-light); }

/* Visible keyboard focus on every interactive element (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .gifted :focus-visible, .agents :focus-visible, .band :focus-visible,
.contact-locations :focus-visible, .site-footer :focus-visible,
.site-header:not(.scrolled) :focus-visible { outline-color: var(--coral-light); }
.faq-item summary:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 3px; }

/* Anchor / skip-link jumps clear the fixed header (WCAG 2.4.1) */
html { scroll-padding-top: 5rem; }

/* Modern image-set so the band/agents background uses the smaller webp */
.band { background-image: -webkit-image-set(url("assets/band-office.webp") type("image/webp"), url("assets/band-office.jpg") type("image/jpeg")); background-image: image-set(url("assets/band-office.webp") type("image/webp"), url("assets/band-office.jpg") type("image/jpeg")); }
.agents { background-image: -webkit-image-set(url("assets/band-office.webp") type("image/webp"), url("assets/band-office.jpg") type("image/jpeg")); background-image: image-set(url("assets/band-office.webp") type("image/webp"), url("assets/band-office.jpg") type("image/jpeg")); }

/* Mobile nav: never clip the CTA, and leave the tab order when closed even without inert support */
@media (max-width: 980px) {
  .mobile-nav { visibility: hidden; transition: max-height 0.45s var(--ease), padding 0.45s var(--ease), visibility 0s linear 0.45s; }
  .mobile-nav.open { max-height: 600px; visibility: visible; transition: max-height 0.45s var(--ease), padding 0.45s var(--ease), visibility 0s; }
}

/* Form field errors */
.field-error { color: #b0322b; font-size: 0.82rem; min-height: 1em; }

/* Reduced motion also stills transitions, not just animations */
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }

/* ---- Why Wimble / protection section ---- */
.protection { position: relative; background: linear-gradient(150deg, var(--navy-soft), var(--navy) 55%, var(--navy-deep)); color: var(--cream); overflow: hidden; }
.protection-grain { position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.protection .section-head { position: relative; z-index: 2; max-width: 720px; }
.protection-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: 0.3rem 0 1rem; color: var(--cream); }
.protection-sub { color: rgba(246,241,234,0.82); font-weight: 300; font-size: 1.02rem; max-width: 48ch; }
.protection-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; margin-top: clamp(2rem, 4vw, 3rem); }
.protect-point { position: relative; padding-left: 1.35rem; }
.protect-point::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.protect-point h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--cream); margin-bottom: 0.5rem; }
.protect-point p { color: rgba(246,241,234,0.8); font-weight: 300; font-size: 0.96rem; line-height: 1.5; }
@media (max-width: 620px) { .protection-grid { grid-template-columns: 1fr; } }

/* ---- Quote success panel ---- */
.quote-success { max-width: 640px; padding: clamp(2rem, 4vw, 3rem); background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--coral-ink); border-radius: 4px; box-shadow: 0 18px 44px -30px rgba(22,49,82,0.4); outline: none; }
.quote-success h2 { margin: 0.3rem 0 0.8rem; }
.quote-success p:last-child { color: var(--muted); margin: 0; }
.quote-success a { color: var(--coral-ink); text-decoration: underline; }
