/* ============================================
   CRE Global Enhancements (all pages)
   Sticky glass header, micro-interactions, blog reading UX, property modal
   ============================================ */

/* === Force-hide page loader (was showing stuck red spinner) === */
.page-loader { display: none !important; }

/* === Cursor trail dots === */
.cursor-trail {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: #E30613; pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%); opacity: 0;
  transition: opacity .6s ease;
  box-shadow: 0 0 12px rgba(227,6,19,0.8);
}

/* === Spotlight effect on cards === */
.spotlight-target { position: relative; }
.spotlight-target::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; opacity: 0;
  background: radial-gradient(circle 180px at var(--mx, 50%) var(--my, 50%), rgba(227,6,19,0.15), transparent 70%);
  transition: opacity .3s ease; z-index: 1;
}
.spotlight-target:hover::before { opacity: 1; }

/* === Interactive animations === */

/* Click ripple on buttons */
.btn, .qc-btn, .nav-cta, .send-btn, .mc-result {
  position: relative; overflow: hidden;
}
.click-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.45); pointer-events: none;
  transform: scale(0); opacity: 1;
  animation: rippleOut .7s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* Hero h1 character split animation */
.hero h1 .char {
  display: inline-block;
  opacity: 0; transform: translateY(40px) rotateX(-90deg);
  transform-origin: center bottom;
  animation: charDrop .7s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes charDrop {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Service icons: rotate 360 on card hover */
.service-card .service-icon { transition: transform .6s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease; }
.service-card:hover .service-icon { transform: rotate(360deg) scale(1.1); }

/* Card group focus dim — when hovering one card, others fade */
.services-bento:hover .service-card:not(:hover),
.grid-3:hover .blog-card:not(:hover),
.property-grid:hover .property-card:not(:hover),
.offices-grid:hover .office-card:not(:hover) {
  opacity: 0.55; filter: saturate(.7);
  transition: opacity .35s ease, filter .35s ease;
}
.services-bento:hover .service-card:hover,
.grid-3:hover .blog-card:hover,
.property-grid:hover .property-card:hover,
.offices-grid:hover .office-card:hover {
  opacity: 1; filter: none;
}

/* Scroll-spy: section progress dots on right edge */
.section-dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
}
.section-dots a {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(15,20,40,0.2);
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
  position: relative;
}
.section-dots a:hover { background: rgba(227,6,19,0.6); transform: scale(1.4); }
.section-dots a.is-active {
  background: #E30613; transform: scale(1.6);
  box-shadow: 0 0 0 4px rgba(227,6,19,0.15);
}
.section-dots a span {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: #1a2440; color: #fff; padding: 5px 10px; border-radius: 6px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.section-dots a:hover span { opacity: 1; transform: translateY(-50%) translateX(-4px); }
@media (max-width: 900px) { .section-dots { display: none; } }

/* Number counter spring animation */
[data-count] { display: inline-block; transition: transform .3s cubic-bezier(.5,-0.5,.2,1.8); }
[data-count].counting { transform: scale(1.1); }

/* Animated underline on h2 (subtle dash sweep) */
.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header.in-view h2::after {
  content: ""; display: block; margin: 14px auto 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #E30613, #ff6b6b);
  border-radius: 2px;
  animation: underlineGrow .8s cubic-bezier(.2,.8,.2,1) .3s forwards;
  transform: scaleX(0); transform-origin: center;
}
@keyframes underlineGrow {
  to { transform: scaleX(1); }
}

/* Hover-to-color images */
.about-img-main, .about-img-secondary, .blog-card-img img {
  filter: saturate(.85);
  transition: filter .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.about-img-main:hover, .about-img-secondary:hover,
.blog-card:hover .blog-card-img img { filter: saturate(1.15); }

/* Magnetic small icons (about-feature icons) */
.about-feature .icon { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.about-feature:hover .icon { transform: scale(1.3) rotate(15deg); }

/* Subtle floating animation on hero badge */
.hero-badge { animation: float 4s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === Magazine-grade design polish === */

/* Sophisticated scroll cue under hero */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; bottom: 24px; left: 50%;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6));
  animation: scrollCue 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scrollCue {
  0%,100% { transform: translateX(-50%) scaleY(.6); opacity: .4; }
  50% { transform: translateX(-50%) scaleY(1); opacity: 1; }
}

/* Refined section header — small decorative line */
.section-header { position: relative; }
.section-header .subtitle {
  display: inline-flex; align-items: center; gap: 14px;
  text-transform: uppercase; letter-spacing: 2.5px;
  font-size: .78rem; font-weight: 700;
  color: #E30613;
}
.section-header .subtitle::before,
.section-header .subtitle::after {
  content: ""; width: 32px; height: 1px;
  background: rgba(227,6,19,0.4);
}
.section-header h2 {
  letter-spacing: -1px; line-height: 1.1;
  margin: 14px 0 14px;
}
.section-header h2 .accent { color: #E30613; }

/* Number prefix on h2 (subtle) */
.section-header h2[data-num]::before {
  content: attr(data-num); display: block;
  font-size: .85rem; font-weight: 600; letter-spacing: 4px;
  color: rgba(15,20,40,0.3); margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

/* Refined buttons */
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  letter-spacing: .3px;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #ff6b6b, #E30613);
  opacity: 0; transition: opacity .35s ease; z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }

/* Section dividers — minimal slash separator */
.section + .section,
.section-light + .section,
.section + .section-light {
  position: relative;
}

/* Refined card shadows (softer, more layered) */
.service-card, .blog-card, .office-card, .property-card, .qc-card, .contact-card {
  box-shadow:
    0 1px 2px rgba(15,20,40,0.04),
    0 4px 12px rgba(15,20,40,0.04),
    0 12px 28px rgba(15,20,40,0.06);
}
.service-card:hover, .blog-card:hover, .office-card:hover, .property-card:hover {
  box-shadow:
    0 1px 2px rgba(227,6,19,0.06),
    0 8px 24px rgba(15,20,40,0.08),
    0 24px 48px rgba(227,6,19,0.12);
}

/* Refined typography — drop caps on first paragraph in long text */
.about-content > p:first-of-type::first-letter,
.blog-content > p:first-of-type::first-letter,
.timeline-content > p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2.4em; line-height: .85;
  float: left; margin: 8px 10px 0 0;
  color: #E30613;
}

/* Refined link underline — slide reveal */
.read-more, .service-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 2px;
}
.read-more::after, .service-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.7,0,.3,1);
}
.read-more:hover::after, .service-link:hover::after {
  transform: scaleX(1); transform-origin: left;
}

/* Decorative section corner ornament */
.section-corner-ornament {
  position: absolute; top: 40px; right: 40px;
  width: 60px; height: 60px;
  border-top: 1px solid rgba(227,6,19,0.25);
  border-right: 1px solid rgba(227,6,19,0.25);
  pointer-events: none;
}
.section-corner-ornament::before {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #E30613;
}

/* Subtle text-mask reveal on h2 in viewport */
.section-header h2 {
  background: linear-gradient(90deg, currentColor 0%, currentColor 50%, rgba(15,20,40,0.4) 50%);
  background-size: 200% 100%; background-position: 100% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1s cubic-bezier(.7,0,.3,1);
}
.section-header.in-view h2 { background-position: 0% 50%; }
.section-light .section-header h2,
.clients-section .section-header h2 { background: none; -webkit-text-fill-color: initial; }

/* Image reveal animation (clip-path wipe) — only when JS confirms it can reveal */
.has-clip-reveal .about-img-main,
.has-clip-reveal .about-img-secondary {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(.7,0,.3,1);
}
.blog-card-img img, .property-card-img img {
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible .about-img-main, .reveal.visible .about-img-secondary,
.reveal-left.visible .about-img-main, .reveal-left.visible .about-img-secondary,
.reveal-right.visible .about-img-main, .reveal-right.visible .about-img-secondary,
.reveal.in-view .about-img-main, .reveal.in-view .about-img-secondary,
.reveal-left.in-view .about-img-main, .reveal-left.in-view .about-img-secondary,
.in-view .blog-card-img img, .in-view .property-card-img img,
img.about-img-main.is-revealed, img.about-img-secondary.is-revealed { clip-path: inset(0 0 0 0); }
/* Safety net: ensure clip-path never permanently hides an image */
.about-img-main, .about-img-secondary { clip-path: inset(0 0 0 0); }

/* Footer refinement — subtle gradient top border */
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, #E30613, transparent);
}

/* Refined nav-cta button (Get Started) */
.nav-cta {
  background: linear-gradient(135deg, #E30613, #ff6b6b) !important;
  border: 0 !important; color: #fff !important;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 14px rgba(227,6,19,0.35);
}
.nav-cta::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left .7s ease;
}
.nav-cta:hover::after { left: 100%; }

