/* ==========================================================================
   AURUM ESTATES - DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Material Color Palette */
  --bg-warm-ivory: HSL(36, 33%, 97%);
  --surface-limestone: HSL(38, 20%, 94%);
  --surface-travertine: HSL(38, 16%, 90%);
  --text-charcoal: HSL(220, 8%, 12%);
  --text-graphite: HSL(220, 4%, 32%);
  --accent-gold: HSL(35, 42%, 64%);
  --accent-bronze: HSL(26, 26%, 44%);
  
  /* Alert/Status Colors */
  --color-success: HSL(80, 20%, 40%);     /* Olive Green */
  --color-warning: HSL(35, 60%, 50%);     /* Warm Amber */
  --color-error: HSL(10, 40%, 45%);       /* Muted Terracotta */

  /* Spacing Scale (8px Base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;
  --space-28: 224px;
  --space-36: 288px;
  --space-48: 384px;

  /* Corner Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-micro: 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-standard: 400ms cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 800ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-ambient: 0 10px 40px -15px rgba(28, 29, 31, 0.04),
                    0 2px 8px -4px rgba(28, 29, 31, 0.02);
  --shadow-inset-stone: inset 0 2px 4px 0 rgba(28, 29, 31, 0.03);

  /* Layout Max Widths */
  --grid-max-width: 1320px;
  --grid-outer-width: 1440px;
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-warm-ivory);
  color: var(--text-charcoal);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Microscopic Paper Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-warm-ivory);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-bronze);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, .serif-font {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Typography Hierarchy */
.display-xl {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
}

.display-l {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
}

.heading-xl {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

.heading-l {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.2;
}

.heading-m {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-graphite);
}

.body-standard {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-graphite);
}

.caption {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-graphite);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

.metadata {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--accent-bronze);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   LAYOUTS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--grid-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-4);
  padding-left: var(--space-4);
}

/* Editorial rhythm layout */
section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .asymmetric-grid > * {
    grid-column: span 12 !important;
  }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-8);
  background-color: transparent;
  border-bottom: 1px solid rgba(28, 29, 31, 0);
  transition: background-color var(--transition-slow), border-color var(--transition-slow), backdrop-filter var(--transition-slow), box-shadow var(--transition-slow);
}

.navbar.scrolled {
  background-color: rgba(249, 246, 240, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(140, 109, 83, 0.1);
  box-shadow: var(--shadow-ambient);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--text-charcoal);
  padding: 8px 0;
  transition: color var(--transition-micro);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width var(--transition-standard);
}

.nav-links a:hover {
  color: var(--accent-bronze);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color var(--transition-standard);
}

.nav-brand span {
  font-weight: 300;
  color: var(--accent-gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Audio control styling */
.audio-toggle {
  background: none;
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
}

.audio-bar {
  width: 1px;
  background-color: var(--accent-bronze);
  height: 100%;
  transform-origin: bottom;
  transition: height var(--transition-micro);
}

.audio-toggle.playing .audio-bar {
  animation: audioWave 1.2s ease-in-out infinite alternate;
}

.audio-toggle.playing .audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-toggle.playing .audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-toggle.playing .audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-toggle.playing .audio-bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes audioWave {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.nav-toggle-mobile {
  display: none;
  background: none;
  border: none;
  cursor: none;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-mobile span {
  width: 24px;
  height: 1px;
  background-color: var(--text-charcoal);
  transition: transform var(--transition-standard);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .nav-toggle-mobile {
    display: flex;
  }
}

/* Mobile full-screen overlay menu */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-warm-ivory);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  transform: translateY(-100%);
  transition: transform var(--transition-slow);
}

.nav-mobile-menu.open {
  transform: translateY(0);
}

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.nav-mobile-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--text-charcoal);
}

/* ==========================================================================
   CINEMATIC HERO CONTAINER
   ========================================================================== */

.hero-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-12);
  background-color: var(--text-charcoal);
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  transition: transform var(--transition-slow);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
}

