/* Hero (from v5 design) – uses the base site fonts (--font-display / --font-body) */
.hx {
  --hx-950: #041b1e; --hx-900: #082f33;
  --hx-gold-300: #d2b677; --hx-gold-200: #e6d3a6;
  --hx-grad: linear-gradient(110deg, #a8894a 0%, #e6d3a6 45%, #a8894a 100%);
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--hx-950); color: rgba(255,255,255,.78);
  padding: calc(var(--nav-h, 84px) + 1rem) 0 clamp(6.5rem, 9vw, 8rem);
  overflow: hidden; isolation: isolate;
}
.hx .container { position: relative; z-index: 2; max-width: 1260px; }

/* atmosphere */
.hx-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hx-aurora::before, .hx-aurora::after, .hx-aurora i { content: ""; position: absolute; border-radius: 50%; opacity: .55; }
.hx-aurora::before { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: -18vw; top: -24vw; background: radial-gradient(circle, #1c6a70 0%, transparent 70%); }
.hx-aurora::after { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -10vw; bottom: -20vw; background: radial-gradient(circle, rgba(201,169,100,.55) 0%, transparent 62%); }
.hx-aurora i { width: 34vw; height: 34vw; left: 42%; top: 18%; background: radial-gradient(circle, rgba(23,87,93,.9) 0%, transparent 60%); }
@keyframes hxd1 { to { transform: translate(8vw, 6vw) scale(1.1); } }
@keyframes hxd2 { to { transform: translate(-6vw, -5vw) scale(1.15); } }
@keyframes hxd3 { to { transform: translate(-10vw, 8vw) scale(.9); } }
.hx-grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hx .hx-skyline { position: absolute; z-index: 0; left: 0; right: 0; bottom: clamp(24px, 4vw, 60px); width: 100%; max-width: none; height: auto; aspect-ratio: 3200 / 330; min-height: 0; margin: 0; filter: none; opacity: .32; pointer-events: none; }
@media (max-width: 767.98px) { .hx .hx-skyline { bottom: 40px; height: 120px; aspect-ratio: auto; opacity: .28; } }
.hx-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(210,182,119,.13), transparent 60%); transition: background .2s; }

/* layout */
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.hx-logo { margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); line-height: 0; }
.hx-logo img { width: min(100%, 480px); height: auto; }
.hx h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 2.75vw, 2.45rem); line-height: 1.04; letter-spacing: -.04em; word-spacing: .05em; color: #fff; margin: 0 0 1.6rem; }
.page-hero h1 { word-spacing: .05em; }
.hx h1 .line { display: block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.2em; }
.hx h1 .line > span { display: inline-block; text-wrap: balance; transform: translateY(105%); animation: hxLine 1.1s var(--ease, cubic-bezier(.22,.8,.24,1)) forwards; }
.hx h1 .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes hxLine { to { transform: none; } }
.hx-gold { background: var(--hx-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hxLine 1.1s var(--ease, cubic-bezier(.22,.8,.24,1)) .15s forwards, hxShimmer 2.5s ease-in-out 1.3s 1 forwards !important; }
@keyframes hxShimmer { to { background-position: 100% 0; } }
.hx-lead { color: #fff; opacity: .78; max-width: 33rem; margin: 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.7; }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: clamp(2rem, 3.5vw, 2.6rem); }
.hx .btn-ghost { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.hx .btn-ghost:hover, .hx .btn-ghost:focus-visible { color: var(--hx-950); background: #fff; border-color: #fff; }
.hx-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: clamp(1.8rem, 3vw, 2.4rem) 0 0; padding: 1.2rem 0 0; border-top: 1px solid; border-image: linear-gradient(90deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 80%) 1; font-size: .84rem; color: rgba(255,255,255,.62); list-style: none; }
.hx-trust li { display: flex; align-items: center; gap: .5rem; }
.hx-trust svg { width: 18px; height: 18px; stroke: var(--hx-gold-300); fill: none; stroke-width: 1.6; }

/* portrait (static position) */
.hx-visual { position: relative; justify-self: center; width: min(100%, 440px); margin-bottom: 2.4rem; }
.hx-halo { position: absolute; inset: -14% -18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(210,182,119,.32), transparent 70%); }
.hx-portrait { position: relative; border-radius: 240px 240px 32px 32px; padding: 3px; overflow: hidden; isolation: isolate; }
.hx-portrait::before { content: ""; position: absolute; z-index: -1; left: -50%; top: -50%; width: 200%; height: 200%; background: conic-gradient(rgba(210,182,119,0) 0deg, #e6d3a6 70deg, #a8894a 140deg, rgba(210,182,119,0) 220deg, rgba(210,182,119,0) 360deg); animation: hxSpin 3.5s linear 2 forwards; }
@keyframes hxSpin { to { transform: rotate(360deg); } }
.hx-portrait-inner { position: relative; z-index: 1; border-radius: 237px 237px 29px 29px; overflow: hidden; aspect-ratio: 425 / 560; background: var(--hx-900); clip-path: inset(100% 0 0 0 round 237px 237px 29px 29px); animation: hxReveal 1.4s var(--ease, cubic-bezier(.22,.8,.24,1)) .35s forwards; }
.hx-portrait-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transform: scale(1.18); animation: hxSettle 2.2s var(--ease, cubic-bezier(.22,.8,.24,1)) .35s forwards; }
.hx-portrait-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(4,27,30,.45) 100%); }
@keyframes hxReveal { to { clip-path: inset(0 0 0 0 round 237px 237px 29px 29px); } }
@keyframes hxSettle { to { transform: scale(1); } }

/* award label: static, centred, overlapping the bottom of the photo */
.hx-award { pointer-events: none; position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translate(-50%, 50%); width: max-content; max-width: 96%; display: flex; align-items: center; gap: .85rem; padding: .8rem 1.3rem .8rem .8rem; color: #fff; background: #082f33; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.65); opacity: 0; animation: hxFade .8s ease 1.5s forwards; }
@keyframes hxFade { to { opacity: 1; } }
.hx-award .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--hx-grad); }
.hx-award .ic svg { width: 22px; height: 22px; stroke: var(--hx-950); fill: none; stroke-width: 1.6; }
.hx-award small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-gold-200); line-height: 1.3; }
.hx-award strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; line-height: 1.25; }

