/* ============================================
   ZENVIAN — LUXURY STYLES
   ============================================ */
:root {
  /* Colors */
  --green-deep: #1C2B20;
  --green-mid: #2A3F30;
  --green-accent: #3B5944;
  --gold: #C8956C;
  --gold-light: #DFB28F;
  --cream: #F8F5EF;
  --cream-warm: #F3EDE3;
  --white: #FFFDF8;
  
  --charcoal: #2C2C2A;
  --charcoal-light: #6B6B66;
  --charcoal-muted: #9E9E96;
  --text-light: #E8DFD0;
  --text-accent: #A8B5AA;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 120px;
  --inner-pad: 80px;
  --side-pad: clamp(5vw, 8vw, 10vw);
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:16px;overflow-x:hidden;background:var(--green-deep)}
body{font-family:var(--font-body);color:var(--charcoal);background:var(--cream);line-height:1.7;font-weight:400;overflow-x:hidden;position:relative}

/* SVG Linen Noise Overlay */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  opacity: 0.03; mix-blend-mode: multiply;
}

::selection{background:var(--gold);color:var(--white)}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:var(--font-body)}

.container{max-width:1280px;margin:0 auto;padding-left:var(--side-pad);padding-right:var(--side-pad)}
.section-label{font-family:var(--font-body);font-size:0.75rem;font-weight:600;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.section-title{font-family:var(--font-display);font-size:clamp(28px, 4vw, 36px);font-weight:400;line-height:1.2;color:var(--charcoal);margin-bottom:1.5rem}
.section-title em{font-style:italic;color:var(--green-mid);font-weight:400}

/* ANIMATIONS */
.fade-in{opacity:0;transform:translateY(32px);transition:opacity 0.8s cubic-bezier(0.16,1,0.3,1),transform 0.8s cubic-bezier(0.16,1,0.3,1)}
.fade-in.visible{opacity:1;transform:translateY(0)}
.fade-in-delay-1{transition-delay:0.15s}
.fade-in-delay-2{transition-delay:0.3s}
.fade-in-delay-3{transition-delay:0.45s}
.fade-in-delay-4{transition-delay:0.6s}
@keyframes fadeUp{from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:translateY(0)}}

