/* Nature Estates by agamfarms — ULTRA LUXURY EDITION */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --ivory: oklch(0.968 0.008 85);
  --sand: oklch(0.928 0.014 80);
  --earth: oklch(0.735 0.061 70);
  --clay: oklch(0.598 0.088 55);
  --stone: oklch(0.588 0.012 75);
  --forest: oklch(0.388 0.041 145);
  --charcoal: oklch(0.245 0.006 60);
  --brown: oklch(0.315 0.029 55);
  --brass: #D4AF37; /* Premium Luxury Gold */
  --gold-glow: #D4AF37; /* Bright gold */
  --border: oklch(0.88 0.012 80);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Completely hide browser scrollbars while preserving scroll functionality */
html, body {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
  overflow-x: hidden !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ultra Luxury: custom cursor hidden on default for custom cursor override */
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

img { display: block; max-width: 100%; height: auto; }
a, button { cursor: none; color: inherit; text-decoration: none; transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease; }
@media (hover: none) { a, button { cursor: auto; } }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
em { font-style: italic; }
h1 em, h2 em, h3 em, h4 em, .brand em, footer .name em, .hero-text em, .landowners h2 em, .priority h2 em, #landowners-title em, #priority-title em, #hero-title em, #philosophy-heading em { font-style: italic; color: var(--brass) !important; -webkit-text-fill-color: var(--brass) !important; }
ul, ol { list-style: none; }



/* ============================================
   GRAIN / FILM TEXTURE OVERLAY
   ============================================ */
#grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainShift 0.12s steps(1) infinite;
}
@keyframes grainShift {
  0%  { transform: translate(0, 0); }
  20% { transform: translate(-3%, -5%); }
  40% { transform: translate(-7%, 2%); }
  60% { transform: translate(4%, -4%); }
  80% { transform: translate(6%, 7%); }
  100%{ transform: translate(-2%, 3%); }
}

/* ============================================
   CUSTOM LUXURY CURSOR
   ============================================ */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none !important;
  z-index: 999999 !important;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.35s cubic-bezier(0.16,1,0.3,1), height 0.35s cubic-bezier(0.16,1,0.3,1), margin 0.35s cubic-bezier(0.16,1,0.3,1), background 0.3s ease, border-color 0.3s ease;
}
#cursor-dot {
  width: 8px; height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background: var(--brass);
  will-change: transform;
  box-shadow: 0 0 10px rgba(210, 168, 110, 0.8);
}
#cursor-ring {
  width: 38px; height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border: 1px solid rgba(210, 168, 110, 0.7);
  will-change: transform;
}
body.cursor-active #cursor-dot,
body.cursor-active #cursor-ring {
  opacity: 1;
}
body.cursor-hover #cursor-ring {
  width: 58px; height: 58px;
  margin-left: -29px;
  margin-top: -29px;
  background: rgba(210, 168, 110, 0.12);
  border-color: var(--brass);
}
body.cursor-text #cursor-ring {
  width: 70px; height: 70px;
  margin-left: -35px;
  margin-top: -35px;
  background: rgba(210, 168, 110, 0.08);
  border-color: rgba(210, 168, 110, 0.5);
}
@media (hover: none) { #cursor-dot, #cursor-ring { display: none !important; } }

.eyebrow {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone);
}
.brass-rule {
  display: inline-block; width: 3rem; height: 1px;
  background: var(--brass); vertical-align: middle; margin-right: 0.75rem;
}

/* ============================================
   ULTRA LUXURY REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger reveal siblings automatically */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }

/* Eyebrow always animates first, heading second */
p.eyebrow.reveal     { transition-delay: 0ms; }
h2.reveal            { transition-delay: 120ms; }
p.lead.reveal        { transition-delay: 240ms; }


/* Ken Burns */
@keyframes kenBurns { 0% { transform: scale(1.05);} 100% { transform: scale(1.15);} }
.ken-burns { animation: kenBurns 18s ease-in-out infinite alternate; }
@keyframes slowFade { from { opacity: 0;} to { opacity: 1; } }
.slow-fade { animation: slowFade 2.2s ease-out both; }

/* Horizontal line draw — brass rules */
@keyframes drawLine {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* ============================================
   GOLD SHIMMER EFFECT on headings (Removed)
   ============================================ */
/* Fallback for footer/nav brand - no clip */
footer .name em, .brand em {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--brass);
  animation: none;
}

/* ============================================
   NAV — Ultra Luxury magnetic hover
   ============================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}
.nav.hidden { transform: translateY(-100%) !important; opacity: 0 !important; pointer-events: none !important; }
.nav-inner {
  max-width: 100%; height: 60px; min-height: 60px; margin: 0 auto; padding: 0 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: all 0.4s ease;
}
.nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.nav.scrolled {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  background: rgba(12, 10, 7, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(246, 242, 232, 0.12);
}
.nav.scrolled .nav-inner {
  height: 60px;
  padding: 0 3.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo {
  height: 55px !important;
  max-height: 55px !important;
  width: auto;
  object-fit: contain;
  filter: contrast(1.1) brightness(1.15);
  transition: transform 0.3s ease;
}
.brand-name-text {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: opacity 0.4s ease;
  visibility: visible !important;
  opacity: 1 !important;
}
.nav-links, .nav-logo {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Stage 1 & Stage 2 cinematic hero — hide entire nav bar and right side text over hero image */
.nav.stage-brand {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-20px) !important;
}
.nav.stage-brand .brand-name-text,
.nav.stage-brand .nav-links,
.nav.stage-brand .enquire {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.brand:hover .nav-logo {
  transform: scale(1.08);
}
.opening-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.opening-logo {
  height: clamp(420px, 68vh, 750px);
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.5) brightness(1.4) drop-shadow(0 0 50px rgba(210, 168, 110, 0.65));
  animation: logoPulse 3s ease-in-out infinite alternate;
}
@keyframes logoPulse {
  0% { transform: scale(1); filter: contrast(1.5) brightness(1.4) drop-shadow(0 0 35px rgba(210, 168, 110, 0.5)); }
  100% { transform: scale(1.04); filter: contrast(1.6) brightness(1.5) drop-shadow(0 0 60px rgba(210, 168, 110, 0.85)); }
}
@keyframes preloaderFill {
  0% { left: -100%; }
  100% { left: 0%; }
}
.brand:hover {
  color: var(--brass);
  text-shadow: 0 0 20px rgba(210, 168, 110, 0.4);
}
.brand em { color: var(--brass); animation: goldShimmer 6s linear infinite; }
.nav.scrolled .brand, .nav.scrolled .nav-links a, .nav.scrolled .enquire { color: var(--ivory); }
.nav-links { display: none; gap: 2.5rem; transition: opacity 0.4s ease; }
.nav-links a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: rgba(246,242,232,.8);
  transition: color .3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a::after {
  content:"";
  position:absolute;
  left:0; bottom:-4px;
  height:1px;
  width:0;
  background: var(--brass);
  transition: width .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { transform: translateY(-2px); }
.nav-links a.nav-priority-item,
.nav-links a.nav-priority {
  color: var(--brass) !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em;
}
.nav-links a.nav-priority-item::before {
  content: '✦ ';
  font-size: 0.85em;
  color: var(--brass);
  margin-right: 2px;
}
.enquire {
  display: none !important;
}
@media (min-width: 768px) {
  .nav-inner { padding: 0.15rem 3.5rem; }
  .nav.scrolled .nav-inner { padding: 0.15rem 3.5rem; }
  .nav-links { display: inline-flex; align-items: center; }
}

/* Mobile Optimization & Hamburger Menu Drawer */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(210, 168, 110, 0.4);
  border-radius: 8px;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 8, 5, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--brass);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.mobile-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.mobile-nav-logo {
  height: 120px;
  width: auto;
  mix-blend-mode: screen;
  filter: contrast(1.6) brightness(1.5) drop-shadow(0 0 24px rgba(210, 168, 110, 0.85));
}
.mobile-brand-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--brass);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: center;
}
.mobile-nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color 0.3s ease;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--brass);
}

@media (max-width: 767px) {
  .nav-inner { padding: 0 1.25rem; height: 55px; min-height: 55px; }
  .nav-logo { height: 34px !important; max-height: 34px !important; margin: 0; }
  .brand-name-text { font-size: 0.85rem; letter-spacing: 0.15em; }
  .hero-text-content .hero-text { font-size: clamp(2.8rem, 10vw, 4.2rem); }
  .hero-inner { padding: 0 1.5rem; }
  section { padding: 5rem 1.5rem; }
}

/* ============================================
   ULTRA LUXURY BUTTONS
   ============================================ */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1rem 2rem; border-radius: 10px;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .28em;
  transition: all .5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
/* Shimmer sweep on hover */
.btn-primary::before, .btn-ghost::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(246, 242, 232, 0.12), transparent);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-primary:hover::before, .btn-ghost:hover::before { left: 150%; }
.btn-primary { background: var(--forest); color: var(--ivory); box-shadow: 0 4px 20px rgba(38, 32, 26, 0.2); }
.btn-primary:hover { background: var(--charcoal); transform: translateY(-3px); box-shadow: 0 12px 35px rgba(38, 32, 26, 0.3); }
.btn-primary .line { display: inline-block; height: 1px; width: 1.5rem; background: var(--brass); transition: width .5s; }
.btn-primary:hover .line { width: 2.5rem; }
.btn-ghost { border: 1px solid rgba(246,242,232,.6); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-3px); box-shadow: 0 0 25px rgba(210, 168, 110, 0.2); }
.landowners .btn-primary { color: var(--brass); }

/* Sections */
section { padding: 8rem 1.5rem; }
@media (min-width: 768px) { section { padding: 12rem 3rem; } }
.container { max-width: 1400px; margin: 0 auto; }
.container-wide { max-width: 1600px; margin: 0 auto; }

/* ============================================
   HERO — Classic Luxury Layout
   ============================================ */
.hero { position: relative; height: 100vh; min-height: 650px; padding: 0; overflow: hidden; background: #0a0805; }
.hero-bg-container { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; background: #0a0805; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }

/* Continuous Slow Zoom */
.zoom-bg { animation: slowZoom 30s linear forwards; }
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(10, 8, 5, 0.7) 0%, rgba(10, 8, 5, 0.2) 70%);
  z-index: 1; pointer-events: none;
}

.hero-content {
  position: absolute; inset: 0; width: 100%; z-index: 5;
  display: flex; flex-direction: column; justify-content: center;
}

.cinematic-stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinematic-stage.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.cinematic-stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.cinematic-stage.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Stage 1: Centered AGAM HABITATS Title over Hero Image */
#cinematic-stage-brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#cinematic-stage-brand .stage-brand-text {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  color: var(--brass);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 4px 35px rgba(210, 168, 110, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8);
}
.scroll-prompt {
  position: absolute; bottom: 3.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  color: rgba(246, 242, 232, 0.7); font-size: 10px; letter-spacing: 0.3em;
}

.hero-inner {
  max-width: 1600px; margin: 0 auto; width: 100%; padding: 0 3rem;
  display: flex; align-items: center; justify-content: flex-start;
}

.hero-text-content { max-width: 750px; color: #ffffff; }
.hero-text-content .eyebrow { margin-bottom: 2rem; color: rgba(246,242,232,0.85); font-size: 11px; letter-spacing: 0.25em; }
.hero-text-content .hero-text { font-family: var(--font-serif); font-size: 6rem; font-weight: 300; line-height: 1.05; margin-bottom: 2rem; text-shadow: 0 4px 30px rgba(0,0,0,0.5); color: #ffffff; }
.hero-text-content .hero-text em { font-style: italic; color: var(--brass); }
.hero-text-content .lead { font-size: 1.15rem; line-height: 1.7; opacity: 0.9; margin-bottom: 3rem; max-width: 600px; }
.hero-text-content .cta { display: flex; gap: 1.5rem; }

/* Hide Nav Initially */
header.nav.cinematic-hide {
  opacity: 0 !important; pointer-events: none; transform: translateY(-20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-foot {
  position: absolute; bottom: 3rem; left: 3rem; right: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(246,242,232,0.7); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500;
  animation-delay: 0.6s;
}

/* Luxury scroll indicator */
.scroll-indicator { display: flex; align-items: center; gap: 1.25rem; }
.scroll-line-wrap {
  width: 1px; height: 2rem;
  background: rgba(246, 242, 232, 0.2);
  overflow: hidden; position: relative;
}
.scroll-line {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--brass);
  animation: scrollDownLine 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes scrollDownLine {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* LUXURY: cinematic letterbox bars on hero */
.hero-letterbox-top, .hero-letterbox-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.25;
}
.hero-letterbox-top { top: 0; }
.hero-letterbox-bottom { bottom: 0; }

/* ============================================
   HERO SCROLL PHASES
   ============================================ */

/* PHASE 1: Centered logo */
.hero-scroll-logo {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: auto;
}
.hero-scroll-logo.hidden {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}
.hero-scroll-logo img {
  height: clamp(500px, 80vh, 90vh);
  max-width: 95vw;
  object-fit: contain;
  filter: brightness(1.6) drop-shadow(0 0 50px rgba(210,168,110,0.55)) contrast(1.2);
}

/* Scroll hint below logo */
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(246,242,232,0.65);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  animation: hintPulse 2.2s ease-in-out infinite;
}
.hero-scroll-arrow {
  width: 1px;
  height: 2.5rem;
  background: rgba(246,242,232,0.2);
  overflow: hidden;
  position: relative;
}
.hero-scroll-arrow-line {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--brass);
  animation: scrollDownLine 2s cubic-bezier(0.16,1,0.3,1) infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* PHASE 2: Hero text panel */
#hero-text-panel {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
#hero-text-panel.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy { background: #FAF7F2; }
#philosophy-heading { color: #000000; }
#philosophy-heading em { color: #D4AF37; }
.philosophy h2 { margin-top: 2.5rem; font-size: 9vw; max-width: 64rem; letter-spacing: -.01em; }
@media (min-width: 768px) { .philosophy h2 { font-size: 5.5vw; } }
.philosophy-grid { margin-top: 4rem; display: grid; gap: 4rem; }
@media (min-width: 768px) { .philosophy-grid { margin-top: 6rem; grid-template-columns: repeat(12, 1fr); } }
.philosophy-quote {
  font-family: var(--font-serif);
  font-size: 1.75rem; line-height: 1.5; color: var(--brown);
  position: relative;
  padding-left: 2rem;
}
.philosophy-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  border-radius: 2px;
}
@media (min-width: 768px) { .philosophy-quote { grid-column: 2 / span 5; font-size: 2rem; } .philosophy-body { grid-column: 7 / span 5; } }
.philosophy-body p { margin-top: 1.5rem; color: rgba(38,32,26,.75); line-height: 1.9; }
.philosophy-body p:first-child { margin-top: 0; }

/* ============================================
   RARITY — Ultra luxury card hover
   ============================================ */
.rarity { background: var(--sand); }
.rarity-head { display: grid; gap: 3rem; }
@media (min-width: 768px) { .rarity-head { grid-template-columns: repeat(12, 1fr); align-items: end; } .rarity-head > * { grid-column: span 5; } }
.rarity h2 { margin-top: 2.5rem; font-size: 3rem; }
@media (min-width: 768px) { .rarity h2 { font-size: 3.75rem; } }
.rarity-grid { margin-top: 5rem; display: grid; gap: 4rem 2.5rem; }
@media (min-width: 768px) { .rarity-grid { grid-template-columns: 1fr 1fr; gap: 6rem 2.5rem; } }
.rarity-card {
  border-top: 1px solid rgba(38,32,26,.15);
  padding-top: 2rem;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1), border-color 0.4s ease;
  position: relative;
}
.rarity-card::after {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 0;
  background: var(--brass);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.rarity-card:hover::after { width: 100%; }
.rarity-card:hover { transform: translateY(-6px); border-color: transparent; }
.rarity-card .row { display: flex; align-items: baseline; justify-content: space-between; }
.rarity-card .num { font-family: var(--font-serif); font-size: 1.125rem; font-style: italic; color: var(--clay); }
.rarity-card .tag { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; color: var(--stone); }
.rarity-card h3 { margin-top: 2rem; font-size: 2rem; }
@media (min-width: 768px) { .rarity-card h3 { font-size: 2.25rem; } }
.rarity-card p { margin-top: 1.5rem; max-width: 28rem; color: rgba(38,32,26,.7); font-size: 15px; line-height: 1.85; }

/* ============================================
   ESTATES — Ultra luxury image hover
   ============================================ */
.estates { background-color: var(--ivory); }
.estates .lead { margin-top: 2rem; max-width: 32rem; color: rgba(38,32,26,.7); line-height: 1.9; }
.estates h2 { margin-top: 2.5rem; max-width: 56rem; font-size: 3.75rem; }
@media (min-width: 768px) { .estates h2 { font-size: 6vw; } }

.estate-list { margin-top: 6rem; display: flex; flex-direction: column; gap: 8rem; }
@media (min-width: 768px) { .estate-list { gap: 12rem; } }
.estate-list[data-layout="grid"] { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.estate { display: grid; gap: 2.5rem; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.estate:hover { transform: translateY(-10px); }
@media (min-width: 768px) { .estate { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 4rem; } .estate .image { grid-column: span 7; } .estate .body { grid-column: span 5; } .estate.reverse .image { order: 2; } }
.estate-list[data-layout="grid"] .estate { display: block; }
@media (min-width: 768px) { .estate-list[data-layout="grid"] { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.estate .image {
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 3 / 2;
  position: relative;
  border-radius: 12px;
}
/* Gold corner accent on estate image */
.estate .image::before, .estate .image::after {
  content: '';
  position: absolute;
  z-index: 2;
  background: var(--brass);
  opacity: 0;
  transition: opacity 0.5s ease, width 0.5s cubic-bezier(0.16,1,0.3,1), height 0.5s cubic-bezier(0.16,1,0.3,1);
}
.estate .image::before { top: 16px; left: 16px; width: 0; height: 1px; }
.estate .image::after  { top: 16px; left: 16px; width: 1px; height: 0; }
.estate .image:hover::before { opacity: 1; width: 40px; }
.estate .image:hover::after  { opacity: 1; height: 40px; }
.estate .image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.estate .image:hover img { transform: scale(1.08); }
.estate h3 { margin-top: 1.5rem; font-size: 3rem; }
@media (min-width: 768px) { .estate h3 { font-size: 3.75rem; } }
.estate .blurb { margin-top: 2rem; max-width: 28rem; color: rgba(38,32,26,.75); font-size: 15px; line-height: 1.9; }
.estate dl { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid rgba(38,32,26,.15); padding-top: 1.5rem; }
.estate dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(105,100,92,.7); }
.estate dd { margin-top: .5rem; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--charcoal); }
.estate .explore { margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 1rem; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .28em; color: var(--forest); transition: color 0.3s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.estate .explore:hover { color: var(--brass); transform: translateX(6px); }
.estate .explore .line { display: inline-block; height: 1px; width: 2rem; background: var(--brass); transition: width .5s; }
.estate .explore:hover .line { width: 3.5rem; }

/* ============================================
   PRINCIPLES — Luxury list
   ============================================ */
.principles { background: var(--forest); color: var(--brass); }
.principles .eyebrow { color: var(--brass); }
.principles h2 { margin-top: 2.5rem; max-width: 56rem; font-size: 3rem; }
@media (min-width: 768px) { .principles h2 { font-size: 5vw; } }
.principles ol { margin-top: 6rem; border-top: 1px solid rgba(246,242,232,.15); border-bottom: 1px solid rgba(246,242,232,.15); }
.principles li {
  display: grid; gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(246,242,232,.15);
  transition: padding 0.5s cubic-bezier(0.16,1,0.3,1), background 0.4s ease;
  position: relative;
}
.principles li::before {
  content: '';
  position: absolute;
  left: -3rem; top: 0; bottom: 0; width: 2px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.principles li:hover::before { transform: scaleY(1); }
.principles li:hover { padding-left: 1rem; }
.principles li:last-child { border-bottom: 0; }
@media (min-width: 768px) { .principles li { grid-template-columns: repeat(12, 1fr); align-items: baseline; padding: 3.5rem 0; } .principles li .n { grid-column: span 1; } .principles li h3 { grid-column: span 5; } .principles li p { grid-column: span 6; } }
.principles .n { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: var(--ivory); }
.principles li h3 { font-size: 1.875rem; }
@media (min-width: 768px) { .principles li h3 { font-size: 2.25rem; } }
.principles li p { max-width: 28rem; color: var(--brass); font-size: 15px; line-height: 1.9; }

/* ============================================
   LIFE — Luxury split layout
   ============================================ */
.life { padding: 0; background: var(--ivory); }
.life-grid { display: grid; }
@media (min-width: 768px) { .life-grid { grid-template-columns: 1fr 1fr; } }
.life-image {
  min-height: 70svh;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}
.life-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, rgba(246, 242, 232, 0.06) 100%);
  pointer-events: none;
}
.life-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1); }
.life-image:hover img { transform: scale(1.08); }
.life-body { display: flex; align-items: center; padding: 6rem 1.5rem; }
@media (min-width: 768px) { .life-body { padding: 8rem 4rem; } }
.life-body .inner { max-width: 32rem; }
.life-body h2 { margin-top: 2rem; font-size: 3rem; }
@media (min-width: 768px) { .life-body h2 { font-size: 3.75rem; } }
.life-body p { margin-top: 2rem; color: rgba(38,32,26,.75); font-size: 15px; line-height: 1.9; }
.life-list {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem 2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--brown);
}
.life-list li {
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.life-list li:hover { color: var(--clay); transform: translateX(4px); }

/* ============================================
   DISCOVER-STYLE HOVER CARD ANIMATION FOR PHILOSOPHY & LIFE AT AGAM
   ============================================ */
.philosophy-body > div,
.luxury-hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-body > div:hover,
.luxury-hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.16) !important;
}

