/*
Theme Name: Palladium Properties
Theme URI: https://palladiumproperties.ae
Author: Palladium
Description: Custom one-page theme for Palladium Properties - Dubai real estate. Hero scroll sequence (GSAP), section-based front page.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: palladium
*/

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #ffffff; overflow-x: hidden; }
body { font-family: 'Instrument Sans', sans-serif; }
img, video, iframe { max-width: 100%; height: auto; }

/* Blocks Canvas pages: an empty paragraph block left at the top of a page
   (easy to miss in the editor) would otherwise add a white gap above the
   first section. Collapse empty paragraphs and any stray top margin so
   sections always sit flush against the top of the page. */
.page-template-template-blocks p.wp-block-paragraph:empty,
.page-template-template-blocks p:empty { display: none; }
.page-template-template-blocks .hero,
.page-template-template-blocks > .wp-block-acf-palladium-hero { margin-top: 0; }

/* Front page (front-page.php) — same empty-block collapse + kill any admin-bar / Gutenberg top spacing */
body.home p.wp-block-paragraph:empty,
body.home p:empty { display: none; }
body.home .hero { margin-top: 0; }
body.home { margin-top: 0 !important; padding-top: 0 !important; }
html:has(body.home) { margin-top: 0 !important; }

/* ============ HERO ============ */
.hero { position: relative; height: 320vh; }
.hero-stage { position: relative; height: 100vh; width: 100%; overflow: hidden; display: grid; place-items: center; background: #ffffff; }
.layer { position: absolute; will-change: transform, opacity; }
.layer-sky { inset: -6% 0 0 0; width: 100%; height: 112%; object-fit: cover; transform: scale(1.05); z-index: 1; }
.brand-outline { position: absolute; z-index: 2; top: 40%; left: 50%; transform: translate(-50%,-50%); text-align: center;
  font-family: Georgia, 'Times New Roman', serif; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.9); opacity: 0; pointer-events: none; white-space: nowrap; }
.brand-outline .big { font-size: clamp(5rem, 16vw, 14rem); font-weight: 700; letter-spacing: .08em; line-height: .9; display:block; }
.brand-outline .sub { font-size: clamp(1.2rem, 3.6vw, 3rem); letter-spacing: .4em; display:block; margin-top: .4em; }
/* villa: slides up from below, NO scale, locks. */
.layer-villa { bottom: 0; left: 50%; transform: translate(-50%, 0); transform-origin: center bottom;
  width: 100%; height: auto; max-width: none; z-index: 3; filter: drop-shadow(0 30px 55px rgba(0,0,0,0.3)); }
/* smoke: in FRONT of building base, rises softly */
.layer-smoke { bottom: 0; left: 50%; transform: translateX(-50%); height: 42vh; width: auto; min-width: 150%; max-width: none; z-index: 4; opacity: .9; pointer-events: none; }
/* MOBILE: villa is width-driven; enlarge so it fills the frame like desktop. */
@media (max-width: 820px){ .layer-villa { width: 260%; min-width: 260%; max-width: none; } }
@media (max-width: 480px){ .layer-villa { width: 320%; min-width: 320%; } }
/* WHITE BLEND: bottom-up gradient that fades in during knockout phase. */
.layer-blend-white { position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.35) 30%,
    rgba(255,255,255,0.85) 60%,
    #ffffff 75%,
    #ffffff 100%);
  z-index: 4; pointer-events: none; opacity: 0; }
/* CLOUDS: left + right side clouds flanking the building. Right is mirrored via scaleX. */
.layer-cloud { position: absolute; bottom: 42%; width: 42%; z-index: 4; pointer-events: none; }
.layer-cloud img { width: 100%; height: auto; display: block; }
.layer-cloud-left  { left: -14%; transform-origin: bottom left; }
.layer-cloud-right { right: -14%; transform-origin: bottom right; }
.layer-cloud-right img { transform: scaleX(-1); }

/* HAZE: full-screen smoky atmosphere layer, fades IN during knockout phase. */
.layer-haze { position: absolute; left: -15%; top: -5%; width: 130%; height: 110%;
  object-fit: cover; z-index: 4; opacity: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 38% 50%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 38% 50%, black 30%, transparent 75%); }