.hx.hx-paused *, .hx.hx-paused *::before, .hx.hx-paused *::after { animation-play-state: paused !important; }

/* entrance + extras */
.hx-in { opacity: 0; transform: translateY(24px); animation: hxUp 1s var(--ease, cubic-bezier(.22,.8,.24,1)) forwards; }
.hx-in.d1 { animation-delay: .1s; } .hx-in.d3 { animation-delay: .55s; } .hx-in.d4 { animation-delay: .75s; } .hx-in.d5 { animation-delay: .95s; }
@keyframes hxUp { to { opacity: 1; transform: none; } }
.hx-cue { position: absolute; z-index: 2; left: 50%; bottom: 1.6rem; translate: -50% 0; display: grid; justify-items: center; gap: .5rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); text-decoration: none; cursor: default; user-select: none; pointer-events: none; }
.hx-cue span { width: 1px; height: 44px; background: linear-gradient(var(--hx-gold-300), transparent); position: relative; overflow: hidden; }
.hx-cue span::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #fff; transform: translateY(-100%); animation: hxCue 2s ease-in-out 3; }
@keyframes hxCue { to { transform: translateY(110%); } }
.hx-curve { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: clamp(40px, 6vw, 90px); display: block; }

@media (max-width: 991.98px) {
  .hx { min-height: 0; padding-top: calc(72px + 2.5rem); }
  .hx-grid { grid-template-columns: 1fr; gap: 4rem; }
  .hx-visual { width: min(76%, 340px); }
  .hx-cue { display: none; }
}
@media (max-width: 479.98px) { .hx-visual { width: min(84%, 340px); } .hx-award { padding: .6rem .9rem .6rem .6rem; } .hx-award .ic { width: 34px; height: 34px; } .hx-award strong { font-size: .88rem; } }
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; }
  .hx h1 .line > span, .hx-in, .hx-award { opacity: 1; transform: none; }
  .hx-award { transform: translate(-50%, 50%); }
  .hx-portrait-inner { clip-path: none; } .hx-portrait-inner img { transform: none; }
}

/* The hero carries the large logo, so the small nav logo appears only after scrolling */
body[data-page="home"] .site-nav:not(.is-scrolled):not(.menu-open) .navbar-brand { opacity: 0; pointer-events: none; }
.site-nav .navbar-brand { transition: opacity .3s; }

/* skyline draw-in at double speed (delays and durations are halved in the markup) */
.hx .hx-skyline .draw { animation-duration: 1.2s; }
.hx .hx-skyline .fill-fade { animation-duration: .8s; }
 