/* Gold Corner Accents on Hover */
.philosophy-body > div::before,
.philosophy-body > div::after,
.luxury-hover-card::before,
.luxury-hover-card::after {
  content: '';
  position: absolute;
  z-index: 5;
  background: var(--brass);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, width 0.5s cubic-bezier(0.16, 1, 0.3, 1), height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-body > div::before, .luxury-hover-card::before { top: 16px; left: 16px; width: 0; height: 2px; }
.philosophy-body > div::after,  .luxury-hover-card::after  { top: 16px; left: 16px; width: 2px; height: 0; }

.philosophy-body > div:hover::before, .luxury-hover-card:hover::before { opacity: 1; width: 45px; }
.philosophy-body > div:hover::after,  .luxury-hover-card:hover::after  { opacity: 1; height: 45px; }

/* Image Slow Zoom Animation on Hover */
.philosophy-body img,
.luxury-hover-card img {
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.philosophy-body > div:hover img,
.luxury-hover-card:hover img {
  transform: scale(1.09) !important;
}

.philosophy { background: #FAF7F2; }
#philosophy-heading { color: #000000; }
#philosophy-heading em { color: var(--brass) !important; }
.philosophy h2 { margin-top: 2.5rem; font-size: 9vw; max-width: 64rem; letter-spacing: -.01em; }
@media (min-width: 768px) { .philosophy h2 { font-size: 5.5vw; } }
.philosophy-grid { margin-top: 4rem; display: grid; gap: 4rem; }

/* ============================================
   MATERIALS — Premium grid
   ============================================ */
.materials { background: var(--sand); }
.materials h2 { margin-top: 2.5rem; max-width: 56rem; font-size: 3rem; }
@media (min-width: 768px) { .materials h2 { font-size: 5vw; } }
.materials h2 em { color: var(--brass) !important; }
.materials .lead { margin-top: 2rem; max-width: 32rem; color: rgba(38,32,26,.7); line-height: 1.9; }
.materials-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(38, 32, 26, 0.08);
  border-left: 1px solid rgba(38, 32, 26, 0.08);
}
@media (min-width: 768px) { .materials-grid { grid-template-columns: repeat(3, 1fr); } }
.material {
  padding: 3.5rem 2.5rem;
  border-bottom: 1px solid rgba(38, 32, 26, 0.08);
  border-right: 1px solid rgba(38, 32, 26, 0.08);
  background: transparent;
  transition: background-color 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
/* Subtle gold glow on hover */
.material::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.material:hover::after { transform: scaleX(1); }
.material:hover { background-color: rgba(38, 32, 26, 0.03); transform: translateY(-4px); }
.material .img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ivory);
  margin-bottom: 2.5rem;
  border-radius: 12px;
}
.material .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.material:hover .img img { transform: scale(1.08); }
.material h3 { font-size: 1.5rem; color: var(--charcoal); font-family: var(--font-serif); font-weight: 400; }
.material p { margin-top: 1.25rem; color: rgba(38, 32, 26, 0.65); font-size: 14px; line-height: 1.65; }

/* ============================================
   LANDOWNERS — Dark luxury section
   ============================================ */
/* LANDOWNERS / PARTNER WITH US */
.landowners {
  position: relative;
  background: var(--brown);
  color: var(--ivory);
  padding: 7rem 0;
  overflow: hidden;
}
/* Background image */
.landowners-bg {
  position: absolute; inset: 0; z-index: 0;
}
.landowners-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.18;
  filter: grayscale(30%);
}
.landowners-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(38,28,18,0.92) 40%, rgba(38,28,18,0.75) 100%);
}
.landowners .container { position: relative; z-index: 1; }
.landowners .eyebrow { color: var(--brass); }

/* 2-column grid: left (heading) + right (body+btn) */
.landowners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 768px) {
  .landowners-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.landowners-left {}
.landowners-right {}

.landowners h2 {
  margin-top: 1.5rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  color: var(--ivory);
  line-height: 1.1;
  font-weight: 300;
}
.landowners h2 em { font-style: italic; color: var(--brass); }
.landowners p { color: rgba(246,242,232,0.82); font-size: 15px; line-height: 1.95; }
.landowners .btn-wrap { margin-top: 2.5rem; }
.landowners .btn-primary { color: var(--ivory); }

/* ============================================
   JOURNAL — Luxury article cards
   ============================================ */
.journal h2 { margin-top: 2.5rem; max-width: 56rem; font-size: 3rem; }
@media (min-width: 768px) { .journal h2 { font-size: 3.75rem; } }
.journal-grid { margin-top: 5rem; display: grid; gap: 3.5rem 2.5rem; }
@media (min-width: 768px) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }
.article {
  display: block;
  border-top: 1px solid rgba(38,32,26,.15);
  padding-top: 2rem;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1), border-color 0.4s ease;
  position: relative;
}
.article::after {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--brass), var(--clay));
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.article:hover::after { width: 100%; }
.article:hover { transform: translateY(-6px); border-color: transparent; }
.article h3 { margin-top: 1.5rem; font-size: 1.875rem; line-height: 1.2; color: var(--stone); transition: color .4s ease; }
.article:hover h3 { color: var(--clay); }
.article .meta { margin-top: 2.5rem; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.article .meta span { color: var(--brass); margin: 0 .5rem; }

/* ============================================
   PRIORITY — Cinematic full-height CTA
   ============================================ */
.priority { position: relative; min-height: 100svh; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.priority-bg-container { position: absolute; inset: 0; width: 100%; height: 120%; z-index: 1; overflow: hidden; }
.priority-bg-container .parallax-img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.priority .ov {
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(38,32,26,.4) 0%,
    rgba(38,32,26,.25) 40%,
    rgba(38,32,26,.85) 100%
  );
  z-index: 2;
}
.priority .ov::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 8, 5, 0.4) 100%);
}
.priority-inner {
  position: relative; z-index: 3;
  max-width: 1400px; margin: 0 auto;
  width: 100%; padding: 8rem 1.5rem 6rem;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: var(--ivory);
  flex: 1;
}
@media (min-width: 768px) { .priority-inner { padding: 10rem 3rem 8rem; } }
.priority .eyebrow { color: rgba(246,242,232,.7); }
.priority h2 { margin-top: 2.5rem; font-size: 3.75rem; color: var(--ivory); max-width: 56rem; line-height: 1; text-shadow: 0 4px 40px rgba(0,0,0,0.3); }
@media (min-width: 768px) { .priority h2 { font-size: 7vw; } }
.priority p { margin-top: 2.5rem; max-width: 32rem; color: rgba(246,242,232,.85); line-height: 1.9; }
.priority .cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================
   FOOTER — Refined luxury
   ============================================ */
