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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #C9A14A transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #C9A14A;
  border-radius: 999px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #E5C158;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: var(--text-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  font-size: var(--text-body);
}

.text-large {
  font-size: var(--text-body-large);
}

.caption {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-medium);
}
a:hover {
  opacity: 0.7;
}

/* Container */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* Typography Constraints */
p {
  max-width: 560px;
  line-height: 1.8;
}
h2 {
  max-width: 700px;
}

/* Layout Rhythm (Alternating Backgrounds) */
section {
  padding: var(--spacing-section) 0;
  width: 100%;
}

.bg-light {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.bg-light p { color: var(--color-neutral-stone); }

.bg-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-primary-light);
}
.bg-dark p { color: rgba(249, 247, 243, 0.7); }

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: #D4AF37;
  color: var(--color-primary-light);
  padding: 16px 32px;
  border-radius: var(--border-radius-soft);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-medium);
  cursor: pointer;
  border: none;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background-color: #B38E46;
  opacity: 1;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: inherit;
  border: 1px solid currentColor;
  padding: 16px 32px;
  border-radius: var(--border-radius-soft);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-medium);
  cursor: pointer;
  text-align: center;
}
.btn-secondary:hover {
  background-color: currentColor;
  color: var(--color-primary-light);
}
.bg-dark .btn-secondary:hover { color: var(--color-primary-dark); }

/* Placeholder Strategy */
.placeholder {
  background-color: var(--color-neutral-beige);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-card);
  animation: placeholderPulse 3s infinite ease-in-out;
}
.bg-dark .placeholder {
  background-color: #264A38; /* darker green for placeholder on dark background */
}

.placeholder-text {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  color: var(--color-neutral-stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.bg-dark .placeholder-text {
  color: rgba(249, 247, 243, 0.5);
}

.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-3-2 { aspect-ratio: 3 / 2; }
.aspect-1-1 { aspect-ratio: 1 / 1; }

@keyframes placeholderPulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* Animations & Content Visibility Guarantee */
.reveal-up,
.reveal-left,
.reveal-soft,
.reveal-icon,
.reveal-quote {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.reveal-up.in-view,
.reveal-left.in-view,
.reveal-soft.in-view,
.reveal-icon.in-view,
.reveal-quote.in-view {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.text-center { text-align: center; }

/* Lenis Smooth Scrolling */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