/* Signs: separate small layers, animated with transform/opacity only (compositor, no repaint of the skyline) */
.hx-signs { position: absolute; z-index: 0; left: 0; right: 0; bottom: clamp(24px, 4vw, 60px); width: 100%; aspect-ratio: 3200 / 330; pointer-events: none; }
.hx-sign { position: absolute; top: 49.58%; width: 2.175%; aspect-ratio: 58 / 48; transform-origin: 50% 0; opacity: 0; will-change: transform; animation: hxSignIn .6s ease 2.6s forwards, hxSwing1 4.6s steps(23) -2.2s infinite alternate; }
.hx-sign svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-sign .face-a { will-change: opacity; animation: faceSale 12s ease-in-out 4.6s infinite; }
.hx-sign .face-b { opacity: 0; will-change: opacity; animation: faceSold 12s ease-in-out 4.6s infinite; }
.hx-sign.s2 { animation: hxSignIn .6s ease 3.2s forwards, hxSwing2 3.4s steps(17) -1.6s infinite alternate; }
.hx-sign.s2 .face-a { animation-delay: 9.4s; } .hx-sign.s2 .face-b { animation-delay: 9.4s; }
@keyframes hxSignIn { to { opacity: 1; } }
/* Waterford flag (blue and white) on the pediment building: vertical strips ripple out of phase */
.hx-flag { position: absolute; top: 29.4%; width: 0.8%; aspect-ratio: 44 / 30; opacity: 0; animation: hxFlagIn .5s ease 2.05s forwards; }
@keyframes hxFlagIn { to { opacity: .55; } }
.hx-flag i { position: absolute; top: 0; bottom: 0; width: 10.5%; will-change: transform; animation: flagWave 1.6s steps(8) infinite alternate; animation-delay: calc(var(--i) * -.2s); }
@keyframes flagWave { from { transform: translate3d(0, calc(var(--a) * -1%), 0); } to { transform: translate3d(0, calc(var(--a) * 1%), 0); } }
@media (prefers-reduced-motion: reduce) { .hx-flag { opacity: .55; animation: none; } .hx-flag i { animation: none; } }
@keyframes hxSwing1 { 0% { transform: rotate(-6deg); } 100% { transform: rotate(6deg); } }
@keyframes hxSwing2 { 0% { transform: rotate(5deg); } 100% { transform: rotate(-8deg); } }
@media (max-width: 767.98px) { .hx-signs { bottom: 40px; height: 120px; width: calc(120px * 3200 / 330); left: 50%; right: auto; transform: translateX(-50%); aspect-ratio: auto; } .hx-sign { opacity: 0; } @keyframes hxSignIn { to { opacity: 1; } } }
@media (prefers-reduced-motion: reduce) { .hx-sign { opacity: 1; } .hx-sign .face-b { opacity: 0; } }

/* Inner-page headers: same dark teal, atmosphere and curved bottom edge as the home hero */
.page-hero { background: #041b1e; padding-bottom: calc(4rem + clamp(40px, 6vw, 90px)); }
.page-hero::before, .page-hero::after { display: none !important; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hx-aurora { z-index: 0; }

.hx-actions .btn-gold { padding-left: 3rem; padding-right: 3rem; }
/* the gold gradient only paints inside the element's box, so give it room below for descenders (the g) */
.hx h1 .hx-gold { padding-bottom: .22em; margin-bottom: -.22em; }

/* Portrait: 250px top-right corner, 30px elsewhere; gold outline draws round after the photo has risen, then stays */
/* sample: portrait with a 250px top-right corner and 30px elsewhere; gold outline draws all the way round and stays */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hx-portrait { --r: 30px 250px 30px 30px; --ri: 27px 247px 27px 27px; padding: 0; overflow: visible; border-radius: var(--r); animation: none; background: none; }
.hx-portrait::before { display: none; }
.hx-portrait-inner { border-radius: var(--r); clip-path: inset(100% 0 0 0 round 30px 250px 30px 30px); }
@keyframes hxReveal { to { clip-path: inset(0 0 0 0 round 30px 250px 30px 30px); } }
.hx-halo { inset: 0; border-radius: var(--r, 30px 250px 30px 30px); background: none; filter: none; box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 0 90px rgba(210,182,119,.16); opacity: 0; animation: hxFade 1s ease 1.4s forwards; }
.hx-ring-wrap { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 30px 250px 30px 30px; -webkit-mask-image: conic-gradient(from 180deg, #000 var(--sweep), transparent var(--sweep)); mask-image: conic-gradient(from 180deg, #000 var(--sweep), transparent var(--sweep)); animation: hxSweep 2.2s cubic-bezier(.45,.05,.25,1) .9s forwards; }
.hx-ring { position: absolute; inset: 0; border-radius: 30px 250px 30px 30px; padding: 3px; background: linear-gradient(135deg, #e6d3a6 0%, #a8894a 45%, #e6d3a6 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@keyframes hxSweep { to { --sweep: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hx-ring-wrap { animation: none; --sweep: 360deg; } }
  
/* My approach: dark teal panel (same as the footer), centred heading */
.approach-dark { background: var(--teal-950); color: rgba(255,255,255,.78); }
.approach-dark h2, .approach-dark h3 { color: #fff; }
.approach-dark .eyebrow { color: var(--gold-400); }
.approach-dark .eyebrow::before { background: var(--gold-400); }
.approach-dark .lead, .approach-dark p { color: rgba(255,255,255,.78); }
.approach-dark .promise { border-top-color: rgba(255,255,255,.18); }
.approach-dark .promise .num { color: var(--gold-400); }

/* Service cards on the home page: whole card is a link, no numbers, icon stays put */
a.card-dp.card-link { display: block; color: inherit; text-decoration: none; }
a.card-dp.card-link h3 { color: var(--teal-900); }
a.card-dp.card-link p { color: var(--ink-soft, #4a5a5c); }
.card-dp.card-link:hover .icon { background: var(--teal-800); transform: none; }
.card-dp.card-link:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* Coaching band: no background decoration */
.coach-band::before { display: none; }

.testi blockquote p { font-size: clamp(1.1rem, 1.55vw, 1.4rem); line-height: 1.6; }

/* Testimonial carousel: slides are stacked in one grid cell, so the box is always as tall as the longest review and slides only cross-fade (no height jump) */
#testiCarousel .carousel-inner { display: grid; }
#testiCarousel.carousel-fade .carousel-item { display: block; float: none; grid-area: 1 / 1; margin: 0; align-self: center; opacity: 0; visibility: hidden; transform: none; transition: opacity .7s ease, visibility 0s linear .7s; }
#testiCarousel.carousel-fade .carousel-item.active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { #testiCarousel.carousel-fade .carousel-item { transition: none; } }

/* Service cards: icon sits in a notch at the top edge of the card */
.card-dp.card-link { overflow: visible; padding-top: 3.6rem; text-align: center; margin-top: 31px; height: calc(100% - 31px); }
.card-dp.card-link::before { border-radius: var(--radius) var(--radius) 0 0; }
.card-dp.card-link .icon { position: absolute; z-index: 2; top: -31px; left: 50%; margin: 0; translate: -50% 0; box-shadow: 0 14px 26px -10px rgba(7,42,46,.45); }

/* Frosted-glass cards (services and testimonials) over very soft colour patches */
.glass-sec { position: relative; overflow: hidden; isolation: isolate; }
.glass-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(460px 340px at 14% 62%, rgba(15,70,75,.17), transparent 70%),
    radial-gradient(420px 320px at 50% 78%, rgba(168,137,74,.20), transparent 70%),
    radial-gradient(460px 340px at 88% 58%, rgba(15,70,75,.14), transparent 70%); }
a.card-dp.card-link { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.75); box-shadow: 0 18px 40px -22px rgba(7,42,46,.35), inset 0 1px 0 rgba(255,255,255,.85); }
a.card-dp.card-link:hover { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.9); box-shadow: 0 34px 60px -28px rgba(7,42,46,.45), inset 0 1px 0 rgba(255,255,255,.95); }
/* testimonials: same frosted card; blobs sit behind the carousel */
.testimonials.glass-sec::before { background:
    radial-gradient(520px 360px at 18% 60%, rgba(15,70,75,.17), transparent 70%),
    radial-gradient(480px 340px at 52% 85%, rgba(168,137,74,.20), transparent 70%),
    radial-gradient(520px 360px at 84% 40%, rgba(15,70,75,.14), transparent 70%); }
.testimonials .testi { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.75); box-shadow: 0 18px 40px -22px rgba(7,42,46,.35), inset 0 1px 0 rgba(255,255,255,.85); }
  
/* Award badge: never a text cursor, never selectable */
.hx-award, .hx-award * { cursor: default; -webkit-user-select: none; user-select: none; }
.hx-visual { cursor: default; }

/* Testimonial navigation: arrows either side of the dots */
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 1.8rem; }
#testiCarousel .testi-dots { position: static; margin: 0; display: flex; justify-content: center; }
.testi-arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #fff; background: var(--teal-900); border: 1px solid var(--teal-900); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.testi-arrow svg { width: 20px; height: 20px; }
.testi-arrow:hover { background: rgba(255,255,255,.6); color: var(--teal-900); border-color: rgba(7,42,46,.18); }
.testi-prev:hover { transform: translateX(-2px); } .testi-next:hover { transform: translateX(2px); }
.testi-arrow:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* Intro: same cream + soft colour patches as the testimonials */
.intro-bg { position: relative; overflow: hidden; isolation: isolate; }
.intro-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
    radial-gradient(520px 360px at 12% 55%, rgba(15,70,75,.17), transparent 70%),
    radial-gradient(480px 340px at 50% 90%, rgba(168,137,74,.09), transparent 70%),
    radial-gradient(520px 360px at 90% 30%, rgba(15,70,75,.14), transparent 70%); }

/* Intro portrait: circle, partial gold arc, ground shadow */
.intro-photo { position: relative; width: 100%; max-width: 290px; aspect-ratio: 1; margin: 0 auto; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; position: relative; box-shadow: 0 18px 30px -14px rgba(7,42,46,.4); }
.intro-photo svg { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); rotate: -90deg; z-index: 1; overflow: visible; pointer-events: none; }
.intro-photo circle { fill: none; stroke: #b79d5c; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 72 100; }
.intro-photo .ground { position: absolute; left: 12%; right: 12%; bottom: -34px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(7,42,46,.35), transparent); filter: blur(4px); }

/* Footer: no gradient top border */
.site-footer::before { content: none; }

/* Contact form: all fields share the message box's look and rounded focus outline */
.form-control { border: 1.5px solid transparent; border-radius: 10px; background: var(--cream); padding: .8rem 1.1rem; }
.form-control:focus { background: #fff; border-color: var(--gold-500); box-shadow: none; }
.was-validated .form-control:invalid { border-color: #b4483a; }
.field-count { position: relative; }
.field-count textarea.form-control { padding-bottom: 2.6rem; }
.count-ring { position: absolute; right: .8rem; bottom: .7rem; width: 34px; height: 34px; display: grid; place-items: center; pointer-events: none; }
.count-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.count-ring circle { fill: none; stroke-width: 3; }
.count-ring .trk { stroke: rgba(7,42,46,.12); }
.count-ring .bar { stroke: var(--teal-800, #0f464b); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear, stroke .2s; }
.count-ring .num { position: relative; font-size: .62rem; font-weight: 600; color: var(--teal-900, #0b3a3f); font-variant-numeric: tabular-nums; }
.count-ring.warn .bar { stroke: #c08a1f; } .count-ring.low .bar { stroke: #b4483a; } .count-ring.low .num { color: #b4483a; }

/* About: centred single-column sections */
.center-col { max-width: 48rem; margin: 0 auto; text-align: center; }
.center-col .eyebrow { justify-content: center; }
.cred-list--center { max-width: 40rem; margin-left: auto; margin-right: auto; text-align: left; }
.chips--solid { justify-content: center; }
.chips--solid li, .chips--solid li:hover { background: var(--teal-800); color: #fff; border-color: var(--teal-800); transform: none; cursor: default; }
.chips--solid li svg, .chips--solid li:hover svg { stroke: var(--gold-400); }

/* CTA band: no golden glow */
.cta::before { content: none; }

/* Text links with arrows: no letter-spacing growth; quiet colour shift and a small arrow nudge */
.link-arrow { transition: color .35s ease, border-color .35s ease; }
.link-arrow:hover { letter-spacing: 0; color: var(--gold-600); border-bottom-color: var(--gold-600); }
.link-arrow span[aria-hidden="true"] { display: inline-block; transition: transform .35s ease; }
.link-arrow:hover span[aria-hidden="true"] { transform: translateX(3px); }

/* Agents Together mentor badge link */
.mentor-link { text-decoration: none; color: inherit; }
.mentor-link:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 6px; border-radius: 12px; }

/* Property services: static green icons with white glyphs, no hover change */
.service-icon, .service-row:hover .service-icon, .section--cream:hover > .container > .row > div > .service-icon { background: var(--teal-800); transform: none; transition: none; }
.service-icon svg, .service-row:hover .service-icon svg { stroke: #fff; }

/* Property services: centred single-column sections */
.service-row { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; max-width: 48rem; margin-inline: auto; gap: 1.2rem; }
.service-row .service-icon { margin: 8px auto 1.4rem; }
.service-row .body { max-width: 44rem; }
.center-col .service-icon { margin: 8px auto 1rem; }
.lb-center > div { flex: 0 0 100%; max-width: 100%; text-align: center; }
.lb-center .eyebrow { justify-content: center; }
.lb-center h2, .lb-center p { max-width: 46rem; margin-inline: auto; }
.lb-center .award { max-width: 28rem; margin: 0 auto; text-align: left; }
.val-card { text-align: center; }

/* Wider reading width on large screens */
.service-row { max-width: 66rem; }
.service-row .body { max-width: 58rem; }
.center-col.val-intro, #valuations .center-col { max-width: 58rem; }
.lb-center h2, .lb-center p { max-width: 54rem; }
@media (min-width: 1500px) { .service-row { max-width: 72rem; } .service-row .body { max-width: 64rem; } }

/* Valuation cards: same frosted glass look as the home page service cards */
div.card-dp.card-link.val-card { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.75); box-shadow: 0 18px 40px -22px rgba(7,42,46,.35), inset 0 1px 0 rgba(255,255,255,.85); cursor: default; }
div.card-dp.card-link.val-card:hover { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.9); box-shadow: 0 34px 60px -28px rgba(7,42,46,.45), inset 0 1px 0 rgba(255,255,255,.95); }
.val-card.card-link:hover .icon { background: var(--teal-800); transform: none; }
.val-card p { margin-top: 0; }
.val-row { margin-top: 1rem; }

/* Valuation cards are not links: no hover effect at all */
div.card-dp.card-link.val-card, div.card-dp.card-link.val-card:hover { transform: none; background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.75); box-shadow: 0 18px 40px -22px rgba(7,42,46,.35), inset 0 1px 0 rgba(255,255,255,.85); transition: none; }
.val-card.card-link:hover::before { transform: scaleX(0); }

/* Anchor links: land with the section's content just below the sticky bars (sections carry large top padding) */
.service-row[id] { scroll-margin-top: calc(-1 * clamp(3.5rem, 7vw, 6rem) + 8px); }
#liberty-blue { scroll-margin-top: calc(-1.5rem + 8px); }
@media (min-width: 992px) { #liberty-blue { scroll-margin-top: calc(-3rem + 8px); } }
#valuations { scroll-margin-top: calc(-1 * clamp(4.5rem, 9vw, 8rem) + 8px); }

/* Service rows as frosted glass cards over soft colour patches */
.service-glass { padding: 4.5rem 0 3rem; }
.service-row--glass { position: relative; border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius); padding: 4rem clamp(1.5rem, 5vw, 4rem) 3rem; margin: 3.6rem auto 0;
  background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 18px 40px -22px rgba(7,42,46,.35), inset 0 1px 0 rgba(255,255,255,.85); }
.service-row--glass:first-child { margin-top: 0; }
.service-row--glass:last-of-type { border-bottom: 1px solid rgba(255,255,255,.75); }
.service-row--glass .service-icon { position: absolute; z-index: 2; top: -42px; left: 50%; margin: 0; translate: -50% 0; }
@media (max-width: 767.98px) { .service-row--glass .service-icon { top: -34px; } .service-row--glass { padding-top: 3.4rem; } }
.service-row--glass { margin-top: 5.6rem; }
.service-row--glass:first-child { margin-top: 0; }
.service-row--glass[id] { scroll-margin-top: 60px; }
@media (max-width: 767.98px) { .service-row--glass[id] { scroll-margin-top: 52px; } }

/* Service icons: icon stays anchored to the card (no slide-in on its wrapper, so it can't jump) */
.service-row--glass > .reveal-left, .service-row--glass > .reveal-left.in { transform: none; }

#coverage { scroll-margin-top: -16px; }

/* Service cards: fading horizontal divider between the two paragraphs */
.service-row--glass .body p:first-child { margin-bottom: 1.6rem; }
.service-row--glass .body p + p { position: relative; margin-top: 0 !important; padding-top: 1.6rem; }
.service-row--glass .body p + p::before { content: ""; position: absolute; top: 0; left: 50%; width: min(100%, 34rem); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(7,42,46,.18), transparent); }

/* Coaching: divider inside the combined intro */
.soft-rule { height: 1px; width: min(100%, 34rem); margin: 3.6rem auto 3.2rem; background: linear-gradient(90deg, transparent, rgba(7,42,46,.2), transparent); }

/* Coaching focus areas: green frosted glass cards, no numbers, no hover */
.focus-glass { position: relative; overflow: hidden; isolation: isolate; }
.focus-glass::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
    radial-gradient(520px 340px at 12% 70%, rgba(40,130,135,.30), transparent 70%),
    radial-gradient(480px 320px at 50% 100%, rgba(195,167,102,.13), transparent 70%),
    radial-gradient(520px 340px at 90% 30%, rgba(40,130,135,.24), transparent 70%); }
.focus-row .card-dp.card-link.focus-card { background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 22px 44px -26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14); cursor: default; transform: none; transition: none; }
.focus-row .card-dp.card-link.focus-card:hover { transform: none; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); box-shadow: 0 22px 44px -26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14); }
.focus-card:hover::before { transform: scaleX(0); }
.focus-card:hover .icon { background: var(--gold-500); transform: none; }
.focus-card .icon { background: var(--gold-500) !important; box-shadow: 0 14px 26px -10px rgba(0,0,0,.5); }
.focus-card p { color: rgba(255,255,255,.78); }

/* Coaching approach: centred stats */
.approach-stats .card-line { border-left: 0; border-top: 2px solid var(--gold-500); padding: 1.1rem .5rem 0; text-align: center; }

/* Responsive audit fixes */
/* footer: stack the contact column on small phones so the email never breaks mid-word */
@media (max-width: 575.98px) { .site-footer .row > .col-6.col-lg-3:last-child { flex: 0 0 100%; max-width: 100%; } }
/* testimonial dots: larger invisible tap area */
.testi-dots button { position: relative; }
.testi-dots button::after { content: ""; position: absolute; inset: -16px -5px; }
/* services sub-menu: fit all links on tablets */
@media (max-width: 991.98px) { .subnav .nav-link { padding: .5rem .55rem; font-size: .8rem; } .subnav .nav { gap: .05rem; } }
/* card rows with an odd count: centre the last row */
.glass-sec .row { justify-content: center; }
/* about: centre the intro text when it stacks above the portrait */
@media (max-width: 991.98px) { .beyond-text { text-align: center; } .beyond-text .eyebrow { justify-content: center; } }

/* Page background: warm grey in place of the near-white */
:root { --paper: #dfdcd4; --bs-body-bg: #dfdcd4; }
.site-nav.is-scrolled, .site-nav.menu-open { background: rgba(252, 250, 245, .94); }
.subnav { background: rgba(223, 220, 212, .94); }

/* Contact, Property Services and the home "How I can help" section keep the original light background */
body[data-page="contact"], body[data-page="services"] { --paper: #fcfaf5; --bs-body-bg: #fcfaf5; background: #fcfaf5; }
body[data-page="contact"] .site-nav.is-scrolled, body[data-page="contact"] .site-nav.menu-open,
body[data-page="services"] .site-nav.is-scrolled, body[data-page="services"] .site-nav.menu-open { background: rgba(252, 250, 245, .94); }
body[data-page="services"] .subnav { background: rgba(252, 250, 245, .94); }
body[data-page="home"] section.glass-sec:not(.testimonials) { background: #fcfaf5; }

/* Coaching: "How I work" background */
.how-i-work { background: #efede4; }

/* Property Services main section: more visible colour patches */
.service-glass::before { background:
    radial-gradient(520px 420px at 10% 30%, rgba(15,70,75,.30), transparent 70%),
    radial-gradient(560px 420px at 50% 55%, rgba(168,137,74,.34), transparent 70%),
    radial-gradient(520px 420px at 92% 80%, rgba(15,70,75,.28), transparent 70%); }

/* Home service cards: gold top edge follows the rounded corners instead of overflowing them */
.card-dp.card-link::before { top: 0; left: 0; right: 0; bottom: 0; height: auto; background: none; border-top: 3px solid var(--gold-500); border-radius: var(--radius); pointer-events: none; }

/* Home intro: fade the colour patches in so they never form a hard line under the hero wave */
.intro-bg::before { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 220px); mask-image: linear-gradient(to bottom, transparent 0, #000 220px); }
.service-glass::before { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }

/* Liberty Blue band: the gold glow sits beneath the green card (peeking out at its top-right corner), not on top of it */
.lb-band::after { content: none; }
#liberty-blue { overflow-x: clip; }
#liberty-blue > .container { position: relative; }
#liberty-blue > .container::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 440px; height: 440px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(195,167,102,.45), rgba(195,167,102,0) 68%); }

/* Property Services: calmer colour patches, slightly deeper glass for better contrast */
.service-glass::before { background:
    radial-gradient(520px 420px at 10% 30%, rgba(15,70,75,.19), transparent 70%),
    radial-gradient(560px 420px at 50% 55%, rgba(168,137,74,.21), transparent 70%),
    radial-gradient(520px 420px at 92% 80%, rgba(15,70,75,.17), transparent 70%); }
.service-row--glass { background: rgba(228, 225, 214, .66); border-color: rgba(255,255,255,.7); }

/* Footer: centred on small phones, smaller monogram */
@media (max-width: 575.98px) {
  .site-footer { text-align: center; }
  .site-footer .foot-logo { width: 98px !important; margin-left: auto; margin-right: auto; display: block; }
  .site-footer .row > .col-6 { flex: 0 0 100%; max-width: 100%; }
  .site-footer .row > [class*="col"] ~ [class*="col"] { margin-top: 2.2rem; }
  .site-footer .foot-bottom { align-items: center; justify-content: center; text-align: center; }
}

/* Home hero: scale down and add margin below 1300px; drop the portrait at 992px */
@media (max-width: 1299.98px) {
  .hx .container { max-width: none; padding-left: clamp(2.5rem, 7vw, 5.5rem); padding-right: clamp(2.5rem, 7vw, 5.5rem); }
  .hx-grid { gap: clamp(2rem, 4.5vw, 4rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hx-logo img { width: min(100%, clamp(288px, 34.8vw, 408px)); }
  .hx h1 { font-size: clamp(1.55rem, 2.45vw, 2.1rem); }
  .hx-lead { font-size: clamp(.95rem, 1.35vw, 1.08rem); }
  .hx-visual { width: min(100%, clamp(250px, 30vw, 360px)); margin-bottom: 2rem; }
  .hx-award { padding: .65rem 1rem; gap: .65rem; }
  .hx-award .ic { width: 36px; height: 36px; }
  .hx-award strong { font-size: .9rem; }
  .hx-award small { font-size: .62rem; }
}
@media (max-width: 991.98px) {
  .hx-visual { display: none; }
  .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hx-lead { max-width: none; }
}
@media (max-width: 575.98px) {
  .hx .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 991.98px) {
  .hx-copy { text-align: center; }
  .hx-lead { margin-left: auto; margin-right: auto; }
  .hx-actions, .hx-trust { justify-content: center; }
  .hx-trust { border-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%) 1; }
}

@media (max-width: 991.98px) { .hx-logo img { width: min(100%, clamp(331px, 40vw, 469px)); } }

/* Home promises: centred when stacked */
@media (max-width: 767.98px) {
  .promise { text-align: center; }
  .promise::before { left: 50%; transform: translateX(-50%); }
}

/* Mobile dropdown menu: same background as the navbar on every page */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { background: rgba(252, 250, 245, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* Testimonials below 992px: tighter space above the controls */
@media (max-width: 991.98px) {
  #testiCarousel .carousel-inner { transition: height .4s ease; }
  #testiCarousel.carousel-fade .carousel-item { align-self: start; }
  .testi-nav { margin-top: 1.1rem; }
}

/* Mobile menu: larger links with more space around each */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-top: 1.1rem; padding-bottom: 2rem; }
  .site-nav .navbar-nav { gap: .35rem; }
  .site-nav .nav-link { font-size: 1.1rem; padding: 1.05rem 0 !important; }
  .site-nav .nav-link::after { bottom: .7rem; }
}

/* Mobile menu: solid, and it opens below the bar instead of squashing the logo and toggle upward */
@media (max-width: 991.98px) {
  .site-nav.menu-open { background: #fcfaf5; }
  .site-nav .navbar-collapse {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: #fcfaf5; -webkit-backdrop-filter: none; backdrop-filter: none;
    max-height: calc(100svh - var(--nav-h, 84px)); overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav .container { flex-wrap: nowrap; }
}

/* Footer monogram: 20% smaller (phones override this above, at 98px) */
@media (min-width: 576px) { .site-footer .foot-logo { width: 136px !important; } }

/* Service icons: the gap between the icon and its gold ring is filled with the hero's deep-green aurora */
.service-icon, .service-row:hover .service-icon, .section--cream:hover > .container > .row > div > .service-icon { background: transparent; isolation: isolate; }
.service-icon::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: var(--teal-800); }
.service-icon::after {
  z-index: -2; opacity: 1; border: 1.5px solid rgba(168, 137, 74, .6);
  background:
    radial-gradient(circle at 18% 12%, rgba(28, 106, 112, .95) 0%, transparent 62%),
    radial-gradient(circle at 92% 95%, rgba(201, 169, 100, .45) 0%, transparent 58%),
    radial-gradient(circle at 70% 40%, rgba(23, 87, 93, .9) 0%, transparent 60%),
    #082f33;
}
.service-icon::before { content: none; }
/* Service icons: darker, closer to the hero (base #041b1e with the aurora at about half strength) */
.service-icon::after {
  background:
    radial-gradient(circle at 18% 12%, rgba(28, 106, 112, .55) 0%, transparent 62%),
    radial-gradient(circle at 92% 95%, rgba(201, 169, 100, .28) 0%, transparent 58%),
    radial-gradient(circle at 70% 40%, rgba(23, 87, 93, .5) 0%, transparent 60%),
    #041b1e;
}
/* Service icons: halfway between the first and darker versions */
.service-icon::after {
  background:
    radial-gradient(circle at 18% 12%, rgba(28, 106, 112, .75) 0%, transparent 62%),
    radial-gradient(circle at 92% 95%, rgba(201, 169, 100, .37) 0%, transparent 58%),
    radial-gradient(circle at 70% 40%, rgba(23, 87, 93, .7) 0%, transparent 60%),
    #06252a;
}
/* Service icons: green only, no yellow glow */
.service-icon::after {
  background:
    radial-gradient(circle at 18% 12%, rgba(28, 106, 112, .75) 0%, transparent 62%),
    radial-gradient(circle at 92% 95%, rgba(23, 87, 93, .45) 0%, transparent 58%),
    radial-gradient(circle at 70% 40%, rgba(23, 87, 93, .7) 0%, transparent 60%),
    #06252a;
}

/* Intro credentials: keep each icon level with the first line of its text when the text wraps */
.trust-inline .trust-item { align-items: flex-start; }
.trust-inline .trust-item svg { margin-top: 1px; }

/* About: "Outside work" with the seafront photo as a subtle background */
.outside-bg { position: relative; overflow: hidden; isolation: isolate; }
.outside-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/img/seafront.jpg") center 55% / cover no-repeat;
  opacity: .1; filter: saturate(.75);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}

/* Services: "Property advice" with a faint model-house photo */
.advice-bg { position: relative; overflow: hidden; isolation: isolate; padding: 2.5rem 0 3rem; }
.advice-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/img/property-advice.jpg") center / cover no-repeat;
  opacity: .08;
}

/* Success toast (contact form) */
.dppc-toast {
  position: fixed; left: 50%; top: calc(var(--nav-h, 84px) + 16px); z-index: 2000;
  display: flex; align-items: center; gap: .65rem;
  width: max-content; max-width: calc(100vw - 2rem); padding: .85rem 1.25rem;
  background: #1f7a45; color: #fff; font-weight: 500; font-size: .98rem; line-height: 1.35;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(15,70,40,.28);
  opacity: 0; transform: translate(-50%, -12px);
  transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.dppc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.dppc-toast svg { width: 22px; height: 22px; flex: 0 0 22px; }
@media (prefers-reduced-motion: reduce) { .dppc-toast { transition: none; } }