footer {
  border-top: 1px solid rgba(38,32,26,.1);
  background: var(--ivory);
  padding: 4rem 1.5rem;
  position: relative;
}
.philosophy { background: var(--ivory); padding: 8rem 0; position: relative; color: var(--charcoal); }
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 3rem; right: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.3;
}
@media (min-width: 768px) { footer { padding: 4rem 3rem; } }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } .footer-brand { grid-column: span 5; } .footer-col { grid-column: span 2; } }
.footer-brand p.name { font-family: var(--font-serif); font-size: 1.5rem; }
.footer-brand p.name em { color: var(--brass); }
.footer-brand p.desc { margin-top: 1rem; max-width: 24rem; font-size: 13px; line-height: 1.9; color: rgba(38,32,26,.6); }
.footer-col ul { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; font-size: 14px; color: rgba(38,32,26,.8); }
.footer-col ul a {
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  display: inline-block;
}
.footer-col ul a:hover { color: var(--clay); transform: translateX(4px); }
.footer-bottom { max-width: 1400px; margin: 4rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(38,32,26,.1); display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.footer-bottom .made { display: none; }
@media (min-width: 768px) { .footer-bottom .made { display: inline; } }

/* ============================================
   SCROLL PROGRESS BAR — Gold
   ============================================ */
.scroll-progress-container {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 100; pointer-events: none;
}
.scroll-progress-bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--brass), var(--gold-glow), var(--brass));
  background-size: 200% auto;
  animation: goldShimmer 3s linear infinite;
  box-shadow: 0 0 8px rgba(210, 168, 110, 0.4);
  transition: width 0.05s ease-out;
}

/* ============================================
   SPLIT TEXT REVEAL
   ============================================ */
.reveal-split { display: block; }
.split-word-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-word {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  opacity: 0;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left bottom;
}
.reveal-split.in .split-word {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

/* ============================================
   ULTRA LUXURY IMAGE REVEAL ANIMATIONS
   ============================================ */
.reveal-image {
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  overflow: hidden;
}
.reveal-image.in,
.reveal.in .reveal-image,
.reveal.in.reveal-image {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}
.reveal-image .parallax-img {
  transform: scale(1.1) translateY(20px);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.reveal-image.in .parallax-img,
.reveal.in .reveal-image .parallax-img,
.reveal.in.reveal-image .parallax-img {
  transform: scale(1) translateY(0);
}

/* Force hero lead keywords to be white instead of gold */
#hero-lead .gold-word {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: #FFFFFF !important;
}

/* ============================================
   GOLD KEYWORD HIGHLIGHT — land · light · long
   ============================================ */
.gold-word {
  color: var(--brass) !important;
  -webkit-text-fill-color: var(--brass) !important;
  background: none !important;
  font-style: italic;
  display: inline;
}

/* Rarity h2 em */
.rarity h2 em { color: var(--brass) !important; }

/* ============================================
   SCROLL TO TOP — Luxury
   ============================================ */
.scroll-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: rgba(246, 242, 232, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(210, 168, 110, 0.25);
  color: var(--charcoal);
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 99;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   PERFORMANT LUXURY WIPE TRANSITION
   ============================================ */
.luxury-wipe {
  position: fixed;
  inset: 0;
  background-color: var(--ivory);
  z-index: 99999;
  pointer-events: none;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
body.page-exiting .luxury-wipe {
  transform-origin: bottom;
  transform: scaleY(1);
}
body.page-entering .luxury-wipe {
  transform-origin: top;
  transform: scaleY(1);
  transition: none;
}
body.page-entering-active .luxury-wipe {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--brass);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(38, 32, 26, 0.2), 0 0 15px rgba(210, 168, 110, 0.15);
}
.scroll-to-top svg { width: 1.25rem; height: 1.25rem; transition: transform 0.4s ease; }
.scroll-to-top:hover svg { transform: translateY(-2px); }
@media (hover: none) { .scroll-to-top { cursor: pointer; } }

/* ============================================
   BLACK KEYWORD HIGHLIGHT / THEME OVERRIDES
   ============================================ */
.black-word {
  color: #000000 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  animation: none !important;
  font-style: italic;
  display: inline;
}

body.theme-highlight-black h1 em,
body.theme-highlight-black h2 em,
body.theme-highlight-black h3 em,
body.theme-highlight-black h4 em,
body.theme-highlight-black .gold-word,
body.theme-highlight-black .black-word {
  background: none !important;
  -webkit-text-fill-color: #000000 !important;
  color: #000000 !important;
  animation: none !important;
}

/* Ensure readable contrast inside dark backgrounds */
body.theme-highlight-black .principles h2 em,
body.theme-highlight-black .principles .gold-word,
body.theme-highlight-black .principles .black-word {
  -webkit-text-fill-color: var(--ivory) !important;
  color: var(--ivory) !important;
}
body.theme-highlight-black .landowners h2 em,
body.theme-highlight-black .landowners .gold-word,
body.theme-highlight-black .landowners .black-word {
  -webkit-text-fill-color: var(--ivory) !important;
  color: var(--ivory) !important;
}
body.theme-highlight-black .brand em {
  -webkit-text-fill-color: var(--brass) !important;
  color: var(--brass) !important;
}
body.theme-highlight-black .hero h1 em,
body.theme-highlight-black .hero .gold-word,
body.theme-highlight-black .hero .black-word {
  -webkit-text-fill-color: var(--ivory) !important;
  color: var(--ivory) !important;
}

.admin-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
  margin-left: 10px;
}
.admin-link:hover {
  color: var(--brass);
}

.stage-brand-text { font-weight: bold !important; }
/* Mobile Bottom Bar */
.mobile-bottom-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex; justify-content: space-around; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0; height: 70px;
    background: rgba(22, 23, 21, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08); z-index: 9999; padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(246, 242, 232, 0.5); text-decoration: none; font-size: 9px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.15em; transition: color 0.3s;
  }
  .mobile-nav-item svg { opacity: 0.8; }
  .mobile-nav-item:active, .mobile-nav-item:active svg { color: #bfa15f; opacity: 1; }
  body { padding-bottom: 75px !important; }
}

/* Specific Section Backgrounds for High Visual Distinction */
#philosophy {
  background-color: #FBF9F5 !important; /* Common Website Default Cream */
}

#life-at-agam {
  background-color: #F8F3EA !important; /* Soft Warm Ivory */
  color: var(--charcoal);
  padding: 8rem 1.5rem;
  position: relative;
  border-top: none !important;
  border-bottom: none !important;
}

#estates {
  background-color: #FBF9F5 !important; /* Common Website Default Cream */
}

@media (min-width: 768px) {
  #life-at-agam {
    padding: 10rem 3rem;
  }
}

.life-at-agam-header {
  margin-bottom: 4rem;
}

.life-at-agam-header h2 {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-size: 9vw;
  max-width: 64rem;
  letter-spacing: -.01em;
  color: #000000;
}

.life-at-agam-header h2 em {
  font-style: italic;
  color: #D4AF37;
}

@media (min-width: 768px) {
  .life-at-agam-header h2 {
    font-size: 5.5vw;
  }
}

/* Pillar Card Grid: Philosophy layout matching philosophy-grid */
.pillar-row, .life-featured-pillar {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(38, 32, 26, 0.12);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.4s ease;
}

@media (min-width: 768px) {
  .pillar-row, .life-featured-pillar {
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
  }
}

.pillar-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pillar-left {
    grid-column: 1 / span 6;
  }
}

.pillar-num {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Philosophy Quote Style for Tagline */
.pillar-tagline {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--brown);
  position: relative;
  padding-left: 2rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .pillar-tagline {
    font-size: 2.1rem;
  }
}

.pillar-tagline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  border-radius: 2px;
}

.pillar-right {
  display: flex;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .pillar-right {
    grid-column: 7 / span 6;
  }
}

/* Philosophy Body Text Style */
.pillar-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(38, 32, 26, 0.78);
}

.life-at-agam-cta {
  margin-top: 4rem;
  text-align: left;
}

/* Modal Overlay Styling (Philosophy Text Theme) */
.life-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.life-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.life-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 15, 13, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.life-modal-container {
  position: relative;
  z-index: 10001;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--ivory);
  border: 1px solid rgba(210, 168, 110, 0.3);
  border-radius: 16px;
  padding: 4rem 3rem;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.life-modal-overlay.active .life-modal-container {
  transform: translateY(0) scale(1);
}

.life-modal-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: transparent;
  border: 1px solid rgba(38, 32, 26, 0.2);
  color: #000000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.life-modal-close:hover {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
  transform: rotate(90deg);
}

.life-modal-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(38, 32, 26, 0.15);
}

.life-modal-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: #000000;
  margin: 0.75rem 0 1rem 0;
}

.life-modal-header h2 em {
  font-style: italic;
  color: #D4AF37;
}

.life-modal-header .lead {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(38, 32, 26, 0.75);
  max-width: 750px;
}

.life-modal-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Partner Form Modal Styling */
.partner-form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.partner-form-group label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.5;
}
.partner-form-group input,
.partner-form-group textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: #FAF7F2;
  border: 1px solid rgba(38, 32, 26, 0.22);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.partner-form-group input:focus,
.partner-form-group textarea:focus,
.partner-form-group select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(210, 168, 110, 0.2);
}

.partner-form-group select {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: #FAF7F2;
  border: 1px solid rgba(38, 32, 26, 0.22);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2026201a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1rem;
}

/* Budget Option Pills */
.budget-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .budget-options-grid { grid-template-columns: 1fr; }
}
.budget-option-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: #FAF7F2;
  border: 1px solid rgba(38, 32, 26, 0.22);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: all 0.3s ease;
  text-align: center;
}
.budget-option-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.budget-option-pill:hover {
  border-color: var(--brass);
  background: rgba(210, 168, 110, 0.08);
}
.budget-option-pill.active,
.budget-option-pill:has(input[type="radio"]:checked) {
  border-color: var(--brass);
  background: var(--brass);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(210, 168, 110, 0.35);
}

/* ============================================
   HORIZONTAL MEDIA SLIDER (DETAIL PAGE)
   ============================================ */
.slider-container-wrap {
  position: relative;
  margin: 3rem 0 4rem 0;
}
.horizontal-media-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brass) transparent;
}
.horizontal-media-slider::-webkit-scrollbar {
  height: 4px;
}
.horizontal-media-slider::-webkit-scrollbar-track {
  background: rgba(38, 32, 26, 0.08);
  border-radius: 4px;
}
.horizontal-media-slider::-webkit-scrollbar-thumb {
  background: var(--brass);
  border-radius: 4px;
}

.slider-card {
  flex: 0 0 78%;
  min-width: 320px;
  max-width: 850px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #FAF7F2;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(38, 32, 26, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 767px) {
  .slider-card { flex: 0 0 90%; padding: 0.85rem; }
}
.slider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.09);
}
.slider-media-box {
  width: 100%;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #0d0a07;
}
@media (max-width: 767px) {
  .slider-media-box { height: 280px; }
}
.slider-media-box img,
.slider-media-box video,
.slider-media-box iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.slider-caption {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-top: 0.5rem;
  font-weight: 500;
  padding: 0 0.5rem;
}
.slider-arrow-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(210, 168, 110, 0.4);
  color: var(--charcoal);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.slider-arrow-btn:hover {
  background: var(--brass);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.slider-arrow-btn.prev { left: -22px; }
.slider-arrow-btn.next { right: -22px; }
@media (max-width: 767px) {
  .slider-arrow-btn { display: none; }
}

/* ============================================================
   HIGH-END LUXURY ANIMATION SYSTEM
   ============================================================ */

/* --- 1. CLIP-PATH IMAGE REVEAL --- */
.reveal-image {
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-image.in {
  clip-path: inset(0% 0 0 0) !important;
}
.reveal-image img, .reveal-image video {
  transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-image.in img, .reveal-image.in video {
  transform: scale(1) !important;
}

/* --- 2. STAGGERED CHILDREN REVEAL --- */
.stagger-children > * {
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

/* --- 3. SLIDE FROM SIDES WITH BLUR --- */
.reveal-left {
  opacity: 0; transform: translateX(-40px); filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1), filter 0.9s ease;
}
.reveal-left.in { opacity:1 !important; transform:translateX(0) !important; filter:blur(0) !important; }
.reveal-right {
  opacity: 0; transform: translateX(40px); filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1), filter 0.9s ease;
}
.reveal-right.in { opacity:1 !important; transform:translateX(0) !important; filter:blur(0) !important; }

/* --- 4. GOLD COLOR on em headings — clean unified luxury gold --- */
h1 em, h2 em, h3 em, h4 em,
.hero-text em,
.landowners h2 em,
.priority h2 em,
#landowners-title em,
#priority-title em,
#hero-title em,
#philosophy-heading em {
  color: var(--brass) !important;
  -webkit-text-fill-color: var(--brass) !important;
  background: none !important;
  font-style: italic !important;
}

/* --- 5. MAGNETIC BUTTON GLOW --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease !important;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::before { left: 150%; }
.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 40px rgba(210,168,110,0.4), 0 4px 12px rgba(0,0,0,0.15) !important;
}
.btn-ghost {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), letter-spacing 0.35s ease !important;
}
.btn-ghost:hover {
  transform: translateY(-2px) !important;
  letter-spacing: 0.22em !important;
}

/* --- 6. ESTATE CARD — luxury lift & image zoom --- */
.estate:hover .image {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(38,32,26,0.2);
}
.estate .image {
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s ease;
  overflow: hidden;
}
.estate .image img {
  transition: transform 1s cubic-bezier(0.16,1,0.3,1) !important;
}
.estate:hover .image img { transform: scale(1.06) !important; }

/* --- 7. EXPLORE LINK — animated gold underline --- */
.estate .explore {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}
.estate .explore::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.estate:hover .explore::after { width: 100%; }

/* --- 8. HERO TEXT — luxury blur+slide entrance --- */
#hero-text-panel.visible .hero-text-content > * {
  animation: heroTextIn 1s cubic-bezier(0.16,1,0.3,1) both;
}
#hero-text-panel.visible .eyebrow   { animation-delay: 0.05s; }
#hero-text-panel.visible h1         { animation-delay: 0.22s; }
#hero-text-panel.visible p.lead     { animation-delay: 0.40s; }
#hero-text-panel.visible .cta       { animation-delay: 0.56s; }
@keyframes heroTextIn {
  from { opacity:0; transform:translateY(32px); filter:blur(8px); }
  to   { opacity:1; transform:translateY(0);    filter:blur(0);   }
}

/* --- 9. FLOATING GOLD PARTICLES on hero --- */
@keyframes floatUp {
  0%   { transform:translateY(0) translateX(0); opacity:0; }
  10%  { opacity:0.55; }
  90%  { opacity:0.2; }
  100% { transform:translateY(-100vh) translateX(30px); opacity:0; }
}
.hero-particle {
  position:absolute; width:2px; height:2px;
  background: var(--brass); border-radius:50%;
  pointer-events:none;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

/* --- 10. NAV LINKS — gold underline slide on hover --- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute;
  bottom:-3px; left:0;
  width:0; height:1px;
  background:var(--brass);
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover::after { width:100%; }

/* --- 11. BRASS RULE — draw animation on scroll reveal --- */
.brass-rule {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.in .brass-rule, .reveal.in .brass-rule { transform: scaleX(1) !important; }
/* Always visible in static hero/priority */
.hero-content .brass-rule,
.priority-inner .brass-rule,
.life-body .brass-rule,
.life-modal-header .brass-rule { transform: scaleX(1); transition: none; }

/* --- 12. PHILOSOPHY / LIFE cards — hover lift --- */
.philosophy-grid:hover .philosophy-quote,
.philosophy-grid:hover .philosophy-body {
  transform: translateY(-4px);
}
.philosophy-quote, .philosophy-body {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* --- 13. SCROLL PROGRESS BAR — gold gradient --- */
.scroll-progress-bar {
  background: linear-gradient(90deg, #A0784A, #D4AF37, #FFF0A0, #D4AF37) !important;
  background-size: 200% 100% !important;
  animation: progressShimmer 3s linear infinite !important;
}
@keyframes progressShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* --- 16. LIFE CARD GRID OVERRIDES --- */
.life-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(38,32,26,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.life-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(38,32,26,0.12) !important;
}
.life-card .card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #f0ebe4;
}
.life-card .card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.life-card:hover .card-img-wrap img {
  transform: scale(1.06) !important;
}
.life-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.reveal {
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1) !important;
}

/* --- 15. PRIORITY h2 entrance --- */
.priority-inner h2 {
  opacity: 0;
  transform: scale(0.95) translateY(25px);
  transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1), transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.priority-inner h2.in { opacity:1 !important; transform:scale(1) translateY(0) !important; }

/* ============================================================
   MASTER MOBILE OPTIMIZATION (ALL PAGES & HERO SECTIONS)
   ============================================================ */
@media (max-width: 768px) {
  /* --- Global Reset & Spacing --- */
  section { padding: 4.5rem 1.25rem !important; }
  .container, .container-wide { padding: 0 0.5rem; }

  /* --- Navigation --- */
  .nav-inner { padding: 0 1.25rem !important; height: 60px !important; }
  .nav-logo { height: 38px !important; max-height: 38px !important; }
  .brand-name-text { font-size: 0.8rem !important; letter-spacing: 0.12em !important; }

  /* --- Main Homepage Hero --- */
  .hero {
    height: 100dvh !important;
    min-height: 520px !important;
    max-height: 100dvh !important;
  }
  .hero-inner {
    padding: 0 1.25rem !important;
  }
  .hero-text-content {
    max-width: 100% !important;
    padding-top: 1.5rem;
  }
  .hero-text-content .eyebrow {
    font-size: 0.65rem !important;
    letter-spacing: 0.22em !important;
    margin-bottom: 1rem !important;
  }
  .hero-text-content .hero-text {
    font-size: clamp(2.1rem, 8.5vw, 3.2rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
  }
  .hero-text-content .lead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.75rem !important;
    max-width: 100% !important;
  }
  .hero-text-content .lead br {
    display: none !important;
  }
  .hero-text-content .cta {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .hero-text-content .cta .btn-primary,
  .hero-text-content .cta .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 10px !important;
  }

  /* --- Hero Phase 1 Centered Logo --- */
  .hero-scroll-logo img {
    max-height: 48vh !important;
    max-width: 82vw !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
  }
  .hero-scroll-hint {
    bottom: 1.5rem !important;
  }

  /* --- Philosophy New Page (#phil-hero & .split-layout) --- */
  #phil-hero {
    min-height: 85vh !important;
    padding: 6rem 1.25rem 3rem !important;
  }
  #phil-hero .content {
    padding: 0 !important;
    max-width: 100% !important;
  }
  #phil-hero h1 {
    font-size: clamp(2.2rem, 7.5vw, 3rem) !important;
    line-height: 1.18 !important;
    margin: 1rem 0 !important;
  }
  #phil-hero p.lead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  #phil-hero p.lead br {
    display: none !important;
  }
  .split-layout, .split-layout.alt {
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
  }
  .split-img {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    border-radius: 8px !important;
  }
  .split-text {
    padding: 2rem 1rem !important;
    width: 100% !important;
  }
  .split-text h2, .split-text h3 {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  .split-text p, .split-subhead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }
  #phil-final {
    padding: 4rem 1.25rem !important;
  }
  #phil-final blockquote {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
  }

  /* --- Life at Agam Page (.page-hero & Pillars) --- */
  .page-hero {
    padding: 7rem 1.25rem 3.5rem 1.25rem !important;
  }
  .page-hero h1 {
    font-size: clamp(2.2rem, 7.5vw, 3rem) !important;
    line-height: 1.2 !important;
    margin: 1rem 0 !important;
  }
  .page-hero p.lead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .philosophy-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }
  .philosophy-quote {
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
  }
  .philosophy-body {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* --- Estates & Estate Detail Pages --- */
  .page-header {
    padding: 5rem 1.25rem 1.5rem !important;
  }
  .page-header h1 {
    font-size: 2.2rem !important;
  }
  .estate-list {
    gap: 3.5rem !important;
  }
  .estate {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .estate .image {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 12px !important;
  }
  .material .img, .materials-grid img, .material img {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }
  .philosophy-grid img, .philosophySections img, .philosophy-body img {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }
  .life-image {
    min-height: auto !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    border-radius: 12px !important;
  }
  .life-image img {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  .estate h3 {
    font-size: 2rem !important;
  }
  .estate dl {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .detail-content {
    padding: 2.5rem 1.25rem !important;
  }
  .detail-title {
    font-size: clamp(2.2rem, 7vw, 3rem) !important;
    margin-bottom: 1.5rem !important;
  }
  .detail-meta {
    gap: 1.5rem !important;
  }

  /* --- Hero Mobile Opening Logo Sizing --- */
  .hero-scroll-logo {
    z-index: 6;
    padding: 1rem;
  }
  .hero-scroll-logo img {
    height: clamp(260px, 50vh, 400px) !important;
    max-width: 88vw !important;
    object-fit: contain !important;
  }
  .hero-scroll-hint {
    bottom: 2rem !important;
  }

  /* --- Partner / Landowners Section --- */
  .landowners-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .landowners-left h2 {
    font-size: clamp(2.2rem, 7.5vw, 3rem) !important;
  }
  .landowners-right p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }

  /* --- Priority Section --- */
  .priority-inner {
    padding: 4.5rem 1.25rem 4rem !important;
  }
  .priority h2 {
    font-size: clamp(2.1rem, 7.5vw, 3rem) !important;
    line-height: 1.2 !important;
  }
  .priority p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }
  .priority .cta {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .priority .cta .btn-primary,
  .priority .cta .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
  }

  /* --- Footer --- */
  footer {
    padding: 3rem 1.25rem 2rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}



/* ============================================================
   ULTRA LUXURY ANIMATION SYSTEM v2
   ============================================================ */

/* CHAR REVEAL — each letter slides up */
.char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(2deg);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}
.char-reveal.in .char {
  opacity: 1 !important;
  transform: translateY(0) rotate(0deg) !important;
}

/* STAGGER CHILDREN — grid items enter one by one */
.stagger-children > * {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.stagger-children.in > *:nth-child(1)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 0ms; }
.stagger-children.in > *:nth-child(2)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 90ms; }
.stagger-children.in > *:nth-child(3)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 180ms; }
.stagger-children.in > *:nth-child(4)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 270ms; }
.stagger-children.in > *:nth-child(5)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 360ms; }
.stagger-children.in > *:nth-child(6)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 450ms; }
.stagger-children.in > *:nth-child(7)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 540ms; }
.stagger-children.in > *:nth-child(8)  { opacity:1 !important; transform:translateY(0) !important; transition-delay: 630ms; }