/* BUTTONS */
.btn-primary{display:inline-flex;align-items:center;gap:.5rem;background:var(--gold);color:var(--white);padding:1rem 2.2rem;text-decoration:none;font-size:.85rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;border:none;cursor:pointer;transition:all .3s}
.btn-primary:hover{background:var(--gold-light);transform:translateY(-2px);box-shadow:0 8px 24px rgba(196,162,101,.3)}
.btn-solid{display:inline-flex;align-items:center;justify-content:center;padding:1rem 2rem;background:var(--accent);color:var(--white);text-decoration:none;font-size:.85rem;font-weight:500;letter-spacing:.05em;border:none;cursor:pointer;transition:all .3s;border-radius:50px;white-space:nowrap;box-shadow:0 4px 15px rgba(196,162,101,.3)}
.btn-solid:hover{background:#ae8c51;transform:translateY(-2px);box-shadow:0 6px 20px rgba(196,162,101,.4)}
.btn-secondary{display:inline-flex;align-items:center;gap:.5rem;background:transparent;color:var(--cream);padding:1rem 2.2rem;text-decoration:none;font-size:.85rem;font-weight:400;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.3);cursor:pointer;transition:all .3s}
.btn-secondary:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.5)}
.btn-outline{display:inline-flex;align-items:center;justify-content:center;padding:1rem 2rem;background:transparent;color:var(--charcoal);text-decoration:none;font-size:.85rem;font-weight:500;letter-spacing:.05em;border:1px solid var(--charcoal);cursor:pointer;transition:all .3s}
.btn-outline:hover{background:var(--charcoal);color:var(--white)}
.btn-whatsapp{display:inline-flex;align-items:center;gap:.6rem;background:#25D366;color:white;padding:1rem 2rem;text-decoration:none;font-size:.85rem;font-weight:500;letter-spacing:.05em;transition:all .3s;border-radius:50px;white-space:nowrap;box-shadow:0 4px 15px rgba(37,211,102,.3)}
.btn-whatsapp svg{width:20px;height:20px;fill:currentColor}
.btn-whatsapp:hover{background:#22bf5b;transform:translateY(-2px);box-shadow:0 6px 20px rgba(37,211,102,.4)}

/* ══════ NAV ══════ */
nav{position:fixed;top:0;left:0;right:0;z-index:1000;padding:24px var(--side-pad);display:flex;align-items:center;justify-content:space-between;transition:all 0.5s cubic-bezier(0.16, 1, 0.3, 1);background:transparent}
nav.scrolled{background:rgba(28,43,32,0.95);backdrop-filter:blur(20px);box-shadow:0 4px 30px rgba(0,0,0,0.1);padding:14px var(--side-pad)}
.nav-logo{display:flex;align-items:center;gap:0.6rem;text-decoration:none;color:var(--white);transition:color 0.4s}
.nav-logo svg, .nav-logo img{width:70px;height:70px;object-fit:contain;transition:all 0.5s}
.nav-logo .logo-sticky{display:none}
/* Removed sticky logo swap and resizing to maintain default logo and size */
.nav-logo-text{font-family:var(--font-display);font-size:1.6rem;font-weight:400;letter-spacing:0.02em}
.nav-links{display:flex;align-items:center;gap:2.5rem;list-style:none}
.nav-links li { position: relative; }
.nav-links a{text-decoration:none;color:var(--white);font-size:0.85rem;font-weight:400;letter-spacing:0.05em;transition:color 0.3s; padding-bottom:4px;}
.nav-links a:not(.btn-primary)::after { content:''; position:absolute; bottom:0; left:0; width:100%; height:1px; background:var(--gold); transform:scaleX(0); transform-origin:right; transition:transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-links a:not(.btn-primary):hover::after { transform:scaleX(1); transform-origin:left; }

.nav-hamburger{display:none;flex-direction:column;gap:6px;cursor:pointer;z-index:1001; padding: 0.5rem;}
.nav-hamburger span{width:28px;height:1px;background:var(--white);transition:all 0.3s}
.mobile-menu{display:flex;position:fixed;top:0;left:0;right:0;bottom:0;background:var(--green-deep);z-index:999;flex-direction:column;align-items:center;justify-content:center;gap:2.5rem; opacity:0; visibility:hidden; transition:all 0.4s;}
.mobile-menu.open{opacity:1; visibility:visible;}
.mobile-menu a{color:var(--cream);text-decoration:none;font-family:var(--font-display);font-size:28px;font-weight:400;letter-spacing:0.05em; font-style:italic;}
.menu-close{position:absolute; top:24px; right:var(--side-pad); font-size:24px; color:var(--gold); cursor:pointer; font-family:var(--font-body);}

/* ══════ HERO SECTION ══════ */
.hero{position:relative;height:100vh;min-height:700px;display:flex;align-items:flex-end;overflow:hidden;background:var(--green-deep);}
.hero-bg{position:absolute;inset:0;animation:kenBurns 20s infinite alternate ease-in-out; transform-origin: center;}
@keyframes kenBurns{0%{transform:scale(1)}100%{transform:scale(1.05)}}
.hero-overlay{position:absolute;inset:0;}
.hero-content{position:relative;z-index:2;padding:0 var(--side-pad) clamp(6vh, 10vh, 120px);max-width:900px; width:100%;}
.hero-badge{display:inline-flex;align-items:center;}
.hero h1{margin-bottom:1.5rem;line-height:1.05;color:var(--white);}
.hero-actions{margin-top:2.5rem;}
.hero-scroll{position:absolute;}
@keyframes glowLine{0%{transform:scaleY(0); transform-origin:top; opacity:0} 50%{transform:scaleY(1); opacity:1} 100%{transform:scaleY(0); transform-origin:bottom; opacity:0}}
.hero-scroll-line{animation: glowPulse 2.5s infinite;}
@keyframes glowPulse { 0% {opacity:0.2; height:0px;} 50% {opacity:1; height:48px;} 100% {opacity:0.2; height:0px; transform:translateY(48px)} }

/* ══════ PAGE HERO (INNER PAGES) ══════ */
.page-hero { position: relative; height: 50vh; min-height: 450px; display: flex; align-items: flex-end; overflow: hidden; background: var(--green-deep); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenBurns 20s infinite alternate ease-in-out; transform-origin: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--green-deep) 0%, rgba(28,43,32,0.4) 100%); }
.page-hero-content { position: relative; z-index: 2; padding: 0 var(--side-pad) clamp(4vh, 6vh, 80px); max-width: 900px; width: 100%; }
.page-hero-content h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); color: var(--gold); margin-bottom: 0.5rem; font-weight: 400; line-height: 1.1; }
.page-hero-content h1 em { font-style: italic; color: var(--white); }
.page-hero-content p { color: var(--cream); font-size: 1.1rem; opacity: 0.9; letter-spacing: 0.05em; font-family: var(--font-display); }