/* Shifting natural sunlight & dynamic color overlay */
.hero-light-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 40%, rgba(255, 180, 100, 0.15) 0%, rgba(0, 0, 0, 0) 60%),
              linear-gradient(to top, rgba(28, 29, 31, 0.4) 0%, rgba(28, 29, 31, 0) 80%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Interactive custom ambient shadows / shifting curtain animation */
.hero-curtain-shadow {
  position: absolute;
  top: 0;
  left: -20%;
  width: 150%;
  height: 100%;
  opacity: 0.12;
  background-image: linear-gradient(75deg, transparent 40%, rgba(0,0,0,0.85) 45%, transparent 50%, rgba(0,0,0,0.85) 55%, transparent 60%);
  background-size: 200% 100%;
  pointer-events: none;
  animation: curtainBreeze 25s ease-in-out infinite alternate;
}

@keyframes curtainBreeze {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

.hero-pool-reflection {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--bg-warm-ivory);
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero-headline {
  max-width: 800px;
  animation: fadeInBlur 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subheadline {
  max-width: 500px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(249, 246, 240, 0.75);
  animation: fadeInBlur 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
  animation: fadeInBlur 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes fadeInBlur {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: none; /* Let custom cursor display */
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard), transform var(--transition-standard), box-shadow var(--transition-standard);
  position: relative;
  overflow: hidden;
}

/* Primary Button - Dark Limestone background, Warm Ivory text */
.btn-primary {
  background-color: var(--text-charcoal);
  color: var(--bg-warm-ivory);
  border: 1px solid var(--text-charcoal);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.7s ease-in-out;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 29, 31, 0.1);
  border-color: var(--accent-gold);
}

/* Secondary Button - Hairline Border, hover reveal underline */
.btn-secondary {
  background-color: transparent;
  color: var(--text-charcoal);
  border: 1px solid rgba(28, 29, 31, 0.15);
}

.btn-secondary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--text-charcoal);
  transition: width var(--transition-standard), left var(--transition-standard);
}

.btn-secondary:hover::after {
  width: 80%;
  left: 10%;
}

.btn-secondary:hover {
  background-color: var(--surface-limestone);
  border-color: var(--text-charcoal);
}

/* Accent Light Button (Hero Alternative) */
.btn-accent {
  background-color: var(--bg-warm-ivory);
  color: var(--text-charcoal);
  border: 1px solid var(--bg-warm-ivory);
}

.btn-accent:hover {
  background-color: var(--surface-travertine);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-ghost span {
  position: relative;
}

.btn-ghost span::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(1);
  transform-origin: bottom left;
  transition: transform var(--transition-standard);
}

.btn-ghost:hover span::after {
  transform: scaleX(0);
  transform-origin: bottom right;
}

/* ==========================================================================
   EDITORIAL SECTIONS
   ========================================================================== */

/* Statement Intro Section */
.intro-statement {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--text-charcoal);
}

.intro-author {
  margin-top: var(--space-4);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-family: 'Inter', sans-serif;
  color: var(--accent-bronze);
}

/* Philosophy Alternating Layout */
.philosophy-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.philosophy-row:nth-child(even) {
  flex-direction: row-reverse;
}

.philosophy-image {
  flex: 1.2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.philosophy-image:hover img {
  transform: scale(1.04);
}

.philosophy-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 992px) {
  .philosophy-row, .philosophy-row:nth-child(even) {
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
  }
}

/* ==========================================================================
   FEATURED COLLECTIONS (Immersive cards)
   ========================================================================== */

.collections-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.collection-card {
  position: relative;
  width: 100%;
  height: 80vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-12);
  cursor: none;
}

.collection-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
  z-index: 1;
}

.collection-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.collection-card:hover .collection-card-bg {
  transform: scale(1.03);
}

.collection-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(28,29,31,0.85) 0%, rgba(28,29,31,0) 60%);
  z-index: 2;
}

.collection-card-content {
  position: relative;
  z-index: 3;
  color: var(--bg-warm-ivory);
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateY(20px);
  transition: transform var(--transition-standard);
}