/* Premium kerning on display headings */
h1, .section-header h2 {
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Market ticker strip === */
.market-ticker {
  background: linear-gradient(90deg, #0f1724 0%, #1a2440 100%);
  color: #fff; padding: 10px 0; overflow: hidden;
  position: relative; border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-track {
  display: flex; gap: 40px; width: max-content;
  animation: creMarquee 35s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 600; white-space: nowrap;
  padding: 0 20px; border-left: 1px solid rgba(255,255,255,0.08);
}
.ticker-item:first-child { border-left: 0; }
.ticker-label { color: rgba(255,255,255,0.6); font-weight: 500; }
.ticker-val.up { color: #10B981; }
.ticker-val.down { color: #ef4444; }
.ticker-val i { font-size: .78rem; margin-right: 3px; }

/* === Certifications Marquee === */
.cert-marquee {
  background: linear-gradient(90deg, #0f1724 0%, #1a2440 100%);
  color: #fff; padding: 14px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cert-track {
  display: flex; gap: 0; width: max-content;
  animation: creMarquee 45s linear infinite;
}
.cert-track:hover { animation-play-state: paused; }
.cert-row { display: flex; flex-shrink: 0; }
.cert-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  padding: 0 30px; color: rgba(255,255,255,0.85);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.cert-row > .cert-item:first-child { border-left: 0; }
.cert-item i { color: #E30613; font-size: 1rem; }
@media (max-width: 768px) {
  .cert-item { font-size: .82rem; padding: 0 20px; }
  .cert-track { animation-duration: 35s; }
}

/* === Press mentions ("As featured in") === */
.press-strip {
  padding: 40px 0; background: #f8f9fb;
  border-top: 1px solid rgba(15,20,40,0.05);
  border-bottom: 1px solid rgba(15,20,40,0.05);
}
.press-strip .press-label {
  text-align: center; text-transform: uppercase;
  font-size: .75rem; letter-spacing: 2px; color: #888;
  margin-bottom: 18px; font-weight: 600;
}
.press-grid {
  display: flex; justify-content: center; align-items: center; gap: 50px;
  flex-wrap: wrap;
}
.press-grid span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; color: #555;
  opacity: .55; transition: opacity .3s ease, color .3s ease;
  letter-spacing: .5px;
}
.press-grid span:hover { opacity: 1; color: #E30613; }
@media (max-width: 768px) { .press-grid { gap: 28px; } .press-grid span { font-size: 1rem; } }

/* === Mortgage calculator widget === */
.mortgage-calc {
  background: linear-gradient(135deg, #0f1724 0%, #1a2440 100%);
  color: #fff; padding: 40px; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15,20,40,0.25);
  max-width: 720px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.mortgage-calc::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,6,19,0.3), transparent 70%);
}
.mortgage-calc h3 {
  color: #fff; margin-bottom: 8px; font-size: 1.6rem;
  position: relative; z-index: 1;
}
.mortgage-calc > p { color: rgba(255,255,255,0.7); margin-bottom: 28px; position: relative; z-index: 1; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; z-index: 1; }
@media (max-width: 560px) { .mc-grid { grid-template-columns: 1fr; } }
.mc-field { background: rgba(255,255,255,0.05); padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.mc-field label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.mc-field input {
  width: 100%; background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 1.1rem; font-weight: 700; padding: 0;
}
.mc-field input:focus { color: #ff6b6b; }
.mc-result {
  margin-top: 24px; padding: 22px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(227,6,19,0.15), rgba(255,107,107,0.08));
  border: 1px solid rgba(227,6,19,0.3);
  text-align: center; position: relative; z-index: 1;
}
.mc-result-label { color: rgba(255,255,255,0.7); font-size: .85rem; margin-bottom: 4px; }
.mc-result-value {
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(90deg, #fff, #ffb199);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Custom 404 === */
.err-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f1724 0%, #1a2440 100%);
  color: #fff; padding: 60px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.err-404::before, .err-404::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px);
}
.err-404::before { width: 400px; height: 400px; background: rgba(227,6,19,0.35); top: -100px; left: -100px; }
.err-404::after { width: 500px; height: 500px; background: rgba(100,100,255,0.2); bottom: -150px; right: -150px; }
.err-404 > .container { position: relative; z-index: 1; }
.err-404 .big-404 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 18vw, 14rem); line-height: 1; font-weight: 700;
  background: linear-gradient(90deg, #E30613, #ff6b6b, #ffb199);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: creShimmer 5s ease-in-out infinite;
  background-size: 200% 100%;
  letter-spacing: -5px;
}
.err-404 h2 { color: #fff; font-size: 2rem; margin: 8px 0 14px; }
.err-404 p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 30px; }

/* === Lang/currency switcher === */
.lang-switcher {
  display: inline-flex; gap: 4px; background: rgba(15,20,40,0.05);
  padding: 4px; border-radius: 999px; margin-left: 10px;
}
.lang-switcher button {
  border: none; background: transparent; padding: 6px 12px;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  border-radius: 999px; color: #555;
  transition: all .25s ease;
}
.lang-switcher button.is-active {
  background: linear-gradient(135deg, #E30613, #ff6b6b); color: #fff;
}

/* Property card enhancements: favorite + WA */
.property-card .prop-actions {
  position: absolute; top: 14px; right: 14px; display: flex; gap: 8px;
}
.property-card .prop-actions button, .property-card .prop-actions a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #555; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all .25s ease;
  text-decoration: none;
}
.property-card .prop-actions button:hover { color: #E30613; transform: scale(1.1); }
.property-card .prop-actions button.is-faved { color: #E30613; background: #fff; }
.property-card .prop-actions button.is-faved i { font-weight: 900; }
.property-card .prop-actions .wa-inquire { color: #25D366; }
.property-card .prop-actions .wa-inquire:hover { background: #25D366; color: #fff; }

/* === Page transition overlay === */
.page-transition {
  position: fixed; inset: 0; z-index: 99999;
  background: linear-gradient(135deg, #0f1724, #1a2440);
  transform: scaleY(0); transform-origin: bottom;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.86,0,.07,1);
}
.page-transition.is-leaving { transform: scaleY(1); transform-origin: bottom; pointer-events: auto; }
.page-transition.is-entering { transform: scaleY(1); transform-origin: top; }
body.is-loaded .page-transition { transform: scaleY(0); transform-origin: top; }

/* === Cursor blob (desktop only) === */
.cursor-blob {
  position: fixed; top: 0; left: 0; width: 320px; height: 320px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(227,6,19,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%); mix-blend-mode: screen;
  transition: opacity .3s ease, width .3s ease, height .3s ease;
  will-change: transform; opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  body.cursor-active .cursor-blob { opacity: 1; }
}

/* === Magnetic buttons === */
.btn { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease; }

/* === Scroll-linked parallax for hero === */
.hero-bg-video, .page-header { will-change: transform; }

/* Smooth scroll & better scrollbar */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f2f3f5; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E30613, #b30510);
  border-radius: 10px; border: 2px solid #f2f3f5;
}
::-webkit-scrollbar-thumb:hover { background: #E30613; }

/* === Sticky glass header === */
.header {
  position: sticky !important; top: 0; z-index: 999;
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, padding .3s ease;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 8px 32px rgba(15,20,40,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.header.is-scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }

/* Animated nav underline */
.nav-menu > li > a { position: relative; }
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2px; background: linear-gradient(90deg, #E30613, #ff6b6b);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  border-radius: 2px;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after { transform: scaleX(1); }

/* Button ripple / slide-arrow */
.btn { position: relative; overflow: hidden; }
.btn i.fa-arrow-right { transition: transform .3s ease; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

/* Global card hover polish (site-wide, not just index) */
.service-card, .blog-card, .office-card, .value-card, .team-member, .timeline-content {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
.service-card:hover, .blog-card:hover, .office-card:hover, .value-card:hover, .team-member:hover {
  box-shadow: 0 25px 50px rgba(227,6,19,0.12), 0 10px 25px rgba(0,0,0,0.06);
}

/* Image zoom in cards */
.blog-card-img, .project-slide, .property-card-img, .location-card {
  overflow: hidden;
}
.blog-card-img img, .property-card-img img {
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.blog-card:hover .blog-card-img img,
.property-card:hover .property-card-img img { transform: scale(1.08); }

/* Timeline polish — scroll progress, active dot, milestone images */
.timeline { position: relative; }

/* Scroll-linked progress line (layered over the grey base line) */
.timeline::after {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: var(--tl-progress, 0%);
  background: linear-gradient(180deg, #E30613 0%, #ff6b6b 100%);
  box-shadow: 0 0 20px rgba(227,6,19,0.5);
  border-radius: 3px; z-index: 1;
  transition: height .12s linear;
}
@media (max-width: 768px) { .timeline::after { left: 20px; } }

/* Active dot — scales up with pulsing ring */
.timeline-item.is-active .timeline-dot {
  transform: scale(1.2) !important;
  box-shadow: 0 0 0 6px rgba(227,6,19,0.25), 0 12px 32px rgba(227,6,19,0.5) !important;
  z-index: 3;
}
.timeline-item.is-active .timeline-dot::after {
  content: "" !important; display: block !important;
  position: absolute; inset: -12px;
  border-radius: 50%; border: 2px solid rgba(227,6,19,0.4);
  animation: creActivePulse 1.8s ease-out infinite;
}
@keyframes creActivePulse {
  0% { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Milestone visuals — real photo OR stylized icon card */
.timeline-img {
  width: 100%; max-width: 280px; height: 150px;
  border-radius: 12px; overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15,20,40,0.12);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  position: relative;
}
.timeline-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.timeline-item:hover .timeline-img { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(227,6,19,0.18); }
.timeline-item:hover .timeline-img img { transform: scale(1.08); }
.timeline-item:nth-child(odd) .timeline-img { margin-left: auto; }

/* Stylized icon card (no photo, gradient + icon) */
.timeline-card {
  width: 100%; max-width: 280px; height: 150px;
  border-radius: 12px; overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--era-from, #E30613), var(--era-to, #ff6b6b));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; position: relative;
  box-shadow: 0 8px 24px rgba(15,20,40,0.15);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.timeline-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.timeline-card::after {
  content: ""; position: absolute; bottom: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.timeline-card .tc-icon {
  font-size: 2.6rem; margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative; z-index: 1;
}
.timeline-card .tc-label {
  font-family: 'Inter', sans-serif;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.9); position: relative; z-index: 1;
}
.timeline-item:hover .timeline-card {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(227,6,19,0.25);
}
.timeline-item:nth-child(odd) .timeline-card { margin-left: auto; }

@media (max-width: 768px) {
  .timeline-img, .timeline-card { max-width: 100%; height: 130px; }
  .timeline-item:nth-child(odd) .timeline-img,
  .timeline-item:nth-child(odd) .timeline-card { margin-left: 0; }
}
.timeline-dot {
  position: absolute;
  width: 72px !important; height: 72px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #E30613, #ff6b6b) !important;
  border: 4px solid #fff !important;
  box-shadow: 0 6px 20px rgba(227,6,19,0.3), 0 0 0 2px rgba(227,6,19,0.15);
  display: flex !important; align-items: center; justify-content: center;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important; font-weight: 700 !important;
  letter-spacing: 0;
  top: -8px !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.timeline-dot::before, .timeline-dot::after { display: none !important; content: none !important; }
.timeline-item:hover .timeline-dot {
  transform: scale(1.15); box-shadow: 0 10px 30px rgba(227,6,19,0.5), 0 0 0 4px rgba(227,6,19,0.2);
}
.timeline-dot.era-founding { background: linear-gradient(135deg, #8B5CF6, #6366F1) !important; box-shadow: 0 6px 20px rgba(139,92,246,0.35) !important; }
.timeline-dot.era-90s      { background: linear-gradient(135deg, #06B6D4, #0891B2) !important; box-shadow: 0 6px 20px rgba(6,182,212,0.35) !important; }
.timeline-dot.era-2000s    { background: linear-gradient(135deg, #10B981, #059669) !important; box-shadow: 0 6px 20px rgba(16,185,129,0.35) !important; }
.timeline-dot.era-2010s    { background: linear-gradient(135deg, #F59E0B, #D97706) !important; box-shadow: 0 6px 20px rgba(245,158,11,0.35) !important; }
.timeline-dot.era-2020s    { background: linear-gradient(135deg, #E30613, #ff6b6b) !important; }
.timeline-dot.era-future   { background: linear-gradient(135deg, #1F2937, #0F172A) !important; box-shadow: 0 6px 20px rgba(15,23,42,0.4) !important; }
.timeline-item.in-view .timeline-content {
  animation: creSlideIn .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes creSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.timeline-content h4 {
  background: linear-gradient(90deg, #E30613, #ff6b6b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 700;
}

/* === Reading progress bar (blog posts) === */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #E30613, #ff6b6b);
  z-index: 10000; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(227,6,19,0.5);
}

/* === Blog TOC sidebar === */
.blog-toc {
  position: sticky; top: 100px;
  max-height: calc(100vh - 120px); overflow-y: auto;
  padding: 20px 22px; background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15,20,40,0.08); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15,20,40,0.05);
  font-size: .9rem;
}
.blog-toc h5 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: #E30613; margin: 0 0 14px; font-weight: 700;
}
.blog-toc ul { list-style: none; margin: 0; padding: 0; }
.blog-toc li { margin: 0; padding: 0; }
.blog-toc li a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #333; text-decoration: none; line-height: 1.4;
  border-left: 2px solid transparent;
  transition: all .2s ease;
}
.blog-toc li a:hover { background: rgba(227,6,19,0.05); color: #E30613; }
.blog-toc li a.is-active {
  background: rgba(227,6,19,0.08); color: #E30613;
  border-left-color: #E30613; font-weight: 600;
}
.blog-toc li.lvl-3 a { padding-left: 24px; font-size: .85rem; opacity: .85; }

/* Floating share buttons */
.blog-share {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 100;
}
.blog-share a {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: #333;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all .25s ease; text-decoration: none;
}
.blog-share a:hover { transform: translateY(-3px); color: #fff; background: #E30613; }
@media (max-width: 1100px) { .blog-share { display: none; } }

/* Pull-quote callout */
.blog-content blockquote, article blockquote {
  border-left: 4px solid #E30613;
  background: linear-gradient(90deg, rgba(227,6,19,0.04), transparent);
  padding: 20px 26px; margin: 28px 0; font-style: italic;
  font-size: 1.15rem; color: #2a3555; border-radius: 0 10px 10px 0;
}

/* === Properties filter & grid === */
.prop-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 30px 0 40px;
}
.prop-filter button {
  background: #fff; color: #333; border: 1.5px solid rgba(15,20,40,0.1);
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .25s ease;
}
.prop-filter button:hover {
  border-color: #E30613; color: #E30613; transform: translateY(-2px);
}
.prop-filter button.is-active {
  background: linear-gradient(90deg, #E30613, #ff6b6b); color: #fff;
  border-color: transparent; box-shadow: 0 8px 20px rgba(227,6,19,0.25);
}

.property-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px; margin-bottom: 40px;
}
.property-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,20,40,0.06);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.property-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,20,40,0.12); }
.property-card-img { position: relative; height: 220px; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(227,6,19,0.95); color: #fff;
  padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.property-card-price {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(15,20,40,0.85); color: #fff;
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  backdrop-filter: blur(8px);
}
.property-card-body { padding: 22px; }
.property-card-body h3 { font-size: 1.15rem; margin: 0 0 6px; }
.property-card-body .loc { color: #666; font-size: .85rem; margin-bottom: 14px; }
.property-card-body .loc i { color: #E30613; margin-right: 4px; }
.property-card-meta {
  display: flex; gap: 16px; font-size: .82rem; color: #555;
  padding-top: 14px; border-top: 1px solid rgba(15,20,40,0.06);
}
.property-card-meta span i { color: #E30613; margin-right: 4px; }

/* Property modal */
.prop-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,20,40,0.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .3s ease;
}
.prop-modal.is-open { display: flex; opacity: 1; }
.prop-modal-inner {
  background: #fff; border-radius: 16px; max-width: 780px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  transform: translateY(20px); transition: transform .35s ease;
}
.prop-modal.is-open .prop-modal-inner { transform: translateY(0); }
.prop-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.95); cursor: pointer; font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.prop-modal-img { width: 100%; height: 360px; object-fit: cover; border-radius: 16px 16px 0 0; }
.prop-modal-body { padding: 30px; }
.prop-modal-body h2 { margin-bottom: 8px; }
.prop-modal-body .price {
  display: inline-block; background: linear-gradient(90deg, #E30613, #ff6b6b);
  color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; margin: 10px 0 20px;
}
.prop-modal-features { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0; }
.prop-modal-features div { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.prop-modal-features i { color: #E30613; font-size: 1.1rem; }

/* Page-header gradient overlay polish */
.page-header { position: relative; }
.page-header::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(227,6,19,0.35), rgba(15,20,40,0.75));
}
.page-header > .container { position: relative; z-index: 2; }

/* Reveal animation polish */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Back-to-top button polish */
.back-to-top {
  background: linear-gradient(135deg, #E30613, #ff6b6b) !important;
  box-shadow: 0 10px 30px rgba(227,6,19,0.35) !important;
}
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* WhatsApp pulse */
/* === Services page: sticky side-nav, watermark numbers, feature animations === */
.services-sidenav {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,20,40,0.08);
  border-radius: 999px; padding: 10px;
  box-shadow: 0 10px 40px rgba(15,20,40,0.08);
  opacity: 0; transform: translate(20px, -50%);
  transition: opacity .4s ease, transform .4s ease;
}
.services-sidenav.is-visible { opacity: 1; transform: translate(0, -50%); }
.services-sidenav a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: #555; text-decoration: none;
  font-size: .78rem; font-weight: 700;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative; flex-shrink: 0;
}
.services-sidenav a:hover { background: rgba(227,6,19,0.08); color: #E30613; }
.services-sidenav a.is-active {
  background: linear-gradient(135deg, #E30613, #ff6b6b); color: #fff;
  box-shadow: 0 6px 18px rgba(227,6,19,0.4);
  transform: scale(1.1);
}
.services-sidenav a .tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: #1a2440; color: #fff; padding: 7px 14px; border-radius: 8px;
  font-size: .82rem; white-space: nowrap; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.services-sidenav a .tip::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: #1a2440;
}
.services-sidenav a:hover .tip { opacity: 1; transform: translateY(-50%) translateX(-4px); }
@media (max-width: 900px) { .services-sidenav { display: none; } }

/* Watermark numbers (01, 02, 03...) behind service sections */
.service-watermark {
  position: absolute; top: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(227,6,19,0.08);
  text-stroke: 1.5px rgba(227,6,19,0.08);
  z-index: 0; pointer-events: none;
  letter-spacing: -8px;
  user-select: none;
}
.service-watermark.wm-left { left: 20px; }
.service-watermark.wm-right { right: 20px; }
.section-light .service-watermark { -webkit-text-stroke-color: rgba(15,20,40,0.05); }
#property-management, #valuation, #owners-association, #brokerage, #consultancy, #buy, #rent {
  position: relative; overflow: hidden;
}
#property-management .container, #valuation .container, #owners-association .container,
#brokerage .container, #consultancy .container, #buy .container, #rent .container {
  position: relative; z-index: 1;
}
@media (max-width: 768px) { .service-watermark { font-size: 8rem; opacity: .6; } }

/* === Services videos: red/black/white cinematic duotone (all 7 services) === */
#property-management .about-images,
#valuation .about-images,
#owners-association .about-images,
#brokerage .about-images,
#consultancy .about-images,
#buy .about-images,
#rent .about-images {
  position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15,20,40,0.15);
}
#property-management .about-images video,
#valuation .about-images video,
#owners-association .about-images video,
#brokerage .about-images video,
#consultancy .about-images video,
#buy .about-images video,
#rent .about-images video {
  filter: grayscale(100%) contrast(1.25) brightness(0.85);
  transition: filter .6s ease;
  display: block; width: 100%;
}
#property-management .about-images::before,
#valuation .about-images::before,
#owners-association .about-images::before,
#brokerage .about-images::before,
#consultancy .about-images::before,
#buy .about-images::before,
#rent .about-images::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(227,6,19,0.45) 0%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
  pointer-events: none; z-index: 1;
  transition: opacity .6s ease;
}
#property-management .about-images::after,
#valuation .about-images::after,
#owners-association .about-images::after,
#brokerage .about-images::after,
#consultancy .about-images::after,
#buy .about-images::after,
#rent .about-images::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, transparent 40%, rgba(0,0,0,0.4) 100%);
  pointer-events: none; z-index: 2;
}
/* Hover: bring some color back briefly */
#property-management .about-images:hover video,
#valuation .about-images:hover video,
#owners-association .about-images:hover video,
#brokerage .about-images:hover video,
#consultancy .about-images:hover video,
#buy .about-images:hover video,
#rent .about-images:hover video {
  filter: grayscale(60%) contrast(1.15) brightness(0.95);
}
#property-management .about-images:hover::before,
#valuation .about-images:hover::before,
#owners-association .about-images:hover::before,
#brokerage .about-images:hover::before,
#consultancy .about-images:hover::before,
#buy .about-images:hover::before,
#rent .about-images:hover::before { opacity: 0.75; }

/* Animated feature list - staggered slide-in */
.about-features .about-feature {
  opacity: 0; transform: translateX(-20px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.about-features.features-in .about-feature { opacity: 1; transform: translateX(0); }
.about-features.features-in .about-feature:nth-child(1) { transition-delay: .05s; }
.about-features.features-in .about-feature:nth-child(2) { transition-delay: .15s; }
.about-features.features-in .about-feature:nth-child(3) { transition-delay: .25s; }
.about-features.features-in .about-feature:nth-child(4) { transition-delay: .35s; }
.about-features.features-in .about-feature:nth-child(5) { transition-delay: .45s; }
.about-features.features-in .about-feature:nth-child(6) { transition-delay: .55s; }
.about-feature .icon {
  background: linear-gradient(135deg, #E30613, #ff6b6b) !important;
  color: #fff !important;
  transition: transform .3s ease;
}
.about-feature:hover .icon { transform: scale(1.15) rotate(5deg); }

/* === Home hero: kinetic typography (single swap slot) === */
.kinetic-line {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.85); font-weight: 400;
  margin: 20px 0 8px;
  text-align: center;
}
.kinetic-word-slot {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(90deg, #ff6b6b, #ffb199);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
  min-width: 80px;
}
.kinetic-word-slot.is-swapping { opacity: 0; transform: translateY(-10px); }

/* === Bento services grid === */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}
.services-bento .service-card {
  grid-column: span 1;
  padding: 28px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.services-bento .bento-hero {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(135deg, #0f1724 0%, #1a2440 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.services-bento .bento-hero-alt {
  background: linear-gradient(135deg, #E30613 0%, #8B0A0F 100%) !important;
}
.services-bento .bento-hero::before {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,6,19,0.4), transparent 70%);
}
.services-bento .bento-hero-alt::before {
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
}
.services-bento .bento-hero h3 { color: #fff; font-size: 1.7rem; }
.services-bento .bento-hero p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.services-bento .bento-hero .service-icon {
  background: rgba(227,6,19,0.2); color: #ff6b6b;
  width: 72px; height: 72px; font-size: 1.8rem;
}
.services-bento .bento-hero-alt .service-icon {
  background: rgba(255,255,255,0.18); color: #fff;
}
.services-bento .bento-hero .service-link {
  color: #ff6b6b; font-size: .95rem;
}
.services-bento .bento-hero-alt .service-link { color: #fff; }
.services-bento .bento-hero-alt .bento-stat {
  border-top-color: rgba(255,255,255,0.2);
}
.services-bento .bento-hero-alt .bento-stat strong {
  background: linear-gradient(90deg, #fff, #ffb199);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.services-bento .bento-hero-alt .bento-stat span { color: rgba(255,255,255,0.75); }
.services-bento .bento-hero-alt .bento-tag {
  background: rgba(255,255,255,0.2); color: #fff;
}
.services-bento .bento-wide { grid-column: span 2; }
.services-bento .bento-tall { grid-row: span 2; }

.bento-tag {
  position: absolute; top: 24px; right: 24px;
  background: linear-gradient(90deg, #E30613, #ff6b6b);
  color: #fff; padding: 5px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: 1px;
}
.bento-stat {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.bento-stat strong {
  display: block; font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(90deg, #E30613, #ff6b6b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bento-stat span { color: rgba(255,255,255,0.6); font-size: .85rem; }
.bento-chip {
  display: inline-block; margin-top: auto;
  background: rgba(227,6,19,0.08); color: #E30613;
  padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .services-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .services-bento .bento-hero { grid-column: span 2; grid-row: auto; }
  .services-bento .bento-wide { grid-column: span 2; }
  .services-bento .bento-tall { grid-row: auto; grid-column: span 1; }
}
@media (max-width: 560px) {
  .services-bento { grid-template-columns: 1fr; }
  .services-bento .bento-hero, .services-bento .bento-wide, .services-bento .bento-tall { grid-column: span 1; }
  .services-bento .bento-hero h3 { font-size: 1.35rem; }
}

/* === Contact page: quick-contact cards, open/closed widget, float-label form === */
.quick-contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 50px;
}
@media (max-width: 900px) { .quick-contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .quick-contact-grid { grid-template-columns: 1fr; } }

.qc-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 22px 22px; border-radius: 16px;
  background: #fff; border: 1px solid rgba(15,20,40,0.06);
  box-shadow: 0 10px 30px rgba(15,20,40,0.05);
  text-decoration: none; color: #1a2440;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  overflow: hidden;
}
.qc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(15,20,40,0.12); color: #1a2440; }
.qc-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--qc-accent, #E30613);
  transition: width .35s ease;
}
.qc-card:hover::before { width: 100%; opacity: .06; }
.qc-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; flex-shrink: 0;
  background: var(--qc-accent, #E30613);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--qc-accent) 40%, transparent);
  position: relative;
}
.qc-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.qc-label {
  font-size: .7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--qc-accent, #E30613);
}
.qc-text strong { font-size: 1.05rem; color: #1a2440; font-weight: 700; }
.qc-sub { font-size: .78rem; color: #888; }
.qc-arrow { color: var(--qc-accent, #E30613); font-size: .9rem; transition: transform .3s ease; }
.qc-card:hover .qc-arrow { transform: translateX(6px); }

.qc-call      { --qc-accent: #E30613; }
.qc-whatsapp  { --qc-accent: #25D366; }
.qc-visit     { --qc-accent: #0F4C81; }
.qc-status    { --qc-accent: #10B981; cursor: default; }
.qc-status.is-closed { --qc-accent: #F59E0B; }

/* Pulse dot on status icon */
.qc-status-pulse {
  position: absolute; top: -2px; right: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #10B981; border: 2px solid #fff;
}
.qc-status-pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: #10B981; opacity: .5;
  animation: qcPulse 1.8s ease-out infinite;
}
.qc-status.is-closed .qc-status-pulse,
.qc-status.is-closed .qc-status-pulse::after { background: #F59E0B; }
@keyframes qcPulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Floating label form */
.float-field { position: relative; margin-bottom: 22px; }
.float-field input, .float-field textarea, .float-field select {
  width: 100%;
  padding: 22px 16px 10px !important;
  border: 1.5px solid rgba(15,20,40,0.1) !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: .95rem !important;
  font-family: inherit;
  transition: border-color .25s ease, box-shadow .25s ease !important;
}
.float-field select { cursor: pointer; }
.float-field textarea { min-height: 110px; resize: vertical; }
.float-field input:focus, .float-field textarea:focus, .float-field select:focus {
  outline: none;
  border-color: #E30613 !important;
  box-shadow: 0 0 0 4px rgba(227,6,19,0.08) !important;
}
.float-field label {
  position: absolute; left: 16px; top: 16px;
  font-size: .95rem; color: #999; pointer-events: none;
  transition: transform .2s ease, color .2s ease, font-size .2s ease, top .2s ease;
  background: transparent;
}
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label,
.float-field textarea:focus + label,
.float-field textarea:not(:placeholder-shown) + label,
.float-field select:focus + label,
.float-field select:valid + label {
  top: 6px; font-size: .7rem; color: #E30613; font-weight: 600;
}
.float-field select + label { top: 6px; font-size: .7rem; color: #E30613; font-weight: 600; }

/* Animated send button - paper plane flies */
.send-btn {
  position: relative; overflow: hidden;
  padding: 16px 32px !important;
  background: linear-gradient(135deg, #E30613, #ff6b6b) !important;
  border: none !important;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
}
.send-btn .send-plane {
  display: inline-block; margin-left: 10px;
  transition: transform .5s cubic-bezier(.5, -0.5, .2, 1.8);
}
.send-btn:hover .send-plane { transform: translate(4px, -4px) rotate(-15deg); }
.send-btn.is-sending .send-plane {
  animation: planeFly 1.2s cubic-bezier(.5, -0.5, .2, 1.8) forwards;
}
.send-btn.is-sending .send-label { opacity: 0; }
@keyframes planeFly {
  0% { transform: translate(0, 0) rotate(0); }
  40% { transform: translate(20px, -20px) rotate(-20deg); opacity: 1; }
  100% { transform: translate(300px, -100px) rotate(-35deg); opacity: 0; }
}
.send-btn.is-sent {
  background: linear-gradient(135deg, #10B981, #34D399) !important;
}
.send-btn.is-sent .send-label::before {
  content: "Sent! "; margin-right: 6px;
}

/* === Our Clients (premium edition) === */
.clients-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f1724 0%, #1a2440 60%, #1a2440 100%);
  color: #fff;
}
.clients-section .section-header h2,
.clients-section .section-header .subtitle { color: #fff; }
.clients-section .section-header h2 {
  background: linear-gradient(90deg, #fff 0%, #ffb199 60%, #E30613 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.clients-section .section-header .subtitle { color: #ffb199; }
.clients-section .section-header p { color: rgba(255,255,255,0.7); }

.clients-bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: .35; z-index: 0;
}
.clients-bg-orb-1 { width: 400px; height: 400px; background: #E30613; top: -100px; left: -100px; }
.clients-bg-orb-2 { width: 500px; height: 500px; background: #4a90e2; bottom: -150px; right: -150px; opacity: .25; }
.clients-section > .container { position: relative; z-index: 1; }

.clients-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 900px; margin: 30px auto 50px; text-align: center;
}
.clients-stats > div {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 22px 12px; border-radius: 14px;
  transition: transform .3s ease, border-color .3s ease;
}
.clients-stats > div:hover { transform: translateY(-4px); border-color: rgba(227,6,19,0.5); }
.clients-stats strong {
  display: block; font-size: 1.8rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #fff;
  letter-spacing: -0.5px;
}
.clients-stats span {
  display: block; color: rgba(255,255,255,0.65);
  font-size: .85rem; margin-top: 4px; font-weight: 400;
}

.clients-tabs {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 36px;
}
.clients-tabs button {
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .3s ease;
}
.clients-tabs button:hover { border-color: #E30613; }
.clients-tabs button.is-active {
  background: linear-gradient(90deg, #E30613, #ff6b6b); border-color: transparent;
  box-shadow: 0 10px 25px rgba(227,6,19,0.35);
}

/* Marquee — break out of container, edge-to-edge */
.logo-marquee {
  position: relative; overflow: hidden;
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.logo-track {
  display: flex; gap: 16px; width: max-content;
  animation: creMarquee 40s linear infinite;
}
.logo-track-reverse { animation-direction: reverse; animation-duration: 50s; }
.logo-track:hover { animation-play-state: paused; }
.logo-row { display: flex; gap: 16px; flex-shrink: 0; }
@keyframes creMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hide logo mark/fallback — text-only marquee */
.logo-mark, .logo-fallback { display: none !important; }

.logo-card {
  flex-shrink: 0;
  padding: 14px 0;
  display: flex; align-items: center;
  position: relative; white-space: nowrap;
  background: transparent !important; border: none !important;
  box-shadow: none !important;
  transition: color .35s ease, transform .35s ease;
}
.logo-card::before { display: none !important; content: none !important; }

.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: .3px;
  transition: color .35s ease;
}

/* Diamond separator between names */
.logo-card::after {
  content: "◆"; color: var(--brand, #E30613);
  margin: 0 28px; font-size: .6rem;
  opacity: .5;
  align-self: center;
}

.logo-card:hover { transform: translateY(-2px); }
.logo-card:hover .logo-name {
  color: #fff;
  text-shadow: 0 0 20px rgba(227,6,19,0.4);
}

.clients-row-title {
  text-align: center; color: #fff; font-size: 1.1rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin: 0 0 24px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.clients-row-title span { font-size: 1.4rem; }

@media (max-width: 768px) {
  .clients-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .clients-stats strong { font-size: 1.6rem; }
  .clients-tabs button { padding: 8px 16px; font-size: .82rem; }
  .logo-name { font-size: 1.05rem; }
  .logo-card::after { margin: 0 18px; }
  .logo-track { animation-duration: 30s; }
}

/* === Mobile polish === */
@media (max-width: 768px) {
  .uae-map iframe { height: 320px !important; }
  .uae-map-wrap { gap: 20px !important; }
  .map-info { padding: 20px; min-height: auto; }
  .map-tabs button { padding: 5px 10px; font-size: .78rem; }

  .prop-filter { gap: 6px; margin: 20px 0 24px; }
  .prop-filter button { padding: 8px 14px; font-size: .8rem; }

  .property-grid { grid-template-columns: 1fr; gap: 20px; }
  .property-card-img { height: 200px; }

  .prop-modal { padding: 0; }
  .prop-modal-inner { border-radius: 0; max-height: 100vh; height: 100%; }
  .prop-modal-img { height: 240px; border-radius: 0; }
  .prop-modal-body { padding: 22px; }

  .back-to-top { bottom: 80px !important; right: 16px !important; }
  .whatsapp-btn { bottom: 16px !important; right: 16px !important; }

  .header.is-scrolled { padding: 0 !important; }

  .blog-toc { position: static; max-height: none; margin-bottom: 20px; }
  .read-progress { height: 2px; }

  blockquote { padding: 16px 18px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .uae-map iframe { height: 280px !important; }
  .property-card-body { padding: 18px; }
  .property-card-price { font-size: .82rem; padding: 6px 10px; }
  .prop-modal-features { gap: 14px; font-size: .85rem; }
}

/* Prevent tilt transforms on touch devices (extra safety) */
@media (hover: none) {
  .service-card, .blog-card, .office-card, .value-card, .team-member, .property-card {
    transform: none !important;
  }
}

.whatsapp-btn {
  position: fixed !important;
  bottom: 30px !important; right: 30px !important;
  left: auto !important;
  z-index: 9998 !important;
}
.back-to-top {
  position: fixed !important;
  bottom: 100px !important; left: 30px !important;
  right: auto !important;
  z-index: 9998 !important;
}
.whatsapp-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; opacity: .6; z-index: -1;
  animation: creWa 2.4s ease-out infinite;
  pointer-events: none;
}

/* === Floating Call button (bottom-left, site-wide) === */
.call-btn {
  position: fixed !important;
  bottom: 30px; left: 30px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #E30613, #ff6b6b);
  color: #fff !important; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(227,6,19,0.45);
  z-index: 9998;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.call-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #E30613; opacity: .55; z-index: -1;
  animation: creWa 2.4s ease-out infinite;
  pointer-events: none;
}
.call-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(227,6,19,0.6);
}
@media (max-width: 768px) {
  .call-btn { bottom: 16px !important; left: 16px !important; width: 52px; height: 52px; font-size: 1.15rem; }
  .whatsapp-btn { bottom: 16px !important; right: 16px !important; width: 52px !important; height: 52px !important; font-size: 1.15rem !important; }
  .back-to-top { bottom: 80px !important; left: 16px !important; right: auto !important; width: 44px !important; height: 44px !important; }
}
@keyframes creWa {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* === Cinematic office strips: split layout (sharp photo card | text) === */
.cinematic-strip {
  position: relative;
  padding: 100px 40px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, #0f1724 0%, #1a2440 50%, #0f1724 100%);
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 70px;
}
.cinematic-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(227,6,19,0.18), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(227,6,19,0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
  grid-column: 1 / -1;
  grid-row: 1;
}
.cinematic-strip .strip-overlay { display: none; }

/* Photo card column: contains the stacked .strip-bg layers (cross-fade). Sharp at natural size. */
.cinematic-strip .strip-bg-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}
.cinematic-strip .strip-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 12s ease-out;
  will-change: opacity, transform;
}
.cinematic-strip .strip-bg.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Text column */
.cinematic-strip .strip-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}
/* Subtle red accent line above the headline (replaces the chapter tag) */
.cinematic-strip .strip-content::before {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #E30613, #ff6b6b);
  border-radius: 3px;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* Alternate sides on every other strip — photo right, text left */
.cinematic-strip:nth-of-type(even) .strip-bg-stack { grid-column: 2; justify-self: start; }
.cinematic-strip:nth-of-type(even) .strip-content { grid-column: 1; justify-self: end; align-items: flex-end; text-align: right; }
.cinematic-strip:nth-of-type(even) .strip-content::before { align-self: flex-end; }
.cinematic-strip .strip-tag {
  display: none;
}
.cinematic-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
.cinematic-strip p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.94);
  margin: 0 auto;
  max-width: 580px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.cinematic-strip .strip-progress {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.cinematic-strip .strip-progress span {
  width: 22px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  transition: background .4s ease, width .4s ease;
}
.cinematic-strip .strip-progress span.is-active {
  background: #fff;
  width: 36px;
}

@media (max-width: 900px) {
  .cinematic-strip {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 70px 22px 80px;
    text-align: center;
  }
  .cinematic-strip .strip-bg-stack { grid-column: 1; grid-row: 1; justify-self: center; max-width: 100%; }
  .cinematic-strip .strip-content { grid-column: 1; grid-row: 2; justify-self: center; align-items: center; text-align: center; }
  .cinematic-strip:nth-of-type(even) .strip-bg-stack { grid-column: 1; justify-self: center; }
  .cinematic-strip:nth-of-type(even) .strip-content { grid-column: 1; justify-self: center; align-items: center; text-align: center; }
  .cinematic-strip .strip-tag { font-size: 0.72rem; padding: 6px 14px; letter-spacing: 0.2em; margin-bottom: 18px; }
  .cinematic-strip h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin-bottom: 16px; }
  .cinematic-strip p { font-size: 1rem; line-height: 1.6; max-width: 100%; }
}
@media (max-width: 480px) {
  .cinematic-strip h2 { font-size: 1.6rem; }
  .cinematic-strip p { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-strip .strip-bg { transition: opacity .3s ease; transform: none; }
}

/* === Inside Our Offices gallery: horizontal auto-scrolling marquee === */
.office-gallery-section { padding: 80px 0; overflow: hidden; }
.office-gallery-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.office-gallery-header .lede {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
}
.office-gallery-header .lede strong { color: var(--primary); font-weight: 600; }
.office-gallery {
  position: relative;
  margin-top: 50px;
  /* Break out of .container max-width so the marquee spans the full viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
/* The track holds 2x the cards (originals + JS-cloned copy) so it can loop seamlessly */
.office-gallery .gallery-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: galleryMarquee 50s linear infinite;
  will-change: transform;
}
.office-gallery:hover .gallery-track { animation-play-state: paused; }
@keyframes galleryMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .office-gallery .gallery-track { animation: none; }
}
.office-gallery .gallery-card {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: 320px;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(20, 20, 40, 0.14);
  background: #0f1724;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
/* Uniform size for ALL cards regardless of source aspect ratio */
.office-gallery .gallery-card.portrait,
.office-gallery .gallery-card.landscape { width: 320px; height: 230px; }
.office-gallery .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  animation: galleryKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes galleryKenBurns {
  0%   { transform: scale(1.04) translate(0%, 0%); }
  35%  { transform: scale(1.10) translate(-2%, -1%); }
  65%  { transform: scale(1.08) translate(2%, 0.5%); }
  100% { transform: scale(1.06) translate(0%, -1.5%); }
}
/* Different start times so cards aren't in sync */
.office-gallery .gallery-card:nth-child(1) img { animation-delay: 0s; }
.office-gallery .gallery-card:nth-child(2) img { animation-delay: -3s; }
.office-gallery .gallery-card:nth-child(3) img { animation-delay: -6s; }
.office-gallery .gallery-card:nth-child(4) img { animation-delay: -9s; }
.office-gallery .gallery-card:nth-child(5) img { animation-delay: -12s; }
.office-gallery .gallery-card:nth-child(6) img { animation-delay: -15s; }
.office-gallery .gallery-card:nth-child(7) img { animation-delay: -18s; }
.office-gallery .gallery-card:nth-child(8) img { animation-delay: -21s; }
@media (prefers-reduced-motion: reduce) {
  .office-gallery .gallery-card img { animation: none; transform: scale(1.04); }
}
.office-gallery .gallery-card figcaption {
  display: none;
}
.office-gallery .gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(227,6,19,0.18), 0 12px 28px rgba(0,0,0,0.18);
}
.office-gallery .gallery-card:hover img {
  animation-play-state: paused;
  transform: scale(1.08);
}

@media (max-width: 980px) {
  .office-gallery { grid-template-columns: repeat(2, 1fr); }
  .office-gallery .gallery-card.landscape { grid-column: span 2; }
}
@media (max-width: 600px) {
  .office-gallery { grid-template-columns: 1fr; gap: 16px; }
  .office-gallery .gallery-card.landscape,
  .office-gallery .gallery-card.portrait { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* === Google Reviews — auto-scrolling marquee with dark cards === */
.google-reviews-marquee-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #eef0f3 100%);
  padding: 90px 0 100px;
  overflow: hidden;
}
.google-reviews-marquee-section .section-header { text-align: center; margin-bottom: 40px; }
.g-reviews-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid #e8eaed;
  box-shadow: 0 4px 14px rgba(20,20,40,0.06);
  margin-bottom: 22px;
  text-align: left;
}
.g-reviews-pill .google-g { flex-shrink: 0; }
.g-reviews-pill .g-rating-line {
  margin: 0;
  font-size: 1rem;
  color: #1f2330;
  display: flex;
  align-items: center;
  gap: 6px;
}
.g-reviews-pill .g-rating-line strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2330;
}
.g-reviews-pill .g-rating-line .g-stars { color: #fbbc04; font-size: 1.05rem; letter-spacing: 1px; }
.g-reviews-pill .g-meta { margin: 0; font-size: 0.78rem; color: #5f6368; }

/* Marquee track */
.g-reviews-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  margin-bottom: 36px;
}
.g-reviews-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: gReviewsMarquee 80s linear infinite;
  will-change: transform;
  padding: 18px 0;
}
.g-reviews-marquee:hover .g-reviews-track { animation-play-state: paused; }
@keyframes gReviewsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .g-reviews-track { animation: none; }
}

/* Dark Google review card (compact, matches screenshots) */
.g-review-card {
  flex: 0 0 auto;
  width: 290px;
  background: #1f2024;
  color: #e8eaed;
  border-radius: 12px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-review-card header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.g-review-card .g-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.g-review-card .g-author { flex: 1 1 auto; min-width: 0; }
.g-review-card .g-author h4 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #f1f3f4;
  line-height: 1.3;
}
.g-review-card .g-sub {
  margin: 1px 0 0;
  font-size: 0.7rem;
  color: #9aa0a6;
}
.g-review-card .g-stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.g-review-card .g-stars {
  color: #fbbc04;
  font-size: 0.82rem;
  letter-spacing: 1px;
}
.g-review-card .g-time {
  font-size: 0.7rem;
  color: #9aa0a6;
}
.g-review-card .g-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d8dadd;
  font-family: 'Inter', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g-reviews-cta {
  text-align: center;
}
.g-reviews-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .g-review-card { width: 260px; padding: 14px 14px 16px; }
  .g-reviews-pill { flex-direction: column; gap: 4px; padding: 14px 18px; text-align: center; }
}

/* === (legacy) Google Review styled testimonials === */
.google-reviews-section .section-header { text-align: center; }
.google-reviews-header {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid #e8eaed;
  box-shadow: 0 4px 14px rgba(20,20,40,0.06);
  margin-bottom: 22px;
  text-align: left;
}
.google-reviews-header .google-g { flex-shrink: 0; }
.google-reviews-header .g-rating-line {
  margin: 0 0 2px;
  font-size: 1rem;
  color: #1f2330;
}
.google-reviews-header .g-rating-line strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2330;
  margin-right: 4px;
}
.google-reviews-header .g-stars {
  color: #fbbc04;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-right: 6px;
}
.google-reviews-header .g-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #5f6368;
}

/* Each Google review card */
.testimonial.google-review {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 28px 30px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 6px 22px rgba(20,20,40,0.06);
  text-align: left;
}
.testimonial.google-review .g-review-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.testimonial.google-review .g-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.testimonial.google-review .g-author-block {
  flex: 1 1 auto;
  min-width: 0;
}
.testimonial.google-review .g-author-block h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2330;
}
.testimonial.google-review .g-author-block p {
  margin: 2px 0 6px;
  font-size: 0.82rem;
  color: #5f6368;
}
.testimonial.google-review .g-time { color: #80868b; }
.testimonial.google-review .testimonial-stars {
  color: #fbbc04;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.testimonial.google-review .g-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  color: #5f6368;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 999px;
  align-self: flex-start;
  flex-shrink: 0;
}
.testimonial.google-review blockquote {
  margin: 0;
  font-style: normal;
  color: #1f2330;
  font-size: 0.98rem;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}
.testimonial.google-review blockquote::before,
.testimonial.google-review blockquote::after { content: none; }

.google-reviews-cta {
  text-align: center;
  margin-top: 36px;
}
.google-reviews-cta .btn { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 600px) {
  .google-reviews-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .testimonial.google-review { padding: 22px 20px; }
  .testimonial.google-review .g-review-head { flex-wrap: wrap; }
  .testimonial.google-review .g-badge { margin-left: auto; }
}

/* === About section: showcase composition (main circle + mini circle + floating stats + deco) === */
.about-circle-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 30px;
  isolation: isolate;
}

/* Decorative background shapes */
.about-deco { position: absolute; pointer-events: none; z-index: 0; }

/* Brand storytelling curve — flows from Founder → Office → 40+ */
.about-brand-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  overflow: visible;
}
.about-brand-curve path {
  stroke-dashoffset: 0;
  animation: aboutCurveFlow 18s linear infinite;
}
@keyframes aboutCurveFlow {
  to { stroke-dashoffset: -280; }
}
@media (prefers-reduced-motion: reduce) {
  .about-brand-curve path { animation: none; }
}
.about-deco-blob {
  width: 360px; height: 360px;
  top: -40px; right: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(227,6,19,0.20), rgba(227,6,19,0) 60%);
  filter: blur(8px);
  animation: aboutBlobFloat 12s ease-in-out infinite alternate;
}
.about-deco-ring {
  width: 180px; height: 180px;
  top: -16px; left: -16px;
  border: 2px dashed rgba(227,6,19,0.4);
  border-radius: 50%;
  animation: aboutRingSpin 40s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.about-deco-dots {
  width: 160px; height: 160px;
  top: 40px; left: -10px;
  background-image: radial-gradient(rgba(15,23,36,0.18) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.6;
  animation: aboutDotsFloat 9s ease-in-out infinite alternate;
}
@keyframes aboutBlobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12px, 14px) scale(1.06); }
}
@keyframes aboutRingSpin {
  to { transform: rotate(360deg); }
}
@keyframes aboutDotsFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(8px, -10px); }
}

/* Main circular photo */
.about-circle {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}
.about-circle-main {
  width: 380px;
  height: 380px;
  max-width: 100%;
  box-shadow:
    0 30px 60px rgba(20,20,40,0.22),
    0 0 0 8px rgba(255,255,255,0.95),
    0 0 0 10px rgba(227,6,19,0.22);
}
.about-circle-mini {
  position: absolute;
  width: 170px;
  height: 170px;
  bottom: 10px;
  left: -10px;
  z-index: 3;
  box-shadow:
    0 18px 40px rgba(20,20,40,0.25),
    0 0 0 6px rgba(255,255,255,0.95);
  animation: aboutMiniFloat 6s ease-in-out infinite alternate;
}
.about-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: aboutCircleZoom 18s ease-in-out infinite alternate;
  will-change: transform;
}
.about-circle-mini img { animation-duration: 14s; }
@keyframes aboutCircleZoom {
  0%   { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.5%, -1%); }
}
@keyframes aboutMiniFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* 40+ Years badge — moved to bottom-right */
.about-circle-wrap .about-experience {
  position: absolute;
  bottom: 24px;
  right: 18px;
  top: auto;
  left: auto;
  z-index: 4;
}

/* Founder block (top-left): photo inside a circle, with dashed ring orbiting */
.about-founder {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-founder-photo {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  box-shadow:
    0 18px 38px rgba(20,20,40,0.2),
    0 0 0 6px rgba(255,255,255,0.95),
    0 0 0 8px rgba(227,6,19,0.18);
  flex-shrink: 0;
}
.about-founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-founder .about-deco-ring {
  /* Ring is now child of .about-founder, sized to orbit the photo */
  position: absolute;
  width: 180px;
  height: 180px;
  top: -16px;
  left: -16px;
}
.about-founder-label {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,36,0.06);
  box-shadow: 0 10px 26px rgba(20,20,40,0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 60px;
}
.about-founder-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E30613;
}
.about-founder-label strong {
  font-size: 0.92rem;
  color: #1f2330;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .about-founder-photo { width: 120px; height: 120px; }
  .about-founder .about-deco-ring { width: 148px; height: 148px; top: -14px; left: -14px; }
  .about-founder-label strong { font-size: 0.85rem; }
}
@media (max-width: 768px) {
  .about-founder-photo { width: 96px; height: 96px; }
  .about-founder .about-deco-ring { width: 118px; height: 118px; top: -11px; left: -11px; }
  .about-founder-label { padding: 8px 11px; margin-top: 40px; }
  .about-founder-label strong { font-size: 0.78rem; white-space: normal; max-width: 130px; }
}

/* About-page exclusive: founder quote bubble (top-right corner area) */
.about-quote {
  position: absolute;
  top: 40px;
  right: -10px;
  z-index: 4;
  max-width: 260px;
  padding: 18px 22px 16px 38px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15,23,36,0.06);
  box-shadow: 0 18px 38px rgba(20,20,40,0.12);
  animation: aboutStatFloat 6s ease-in-out infinite alternate;
}
.about-quote-mark {
  position: absolute;
  top: -6px;
  left: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: #E30613;
  opacity: 0.85;
}
.about-quote p {
  margin: 0 0 8px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #1f2330;
}
.about-quote-author {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #E30613;
}
@media (max-width: 980px) {
  .about-quote { max-width: 230px; padding: 14px 18px 12px 32px; }
  .about-quote p { font-size: 0.9rem; }
  .about-quote-mark { font-size: 3.2rem; left: 8px; }
}
@media (max-width: 768px) {
  .about-quote { position: relative; max-width: 100%; margin: 16px 0 0; bottom: auto; }
}

/* === About-page: Founder Hero composition (different from home page) === */
.founder-hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 600px;
  padding: 40px 20px;
  isolation: isolate;
}
/* Background deco */
.founder-hero-blob {
  position: absolute;
  top: 30px; left: 20px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(227,6,19,0.18), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  animation: aboutBlobFloat 14s ease-in-out infinite alternate;
}
.founder-hero-grid {
  position: absolute;
  bottom: 30px; right: 0;
  width: 180px; height: 180px;
  background-image: radial-gradient(rgba(15,23,36,0.18) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

/* Established badge (top-right) */
.founder-est-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  background: #fff;
  border: 1px solid rgba(15,23,36,0.08);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20,20,40,0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 120px;
}
.est-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5f6368;
}
.founder-est-badge strong {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #E30613;
  line-height: 1;
}
.est-place {
  font-size: 0.74rem;
  color: #1f2330;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Hero portrait card — the centerpiece */
.founder-hero-portrait {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(20,20,40,0.18),
    0 0 0 1px rgba(15,23,36,0.05);
}
.portrait-frame-deco {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 2px dashed rgba(227,6,19,0.28);
  border-radius: 24px;
  pointer-events: none;
  animation: aboutRingSpin 60s linear infinite;
}
.portrait-image {
  width: 100%;
  height: 380px;
  background: linear-gradient(180deg, #2a3245 0%, #0f1724 100%);
  overflow: hidden;
}
.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05);
  transition: transform 8s ease-out;
}
.founder-hero-portrait:hover .portrait-image img { transform: scale(1.05); }
.portrait-caption {
  padding: 22px 26px 26px;
  text-align: center;
  border-top: 1px solid rgba(15,23,36,0.06);
}
.portrait-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E30613;
  background: rgba(227,6,19,0.1);
  border-radius: 999px;
  margin-bottom: 12px;
}
.portrait-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  margin: 0 0 4px;
  color: #1f2330;
  line-height: 1.2;
}
.portrait-caption p {
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  color: #5f6368;
}

/* Floating quote — bottom-left, overlapping portrait */
.founder-hero-quote {
  position: absolute;
  bottom: 40px;
  left: 0;
  z-index: 4;
  max-width: 260px;
  margin: 0;
  background: #1f2330;
  color: #fff;
  padding: 22px 22px 18px 38px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 50px rgba(20,20,40,0.25);
}
.founder-hero-quote .quote-mark {
  position: absolute;
  top: -8px;
  left: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  line-height: 1;
  color: #E30613;
}
.founder-hero-quote p {
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.95);
}
.founder-hero-quote cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
}
.quote-signature {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: #ffb199;
}
.quote-since {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Small office circle — peeks from top-left */
.founder-hero-office {
  position: absolute;
  top: 30px;
  left: 0;
  z-index: 2;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(20,20,40,0.22),
    0 0 0 6px rgba(255,255,255,0.95);
  animation: aboutMiniFloat 7s ease-in-out infinite alternate;
}
.founder-hero-office img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  animation: aboutCircleZoom 22s ease-in-out infinite alternate;
}

/* 40+ Years badge in this composition */
.founder-hero-years {
  position: absolute;
  bottom: 40px;
  right: 0;
  z-index: 4;
  background: linear-gradient(135deg, #E30613, #b3050f);
  color: #fff;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(227,6,19,0.35);
  text-align: center;
}
.founder-hero-years h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.founder-hero-years p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 980px) {
  .founder-hero-portrait { max-width: 320px; }
  .portrait-image { height: 320px; }
  .founder-hero-quote { max-width: 220px; padding: 18px 18px 14px 32px; }
  .founder-hero-quote p { font-size: 0.9rem; }
  .founder-hero-office { width: 100px; height: 100px; }
  .founder-est-badge strong { font-size: 1.7rem; }
}
@media (max-width: 768px) {
  .founder-hero-wrap { min-height: 500px; padding: 20px; }
  .founder-hero-portrait { max-width: 260px; }
  .portrait-image { height: 260px; }
  .founder-hero-quote {
    position: relative;
    bottom: auto; left: auto;
    max-width: 100%;
    margin: 24px 0 0;
  }
  .founder-hero-office,
  .founder-hero-years,
  .founder-est-badge { position: relative; top: auto; left: auto; right: auto; bottom: auto; margin: 12px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .founder-hero-blob,
  .portrait-frame-deco,
  .founder-hero-office,
  .founder-hero-office img { animation: none; }
}

/* === Timeline cards (text-only, simple sans-serif with Lottie badge) === */
.timeline-content {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  padding: 56px 30px 26px;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(15, 20, 40, 0.07), 0 1px 3px rgba(15,20,40,0.04);
  border: 1px solid rgba(15, 20, 40, 0.06);
  border-left: 4px solid #E30613;
  max-width: 460px;
  text-align: left;
  margin-top: 32px;
}
.timeline-item:nth-child(odd) .timeline-content {
  border-left: none;
  border-right: 4px solid #E30613;
  margin-left: auto;
}
.timeline-item:hover .timeline-content {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(227, 6, 19, 0.12), 0 2px 6px rgba(15,20,40,0.05);
}
/* Circular Lottie badge — top-LEFT on odd cards, top-RIGHT on even cards */
.tl-icon {
  position: absolute;
  top: -28px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(15,20,40,0.16), 0 0 0 4px #fff, inset 0 0 0 1px rgba(227,6,19,0.18);
  z-index: 2;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.tl-icon dotlottie-wc,
.tl-icon dotlottie-player,
.tl-icon lottie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}
.timeline-item:nth-child(odd) .tl-icon  { left:  -28px; right: auto; }
.timeline-item:nth-child(even) .tl-icon { right: -28px; left:  auto; }
.tl-icon video, .tl-icon img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 50%;
}
/* Pulsing ring around every badge — subtle continuous animation */
.tl-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(227, 6, 19, 0.55);
  opacity: 0;
  animation: tlIconPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.tl-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(227, 6, 19, 0.45);
  opacity: 0;
  animation: tlIconPulse 2.4s ease-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}
@keyframes tlIconPulse {
  0%   { transform: scale(0.85); opacity: 0.9; }
  80%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
/* Hover: badge pops slightly (Lottie keeps animating on its own) */
.timeline-item:hover .tl-icon {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(227,6,19,0.22), 0 0 0 4px #fff, inset 0 0 0 1px rgba(227,6,19,0.3);
}
@media (prefers-reduced-motion: reduce) {
  .tl-icon::before, .tl-icon::after { animation: none; }
}
/* h4 (year inside the card) — hidden because the central timeline-dot already shows the year */
.timeline-content h4 {
  display: none !important;
}
.timeline-content h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f1724 !important;
  line-height: 1.3 !important;
  margin: 0 0 10px !important;
  letter-spacing: -0.2px;
}
.timeline-content p {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: #4a5568 !important;
  margin: 0 !important;
  font-weight: 400 !important;
}
.timeline-content > p:first-of-type::first-letter {
  float: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: inherit !important;
}
@media (max-width: 768px) {
  .timeline-content {
    max-width: 100%;
    padding: 46px 20px 18px;
    margin-top: 28px;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    border-right: none;
    border-left: 4px solid #E30613;
  }
  .tl-icon {
    width: 60px; height: 60px;
    top: -22px;
    font-size: 1.05rem;
  }
  .timeline-item:nth-child(odd) .tl-icon  { left: -22px; right: auto; }
  .timeline-item:nth-child(even) .tl-icon { right: -22px; left: auto; }
  .timeline-content h3 { font-size: 1.1rem !important; }
  .timeline-content p { font-size: 0.9rem !important; }
}

/* About page: clean header (no image — story section below has the image) */
.about-page-header-clean {
  background: linear-gradient(135deg, #0f1724 0%, #1a2440 100%) !important;
  padding: 70px 0 40px;
}
.about-page-header-clean::before { display: none; }

/* === About-page: full-bleed background image with overlaid text === */
.about-story-section {
  position: relative;
  padding: 140px 0;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}
.about-story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.about-story-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: aboutCircleZoom 22s ease-in-out infinite alternate;
  will-change: transform;
}
.about-story-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,12,22,0.85) 0%, rgba(8,12,22,0.75) 45%, rgba(8,12,22,0.45) 75%, rgba(8,12,22,0.3) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(227,6,19,0.18), transparent 60%);
}
/* Image-removed variant: section becomes a clean dark gradient (no photo behind) */
.about-story-section.about-story-no-image {
  background: linear-gradient(135deg, #0f1724 0%, #1a2440 50%, #0f1724 100%);
}
.about-story-section.about-story-no-image .about-story-overlay {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(227,6,19,0.18), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(227,6,19,0.10), transparent 50%);
}
/* Video-background variant: full-bleed Dubai video */
.about-story-section.about-story-video {
  background: #0f1724;
}
.about-story-section.about-story-video .about-story-bg {
  background: #0f1724;
}
.about-story-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* YouTube iframe background — make iframe cover the section, no letterbox */
.about-story-section.about-story-yt {
  background: #0f1724;
  min-height: 600px;
}
.about-story-section.about-story-yt .about-story-bg {
  background: #0f1724;
  overflow: hidden;
}
.yt-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Trick: scale iframe to 16:9 cover the container, centered */
.yt-bg-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;       /* 16:9 of viewport width */
  min-height: 100%;
  min-width: 177.78%;     /* 16:9 ratio when section is taller than wide */
  border: 0;
}
@media (max-width: 900px) {
  .about-story-section.about-story-yt { min-height: 520px; }
}
.about-story-section .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.about-story-content {
  max-width: 640px;
}
.about-story-section .subtitle {
  display: inline-block;
  color: #ffb199;
  background: rgba(227,6,19,0.18);
  border: 1px solid rgba(227,6,19,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.about-story-section h2 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 22px;
  text-shadow: 0 4px 26px rgba(0,0,0,0.5);
}
.about-story-section p {
  color: rgba(255,255,255,0.92);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.about-story-section .about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin-top: 26px;
}
.about-story-section .about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 0.96rem;
}
.about-story-section .about-feature .icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #E30613, #ff6b6b);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.about-story-badge-float {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #E30613, #b3050f);
  color: #fff;
  padding: 22px 28px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(227,6,19,0.45);
  text-align: center;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}
.about-story-badge-float strong {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.about-story-badge-float span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
  .about-story-section { padding: 90px 0; }
  .about-story-section .container { grid-template-columns: 1fr; gap: 24px; }
  .about-story-section .about-features { grid-template-columns: 1fr; }
  .about-story-badge-float { align-self: start; justify-self: start; }
  .about-story-overlay { background: linear-gradient(180deg, rgba(8,12,22,0.85) 0%, rgba(8,12,22,0.7) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .about-story-bg img { animation: none; }
}

/* === (legacy) About-page: simple story image card === */
.about-story-image-wrap {
  position: relative;
  isolation: isolate;
  padding: 20px;
}
.about-story-deco-blob {
  position: absolute;
  top: -40px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(227,6,19,0.16), transparent 65%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}
.about-story-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(20,20,40,0.22),
    0 0 0 1px rgba(15,23,36,0.05);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.about-story-image:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 70px rgba(20,20,40,0.25),
    0 0 0 1px rgba(227,6,19,0.18);
}
.about-story-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 8s ease-out;
}
.about-story-image:hover img { transform: scale(1.04); }
.about-story-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  background: linear-gradient(135deg, #E30613, #b3050f);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(227,6,19,0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  text-align: left;
}
.about-story-badge strong {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.about-story-badge span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.92);
}
@media (max-width: 768px) {
  .about-story-image-wrap { padding: 10px; }
  .about-story-badge { padding: 10px 14px; bottom: 14px; left: 14px; }
  .about-story-badge strong { font-size: 1.4rem; }
}

/* === UAE Footprint section (about page) === */
.uae-footprint-section { padding: 100px 0; background: linear-gradient(180deg, #f8f9fa 0%, #eef0f3 100%); }
.uae-footprint-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}
.uae-footprint-map {
  position: relative;
  background: linear-gradient(135deg, #0f1724 0%, #1a2440 100%);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 30px 70px rgba(15,23,36,0.25);
  isolation: isolate;
  overflow: hidden;
}
.footprint-deco-blob {
  position: absolute;
  top: -60px; right: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(227,6,19,0.25), transparent 65%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.uae-footprint-map svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

/* Map pins */
.footprint-pin { cursor: pointer; transition: transform .3s ease; transform-box: fill-box; transform-origin: center; }
.footprint-pin .pin-dot { fill: #E30613; stroke: #fff; stroke-width: 1.5; transition: r .3s ease, fill .3s ease; }
.footprint-pin .pin-pulse {
  fill: #E30613;
  opacity: 0.55;
  animation: footprintPulse 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.footprint-pin.is-hq .pin-dot { r: 10; fill: #ff3344; }
.footprint-pin.is-hq .pin-pulse { animation-duration: 2s; }
.footprint-pin text {
  fill: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.footprint-pin.is-hq text { font-size: 12px; fill: #ffb199; }
.footprint-pin:hover { transform: scale(1.2); }
.footprint-pin:hover .pin-dot { fill: #ffb199; }
@keyframes footprintPulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Office cards beside the map */
.uae-footprint-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footprint-card {
  background: #fff;
  border: 1px solid rgba(15,23,36,0.06);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 8px 22px rgba(20,20,40,0.06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.footprint-card:hover {
  transform: translateX(6px);
  box-shadow: 0 14px 32px rgba(227,6,19,0.12);
  border-color: rgba(227,6,19,0.25);
}
.footprint-card.is-hq {
  background: linear-gradient(135deg, #fff 0%, #fff 60%, rgba(227,6,19,0.06) 100%);
  border-color: rgba(227,6,19,0.2);
}
.footprint-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footprint-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E30613;
  background: rgba(227,6,19,0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.footprint-card.is-hq .footprint-tag { background: #E30613; color: #fff; }
.footprint-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2330;
  line-height: 1.2;
}
.footprint-card p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #5f6368;
  line-height: 1.5;
}
.footprint-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E30613;
  text-decoration: none;
  transition: gap .25s ease;
}
.footprint-link:hover { gap: 10px; }

@media (max-width: 980px) {
  .uae-footprint-grid { grid-template-columns: 1fr; gap: 30px; }
  .uae-footprint-map { padding: 20px; }
}
@media (max-width: 600px) {
  .footprint-pin text { font-size: 10px; }
  .footprint-card { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .footprint-pin .pin-pulse { animation: none; opacity: 0; }
}

/* Floating glass stat badges */
.about-stat {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15,23,36,0.06);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(20,20,40,0.12);
  min-width: 170px;
  animation: aboutStatFloat 5s ease-in-out infinite alternate;
}
.about-stat-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E30613, #ff6b6b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(227,6,19,0.3);
}
.about-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2330;
  line-height: 1.1;
}
.about-stat span {
  font-size: 0.74rem;
  color: #5f6368;
  letter-spacing: 0.02em;
}
.about-stat-1 { top: 30px;  right: -10px; animation-delay: 0s; }
.about-stat-2 { top: 50%;   right: -30px; transform: translateY(-50%); animation-delay: -2s; }
.about-stat-3 { top: 130px; left: -10px; animation-delay: -4s; }
@keyframes aboutStatFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
.about-stat-2 { animation-name: aboutStatFloatY; }
@keyframes aboutStatFloatY {
  0%   { transform: translateY(calc(-50% + 0px)); }
  100% { transform: translateY(calc(-50% - 8px)); }
}

/* Responsive */
@media (max-width: 980px) {
  .about-stat { min-width: 0; padding: 10px 12px; }
  .about-stat strong { font-size: 0.95rem; }
  .about-stat span { font-size: 0.68rem; }
  .about-stat-1 { right: 0; }
  .about-stat-2 { right: -10px; }
  .about-stat-3 { right: 20px; }
}
@media (max-width: 768px) {
  .about-circle-wrap { min-height: 420px; padding: 20px; }
  .about-circle-main { width: 280px; height: 280px; }
  .about-circle-mini { width: 110px; height: 110px; bottom: 0; left: 0; }
  .about-circle-wrap .about-experience { top: 0; left: 0; }
  .about-stat { padding: 8px 12px; }
  .about-stat-icon { width: 32px; height: 32px; font-size: 0.85rem; }
  .about-deco-blob { width: 240px; height: 240px; right: -30px; }
  .about-deco-ring { width: 140px; height: 140px; bottom: 10px; right: -10px; }
  .about-deco-dots { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-circle img,
  .about-circle-mini,
  .about-stat,
  .about-deco-blob,
  .about-deco-ring,
  .about-deco-dots { animation: none; }
}


/* (Shadow on #buy / #rent now handled by the unified Services duotone block above) */

/* === Home hero: remove dark video overlay (per user request) === */
.hero-bg-overlay { background: none !important; }

/* === Nav dropdown: show on click toggle (.show class added by main.js) === */
.nav-menu li > .dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