/* ══════ STATS STRIP ══════ */
.stats-bar { border-bottom: 1px solid rgba(0,0,0,0.05); }

/* ══════ FOOTER ══════ */
footer{background:var(--charcoal);color:var(--cream);padding:4rem 0 2rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:3rem;margin-bottom:3rem}
.footer-brand{display:flex;flex-direction:column;gap:1rem}
.footer-logo{display:flex;align-items:center;gap:.5rem;font-family:var(--font-display);font-size:1.4rem;font-weight:500;color:var(--cream);text-decoration:none}
.footer-logo svg, .footer-logo img{width:40px;height:40px;object-fit:contain}
.footer-brand p{font-size:.85rem;opacity:.6;line-height:1.7;max-width:280px}
.footer-col h4{font-family:var(--font-display);font-size:1.1rem;font-weight:500;margin-bottom:1rem}
.footer-col ul{list-style:none}
.footer-col ul li{margin-bottom:.5rem}
.footer-col ul li a{color:rgba(245,240,232,.6);text-decoration:none;font-size:.85rem;transition:color .3s}
.footer-col ul li a:hover{color:var(--gold)}
.footer-contact p{font-size:.85rem;opacity:.6;margin-bottom:.5rem}
.footer-contact a{color:var(--gold);text-decoration:none}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:2rem;border-top:1px solid rgba(255,255,255,.08);font-size:.78rem;opacity:.5}
.footer-dev{font-size:.75rem}
.footer-dev a{color:var(--gold);text-decoration:none}

/* STICKY WA */
.sticky-wa{position:fixed;bottom:2rem;right:2rem;width:56px;height:56px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(37,211,102,.3);z-index:900;transition:transform .3s;text-decoration:none}
.sticky-wa:hover{transform:scale(1.1)}
.sticky-wa svg{width:28px;height:28px;fill:white}

/* ══════ RESPONSIVE ══════ */

/* --- TABLET --- */
@media(max-width:1024px){
  :root {
    --section-pad: 80px;
    --side-pad: 5vw;
  }
  .footer-grid{grid-template-columns:1fr 1fr !important}
}