.collection-card:hover .collection-card-content {
  transform: translateY(0);
}

.collection-card-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-standard), opacity var(--transition-standard);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.collection-card:hover .collection-card-details {
  max-height: 180px;
  opacity: 1;
}

/* ==========================================================================
   INTERACTIVE FLOOR PLAN
   ========================================================================== */

.floorplan-section {
  background-color: var(--surface-limestone);
}

.floorplan-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 992px) {
  .floorplan-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.floorplan-svg-container {
  width: 100%;
  background: var(--bg-warm-ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-ambient);
}

.floorplan-svg {
  width: 100%;
  height: auto;
}

/* Floorplan interactive room polygon styling */
.floorplan-room {
  fill: transparent;
  stroke: var(--accent-bronze);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  cursor: none;
  transition: fill var(--transition-standard), stroke var(--transition-standard);
}

.floorplan-room:hover, .floorplan-room.active {
  fill: rgba(197, 168, 128, 0.15);
  stroke: var(--accent-gold);
  stroke-dasharray: none;
}

.floorplan-walls {
  stroke: var(--text-charcoal);
  stroke-width: 4;
  fill: none;
}

.floorplan-text {
  font-size: 11px;
  fill: var(--text-graphite);
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

.floorplan-details-card {
  background-color: var(--bg-warm-ivory);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  border: 1px solid rgba(140, 109, 83, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 320px;
}

.floorplan-material-palette {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.floorplan-material-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(28,29,31,0.1);
  position: relative;
}

.floorplan-material-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-charcoal);
  color: var(--bg-warm-ivory);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-micro);
}

.floorplan-material-dot:hover::after {
  opacity: 1;
}

/* ==========================================================================
   MATERIAL GALLERY
   ========================================================================== */

.material-wrapper {
  overflow-x: auto;
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
}

.material-card {
  flex: 0 0 280px;
  background-color: var(--surface-limestone);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
  border: 1px solid rgba(140, 109, 83, 0.08);
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-ambient);
}

/* Tactical Light Sweep Effect */
.material-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.material-card:hover::after {
  animation: sweep 1.2s ease-in-out forwards;
}

@keyframes sweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

.material-sample {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-travertine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-graphite);
  position: relative;
  overflow: hidden;
}