.hero-copy { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; width: 100%; padding: 0 1.5rem; font-family: 'Instrument Sans', sans-serif; }
.hero-copy h1 { font-size: clamp(1.6rem, 6.6vw, 6rem); line-height: 1.02; margin: 0 0 1rem; letter-spacing: -0.03em; color: #11181d; white-space: nowrap; }
/* Desktop: much larger hero headline (up to 125px). Allow wrapping so the long
   headline doesn't overflow at that size. Mobile keeps the rule above. */
@media (min-width: 1025px){
  .hero-copy h1 { font-size: clamp(6rem, 9vw, 125px); white-space: normal; line-height: 1.0; }
  .hero-copy h1 .ln { display: block; }
}
@media (min-width: 1025px) and (max-width: 1600px){
  .hero-copy h1 { font-size: clamp(4rem, 6.2vw, 88px); }
  .why-text { font-size: clamp(1.2rem, 1.8vw, 1.75rem) !important; }
  .svc-head { font-size: clamp(1.4rem, 2.3vw, 2.2rem) !important; }
}
.hero-copy h1 .ln { display:inline-block; overflow:hidden; vertical-align:bottom; line-height:1.12; padding:0 .04em; }
.hero-copy h1 .ln em { display:inline-block; font-style:normal; transform:translateY(110%); will-change:transform; }
.hero-copy p { font-size: clamp(0.9rem, 1.6vw, 1.4rem); margin: 0 auto 1.8rem; max-width: none; font-family: 'Instrument Sans', sans-serif; color: #11181d; font-weight: 600; }
@media (min-width: 821px){ .hero-copy p { white-space: nowrap; } }
@media (max-width: 820px){ .hero-copy { padding: 0 0.8rem; } }
.hero-copy p .muted { color: #8a98a3; font-weight: 400; }
.hero-cta { font-family: 'Instrument Sans', sans-serif; font-size: 1rem; font-weight: 600; padding: 0.9rem 2.2rem; border: none; border-radius: 999px;
  background: #11181d; color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; transition: transform .2s ease, background .2s ease; }
.hero-cta:hover { transform: translateY(-2px); background: #2a3640; }

/* ============ NAV ============ */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 2.4rem; font-family: 'Instrument Sans', sans-serif; }
.nav .logo { display:flex; align-items:center; gap:.6rem; }
.nav a.logo { text-decoration:none; }
.nav .logo img { height:48px; width:auto; display:block; }
.nav .logo .wordmark { display:flex; flex-direction:column; line-height:1; }
.nav .logo .wordmark .wm-main { font-family:Georgia, serif; font-weight:800; font-size:1.15rem; letter-spacing:.04em; color:#11181d; }
.nav .logo .wordmark .wm-sub { font-family:'Instrument Sans', sans-serif; font-weight:600; font-size:.52rem; letter-spacing:.34em; color:#11181d; margin-top:.18rem; }
.nav .links { display: flex; gap: 1.5rem; font-size: 22px; color:#1f2a33; font-weight: 500; }
.nav .links span { cursor: pointer; }
.nav .signin { background:#11181d; color:#fff; border:none; border-radius:999px; padding:.6rem 1.4rem; font-size:.9rem; cursor:pointer; }
.nav .links .m-signin { display:none; }
.nav .menu-btn { display:none; background:none; border:none; cursor:pointer; padding:.4rem; flex-direction:column; gap:5px; }
.nav .menu-btn span { display:block; width:26px; height:2px; background:#11181d; border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
.nav.open .menu-btn span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2){ opacity:0; }
.nav.open .menu-btn span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.nav .links a { color:#1f2a33; text-decoration:none; font-weight:500; }
.navitem { position:relative; display:flex; align-items:center; }
.navitem > .nav-top { display:inline-flex; align-items:center; gap:5px; cursor:pointer; color:#1f2a33; font-weight:500; text-decoration:none; }
.navitem .caret { width:9px; height:9px; transition:transform .25s ease; opacity:.7; }
.navitem:hover .caret { transform:rotate(180deg); }
.navitem .dropdown { position:absolute; top:100%; left:-14px; min-width:210px; background:#fff; border-radius:12px;
  box-shadow:0 18px 50px rgba(17,24,29,.16); padding:.5rem 0; margin-top:14px;
  opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .22s ease, transform .22s ease, visibility .22s; z-index:40; }
.navitem .dropdown:before { content:""; position:absolute; top:-14px; left:0; right:0; height:14px; }
.navitem:hover .dropdown { opacity:1; visibility:visible; transform:none; }
.navitem .dropdown a { display:block; padding:.62rem 1.2rem; font-size:.92rem; color:#2a3640; font-weight:500; white-space:nowrap; }
.navitem .dropdown a:hover { background:#f4f6f8; color:#11181d; }
@media (max-width: 820px){
  .nav { padding:1.1rem 1.3rem; }
  .nav .menu-btn { display:flex; }
  .nav .signin { display:none; }
  /* slide-down panel holding the links + sign in */
  .nav .links { position:absolute; top:100%; left:0; right:0; display:flex; flex-direction:column; align-items:flex-start;
    gap:0; background:rgba(255,255,255,0.97); padding:0 1.3rem; box-shadow:0 12px 30px rgba(0,0,0,.12);
    max-height:0; overflow:hidden; transition:max-height .3s ease, padding .3s ease; }
  .nav.open .links { max-height:60vh; padding:.5rem 1.3rem 1.2rem; }
  .nav .links span { width:100%; padding:.85rem 0; border-bottom:1px solid rgba(0,0,0,.06); font-size:1.05rem; }
  .nav .links > a, .nav .links .navitem { width:100%; padding:.8rem 0; border-bottom:1px solid rgba(0,0,0,.06); font-size:1.05rem; }
  .nav .links .navitem { flex-direction:column; align-items:flex-start; gap:.2rem; }
  .navitem .caret { display:none; }
  .navitem .dropdown { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; margin:0;
    padding:.2rem 0 .1rem .9rem; background:transparent; min-width:0; }
  .navitem .dropdown:before { display:none; }
  .navitem .dropdown a { padding:.5rem 0; font-size:.95rem; color:#5a656d; }
  .nav .links .m-signin { display:block; color:#fff; background:#11181d; border-radius:999px; text-align:center; padding:.75rem 0; margin-top:.9rem; border:none; width:100%; }
}
/* Dark variant: white logo (CSS-inverted) + white links for dark hero backgrounds. */
.nav.on-dark .wm-main, .nav.on-dark .wm-sub { color:#fff; }
.nav.on-dark .links > a, .nav.on-dark .navitem > .nav-top { color:#eef2f5; }
.nav.on-dark .menu-btn span { background:#fff; }
.nav.on-dark .signin { background:#fff; color:#11181d; }
.nav.on-dark .logo .wm-main, .nav.on-dark .logo .wm-sub { color:#fff !important; opacity:1; }
@media (max-width: 820px){
  /* the slide-down mobile panel is white on every variant, so links inside revert to dark */
  .nav.on-dark .links > a, .nav.on-dark .navitem > .nav-top { color:#1f2a33; }
}
.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 7; display:flex; flex-direction:column; align-items:center; gap:.5rem; font-family: 'Instrument Sans', sans-serif; font-size:.7rem; letter-spacing:.25em; text-transform:uppercase; color:#2a3640; }
.scroll-line { width:1px; height:34px; background:#2a3640; animation:pulse 1.8s ease-in-out infinite; transform-origin:top; }
@keyframes pulse { 0%,100%{transform:scaleY(.35);opacity:.4;} 50%{transform:scaleY(1);opacity:1;} }

/* KNOCKOUT REVEAL (two-stage):
   STAGE A - outline letters revealed by a left-to-right clipPath wipe.
   STAGE B - building "fills in" inside letters via mask, outlines fade out. */
.reveal-knockout { position: absolute; left: 0; top: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.reveal-knockout svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.reveal-knockout .ko-outline { fill: none; stroke: #ffffff; stroke-width: 4;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.reveal-knockout .ko-fill { opacity: 0; }
.reveal-knockout .ko-line { font-size: 200px; }
@media (max-width: 1100px){ .reveal-knockout .ko-outline { stroke-width: 5; } }
@media (max-width: 820px) { .reveal-knockout .ko-outline { stroke-width: 6; } }
@media (max-width: 560px) { .reveal-knockout .ko-outline { stroke-width: 7; } }
@media (max-width: 1100px){ .reveal-knockout .ko-line { font-size: 150px; letter-spacing: 2px; } }
@media (max-width: 820px){  .reveal-knockout .ko-line { font-size: 104px; letter-spacing: 0px; } }
@media (max-width: 560px){  .reveal-knockout .ko-line { font-size: 70px;  letter-spacing: 0px; } }
@media (max-width: 400px){  .reveal-knockout .ko-line { font-size: 60px;  letter-spacing: 0px; } }

/* ============ WHY PALLADIUM ============ */
.why { background:#ffffff; color:#11181d; padding:4.5rem 4vw 5rem; margin-top:-1px; font-family: 'Instrument Sans', sans-serif; position:relative; z-index:1; }
.why-top { display:flex; flex-direction:column; align-items:center; text-align:center; gap:1.5rem; max-width:900px; margin:0 auto; }
.why .eyebrow { font-family:'Instrument Sans', sans-serif; font-size:1.5rem; letter-spacing:.04em; color:#11181d; font-weight:800; padding-top:.5rem; }
.why-text { font-family:'Instrument Sans',sans-serif; font-size:clamp(1.3rem, 1.8vw, 1.7rem); line-height:1.75; letter-spacing:-0.01em; font-weight:500; margin:0; text-align:center; color:#11181d; }
.why-text .head { color:#11181d; font-size:clamp(1.6rem, 2.8vw, 2.6rem); font-weight:700; letter-spacing:-0.02em; line-height:1.2; display:block; margin-bottom:1rem; }
.why-text .lead { color:#11181d; }
.why-video { margin-top:4.8rem; width:100%; aspect-ratio:16/7; border-radius:2px; overflow:hidden; position:relative; background:#1b2228; }
.why-video video { width:100%; height:100%; object-fit:cover; display:block; }
.why-video .vid-fallback { position:absolute; inset:0; z-index:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.9rem;
  background:linear-gradient(135deg,#2a3640,#11181d); color:#cfd6dc; font-family:'Instrument Sans', sans-serif; }
.why-video .vid-fallback .play { width:64px; height:64px; border-radius:999px; border:2px solid rgba(255,255,255,.55); display:grid; place-items:center; font-size:1.3rem; }
.why-video video { position:relative; z-index:1; }
@media (max-width:820px){ .why-top { grid-template-columns:1fr; gap:1rem; } .why-video { aspect-ratio:16/9; } .why-text { font-size:1.1rem !important; line-height:1.6; } }

/* ============ NEXT CHAPTER ============ */
.chapter { background:#ffffff; color:#11181d; padding:6rem 4vw 7rem; font-family:'Instrument Sans', sans-serif; position:relative; z-index:1; }
.chapter-head { font-size:clamp(1.6rem, 3vw, 3rem); line-height:1.1; letter-spacing:-0.02em; font-weight:700; margin:0 auto 3rem; text-align:center; }
@media (min-width:821px){ .chapter-head { white-space:nowrap; } }
.chapter-head .muted2 { color:#a7adb3; }
.chapter-gallery { display:flex; justify-content:center; max-width:1200px; margin:0 auto; }
/* Each tile is clipped into a rightward CHEVRON; tiles overlap so points nest into notches. */
.cfig { flex:0 0 30%; margin:0 0 0 -10%; position:relative; aspect-ratio:2/3; overflow:visible; }
.cfig:first-child { margin-left:0; }
.cfig-clip { position:absolute; inset:0; overflow:hidden; background:#e9eef2;
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%); }
.cfig-clip img { width:100%; height:100%; object-fit:cover; display:block; will-change:transform; }
.chev-stroke { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.chev-stroke path { fill:none; stroke:#ffffff; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.chapter-text { font-family:'Instrument Sans', sans-serif; font-size:clamp(1rem, 1.4vw, 1.25rem); line-height:1.7; font-weight:500; color:#11181d; max-width:720px; margin:3.5rem auto 0; text-align:center; }
.chapter-text .soft { color:#8a98a3; }
@media (max-width:820px){
  .chapter { padding:4rem 6vw 5rem; }
  .chapter-gallery { display:grid; grid-template-columns:repeat(2, 1fr); gap:.3rem; max-width:380px; }
  .cfig { flex:none; margin-left:0; aspect-ratio:2/3; }
  .chapter-head { margin-bottom:2.2rem; }
  .chapter-text { margin-top:2.6rem; max-width:none; }
}

/* ============ REAL ESTATE, REWIRED ============ */
.rewired { background:#11181d; color:#ffffff; padding:7rem 4vw 8rem; margin-top:-1px; font-family:'Instrument Sans', sans-serif; position:relative; z-index:1; }
.rw-top { display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; max-width:1100px; margin:0 auto 4rem; flex-wrap:wrap; }
.rw-head { font-size:clamp(2.2rem, 4.5vw, 4rem); line-height:1.05; letter-spacing:-0.02em; font-weight:700; margin:0; }
.rw-head .muted3 { color:#6b7780; }
.rw-cta { font-family:'Instrument Sans', sans-serif; font-size:1rem; font-weight:600; padding:0.9rem 2rem; border:none; border-radius:999px;
  background:#ffffff; color:#11181d; cursor:pointer; display:inline-flex; align-items:center; gap:.6rem; transition:transform .2s ease, background .2s ease; white-space:nowrap; }
.rw-cta:hover { transform:translateY(-2px); background:#e9eef2; }
.rw-steps { display:grid; grid-template-columns:repeat(3, 1fr); gap:2.5rem; max-width:1100px; margin:0 auto; }
.rw-step { border-top:1px solid rgba(255,255,255,.18); padding-top:1.4rem; }
.rw-num { font-family:'Instrument Sans', sans-serif; font-size:.85rem; font-weight:700; letter-spacing:.12em; color:#6b7780; }
.rw-step h3 { font-size:clamp(1.3rem, 2vw, 1.7rem); font-weight:700; margin:.6rem 0 .7rem; letter-spacing:-0.01em; }
.rw-step p { font-family:'Instrument Sans', sans-serif; font-size:1rem; line-height:1.55; color:#aab3ba; font-weight:400; margin:0; }
@media (max-width:820px){
  .rewired { padding:4.5rem 6vw 5.5rem; }
  .rw-top { flex-direction:column; align-items:flex-start; gap:1.4rem; margin-bottom:2.5rem; }
  .rw-steps { grid-template-columns:1fr; gap:1.8rem; }
}

/* ============ FOR AGENTS ============ */
.agents { background:#ffffff; color:#11181d; padding:6rem 4vw 7rem; font-family:'Instrument Sans', sans-serif; position:relative; z-index:1; }
.agents-wrap { display:grid; grid-template-columns:1fr 1.9fr; column-gap:4rem; max-width:none; margin:0; align-items:start; }
.agents-eyebrow { font-family:'Instrument Sans', sans-serif; font-size:1.5rem; font-weight:800; letter-spacing:.05em; color:#11181d; margin:0; }
.ag-portrait { width:100%; max-width:340px; aspect-ratio:5/6; object-fit:cover; border-radius:3px; margin-top:22rem; box-shadow:0 18px 42px rgba(0,0,0,.16); display:block; }
.agents-head { font-size:clamp(2.2rem, 4vw, 4.2rem); line-height:1.04; letter-spacing:-0.02em; font-weight:700; margin:0 0 2rem; }
.agents-head .own { color:#a7adb3; }
.ag-wide { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:3px; display:block; box-shadow:0 18px 42px rgba(0,0,0,.14); }
.agents-body { font-family:'Instrument Sans', sans-serif; font-size:1.3rem; line-height:1.65; font-weight:400; color:#74818a; margin:2.4rem 0 2.2rem; max-width:72ch; }
.agents-body .lead { color:#11181d; }
.agents-cta { font-family:'Instrument Sans', sans-serif; font-size:1rem; font-weight:600; padding:0.9rem 2.1rem; border:none; border-radius:999px;
  background:#11181d; color:#fff; cursor:pointer; display:inline-flex; align-items:center; gap:.6rem; transition:transform .2s ease, background .2s ease; }
.agents-cta:hover { transform:translateY(-2px); background:#2a3640; }
@media (max-width:820px){
  .agents { padding:4.5rem 6vw; }
  .agents-wrap { grid-template-columns:1fr; row-gap:1.6rem; }
  .agents-eyebrow { margin-bottom:.2rem; }
  .ag-portrait { margin-top:0; max-width:280px; }
}

/* ============ TESTIMONIALS ============ */
.voices { background:#f4f6f8; color:#11181d; padding:7rem 4vw; font-family:'Instrument Sans', sans-serif; position:relative; z-index:1; }
.voices-head { font-size:clamp(2.2rem, 5vw, 4rem); font-weight:700; letter-spacing:-0.02em; line-height:1.05; margin:0 0 3rem; max-width:none; }
.voices-head .muted4 { color:#a7adb3; }
.voices-wrap { display:grid; grid-template-columns:1fr 1fr; gap:4.5rem; max-width:none; margin:0; align-items:center; }
.voices-media img { width:100%; aspect-ratio:16/11; object-fit:cover; border-radius:2px; display:block; box-shadow:0 18px 42px rgba(17,24,29,.12); }
.vp-rule { height:1px; background:#ccd4da; width:100%; margin-bottom:1.6rem; }
.vp-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:2.2rem; }
.vp-dots { display:flex; gap:.7rem; }
.vp-dot { width:38px; height:38px; border-radius:50%; border:1px solid #c2ccd3; background:transparent; color:#8a98a3; font-family:'Instrument Sans', sans-serif; font-size:.9rem; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:border-color .2s, color .2s; }
.vp-dot.active { border-color:#11181d; color:#11181d; }
.vp-dot:hover { border-color:#11181d; }
.vp-mark { font-family:'Instrument Sans', sans-serif; font-size:4rem; line-height:.55; color:#11181d; font-weight:700; }
.vp-body { animation:vfade .45s ease; }
@keyframes vfade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.vp-quote { font-family:'Instrument Sans', sans-serif; font-size:clamp(1.3rem, 1.7vw, 1.7rem); line-height:1.45; color:#11181d; margin:0 0 2rem; min-height:8em; }
.vp-person { display:flex; align-items:center; gap:1.1rem; }
.vp-name { font-family:'Instrument Sans', sans-serif; font-size:.85rem; font-weight:700; letter-spacing:.1em; color:#11181d; text-transform:uppercase; }
.vp-sep { color:#c2ccd3; }
.vp-stars { color:#11181d; letter-spacing:2px; font-size:.95rem; }
@media (max-width:820px){
  .voices { padding:4.5rem 6vw; }
  .voices-wrap { grid-template-columns:1fr; gap:2rem; }
  .voices-head { margin-bottom:2rem; }
  .vp-quote { min-height:0; }
}

/* ============ SERVICES ============ */
.services { position:relative; background:#11181d; color:#fff; padding:6rem 0 5rem; font-family:'Instrument Sans', sans-serif; }
.svc-top { display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:start; margin-bottom:3.5rem; padding:0 4vw; }
.svc-eyebrow { font-family:'Instrument Sans', sans-serif; font-size:1.5rem; font-weight:800; letter-spacing:.04em; margin:0; }
.svc-head { font-size:clamp(2.2rem, 4.5vw, 3.8rem); font-weight:700; letter-spacing:-0.02em; line-height:1.04; margin:0; }
.svc-head .muted5 { color:#7c8893; }
.svc-list { border-top:1px solid rgba(255,255,255,.16); }
.svc-row { position:relative; border-bottom:1px solid rgba(255,255,255,.16); overflow:hidden; }
.svc-row-bg { position:absolute; inset:0; background-size:cover; background-position:center; opacity:1; z-index:0; will-change:transform; }
.svc-row-ov { position:absolute; inset:0; background:rgba(8,12,16,.48); opacity:0; transition:opacity .6s ease; z-index:1; }
.svc-row-cover { position:absolute; inset:0; background:#11181d; z-index:2; transform:translateY(0); transition:transform .7s cubic-bezier(.76,0,.24,1); }
.svc-row:hover .svc-row-cover { transform:translateY(-100%); }
.svc-row:hover .svc-row-bg { animation:kenburns 15s ease-in-out infinite alternate; }
.svc-row:hover .svc-row-ov { opacity:1; }
@keyframes kenburns { from { transform:scale(1.06); } to { transform:scale(1.2); } }
.svc-row-inner { position:relative; z-index:3; display:flex; align-items:center; gap:3rem; padding:7rem 4vw; }
.svc-num { flex:0 0 auto; width:40px; height:40px; border:1px solid rgba(255,255,255,.45); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Instrument Sans', sans-serif; font-size:.9rem; font-weight:500; }
.svc-desc { flex:0 0 24%; max-width:340px; font-family:'Instrument Sans', sans-serif; font-size:1rem; line-height:1.5; color:#fff; margin:0; }
.svc-label { flex:1; font-size:clamp(4.5rem, 14vw, 14rem); font-weight:700; letter-spacing:-0.02em; line-height:1; }
.svc-row:hover .svc-label { text-decoration:underline; text-underline-offset:0.12em; text-decoration-thickness:2px; }
.svc-arrow { flex:0 0 auto; margin-left:auto; margin-right:11vw; font-size:clamp(3rem, 6.5vw, 7rem); line-height:1; cursor:pointer; }
.svc-foot { display:flex; align-items:center; justify-content:space-between; gap:2.5rem; margin-top:3rem; flex-wrap:wrap; padding:0 4vw; }
.svc-foot p { font-family:'Instrument Sans', sans-serif; font-size:1.08rem; line-height:1.55; color:#aab3ba; max-width:50ch; margin:0; }
.svc-cta { font-family:'Instrument Sans', sans-serif; font-size:1rem; font-weight:600; padding:0.95rem 2.2rem; border:none; border-radius:999px; background:#fff; color:#11181d; cursor:pointer; display:inline-flex; align-items:center; gap:.6rem; transition:transform .2s ease, background .2s ease; white-space:nowrap; }
.svc-cta:hover { transform:translateY(-2px); background:#e9eef2; }
@media (max-width:820px){
  .services { padding:4.5rem 0; }
  .svc-top { grid-template-columns:1fr; gap:.8rem; margin-bottom:2.2rem; padding:0 6vw; }
  .svc-row-inner { flex-wrap:wrap; gap:.6rem 1.2rem; padding:2.6rem 6vw; }
  .svc-num { order:1; }
  .svc-label { order:2; flex:1 1 auto; font-size:clamp(2.6rem, 13vw, 4.5rem); }
  .svc-arrow { order:3; margin-left:auto; margin-right:0; font-size:2.4rem; }
  .svc-desc { order:4; flex:1 1 100%; max-width:none; }
  .svc-row-bg { opacity:1; }
  .svc-row-cover { display:none; }
  .svc-row-ov { opacity:.55; }
  .svc-foot { flex-direction:column; align-items:flex-start; padding:0 6vw; }
}

/* ============ SUPPORT ============ */
.support { background:#16191d; color:#fff; padding:7rem 4vw; margin-top:-1px; font-family:'Instrument Sans', sans-serif; position:relative; z-index:1; }
.sup-top { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; margin-bottom:3.5rem; }
.sup-head { font-size:clamp(2.4rem, 5vw, 4.2rem); font-weight:700; letter-spacing:-0.02em; line-height:1.04; margin:0; max-width:14ch; }
.sup-head .muted6 { color:#6b7780; }
.sup-text { font-family:'Instrument Sans', sans-serif; font-size:1.15rem; line-height:1.55; color:#8b959d; margin:0 0 2rem; max-width:54ch; }
.sup-text .lead { color:#fff; font-weight:600; }
.sup-cta { font-family:'Instrument Sans', sans-serif; font-size:1rem; font-weight:600; padding:0.95rem 2.2rem; border:none; border-radius:999px; background:#fff; color:#11181d; cursor:pointer; display:inline-flex; align-items:center; gap:.6rem; transition:transform .2s ease, background .2s ease; white-space:nowrap; }
.sup-cta:hover { transform:translateY(-2px); background:#e9eef2; }
.sup-cards { display:flex; gap:1rem; }
.sup-card { position:relative; flex:1 1 0; min-width:0; height:400px; border-radius:4px; overflow:hidden; transition:flex-grow .9s cubic-bezier(.22,.61,.36,1); }
.sup-cards:hover .sup-card { flex-grow:.85; }
.sup-cards:hover .sup-card:hover { flex-grow:1.5; }
.sup-card-bg { position:absolute; inset:0; background-size:cover; background-position:center; transition:transform 1.1s ease; }
.sup-card:hover .sup-card-bg { transform:scale(1.06); }
.sup-card-grad { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.6) 100%); }
.sup-card-inner { position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:space-between; padding:2rem; }
.sup-card h3 { font-size:clamp(1.4rem, 2vw, 1.95rem); font-weight:700; line-height:1.12; margin:0 0 .5rem; color:#fff; max-width:11ch; }
.sup-card-desc { font-family:'Instrument Sans',sans-serif; font-size:.88rem; color:rgba(255,255,255,.7); line-height:1.45; margin:0; }
.sup-learn { align-self:flex-start; display:inline-flex; align-items:center; gap:.5rem; font-family:'Instrument Sans', sans-serif; font-size:.9rem; font-weight:600; color:#fff; border:1px solid rgba(255,255,255,.6); border-radius:999px; padding:.6rem 1.3rem; background:transparent; cursor:pointer; transition:background .2s ease, color .2s ease; white-space:nowrap; }
.sup-learn:hover { background:#fff; color:#11181d; }
@media (max-width:820px){
  .support { padding:4.5rem 6vw; }
  .sup-top { grid-template-columns:1fr; gap:1.6rem; margin-bottom:2.5rem; }
  .sup-cards { flex-direction:column; gap:1rem; }
  .sup-card { flex:none; height:240px; }
  .sup-cards:hover .sup-card, .sup-cards:hover .sup-card:hover { flex-grow:0; }
}

/* ============ BLOG & RESOURCES ============ */
/* NOTE: scoped to section.blog — WordPress adds a "blog" CLASS to <body> on the
   posts page, so a bare .blog rule would wrongly pad the whole page. */
section.blog { background:#ffffff; color:#11181d; padding:7rem 4vw; font-family:'Instrument Sans', sans-serif; position:relative; z-index:1; }
.blog-top { display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; margin-bottom:3rem; flex-wrap:wrap; }
.blog-head { font-size:clamp(2.2rem, 5vw, 4rem); font-weight:700; letter-spacing:-0.02em; line-height:1.05; margin:0; }
.blog-head .muted7 { color:#a7adb3; }
.blog-viewall { font-family:'Instrument Sans', sans-serif; font-size:1rem; font-weight:600; color:#11181d; text-decoration:none; border-bottom:2px solid #11181d; padding-bottom:3px; white-space:nowrap; }
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.blog-card { cursor:pointer; position:relative; }
.blog-card-link { position:absolute; inset:0; z-index:1; }
.blog-card-imgwrap { overflow:hidden; border-radius:5px; }
.blog-card-img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; transition:transform .55s ease; }
.blog-card:hover .blog-card-img { transform:scale(1.05); }
.blog-meta { font-family:'Instrument Sans', sans-serif; font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#a7adb3; margin:1.2rem 0 .6rem; }
.blog-card h3 { font-size:clamp(1.2rem, 1.6vw, 1.5rem); font-weight:700; line-height:1.25; letter-spacing:-0.01em; margin:0 0 .6rem; }
.blog-card p { font-family:'Instrument Sans', sans-serif; font-size:.98rem; line-height:1.55; color:#5a656d; margin:0; }

/* ============ FOOTER ============ */
.footer { background:#0d1216; color:#fff; padding:0 4vw 2.5rem; font-family:'Instrument Sans', sans-serif; display:block; width:100%; box-sizing:border-box; margin:0; }
.ft-cta { text-align:center; padding:6.5rem 0 5.5rem; border-bottom:1px solid rgba(255,255,255,.12); }
.ft-cta h2 { font-family:'Instrument Sans', sans-serif; font-size:clamp(2.2rem, 5.5vw, 4.4rem); font-weight:700; letter-spacing:-0.02em; line-height:1.05; margin:0 0 2rem; }
.ft-cta-btn, .ft-sub { font-family:'Instrument Sans', sans-serif; font-size:1rem; font-weight:600; padding:0.95rem 2.2rem; border:none; border-radius:999px; background:#fff; color:#11181d; cursor:pointer; display:inline-flex; align-items:center; gap:.6rem; transition:transform .2s ease, background .2s ease; white-space:nowrap; }
.ft-cta-btn:hover, .ft-sub:hover { transform:translateY(-2px); background:#e9eef2; }
.ft-news { display:flex; justify-content:space-between; align-items:center; gap:2rem; padding:3rem 0; border-bottom:1px solid rgba(255,255,255,.12); flex-wrap:wrap; }
.ft-news h3 { font-family:'Instrument Sans', sans-serif; font-size:1.7rem; font-weight:700; margin:0 0 .4rem; }
.ft-news p { color:#8b959d; margin:0; font-size:.98rem; }
.ft-form { display:flex; gap:.6rem; flex-wrap:wrap; }
.ft-input { background:transparent; border:1px solid rgba(255,255,255,.3); border-radius:999px; padding:.85rem 1.4rem; color:#fff; font-size:.95rem; min-width:260px; outline:none; }
.ft-input::placeholder { color:#8b959d; }
.ft-input:focus { border-color:rgba(255,255,255,.7); }
.ft-main { display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr; gap:2.5rem; padding:3.5rem 0; }
.ft-logo { height:50px; width:auto; display:block; margin-bottom:.8rem; }
.ft-brand-name { font-family:'Instrument Sans', sans-serif; font-size:1.55rem; font-weight:700; letter-spacing:.01em; }
.ft-brand p { color:#8b959d; font-size:.95rem; line-height:1.55; margin:.8rem 0 0; max-width:34ch; }
.ft-col h4 { font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#6b7780; margin:0 0 1.1rem; }
.ft-col a { display:block; color:#c7ced3; text-decoration:none; font-size:.98rem; margin-bottom:.7rem; transition:color .2s ease; }
.ft-col a:hover { color:#fff; }
.ft-bottom { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding-top:2rem; border-top:1px solid rgba(255,255,255,.12); flex-wrap:wrap; }
.ft-copy { color:#6b7780; font-size:.9rem; }
.ft-legal { display:flex; gap:1.5rem; }
.ft-legal a { color:#8b959d; text-decoration:none; font-size:.9rem; transition:color .2s ease; }
.ft-legal a:hover { color:#fff; }
@media (max-width:820px){
  .blog { padding:4.5rem 6vw; }
  .blog-grid { grid-template-columns:1fr; gap:2.5rem; }
  .footer { padding:0 6vw 2rem; }
  .ft-cta { padding:4rem 0 3.5rem; }
  .ft-news { flex-direction:column; align-items:flex-start; gap:1.4rem; }
  .ft-input { min-width:0; flex:1 1 auto; }
  .ft-main { grid-template-columns:1fr 1fr; gap:2rem; }
  .ft-brand { grid-column:1 / -1; }
  .ft-bottom { flex-direction:column; align-items:flex-start; }
}

/* ============ ENQUIRY MODAL ============ */
.modal-overlay { position:fixed; inset:0; background:rgba(8,12,16,.6); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; z-index:99999; padding:1.5rem; animation:mfade .25s ease; }
.modal-overlay[hidden] { display:none; }
@keyframes mfade { from { opacity:0; } to { opacity:1; } }
.modal { background:#fff; color:#11181d; border-radius:14px; max-width:480px; width:100%; padding:2.6rem; position:relative; max-height:92vh; overflow-y:auto; font-family:'Instrument Sans', sans-serif; box-shadow:0 30px 80px rgba(0,0,0,.4); animation:mpop .32s cubic-bezier(.2,.8,.2,1); }
@keyframes mpop { from { opacity:0; transform:translateY(18px) scale(.97); } to { opacity:1; transform:none; } }
.modal-close { position:absolute; top:1rem; right:1.2rem; background:none; border:none; font-size:1.9rem; line-height:1; color:#9aa6ad; cursor:pointer; padding:.2rem; }
.modal-close:hover { color:#11181d; }
.modal-title { font-family:'Instrument Sans', sans-serif; font-size:1.95rem; font-weight:700; letter-spacing:-0.01em; margin:0 0 .5rem; }
.modal-sub { font-size:.98rem; color:#5a656d; margin:0 0 1.7rem; line-height:1.5; }
.modal-field { margin-bottom:1rem; }
.modal-field label { display:block; font-size:.82rem; font-weight:600; color:#5a656d; margin-bottom:.4rem; }
.modal-field input, .modal-field select { width:100%; box-sizing:border-box; border:1px solid #d5dce1; border-radius:8px; padding:.8rem 1rem; font-size:.98rem; font-family:'Instrument Sans', sans-serif; color:#11181d; background:#fff; outline:none; transition:border-color .2s ease; }
.modal-field input:focus, .modal-field select:focus { border-color:#11181d; }
.modal-submit { width:100%; margin-top:.7rem; background:#11181d; color:#fff; border:none; border-radius:999px; padding:1rem; font-size:1rem; font-weight:600; cursor:pointer; transition:background .2s ease, transform .2s ease; font-family:'Instrument Sans', sans-serif; }
.modal-submit:hover { background:#2a3640; transform:translateY(-1px); }
.modal-done { text-align:center; padding:1.5rem 0; }
.modal-done h3 { font-family:'Instrument Sans', sans-serif; font-size:1.9rem; margin:0 0 .6rem; }
.modal-done p { color:#5a656d; margin:0 0 1.6rem; line-height:1.5; }
[hidden] { display:none !important; }
/* ============ SINGLE BLOG POST ============ */
article.single-post { background:#fff; color:#11181d; padding:9.5rem 4vw 4rem; font-family:'Instrument Sans', sans-serif; }
article.single-post .sp-head { max-width:900px; margin:0 auto 2rem; text-align:center; }
article.single-post .eyebrow { font-size:.78rem; letter-spacing:.22em; text-transform:uppercase; color:#6b7780; font-weight:600; }
article.single-post .sp-head h1 { font-size:clamp(2rem,4.6vw,3.4rem); font-weight:700; letter-spacing:-.03em; line-height:1.08; margin:.45em 0 .3em; }
.sp-meta { font-size:.92rem; color:#8a98a3; margin:0; }
.sp-hero { max-width:1100px; margin:0 auto 2.6rem; border-radius:14px; overflow:hidden; box-shadow:0 30px 70px rgba(17,24,29,.16); }
.sp-hero img { width:100%; height:auto; display:block; }
.sp-prose { max-width:900px; margin:0 auto; font-size:1.05rem; line-height:1.8; color:#2a3640; }
.sp-prose > *:first-child { margin-top:0; }
.sp-prose h2 { font-size:clamp(1.4rem,2.4vw,1.9rem); font-weight:700; letter-spacing:-.02em; color:#11181d; margin:2.4rem 0 .8rem; line-height:1.2; }
.sp-prose h3 { font-size:1.25rem; font-weight:700; color:#11181d; margin:1.8rem 0 .6rem; }
.sp-prose p { margin:0 0 1.3rem; }
.sp-prose ul, .sp-prose ol { margin:0 0 1.3rem; padding-left:1.4rem; }
.sp-prose li { margin:0 0 .55rem; }
.sp-prose img { max-width:100%; height:auto; border-radius:10px; margin:1.5rem 0; }
.sp-prose a { color:#11181d; text-decoration:underline; text-underline-offset:2px; }
.sp-prose blockquote { border-left:3px solid #11181d; margin:1.6rem 0; padding:.4rem 0 .4rem 1.4rem; font-size:1.2rem; line-height:1.5; color:#11181d; }
.sp-tags { max-width:900px; margin:2rem auto 0; display:flex; flex-wrap:wrap; gap:.5rem; }
.sp-tag { font-size:.82rem; color:#5a656d; background:#f4f6f8; border:1px solid #e9eef2; border-radius:999px; padding:.4rem 1rem; }
.sp-foot { max-width:900px; margin:2.4rem auto 0; padding-top:1.6rem; border-top:1px solid #e9eef2; display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.sp-back { font-weight:600; color:#11181d; text-decoration:none; }
.sp-back:hover { color:#2a3640; }
.sp-cta { font-family:'Instrument Sans', sans-serif; font-size:.95rem; font-weight:600; padding:.8rem 1.6rem; border:none; border-radius:999px; background:#11181d; color:#fff; cursor:pointer; display:inline-flex; align-items:center; gap:.5rem; transition:transform .2s ease, background .2s ease; }
.sp-cta:hover { transform:translateY(-2px); background:#2a3640; }
section.blog.sp-related { padding-top:2rem; padding-bottom:4rem; position:static; z-index:auto; }
section.blog.sp-related .blog-grid { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }
@media (max-width:820px){ article.single-post { padding:7.5rem 6vw 3rem; } }

/* Honeypot anti-spam field — visually hidden, off-screen (bots fill it). */
.pal-hp { position:absolute !important; left:-9999px !important; top:auto; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
/* Inline form error messages. */
.modal-err, .ct-err { color:#b32d2e; font-size:.9rem; margin:.2rem 0 .6rem; }