/* --- MOBILE --- */
@media(max-width:768px){
  :root {
    --section-pad: 60px;
    --inner-pad: 40px;
    --side-pad: 6vw;
  }

  /* Nav */
  .nav-links{display:none}
  .nav-hamburger{display:flex}
  nav { padding: 16px var(--side-pad) !important; }
  nav.scrolled { padding: 12px var(--side-pad) !important; }
  .nav-logo svg, .nav-logo img { width: 50px; height: 50px; }
  .nav-logo-text { font-size: 1.3rem; }

  /* Mobile Menu */
  .mobile-menu a { font-size: 22px; }

  /* Hero */
  .hero { min-height: 85vh; align-items: center; }
  .hero-content { padding: 100px var(--side-pad) 60px !important; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem) !important; margin-bottom: 1rem !important; }
  .hero-sub { font-size: 0.95rem !important; margin-bottom: 2rem !important; }
  .hero-badge { font-size: 10px !important; letter-spacing: 2px !important; margin-bottom: 1.2rem !important; }
  .hero-actions { flex-direction: column !important; gap: 1rem !important; }
  .hero-actions a { text-align: center; justify-content: center; width: 100%; }
  .hero-scroll { display: none !important; }

  /* Page Hero (Inner Pages) */
  .page-hero { min-height: 350px; height: 45vh; }
  .page-hero-content h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  .page-hero-content { padding: 0 var(--side-pad) 30px !important; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 1.5rem !important; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1rem !important; }
  .stat-number, .stats-grid .stat-number { font-size: 32px !important; }

  /* All 2-column grids → 1 column */
  .intro-grid,
  .arch-grid,
  .ml-grid,
  .location-grid,
  .villa-detail-grid,
  .managed-grid,
  .growth-grid,
  .plantation-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }

  /* Intro */
  .intro-image { aspect-ratio: 3/2 !important; }
  .intro-image::after { display: none; }
  .intro-text { text-align: left; }
  .intro-quote { font-size: 1.2rem !important; }

  /* Section titles */
  .section-title { font-size: clamp(24px, 5vw, 30px) !important; margin-bottom: 1rem !important; }
  .section-label { margin-bottom: 0.5rem; }

  /* Amenities 4-col → 2-col */
  .amenity-svg { padding: 2rem 1rem !important; }
  [style*="grid-template-columns:repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Arch features 4-col → 2-col */
  .arch-features { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }

  /* Architecture cards */
  .arch-content { padding: 1.5rem !important; }
  .arch-content h3 { font-size: 1.5rem !important; }

  /* Location list */
  .loc-list li { flex-direction: column !important; align-items: flex-start !important; gap: 0.3rem; padding: 1.2rem 0 !important; }
  .loc-list li strong { font-size: 1.1rem !important; }

  /* Pricing CTA section */
  .cta-band h2, .cta-band > div > h2 { font-size: clamp(24px, 5vw, 36px) !important; }
  .price-box { padding: 2rem !important; }
  [style*="grid-template-columns:1fr 1fr"][style*="text-align:left"] { grid-template-columns: 1fr !important; }

  /* Full-width images on mobile */
  .ml-img { aspect-ratio: 3/2 !important; }
  .ml-img img { border-radius: 8px !important; }

  /* Final CTA section */
  .final-cta { padding: 5rem 0 !important; }
  .final-cta h2 { font-size: clamp(28px, 6vw, 40px) !important; }

  /* Footer — ultra-compact mobile layout */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem 0.5rem !important; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 0.5rem; }
  .footer-brand > p:first-of-type { display: none; }
  .footer-brand .footer-logo { font-size: 1.4rem !important; margin-bottom: 0.5rem !important; }
  .footer-socials { margin-top: 0.5rem !important; gap: 0.8rem !important; }
  .footer-socials a { width: 32px; height: 32px; }
  .footer-col h4 { margin-bottom: 0.8rem !important; font-size: 0.72rem !important; }
  .footer-col ul { gap: 0.6rem !important; }
  .footer-col a { font-size: 0.8rem !important; }
  .footer-contact { grid-column: 1 / -1; margin-top: 0.5rem; }
  .footer-bottom { padding: 1rem 0 !important; font-size: 0.7rem !important; border-top: 1px solid rgba(255,255,255,0.05) !important; }
  footer { padding: 2rem 0 1rem !important; }

  /* Numbers / Stats Section — more compact on mobile */
  .numbers-grid, .stats-grid, .amenities-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem 1rem !important; }
  .num-item, .stat-item, .amenity-item { padding: 1rem 0.5rem !important; }
  .num-val, .stat-number { font-size: 1.8rem !important; margin-bottom: 0.2rem !important; }
  .num-label, .stat-label { font-size: 0.7rem !important; line-height: 1.3 !important; }
  .amenity-item { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 8px; }
  .amenity-icon { font-size: 1.5rem !important; margin-bottom: 0.5rem !important; }
  .amenity-item h4 { font-size: 0.8rem !important; }

  /* Sticky WA */
  .sticky-wa { width: 48px; height: 48px; bottom: 1.2rem; right: 1.2rem; }
  .sticky-wa svg { width: 24px; height: 24px; }

  /* Buttons */
  .btn-primary, .btn-secondary, .btn-outline { padding: 0.9rem 1.8rem !important; font-size: 0.82rem !important; }
  .btn-whatsapp, .btn-solid { padding: 0.9rem 1.5rem !important; }

  /* Team Interactive */
  .ti-layout { grid-template-columns: 1fr !important; }
  .ti-visuals { aspect-ratio: 3/4 !important; margin-top: 2rem; max-width: 100% !important; margin-inline: auto; }
  .ti-content { padding-right: 0 !important; }
  .ti-title { font-size: clamp(1.8rem, 5vw, 2.5rem) !important; }
  .ti-header h3 { font-size: 1.5rem !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-form { padding: 2rem !important; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr !important; }
  .gallery-item:nth-child(1) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-item { aspect-ratio: 16/10 !important; }
  .gallery-tabs { gap: 0.5rem; }
  .gallery-tab { padding: 0.5rem 1rem; font-size: 0.8rem; }

  /* Villa detail */
  .villa-second .villa-detail-grid { grid-template-columns: 1fr !important; }
  .villa-detail-img { aspect-ratio: 16/10 !important; }

  /* Managed section */
  .managed-highlight { position: relative !important; bottom: 0 !important; right: 0 !important; margin-top: 1rem; max-width: 100% !important; }

  /* Own grid */
  .own-grid { grid-template-columns: 1fr !important; }

  /* Plantation visual */
  .plantation-visual { grid-template-columns: 1fr 1fr !important; }
  .plantation-visual img:first-child { grid-row: span 1 !important; }
}