.material-sample.marble {
  background: radial-gradient(circle at 30% 30%, #fff, #efefef),
              repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(140,109,83,0.06) 11px, rgba(140,109,83,0.06) 13px);
}
.material-sample.oak {
  background: #d8c2a3;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(80,50,20,0.1) 9px, rgba(80,50,20,0.1) 12px);
}
.material-sample.travertine {
  background: radial-gradient(circle, #e9e4db 30%, #d8d3c7 90%);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}
.material-sample.brass {
  background: linear-gradient(135deg, #c5a880, #dfcdb6, #b09165);
}
.material-sample.linen {
  background: #f2ede4;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
                    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ==========================================================================
   INVESTMENT INSIGHTS (Data Viz)
   ========================================================================== */

.investment-section {
  background-color: var(--surface-travertine);
}

.chart-container {
  background-color: var(--bg-warm-ivory);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  border: 1px solid rgba(140, 109, 83, 0.08);
}

.chart-svg {
  width: 100%;
  height: 300px;
}

.chart-grid {
  stroke: rgba(28,29,31,0.05);
  stroke-width: 1;
}

.chart-axis-text {
  font-size: 10px;
  fill: var(--text-graphite);
  font-family: 'Inter', sans-serif;
}

.chart-line {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.chart-area {
  fill: url(#chart-gradient);
  opacity: 0.15;
}

.chart-tooltip-line {
  stroke: var(--accent-bronze);
  stroke-dasharray: 3 3;
}

.chart-tooltip-point {
  fill: var(--text-charcoal);
  stroke: var(--accent-gold);
  stroke-width: 2;
}

/* ==========================================================================
   CLIENT PORTAL MOCKUP
   ========================================================================== */

.portal-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  background-color: var(--surface-limestone);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  border: 1px solid rgba(140, 109, 83, 0.1);
  min-height: 600px;
}

@media (max-width: 768px) {
  .portal-container {
    grid-template-columns: 1fr;
  }
}

.portal-sidebar {
  background-color: var(--bg-warm-ivory);
  padding: var(--space-6);
  border-right: 1px solid rgba(140, 109, 83, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.portal-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.portal-nav-item {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-graphite);
  cursor: none;
  transition: background-color var(--transition-micro), color var(--transition-micro);
}

.portal-nav-item.active, .portal-nav-item:hover {
  background-color: var(--surface-limestone);
  color: var(--text-charcoal);
  font-weight: 500;
}

.portal-content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.portal-card {
  background-color: var(--bg-warm-ivory);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid rgba(140, 109, 83, 0.08);
}

/* ==========================================================================
   CONCIERGE & FORMS
   ========================================================================== */

.concierge-section {
  background-color: var(--text-charcoal);
  color: var(--bg-warm-ivory);
}

.form-group {
  margin-bottom: var(--space-4);
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(249, 246, 240, 0.5);
  margin-bottom: var(--space-1);
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(249, 246, 240, 0.2);
  color: var(--bg-warm-ivory);
  padding: var(--space-2) 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  outline: none;
  transition: border-color var(--transition-standard);
}

.form-input:focus {
  border-bottom-color: var(--accent-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--surface-limestone);
  padding: var(--space-16) 0 var(--space-8) 0;
  border-top: 1px solid rgba(140, 109, 83, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-charcoal);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9rem;
}

.footer-col a {
  color: var(--text-graphite);
  transition: color var(--transition-micro);
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(140, 109, 83, 0.08);
  padding-top: var(--space-4);
  font-size: 0.8rem;
  color: var(--text-graphite);
}

/* ==========================================================================
   TRANSITIONS & LOADING STAGE
   ========================================================================== */

/* Stone Panel Transitions overlay */
.stone-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2000;
  display: flex;
}

.stone-panel {
  flex: 1;
  height: 100%;
  background-color: var(--surface-travertine);
  box-shadow: 0 0 100px rgba(0,0,0,0.1);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-slow);
}

.stone-panel:nth-child(even) {
  transform-origin: bottom;
}

.stone-transition.animating .stone-panel {
  animation: panelSlide 1.1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes panelSlide {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* Preloader animation */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-warm-ivory);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  opacity: 0;
  transform: translateY(10px);
  animation: wordmarkReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.preloader-line {
  width: 160px;
  height: 1px;
  background-color: rgba(28,29,31,0.08);
  margin-top: var(--space-4);
  position: relative;
  overflow: hidden;
}

.preloader-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--accent-gold);
  animation: lineDraw 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordmarkReveal {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes lineDraw {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--accent-bronze);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(140, 109, 83, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.08s ease-out;
}

.custom-cursor.hovered {
  width: 4px;
  height: 4px;
  background-color: var(--accent-gold);
}

.custom-cursor-ring.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--accent-gold);
}

@media (max-width: 1024px) {
  /* Hide custom cursor on touch devices */
  .custom-cursor, .custom-cursor-ring {
    display: none;
  }
  html {
    cursor: auto !important;
  }
}

/* ============================================================
   MOBILE OPTIMIZATION
   ============================================================ */
@media (pointer: coarse) {
  .btn, .nav-link, a, button {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  .btn { padding: 14px 24px; }
  body { cursor: auto; -webkit-text-size-adjust: 100%; }
  html, body { overflow-x: hidden; overscroll-behavior-x: none; }
}

@media (max-width: 480px) {
  .hero-title, .hero-viewport h1 { font-size: 1.75rem; line-height: 1.15; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .navbar { height: 56px; padding: 0 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding-left: 12px; padding-right: 12px; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .modal-content { width: 95vw; max-width: 95vw; }
}