/* REVEAL UP — clean bottom-to-top entrance */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.in { opacity:1 !important; transform:translateY(0) !important; }

/* REVEAL SCALE — cards and images */
.reveal-scale {
  opacity: 0;
  transform: scale(0.93) translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.in { opacity:1 !important; transform:scale(1) translateY(0) !important; }

/* REVEAL BLUR — ambient text entrance */
.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              filter 1s ease,
              transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal-blur.in { opacity:1 !important; filter:blur(0) !important; transform:translateY(0) !important; }

/* GOLD LINE DRAW — separator lines */
.gold-line-draw {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), rgba(212,175,55,0.15));
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
.gold-line-draw.in { width: 100% !important; }

/* PHILOSOPHY QUOTE BAR — vertical gold bar grows */
.philosophy-quote::before {
  transition: height 1.1s cubic-bezier(0.16,1,0.3,1) 0.25s !important;
  height: 0 !important;
}
.philosophy-quote.in::before { height: 100% !important; }

/* PILLAR ROWS on life-at-agam — staggered fade up */
.philosophy-pillars-list .philosophy-grid {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.philosophy-pillars-list .philosophy-grid.in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.philosophy-pillars-list .philosophy-grid:nth-child(1) { transition-delay:   0ms; }
.philosophy-pillars-list .philosophy-grid:nth-child(2) { transition-delay:  80ms; }
.philosophy-pillars-list .philosophy-grid:nth-child(3) { transition-delay: 160ms; }
.philosophy-pillars-list .philosophy-grid:nth-child(4) { transition-delay: 240ms; }
.philosophy-pillars-list .philosophy-grid:nth-child(5) { transition-delay: 320ms; }
.philosophy-pillars-list .philosophy-grid:nth-child(6) { transition-delay: 400ms; }

/* PHILOSOPHY-NEW split sections — text slides from side, image scales */
.phil-dynamic-sec .split-text {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1);
}
.phil-dynamic-sec .split-layout.alt .split-text {
  transform: translateX(-45px);
}
.phil-dynamic-sec.in-view .split-text {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.phil-dynamic-sec .split-img {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1),
              transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.phil-dynamic-sec.in-view .split-img {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* LIFE CARD enhanced hover overlay */
.life-card .card-img-wrap {
  position: relative;
}
.life-card .card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38,32,26,0.35) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.life-card:hover .card-img-wrap::after { opacity: 1; }

/* ESTATES — reveal-left for quote, reveal-right for body */
.philosophy-quote.reveal-left,
.philosophy-body.reveal-right {
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1),
              filter 0.9s ease !important;
}

/* SECTION number accent — large serif counter */
.stat-block {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.stat-block.in { opacity:1 !important; transform:translateY(0) !important; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--brass);
  line-height: 1;
  display: block;
}

/* PRIORITY h2 scale entrance */
.priority-inner h2 {
  opacity: 0;
  transform: scale(0.94) translateY(30px);
  transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1),
              transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.priority-inner h2.in { opacity:1 !important; transform:scale(1) translateY(0) !important; }

/* LANDOWNERS section fade-in */
.landowners { transition: opacity 0.9s ease; }
.landowners:not(.in-view) { opacity: 0; }
.landowners.in-view { opacity: 1 !important; }