/* --- SMALL MOBILE --- */
@media(max-width:480px){
  :root {
    --section-pad: 48px;
    --side-pad: 20px;
  }

  .hero h1 { font-size: 2rem !important; }
  .hero-sub { font-size: 0.9rem !important; line-height: 1.6 !important; }
  .hero-badge { font-size: 9px !important; }
  .hero-content { padding: 80px 20px 50px !important; }

  .page-hero { min-height: 280px; height: 40vh; }
  .page-hero-content h1 { font-size: 1.8rem !important; }

  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-number, .stats-grid .stat-number { font-size: 28px !important; }
  .stat-label { font-size: 10px !important; }

  .section-title { font-size: clamp(22px, 5vw, 26px) !important; }

  .arch-features { grid-template-columns: 1fr !important; }

  .amenity-svg { padding: 1.5rem 0.8rem !important; }
  [style*="grid-template-columns:repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }

  .loc-list li strong { font-size: 1rem !important; }

  .ti-title { font-size: 1.6rem !important; }
  .ti-header h3 { font-size: 1.3rem !important; }

  .gallery-item { aspect-ratio: 3/2 !important; }

  footer { padding: 2.5rem 0 1rem !important; }
  .footer-brand p { font-size: 0.85rem !important; }

  /* Brand section on mobile */
  .brand-section h2 { font-size: clamp(28px, 7vw, 40px) !important; }
  .brand-section p { font-size: 1rem !important; }
}

/* ══════ TEAM INTERACTIVE ══════ */
.team-interactive {
  background: #113010;
  color: var(--white);
  padding: 5rem 0;
  overflow: hidden;
}
.ti-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5vw;
  align-items: center;
}
.ti-content {
  padding-right: 2vw;
}
.ti-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.ti-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

/* Accordion */
.ti-accordion {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ti-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.8rem 0;
  cursor: pointer;
  transition: all 0.4s ease;
}
.ti-item:hover .ti-header h3 {
  color: rgba(255,255,255,0.8);
}
.ti-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ti-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  transition: color 0.4s ease;
  margin: 0;
}
.ti-name {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ti-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ti-body-inner {
  overflow: hidden;
}
.ti-body-inner p {
  padding-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  margin-bottom: 1rem;
}
.ti-body-inner p:last-child {
  margin-bottom: 0;
}

/* Active State */
.ti-item.active .ti-header h3 {
  color: var(--white);
}
.ti-item.active .ti-name {
  opacity: 1;
  transform: translateY(0);
}
.ti-item.active .ti-body {
  grid-template-rows: 1fr;
}

/* Visual Gallery */
.ti-visuals {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  background: #ffffff;
  border: 12px solid #ffffff;
}
.ti-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px; /* Inner rounding if desired, hidden overflow takes care of outer rounding */
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
.ti-img-wrap.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.ti-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media(max-width: 992px) {
  .ti-layout { grid-template-columns: 1fr; }
  .ti-visuals { aspect-ratio: 1; margin-top: 2rem; max-width: 500px; margin-inline: auto; }
}

/* Tesseract Footer Link */
.tesseract-link { color: var(--gold); text-decoration: none; font-weight: 600; display: inline-block; transition: all 0.3s ease; position: relative; }
.tesseract-link:hover { color: var(--white); transform: translateY(-3px); text-shadow: 0 0 10px rgba(212,175,55,0.8); }

/* Active Navigation Link State */
.nav-links a.active { color: var(--gold) !important; }
.nav-links a.active::after { transform: scaleX(1) !important; background: var(--gold) !important; }
.mobile-menu a.active { color: var(--gold) !important; }

/* Additional hover effect for all nav links */
.nav-links a:not(.btn-primary):hover { color: var(--gold) !important; }

/* ══════ SOCIAL LINKS ══════ */
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-socials a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-socials a svg { width: 18px; height: 18px; fill: currentColor; }

/* ══════ CATCH-ALL MOBILE INLINE GRID OVERRIDES ══════ */
@media(max-width:768px){
  /* Force all inline-styled grids inside .container to stack */
  .container > [style*="grid-template-columns:1fr 1fr"],
  .container > [style*="grid-template-columns: 1fr 1fr"],
  .container > [style*="grid-template-columns:1.5fr"],
  .container > [style*="grid-template-columns:1fr 1.1fr"],
  .container > [style*="grid-template-columns:1fr 1.2fr"],
  .container > div > [style*="grid-template-columns:1fr 1fr"],
  .container > div > [style*="grid-template-columns:1.5fr"],
  [style*="grid-template-columns:1.5fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Force 4-col stat grids to 2-col */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Prevent horizontal overflow globally */
  html, body { overflow-x: hidden !important; }

  /* All sections reduce padding */
  section[style*="padding:var(--section-pad)"],
  section[style*="padding: var(--section-pad)"] {
    padding: var(--section-pad) 0 !important;
  }
}

@media(max-width:480px){
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
