:root {
  /* Colors */
  --ink:          #141414;
  --ink-soft:     #1f1f1f;
  --chalk:        #f4f0eb;
  --chalk-mid:    #e8e3dc;
  --brass:        #c9a96e;
  --brass-pale:   #e8d5b0;
  --text-primary: #141414;
  --text-muted:   #8a8a8a;
  --text-invert:  #f4f0eb;
  --white:        #ffffff;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-stat:     'Bebas Neue', sans-serif;

  /* Type Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.375rem;
  --text-2xl:   1.75rem;
  --text-3xl:   2.5rem;
  --text-4xl:   3.5rem;
  --text-5xl:   5rem;
  --text-6xl:   7.5rem;

  /* Spacing */
  --space-section: 120px;
  --space-inner:   60px;
  --max-w:         1320px;
  --gutter:        40px;

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-mid:  0.5s;
  --duration-slow: 0.9s;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Handled by Lenis */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--chalk);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Custom Cursor — only active when JS adds class to <html> */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0; /* shown by JS after first mousemove */
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--brass);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--brass);
  transition: width var(--duration-fast), height var(--duration-fast), opacity 0.3s ease;
}
.cursor-ring.expanded {
  width: 52px; height: 52px;
  background: rgba(201, 169, 110, 0.08);
}

/* Hide native cursor ONLY when custom cursor JS has activated */
.custom-cursor-active,
.custom-cursor-active a,
.custom-cursor-active button,
.custom-cursor-active input,
.custom-cursor-active textarea,
.custom-cursor-active select {
  cursor: none !important;
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}
.section.dark {
  background-color: var(--ink);
  color: var(--text-invert);
}
.section.dark h1, .section.dark h2, .section.dark h3 {
  color: var(--text-invert);
}

/* Reveal Animations — only hidden when JS is confirmed running */
body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
body.js-enabled .reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  body.js-enabled .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brass);
  color: var(--brass);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--duration-fast) var(--ease-out);
  background: transparent;
}
.btn-outline:hover {
  background: var(--brass);
  color: var(--ink);
}
.btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brass);
  color: var(--ink);
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.btn-filled:hover {
  background: var(--brass-pale);
}

/* Floating Elements */
.floating-whatsapp {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 52px; height: 52px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.scroll-to-top {
  position: fixed;
  bottom: 90px; right: 34px;
  width: 44px; height: 44px;
  background: transparent;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: all var(--duration-fast);
}
.scroll-to-top.visible {
  opacity: 1; pointer-events: auto;
}
.scroll-to-top:hover {
  background: var(--brass); color: var(--ink);
}

/* Footer */
#site-footer {
  background-color: var(--ink);
  color: var(--text-muted);
  position: relative;
}
#site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
  pointer-events: none;
}
.footer-container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 80px var(--gutter);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  position: relative; z-index: 1;
}
.brand-col .footer-logo { height: 32px; margin-bottom: 20px; filter: invert(1); opacity: 0.9; }
.brand-col .tagline { font-family: var(--font-display); font-style: italic; color: var(--brass); margin-bottom: 10px; }
.brand-col .studio-desc { font-size: var(--text-sm); margin-bottom: 20px; }
.social-links a { font-size: 24px; margin-right: 15px; transition: color var(--duration-fast); }
.social-links a:hover { color: var(--brass); }
.footer-col h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-base); color: var(--text-invert); margin-bottom: 20px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: var(--text-sm); transition: color var(--duration-fast); }
.footer-col a:hover { color: var(--brass); }
.footer-col p { font-size: var(--text-sm); margin-bottom: 10px; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 30px var(--gutter);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-xs); position: relative; z-index: 1;
}

@media (max-width: 767px) {
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --space-section: 80px;
  }
}

/* Gallery Masonry Layout */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
  padding: 20px 0;
}
.masonry-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}
.masonry-grid img, .masonry-grid video {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) { .masonry-grid { column-count: 2; } }
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }
