/* ============================================================
   SHARMA INTERIORS  —  Design System
   ============================================================ */

/* ───── TOKENS ───── */
:root {
  /* palette */
  --bg:        #0F0E0C;
  --bg-2:      #16140F;
  --surface:   #1A1815;
  --surface-2: #232017;
  --cream:     #F5F0E6;
  --cream-2:   #EDE6D6;
  --ink:       #1A1815;
  --gold:      #D8AA3C;
  --gold-2:    #ECC860;
  --gold-dim:  #9A7828;
  --muted:     #8B8478;
  --line:      rgba(216, 170, 60, 0.22);
  --line-soft: rgba(245, 240, 230, 0.08);

  /* type */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* spacing */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6rem;
  --s-7: 9rem;

  /* radii */
  --r-sm: 2px;
  --r:    4px;

  /* easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ───── RESET ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* ───── TYPOGRAPHY ───── */
.font-display { font-family: var(--font-display); font-weight: 400; }
h1, h2, h3, h4, .h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}
h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5.5vw, 4.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cream-2);
  font-weight: 300;
  max-width: 56ch;
  line-height: 1.6;
}

/* ───── LAYOUT ───── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.section { padding: var(--s-7) 0; position: relative; }
@media (max-width: 768px) { .section { padding: var(--s-6) 0; } }

/* hairline gold rule */
.rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: var(--s-3) 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease);
  background: linear-gradient(180deg, rgba(15,14,12,0.8), rgba(15,14,12,0));
}
.nav.scrolled {
  background: rgba(15, 14, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  text-transform: uppercase;
  font-weight: 500;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo span small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  margin-top: 3px;
  text-transform: none;
}
.nav-links {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
  font-weight: 400;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  background: transparent;
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.nav-cta:hover { color: var(--bg); }
.nav-cta:hover::before { transform: translateY(0); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 200;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.active span:nth-child(1) { top: 22px; transform: rotate(45deg); background: var(--gold); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 22px; transform: rotate(-45deg); background: var(--gold); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--s-3);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    padding: var(--s-5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; font-family: var(--font-display); text-transform: none; letter-spacing: 0; }
  .nav-cta { margin-top: var(--s-2); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(15,14,12,0.2) 0%, rgba(15,14,12,0.85) 100%),
    linear-gradient(180deg, rgba(15,14,12,0.55) 0%, rgba(15,14,12,0.4) 50%, rgba(15,14,12,0.95) 100%);
  z-index: 1;
}
.hero-frame {
  position: absolute;
  inset: 5vw;
  border: 1px solid var(--gold);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.hero-frame.draw { animation: drawFrame 2s var(--ease) 0.3s forwards; }
@keyframes drawFrame {
  0%   { opacity: 0; clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
  25%  { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  50%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%); }
  75%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero h1 .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.hero h1.in .char {
  animation: charUp 1.1s var(--ease-out) forwards;
}
@keyframes charUp { to { transform: translateY(0); opacity: 1; } }

.hero-tagline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 1.4s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-2);
  z-index: 3;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 2s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  background: var(--gold);
  animation: scrollLine 2.5s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-meta {
  position: absolute;
  bottom: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-2);
  z-index: 3;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 2.2s forwards;
}
.hero-meta.left { left: 3vw; }
.hero-meta.right { right: 3vw; text-align: right; }
@media (max-width: 768px) { .hero-meta { display: none; } }

/* ───── HERO VIDEO NAVIGATION ───── */
.hero-video-label {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  min-height: 20px;
  transition: color 0.5s var(--ease);
}

.hero-video-prev,
.hero-video-next {
  transition: all 0.3s var(--ease) !important;
}

.hero-video-prev:hover,
.hero-video-next:hover {
  background: rgba(245, 240, 230, 0.25) !important;
  border-color: rgba(245, 240, 230, 0.6) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.hero-video-dot {
  transition: all 0.3s var(--ease);
}

.hero-video-dot.active {
  background: var(--gold) !important;
  transform: scale(1.3);
}

.hero-video-dot:hover {
  background: rgba(245, 240, 230, 0.7) !important;
}

@media (max-width: 768px) {
  .hero-video-prev,
  .hero-video-next { width: 40px !important; height: 40px !important; font-size: 1rem !important; }
  .hero-video-dots { bottom: 2rem !important; }
  .hero-video-dot { width: 6px !important; height: 6px !important; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-style: italic;
  color: var(--cream-2);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee span::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.9em;
  font-style: normal;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--s-4); } }

.about-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.5s var(--ease);
}
.about-img.reveal img { transform: scale(1); }
.about-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transform: translate(20px, 20px);
  pointer-events: none;
  z-index: -1;
}

.about-text h2 { margin: 1rem 0 1.5rem; }
.about-text p { margin-bottom: 1rem; color: var(--cream-2); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  margin-top: var(--s-5);
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  padding: var(--s-4) var(--s-3);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
  cursor: default;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.service:hover::before { opacity: 0.08; }
.service > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.18em;
}
.service h3 {
  margin: 1rem 0;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.service:hover h3 { color: var(--gold); transform: translateX(6px); }
.service p { color: var(--cream-2); font-size: 0.95rem; }
.service-arrow {
  margin-top: var(--s-3);
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--gold);
  position: relative;
  transition: width 0.5s var(--ease);
}
.service-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}
.service:hover .service-arrow { width: 60px; }

/* ============================================================
   PROCESS (numbered timeline)
   ============================================================ */
.process { background: var(--bg-2); }
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-5);
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
@media (max-width: 900px) { .process-track { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-4); } }
@media (max-width: 540px) { .process-track { grid-template-columns: 1fr; } .process-track::before { display: none; } }

.process-step { position: relative; padding-right: var(--s-2); }
.process-num {
  width: 56px; height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--ease);
}
.process-step:hover .process-num {
  background: var(--gold);
  color: var(--bg);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.process-step p { color: var(--cream-2); font-size: 0.92rem; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.portfolio-item.size-lg { grid-column: span 6; aspect-ratio: 5/6; }
.portfolio-item.size-md { grid-column: span 6; aspect-ratio: 4/3; }
.portfolio-item.size-sm { grid-column: span 4; aspect-ratio: 1/1; }

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item, .portfolio-item.size-lg, .portfolio-item.size-md, .portfolio-item.size-sm {
    grid-column: span 1;
    aspect-ratio: 4/5;
  }
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.85);
}
.portfolio-item:hover img { transform: scale(1.06); filter: brightness(1); }

.portfolio-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-3);
  background: linear-gradient(180deg, transparent, rgba(15,14,12,0.92));
  transform: translateY(20%);
  opacity: 0;
  transition: all 0.5s var(--ease);
}
.portfolio-item:hover .portfolio-meta { transform: translateY(0); opacity: 1; }
.portfolio-cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1.1;
}

.filter-bar {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin: var(--s-4) 0 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0;
}
.filter-bar button {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}
.filter-bar button::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.filter-bar button:hover,
.filter-bar button.active { color: var(--gold); }
.filter-bar button.active::after { width: 100%; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-2); }
.testimonial-wrap { margin-top: var(--s-5); position: relative; }
.testimonial {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--s-3);
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.8s var(--ease);
}
.testimonial.active { opacity: 1; position: relative; }
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: var(--s-3);
}
.testimonial-quote::before {
  content: "“";
  display: block;
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: -2rem;
  font-family: Georgia, serif;
}
.testimonial-author {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: var(--s-3);
}
.testimonial-dots button {
  width: 28px; height: 1px;
  background: var(--line-soft);
  transition: background 0.4s, height 0.4s;
}
.testimonial-dots button.active { background: var(--gold); height: 2px; }

/* ============================================================
   JOURNAL
   ============================================================ */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; } }

.journal-card {
  position: relative;
  display: block;
  transition: transform 0.5s var(--ease);
}
.journal-card:hover { transform: translateY(-4px); }
.journal-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.journal-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.journal-card:hover .journal-img img { transform: scale(1.05); }
.journal-date {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.journal-card h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  transition: color 0.4s;
  margin-bottom: 0.5rem;
}
.journal-card:hover h3 { color: var(--gold); }
.journal-card p {
  font-size: 0.92rem;
  color: var(--cream-2);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s-6);
  margin-top: var(--s-5);
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: var(--s-4); } }

.contact-info ul { list-style: none; margin-top: var(--s-3); }
.contact-info li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-info .value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
}
.contact-info .value a:hover { color: var(--gold); }

.contact-form {
  display: grid;
  gap: var(--s-2);
}
.field {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.4s;
}
.field:focus-within { border-color: var(--gold); }
.field label {
  position: absolute;
  top: 18px; left: 0;
  font-size: 0.85rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.06em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 18px 0 12px;
  color: var(--cream);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 300;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: var(--surface); color: var(--cream); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: -8px;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn-submit {
  margin-top: var(--s-3);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 16px 36px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background: transparent;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: color 0.4s var(--ease);
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn-submit:hover { color: var(--bg); }
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit .arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.4s var(--ease);
}
.btn-submit .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-submit:hover .arrow { width: 28px; }

.form-msg {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-left: 2px solid var(--gold);
  background: rgba(201, 169, 97, 0.08);
}
.form-msg.error { border-color: #d44; background: rgba(212, 68, 68, 0.08); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  padding: var(--s-6) 0 var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h5 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-2);
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { padding: 5px 0; }
.footer a { color: var(--cream-2); font-size: 0.92rem; transition: color 0.3s; }
.footer a:hover { color: var(--gold); }
.footer-brand img { height: 56px; width: auto; margin-bottom: var(--s-2); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.socials { display: flex; gap: 14px; margin-top: var(--s-2); }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.socials svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ============================================================
   FLOATING CTAs
   ============================================================ */
.float-ctas {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(80px);
  position: relative;
}
.float-btn.in { opacity: 1; transform: translateY(0); }
.float-btn:hover { transform: translateY(-4px) scale(1.05); }
.float-btn.whatsapp { background: #25D366; color: white; }
.float-btn.call { background: var(--gold); color: var(--bg); }
.float-btn svg { width: 26px; height: 26px; }

.float-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 540px) {
  .float-ctas { bottom: 16px; right: 16px; }
  .float-btn { width: 50px; height: 50px; }
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.3em;
  color: var(--cream);
  text-transform: uppercase;
  overflow: hidden;
}
.loader-logo span {
  display: inline-block;
  transform: translateY(110%);
  animation: charUp 0.8s var(--ease-out) forwards;
}
.loader-bar {
  width: 220px;
  height: 1px;
  background: var(--line-soft);
  margin-top: var(--s-3);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderFill 1.6s var(--ease-out) 0.3s forwards;
}
@keyframes loaderFill { to { transform: scaleX(1); } }

/* ============================================================
   ANIMATIONS — REVEAL UTILITIES
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: transform, opacity;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }

[data-reveal="left"]  { transform: translateX(-50px); }
[data-reveal="left"].in  { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="right"].in { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].in { transform: scale(1); }

/* word-by-word reveal for headlines */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.in .split-word > span { transform: translateY(0); }

/* parallax */
.parallax { will-change: transform; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   PAGE-HEADER (for inner pages)
   ============================================================ */
.page-header {
  padding: 14rem 0 var(--s-6);
  background: var(--bg-2);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.page-header h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 12px; color: var(--gold); }

/* ============================================================
   PROJECT DETAIL
   ============================================================ */
.project-hero {
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  margin-top: 80px;
}
.project-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 768px) { .project-meta-bar { grid-template-columns: repeat(2, 1fr); } }
.pm-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.pm-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
@media (max-width: 768px) { .project-gallery { grid-template-columns: 1fr; } }
.project-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.project-gallery img:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
@media (max-width: 768px) {
  .project-gallery img:first-child { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ============================================================
   POST DETAIL
   ============================================================ */
.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding-top: var(--s-5);
}
.post-article img { margin: var(--s-3) 0; }
.post-article h3 {
  font-size: 1.8rem;
  margin: var(--s-3) 0 var(--s-2);
  color: var(--gold);
}
.post-article p {
  margin-bottom: 1.2rem;
  color: var(--cream-2);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  opacity: 0;
  transition: opacity 0.4s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.lightbox-close:hover { background: var(--gold); color: var(--bg); }

/* ============================================================
   ──────────────────────────────────────────────────────────
   ANIMATION LAYER v2  —  the "feels alive" pass
   ──────────────────────────────────────────────────────────
   ============================================================ */

/* ───── SCROLL PROGRESS BAR (top of viewport) ───── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 9998;
  transform-origin: left;
  box-shadow: 0 0 10px rgba(201, 169, 97, 0.6);
  transition: width 0.1s linear;
}

/* ───── CUSTOM CURSOR (desktop only) ───── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor a, html.has-cursor button { cursor: none !important; }
}

.cursor-dot {
  position: absolute;
  top: -3px; left: -3px;
  width: 6px;
  height: 6px;
  background: var(--cream);
  border-radius: 50%;
  transition: opacity 0.3s, transform 0.3s;
}
.cursor-ring {
  position: absolute;
  top: -18px; left: -18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              top 0.35s var(--ease), left 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cursor-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.3s;
  font-family: var(--font-body);
  font-weight: 400;
}

/* hover states */
.cursor.hover-link .cursor-ring {
  width: 56px; height: 56px;
  top: -28px; left: -28px;
  background: rgba(245, 240, 230, 0.06);
}
.cursor.hover-link .cursor-dot { opacity: 0; }

.cursor.hover-view .cursor-ring {
  width: 88px; height: 88px;
  top: -44px; left: -44px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor.hover-view .cursor-dot { opacity: 0; }
.cursor.hover-view .cursor-label { opacity: 1; color: var(--bg); }

.cursor.hover-button .cursor-ring {
  width: 60px; height: 60px;
  top: -30px; left: -30px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor.hover-button .cursor-dot { opacity: 0; }

.cursor.click .cursor-ring { transform: scale(0.85); }

/* ───── FILM GRAIN (very subtle, animated) ───── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.79  0 0 0 0 0.66  0 0 0 0 0.38  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-5%,-3%); }
  20%  { transform: translate(-10%,2%); }
  30%  { transform: translate(5%,-8%); }
  40%  { transform: translate(-3%,12%); }
  50%  { transform: translate(-15%,5%); }
  60%  { transform: translate(7%,-3%); }
  70%  { transform: translate(10%,8%); }
  80%  { transform: translate(-3%,5%); }
  90%  { transform: translate(2%,-12%); }
  100% { transform: translate(0,0); }
}

/* ───── MASK REVEALS (replaces simple fade-up) ───── */
[data-mask] {
  overflow: hidden;
  position: relative;
}
[data-mask]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right;
  transform: scaleX(1);
  z-index: 2;
  pointer-events: none;
  transition: transform 1.2s var(--ease-out);
  transition-delay: 0.1s;
}
[data-mask].in::after { transform: scaleX(0); }
[data-mask][data-mask-color="bg-2"]::after { background: var(--bg-2); }
[data-mask][data-mask-color="gold"]::after { background: var(--gold); }

[data-mask-img] {
  overflow: hidden;
  position: relative;
}
[data-mask-img] img,
[data-mask-img] video {
  transform: scale(1.2);
  transition: transform 1.6s var(--ease-out);
}
[data-mask-img].in img,
[data-mask-img].in video { transform: scale(1); }
[data-mask-img]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 2;
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 1.1s var(--ease-out);
}
[data-mask-img].in::before { transform: scaleY(0); transform-origin: bottom; }

/* ───── WORD-BY-WORD HEADLINE REVEAL ───── */
.split-line {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.in .split-line > span,
[data-reveal-words].in .split-line > span { transform: translateY(0); }

/* ───── MAGNETIC ELEMENTS ───── */
.magnetic {
  display: inline-flex;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

/* ───── HORIZONTAL PROCESS (desktop pinned via GSAP) ───── */
@media (min-width: 901px) {
  .process-pin {
    /* No fixed height — GSAP pin:true creates the pin spacer.
       No position:sticky on inner either — GSAP handles pinning.
       This avoids the "overflow:hidden on ancestor breaks sticky" trap
       caused by sibling classes like .curtain. */
    overflow: hidden;
    background: var(--bg-2);
  }
  .process-pin-inner {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .process-pin-header {
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    max-width: 1440px;
    margin: 0 auto var(--s-4);
    width: 100%;
  }
  .process-pin-track {
    display: flex;
    gap: 4vw;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    will-change: transform;
  }
  .process-pin-step {
    flex: 0 0 60vw;
    max-width: 720px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s-4);
    align-items: center;
  }
  .process-pin-step .process-num {
    width: 90px; height: 90px;
    font-size: 2rem;
    margin: 0;
  }
  .process-pin-step h4 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
  }
  .process-pin-step p { font-size: 1.05rem; }
  .process-progress {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 1px;
    background: var(--line-soft);
    overflow: hidden;
  }
  .process-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    width: 0;
    transition: width 0.1s linear;
  }
  .process-track-mobile { display: none; }
}
@media (max-width: 900px) {
  .process-pin { display: none; }
}

/* ───── 3D PORTFOLIO CARD TILT ───── */
.portfolio-item {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}
.portfolio-item.tilt {
  transition: transform 0.1s linear;
}

/* ───── HERO ENHANCEMENTS ───── */
.hero-video {
  animation: kenBurns 30s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero h1 .char {
  transform: translateY(110%) rotateX(-60deg);
  transform-origin: bottom;
}
.hero h1.in .char {
  animation: charFlip 1.1s var(--ease-out) forwards;
}
@keyframes charFlip {
  to { transform: translateY(0) rotateX(0); opacity: 1; }
}

/* Subtle floating gold orbs in hero */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.4), rgba(201, 169, 97, 0));
  pointer-events: none;
  z-index: 2;
  filter: blur(30px);
  animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb.o1 { width: 320px; height: 320px; top: 10%;  left: 8%;  animation-delay: 0s; }
.hero-orb.o2 { width: 220px; height: 220px; bottom: 12%; right: 10%; animation-delay: -7s; opacity: 0.7; }
.hero-orb.o3 { width: 180px; height: 180px; top: 50%;  right: 30%; animation-delay: -14s; opacity: 0.5; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}
@media (max-width: 768px) { .hero-orb { display: none; } }

/* ───── MULTI-LANE MARQUEE (counter-rotating) ───── */
.marquee-stack {
  position: relative;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-stack .lane {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-stack .lane.up   { animation: marqueeUp 40s linear infinite; }
.marquee-stack .lane.down { animation: marqueeDown 55s linear infinite; }
.marquee-stack .lane.up.fast   { animation-duration: 28s; }
.marquee-stack .lane span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-style: italic;
  color: var(--cream-2);
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  font-weight: 300;
}
.marquee-stack .lane span::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.7em;
  font-style: normal;
  margin-left: 2rem;
}
.marquee-stack .lane.muted span {
  color: var(--muted);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  font-size: clamp(1.8rem, 4vw, 3rem);
}
@keyframes marqueeUp   { to { transform: translateX(-50%); } }
@keyframes marqueeDown { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ───── ENHANCED SERVICES (gold corner accent) ───── */
.service {
  position: relative;
  transition: background 0.5s var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-top: 0 solid var(--gold);
  border-right: 0 solid var(--gold);
  transition: all 0.5s var(--ease);
  pointer-events: none;
}
.service:hover::after {
  width: 40px; height: 40px;
  border-top-width: 1px;
  border-right-width: 1px;
}

/* ───── BUTTON SHIMMER ───── */
.btn-submit, .nav-cta {
  position: relative;
  isolation: isolate;
}
.btn-submit > *, .nav-cta > * { position: relative; z-index: 1; }

/* ───── ENHANCED PORTFOLIO REVEAL ───── */
.portfolio-item {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.portfolio-item.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ───── ELEGANT FOCUS RING ───── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ───── BACKGROUND COLOR TRANSITIONS BETWEEN SECTIONS ───── */
body { transition: background-color 0.8s var(--ease); }

/* ───── NUMBER TICKER (odometer style for stats) ───── */
.num.ticking {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

/* ───── REDUCED-MOTION & MOBILE OVERRIDES ───── */
@media (prefers-reduced-motion: reduce) {
  .cursor, .grain, .hero-orb { display: none !important; }
  .hero-video { animation: none; }
  .marquee-stack .lane { animation: none; }
  [data-mask]::after { transform: scaleX(0); }
  [data-mask-img]::before { transform: scaleY(0); }
}
@media (max-width: 768px) {
  .grain { opacity: 0.04; }
}

/* ============================================================
   ──────────────────────────────────────────────────────────
   PREMIUM PRO MAX  —  Editorial sections + new animations
   ──────────────────────────────────────────────────────────
   ============================================================ */

/* ───── EDITORIAL SECTION MARKER (big italic numbers between sections) ───── */
.sec-marker {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: var(--s-4);
  position: relative;
}
.sec-marker .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: var(--gold);
  line-height: 0.85;
  font-weight: 300;
  letter-spacing: -0.02em;
  opacity: 0.85;
  will-change: transform;
}
.sec-marker .num small {
  font-size: 0.4em;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.3em;
  margin-left: 0.5em;
  vertical-align: top;
}
.sec-marker .heading {
  flex: 1;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1rem;
}
.sec-marker .heading .label {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-2);
  margin-bottom: 0.8rem;
  display: block;
  font-weight: 400;
}
@media (max-width: 640px) {
  .sec-marker { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ───── CURTAIN REVEAL (gold line draws, then content reveals) ───── */
.curtain {
  position: relative;
  overflow: hidden;
}
.curtain::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  z-index: 3;
  transition: width 0.9s var(--ease-out);
}
.curtain.in::before { width: 100%; }
.curtain::after {
  content: "";
  position: absolute;
  inset: 1px 0 0 0;
  background: var(--bg);
  z-index: 2;
  transform-origin: top;
  transition: transform 1.1s var(--ease-out) 0.4s;
  pointer-events: none;
}
.curtain.in::after { transform: scaleY(0); }
.curtain[data-bg="bg-2"]::after { background: var(--bg-2); }

/* ───── SPECIALTIES SHOWCASE ───── */
.specialties {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.specialty-card {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  background: var(--surface);
  isolation: isolate;
}
.specialty-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.75) saturate(0.95);
  z-index: 0;
}
.specialty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.1) 0%, rgba(15,14,12,0.4) 50%, rgba(15,14,12,0.92) 100%);
  z-index: 1;
  transition: opacity 0.6s var(--ease);
}
.specialty-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.95) saturate(1);
}
.specialty-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.specialty-card .cat-num {
  position: absolute;
  top: clamp(1.5rem, 2.5vw, 2.5rem);
  right: clamp(1.5rem, 2.5vw, 2.5rem);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.specialty-card .cat-count {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.specialty-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--cream);
  line-height: 1;
  font-weight: 400;
  margin-bottom: 14px;
  transition: transform 0.5s var(--ease);
}
.specialty-card:hover h3 { transform: translateX(8px); }
.specialty-card .cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-2);
  transition: color 0.4s, gap 0.4s var(--ease);
}
.specialty-card .cat-cta::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.specialty-card:hover .cat-cta { color: var(--gold); gap: 22px; }

/* broken grid spans */
.specialty-card.span-tall  { grid-column: span 5; grid-row: span 2; }
.specialty-card.span-wide  { grid-column: span 7; grid-row: span 1; }
.specialty-card.span-md    { grid-column: span 4; grid-row: span 1; }
.specialty-card.span-sm    { grid-column: span 3; grid-row: span 1; }

@media (max-width: 900px) {
  .specialties { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .specialty-card.span-tall,
  .specialty-card.span-wide,
  .specialty-card.span-md,
  .specialty-card.span-sm { grid-column: span 1; grid-row: span 1; }
  .specialty-card.span-tall { grid-column: span 2; }
}
@media (max-width: 540px) {
  .specialties { grid-template-columns: 1fr; }
  .specialty-card.span-tall { grid-column: span 1; }
}

/* ───── FEATURED VILLA (full-bleed spotlight) ───── */
.featured-villa {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.featured-villa-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.featured-villa-img img {
  width: 100%; height: 110%;
  object-fit: cover;
  will-change: transform;
}
.featured-villa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.4) 0%, rgba(15,14,12,0.1) 30%, rgba(15,14,12,0.85) 100%);
  z-index: 1;
}
.featured-villa-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-3);
}
.featured-villa .eyebrow { color: var(--gold); margin-bottom: 1.5rem; }
.featured-villa h2 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
  font-weight: 400;
}
.featured-villa-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.featured-villa-meta span { display: flex; flex-direction: column; gap: 4px; }
.featured-villa-meta strong { color: var(--gold); font-weight: 400; letter-spacing: 0.05em; font-size: 0.7rem; }
.featured-villa-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(15,14,12,0.4);
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease);
}
.featured-villa-cta:hover { background: var(--gold); color: var(--bg); }
.featured-villa-cta::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}
@media (max-width: 768px) {
  .featured-villa { height: 75vh; min-height: 500px; }
  .featured-villa-content { grid-template-columns: 1fr; }
}

/* ───── MATERIAL PALETTE (horizontal scroll, drag-enabled) ───── */
.materials-section { padding: var(--s-6) 0; background: var(--bg-2); overflow: hidden; }
.materials-track {
  display: flex;
  gap: var(--s-3);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  cursor: grab;
  user-select: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  margin-top: var(--s-4);
  padding-bottom: var(--s-3);
  -webkit-overflow-scrolling: touch;
}
.materials-track::-webkit-scrollbar { display: none; }
.materials-track.grabbing { cursor: grabbing; }
.material-card {
  flex: 0 0 clamp(260px, 28vw, 360px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.material-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.material-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.material-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: contrast(1.05) saturate(1.1);
}
.material-card:hover .material-card-img img { transform: scale(1.08); }
.material-card-body { padding: 1.5rem; flex: 1; }
.material-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.material-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.material-card p {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-display);
}

.materials-hint {
  margin-top: 1rem;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.materials-hint::before {
  content: "↔";
  font-size: 1.2rem;
  color: var(--gold);
}

/* ───── IMAGE STRIP MARQUEE ───── */
.image-marquee {
  padding: var(--s-3) 0;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.image-marquee-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  animation: imgMarquee 45s linear infinite;
}
.image-marquee-track img {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.85);
  transition: filter 0.5s;
}
.image-marquee-track img:hover { filter: grayscale(0) brightness(1); }
@keyframes imgMarquee { to { transform: translateX(-50%); } }
@media (max-width: 768px) {
  .image-marquee-track img { height: 140px; }
}

/* ───── VIDEO REEL ───── */
.video-reel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
}
@media (max-width: 900px) { .video-reel { grid-template-columns: repeat(2, 1fr); } }

.video-card {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.video-card video,
.video-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.video-card:hover video,
.video-card:hover img { transform: scale(1.05); }
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.1) 0%, rgba(15,14,12,0.6) 100%);
  z-index: 1;
}
.video-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.4s var(--ease);
  background: rgba(15, 14, 12, 0.4);
  backdrop-filter: blur(8px);
}
.video-card:hover .video-card-play {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-card-play::after {
  content: "";
  display: block;
  width: 0; height: 0;
  border-left: 12px solid var(--gold);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
  transition: border-left-color 0.4s;
}
.video-card:hover .video-card-play::after { border-left-color: var(--bg); }
.video-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  z-index: 2;
}
.video-card-label .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: block;
}
.video-card-label .title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
}

/* ───── FOUNDER QUOTE (editorial pull-quote) ───── */
.founder {
  padding: var(--s-7) 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.founder::before {
  content: """;
  position: absolute;
  top: -10%;
  left: 5%;
  font-family: Georgia, serif;
  font-size: clamp(20rem, 40vw, 36rem);
  color: var(--surface);
  line-height: 1;
  z-index: 0;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}
.founder-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s-5);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .founder-content { grid-template-columns: 1fr; }
}
.founder-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.founder-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.founder-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transform: translate(15px, 15px);
  z-index: -1;
}
.founder-text q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--cream);
  font-weight: 400;
  display: block;
  margin-bottom: var(--s-3);
  quotes: """ """;
}
.founder-text q::before { content: ""; }
.founder-text q::after { content: ""; }
.founder-attribution {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: var(--s-3);
}
.founder-attribution::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.founder-attribution-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
}
.founder-attribution-role {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
  font-weight: 400;
}

/* ───── PRESS STRIP ───── */
.press {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}
.press-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
  font-style: italic;
  font-family: var(--font-display);
}
.press-track {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.press-logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--cream-2);
  letter-spacing: 0.1em;
  opacity: 0.55;
  transition: opacity 0.4s, color 0.4s;
  font-weight: 500;
}
.press-logo:hover { opacity: 1; color: var(--gold); }
.press-logo small {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

/* ───── PORTFOLIO ITEM HOVER SWAP (when 2nd img provided) ───── */
.portfolio-item .img-swap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  z-index: 1;
}
.portfolio-item:hover .img-swap { opacity: 1; }

/* ───── PINNED SECTION LABEL (vertical text on left) ───── */
.section-label-rail {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 50;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  white-space: nowrap;
  font-weight: 400;
}
.section-label-rail.show { opacity: 0.7; }
.section-label-rail::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}
@media (max-width: 900px) { .section-label-rail { display: none; } }

/* ───── CINEMATIC LINE DIVIDER ───── */
.cinematic-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  width: 100%;
  margin: 0;
  opacity: 0.5;
}

/* ───── ENHANCED PROCESS NUM ON SCROLL (animated glow) ───── */
.process-num {
  position: relative;
}
.process-num::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
  z-index: -1;
}
.process-step:hover .process-num::before,
.process-pin-step:hover .process-num::before { opacity: 1; }

/* ============================================================
   ────────────────────────────────────────────────────────────
   HEAVENLY ANIMATION LAYER v4
   Performance fixes + new sections
   ────────────────────────────────────────────────────────────
   ============================================================ */

/* ───── PERF: hardware acceleration without layout collapse ─────
   Earlier we used content-visibility:auto for performance, but it
   caused jumps when sections came back into view. Removed in favour
   of pure transform-based optimisations.
   ───────────────────────────────────────────────────────────────── */
.cursor, .cursor-dot, .cursor-ring, .magnetic,
.portfolio-item, .gallery-tile, .drift-tile,
.hero-orb, .specialty-card img, .material-card,
.lane, .image-marquee-track {
  will-change: transform;
  backface-visibility: hidden;
}

/* ───── PERF: lighter grain on mobile/low-power ───── */
@media (max-width: 768px) {
  .grain { display: none; }
  .hero-orb { display: none; }
  .hero-video { animation: none; }
}

/* ───── CLICK RIPPLE (gold expanding circle) ───── */
.click-ripple {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  transform: translate(-50%, -50%);
  z-index: 9996;
  pointer-events: none;
  animation: rippleOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rippleOut {
  0%   { width: 6px; height: 6px; opacity: 1;   border-width: 2px; }
  60%  { opacity: 0.4; border-width: 1px; }
  100% { width: 220px; height: 220px; opacity: 0; border-width: 0.5px; }
}

/* ───── HERO SPOTLIGHT CURSOR ───── */
.hero-spotlight {
  position: absolute;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.18) 0%, rgba(201, 169, 97, 0.06) 30%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  mix-blend-mode: screen;
  transition: opacity 0.6s;
  filter: blur(20px);
}
@media (max-width: 900px) { .hero-spotlight { display: none; } }

/* ───── LIGHT LEAK OVERLAYS (heavenly soft gradients) ───── */
.light-leak {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: leakFloat 22s ease-in-out infinite alternate;
}
.light-leak.l1 {
  top: -10%; left: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.5), transparent 60%);
}
.light-leak.l2 {
  bottom: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(228, 201, 122, 0.35), transparent 60%);
  animation-delay: -11s;
}
@keyframes leakFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}
@media (max-width: 768px) { .light-leak { opacity: 0.25; filter: blur(60px); } }

/* ───── DRIFT GALLERY (cursor-responsive image grid) ───── */
.drift-gallery {
  position: relative;
  padding: var(--s-7) 0;
  background: var(--bg);
  overflow: hidden;
  min-height: 90vh;
}
.drift-gallery .container { position: relative; z-index: 2; }
.drift-stage {
  position: relative;
  margin-top: var(--s-4);
  height: 70vh;
  min-height: 540px;
}
.drift-tile {
  position: absolute;
  overflow: hidden;
  transition: filter 0.6s, opacity 0.6s;
}
.drift-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.drift-tile:hover img { transform: scale(1.05); }
.drift-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,14,12,0.6));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.drift-tile:hover::after { opacity: 1; }
.drift-tile-label {
  position: absolute;
  left: 18px; bottom: 18px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 1;
}
.drift-tile:hover .drift-tile-label {
  opacity: 1;
  transform: translateY(0);
}
/* Asymmetric layout — these are tuned for visual rhythm */
.drift-tile.t1  { top: 4%;  left: 2%;  width: 22%;  height: 38%; }
.drift-tile.t2  { top: 0;   left: 27%; width: 28%;  height: 52%; }
.drift-tile.t3  { top: 6%;  right: 22%; width: 20%; height: 30%; }
.drift-tile.t4  { top: 4%;  right: 1%; width: 18%;  height: 42%; }
.drift-tile.t5  { top: 46%; left: 4%;  width: 18%;  height: 38%; }
.drift-tile.t6  { top: 56%; left: 25%; width: 24%;  height: 36%; }
.drift-tile.t7  { top: 40%; right: 24%; width: 22%; height: 42%; }
.drift-tile.t8  { top: 50%; right: 1%; width: 20%;  height: 36%; }
@media (max-width: 900px) {
  .drift-stage { height: auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .drift-tile { position: relative; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; height: 220px !important; }
  .drift-tile.t2, .drift-tile.t4 { grid-row: span 2; height: 460px !important; }
}
@media (max-width: 540px) {
  .drift-stage { grid-template-columns: 1fr; }
  .drift-tile.t2, .drift-tile.t4 { grid-row: auto; height: 280px !important; }
}

/* ───── CINEMATIC REEL (pinned image crossfade) ───── */
.cinema-reel {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.cinema-stage {
  position: absolute;
  inset: 0;
}
.cinema-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cinema-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) contrast(1.05);
}
.cinema-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.5) 0%, rgba(15,14,12,0.1) 30%, rgba(15,14,12,0.85) 100%);
}
.cinema-letterbox-top, .cinema-letterbox-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  z-index: 4;
}
.cinema-letterbox-top { top: 0; }
.cinema-letterbox-bottom { bottom: 0; }
.cinema-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(2rem, 6vw, 6rem) clamp(5rem, 8vw, 8rem);
  pointer-events: none;
}
.cinema-overlay-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.cinema-label {
  position: relative;
}
.cinema-label .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  display: block;
}
.cinema-label h3 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--cream);
  line-height: 0.95;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.cinema-label p {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.cinema-counter {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.6rem;
  align-self: end;
}
.cinema-progress {
  position: absolute;
  bottom: 30px;
  left: clamp(2rem, 6vw, 6rem);
  right: clamp(2rem, 6vw, 6rem);
  height: 1px;
  background: rgba(245, 240, 230, 0.1);
  z-index: 6;
}
.cinema-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}
@media (max-width: 900px) {
  .cinema-reel { height: auto; }
  .cinema-stage { position: relative; inset: auto; height: 60vh; min-height: 400px; }
  .cinema-overlay { position: relative; padding: 2rem; }
  .cinema-overlay-inner { grid-template-columns: 1fr; min-height: auto !important; }
  .cinema-letterbox-top, .cinema-letterbox-bottom { display: none; }

  /* All labels are position:absolute (GSAP-driven on desktop) — on mobile
     collapse them so only the first one is visible in normal flow */
  .cinema-label { display: none !important; position: static; }
  .cinema-label:first-child {
    display: block !important;
    position: static;
    width: auto;
  }
}

/* ───── GALLERY WALL (column-by-column parallax) ───── */
.gallery-wall {
  padding: var(--s-7) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.gallery-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: var(--s-4);
  align-items: start;
}
.gw-col { display: flex; flex-direction: column; gap: 1rem; }
.gw-col:nth-child(2) { margin-top: 4rem; }
.gw-col:nth-child(4) { margin-top: 6rem; }
.gallery-tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transform-style: preserve-3d;
}
.gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92);
}
.gallery-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,14,12,0.55));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.gallery-tile:hover::after { opacity: 1; }
.gallery-tile-meta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
}
.gallery-tile:hover .gallery-tile-meta {
  opacity: 1;
  transform: translateY(0);
}
.gallery-tile-cat {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.gallery-tile-title {
  font-family: var(--font-display);
  color: var(--cream);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.1;
}
@media (max-width: 900px) {
  .gallery-wall-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-col:nth-child(n) { margin-top: 0 !important; }
}
@media (max-width: 540px) {
  .gallery-wall-grid { grid-template-columns: 1fr; }
}

/* ───── ENHANCED LOADER (light sweep across logo) ───── */
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.2), transparent);
  animation: loaderSweep 2s ease-in-out infinite;
}
@keyframes loaderSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ───── SOFT GLOW PULSE on CTA buttons ───── */
.featured-villa-cta, .btn-submit, .nav-cta {
  position: relative;
}
.featured-villa-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: ctaPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.04); }
}

/* ───── HERO TEXT — enhanced 3D char flip ───── */
.hero h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) rotateX(-90deg) scale(0.7);
  transform-origin: center bottom;
  animation: charDescend 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes charDescend {
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

/* ───── DRIFT-GALLERY label ───── */
.drift-gallery h2 {
  position: relative;
  z-index: 3;
}
.drift-gallery-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 3;
}

/* ───── SECTION CONTAINING LIGHT LEAKS POSITIONING ───── */
.drift-gallery, .cinema-reel, .founder, .featured-villa {
  position: relative;
}

/* ───── PORTFOLIO STAGGER PREP ───── */
.portfolio-item {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
}
.portfolio-item.in {
  /* GSAP will tween to opacity: 1, y: 0, scale: 1 */
}

/* ───── REDUCED MOTION ───── */
@media (prefers-reduced-motion: reduce) {
  .click-ripple, .hero-spotlight, .light-leak { display: none !important; }
  .drift-tile, .gw-col, .lane, .image-marquee-track {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   ────────────────────────────────────────────────────────────
   DYNAMIC v5 — videos + global cursor ambient gradient
   ────────────────────────────────────────────────────────────
   ============================================================ */

/* ───── GLOBAL CURSOR AMBIENT GRADIENT
   A subtle radial gold gradient that follows the cursor across
   the ENTIRE viewport. Makes the whole page feel "alive".
   Mix-blend-mode: screen so it only adds light, never darkens. */
.cursor-ambient {
  position: fixed;
  top: 0; left: 0;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(201, 169, 97, 0.12) 0%,
              rgba(201, 169, 97, 0.05) 25%,
              rgba(201, 169, 97, 0)    60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s;
  filter: blur(20px);
  will-change: transform;
}
.cursor-ambient.visible { opacity: 1; }
@media (max-width: 900px), (hover: none) {
  .cursor-ambient { display: none !important; }
}

/* ───── VIDEO BACKGROUND IN SECTION ───── */
.section-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-bg-video video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.85);
}
.section-bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.85), rgba(15,14,12,0.7) 50%, rgba(15,14,12,0.95));
}

/* ───── SPECIALTY CARD VIDEO-ON-HOVER ─────
   The card holds an <img> + an <video> stacked. Img shows by default;
   on hover (desktop), the video fades in and plays. */
.specialty-card .card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.specialty-card .card-media img,
.specialty-card .card-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) saturate(0.95);
}
.specialty-card .card-media video {
  opacity: 0;
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease);
}
@media (hover: hover) {
  .specialty-card:hover .card-media video { opacity: 1; filter: brightness(0.95) saturate(1); }
  .specialty-card:hover .card-media img   { opacity: 0; }
  .specialty-card .card-media img { transition: opacity 0.6s var(--ease); }
}

/* ───── DRIFT TILE WITH VIDEO ───── */
.drift-tile video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ───── CINEMA REEL VIDEO FRAMES ───── */
.cinema-frame video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) contrast(1.05);
}

/* ───── HERO VIDEO ─────
   Allow stacking multiple videos (cross-fade between them) */
.hero-video-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-stack video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.5s var(--ease);
}
.hero-video-stack video.active { opacity: 1; }

/* ───── FIX: drift-stage on mobile ─────
   Earlier the absolute-positioned tiles could overlap on tablet. */
@media (max-width: 900px) {
  .drift-stage {
    height: auto !important;
    min-height: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
  }
}

/* ───── FIX: video-card fluidly resize ───── */
.video-card video { display: block; }

/* ───── FIX v6: don't put overflow:hidden on .process-pin —
   that PARENT-level overflow breaks the sticky child below.
   .process-pin-inner already clips horizontally, which is enough. */
.cinema-reel { overflow: hidden; }

/* ───── FIX: cinema reel label positioning (was absolute stacking) ───── */
.cinema-overlay-inner { position: relative; min-height: 200px; }
.cinema-label {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
}
.cinema-label:first-child { /* first frame's label */ }

/* ───── MORE MICRO-MOTION: subtle continuous breathing ───── */
.eyebrow { position: relative; }
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-left: 14px;
  animation: eyebrowPulse 3s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50%      { opacity: 0.4; transform: scaleX(1.4); }
}

/* ───── BUTTON LIGHT SHIMMER on idle ───── */
.featured-villa-cta, .btn-submit {
  background-size: 200% 100%;
  background-image: linear-gradient(110deg, transparent 30%, rgba(245, 240, 230, 0.08) 50%, transparent 70%);
  background-position: -200% 0;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: -200% 0; }
  50%      { background-position: 200% 0; }
}

/* ============================================================
   v6 — MATERIALS as PINNED HORIZONTAL SCROLL on desktop
   Vertical scroll drives horizontal motion. When materials are
   fully traversed, page resumes normal vertical scroll.
   ============================================================ */
@media (min-width: 901px) {
  .materials-section.pinned {
    /* GSAP pin:true handles all pinning + scroll length.
       NO height:Xvh, NO position:sticky inner — avoids the
       overflow:hidden-on-parent-breaks-sticky trap. */
    overflow: hidden;
    padding: 0;
    background: var(--bg-2);
  }
  .materials-pin-inner {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 2rem;
  }
  .materials-pin-inner > .container { width: 100%; }
  .materials-pin-inner .materials-track {
    overflow: visible !important;
    cursor: default !important;
    width: max-content;
    padding-right: 50vw;        /* lets last card scroll fully into view */
    scroll-snap-type: none;
  }
  .materials-pin-inner .materials-track::-webkit-scrollbar { display: none; }
  .materials-pin-inner .materials-hint::before { content: "↓"; }
}
@media (max-width: 900px) {
  /* Mobile keeps the native overflow-x: auto with touch swipe */
  .materials-section.pinned { padding: var(--s-6) 0; height: auto; }
  .materials-pin-inner { display: contents; }
}

/* ───── v6: strip default link styling on tiles that are now <a> ───── */
.gallery-tile, .drift-tile, .cinema-frame {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cinema-frame { cursor: pointer; }

/* ============================================================
   v6 — COMMERCIAL & BUILDINGS focused showcase
   ============================================================ */
.commercial-showcase {
  position: relative;
  padding: var(--s-7) 0;
  background: var(--bg);
  overflow: hidden;
}
.commercial-showcase .light-leak.l1 { top: 10%; left: 60%; opacity: 0.35; }

.commercial-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  margin-top: var(--s-4);
  height: 70vh;
  min-height: 540px;
}
.commercial-tile {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.commercial-tile img,
.commercial-tile video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.95);
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
}
.commercial-tile:hover img,
.commercial-tile:hover video {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1);
}
.commercial-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.1) 0%, rgba(15,14,12,0.55) 60%, rgba(15,14,12,0.9));
  z-index: 1;
}
.commercial-tile .meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(1.2rem, 2vw, 2rem);
}
.commercial-tile .meta .tag {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
}
.commercial-tile .meta .title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--cream);
  line-height: 1.1;
  font-weight: 400;
}
.commercial-tile.feature {
  grid-row: span 2;
}
.commercial-tile.feature .title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.commercial-tile.feature::before {
  content: "FEATURED";
  position: absolute;
  top: clamp(1.2rem, 2vw, 2rem);
  left: clamp(1.2rem, 2vw, 2rem);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid var(--gold);
  background: rgba(15,14,12,0.4);
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .commercial-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .commercial-tile { height: 240px; }
  .commercial-tile.feature { grid-column: span 2; grid-row: auto; height: 380px; }
}
@media (max-width: 540px) {
  .commercial-grid { grid-template-columns: 1fr; }
  .commercial-tile.feature { grid-column: span 1; }
}

/* ============================================================
   v7 FIX — Process becomes a COMPACT 4-CARD GRID (no pin, no bugs)
   ============================================================ */

/* Kill all .process-pin pinned styles by inheriting standard section flow */
.process-pin {
  height: auto !important;
  min-height: 0 !important;
  position: relative;
  padding: var(--s-6) 0;
  overflow: visible;
}
.process-pin-inner {
  height: auto !important;
  position: static !important;
  display: block !important;
  overflow: visible !important;
  padding: 0;
}
.process-pin-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}
.process-pin-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
  max-width: 1440px;
  margin: var(--s-4) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  width: 100%;
  transform: none !important;
}
.process-pin-step {
  flex: none;
  max-width: none;
  display: block;
  position: relative;
  padding: clamp(1.5rem, 2vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
  overflow: hidden;
}
.process-pin-step:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  background: rgba(201, 169, 97, 0.04);
}
.process-pin-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.process-pin-step:hover::before { transform: scaleX(1); }

.process-pin-step .process-num {
  width: auto; height: auto;
  border: none;
  border-radius: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 1.4rem;
  display: block;
  background: none;
}
.process-pin-step h4 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.1;
  margin: 0 0 0.7rem;
  color: var(--cream);
  font-weight: 400;
}
.process-pin-step p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--cream-2);
  font-family: var(--font-body);
  margin: 0;
}
.process-progress { display: none; }
.process-track-mobile { display: none !important; }

@media (max-width: 900px) {
  .process-pin-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .process-pin-track { grid-template-columns: 1fr; }
}

/* ============================================================
   v7 FIX — Materials simple drag-scroll (NO pin, NO wheel hijack)
   ============================================================ */
.materials-section.pinned {
  height: auto !important;
  padding: var(--s-6) 0;
  overflow: hidden;
  background: var(--bg-2);
}
.materials-section.pinned .materials-pin-inner {
  height: auto !important;
  position: static !important;
  display: block !important;
  padding: 0;
}
.materials-section.pinned .materials-pin-inner .materials-track {
  display: flex;
  gap: var(--s-3);
  padding: 0 clamp(1rem, 4vw, 3rem) var(--s-3);
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  width: auto !important;
  margin-top: var(--s-4);
  transform: none !important;
}
.materials-section.pinned .materials-pin-inner .materials-track::-webkit-scrollbar { display: none; }
.materials-section.pinned .materials-pin-inner .materials-track.grabbing { cursor: grabbing; }

/* ============================================================
   v7 — COMPACT sec-marker (smaller, less vertical space)
   ============================================================ */
.sec-marker {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: var(--s-3);
}
.sec-marker .num {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.85;
}
.sec-marker .num small {
  font-size: 0.35em;
}
.sec-marker .heading {
  padding-bottom: 0.6rem;
}

/* ============================================================
   v7 — Compact section paddings on some long pages
   ============================================================ */
.gallery-wall { padding: var(--s-6) 0 var(--s-5); }
.drift-gallery { padding: var(--s-6) 0; }
.drift-gallery .drift-stage { margin-top: var(--s-3); }



/* ============================================================
   v10 — PRODUCTION HARDENING
   ============================================================ */

/* ULTIMATE SAFETY NET: CSS-only loader auto-dismiss after 4s.
   This runs even if JS completely fails (CDN blocked, syntax error, etc.).
   The page becomes interactive no matter what. */
.loader {
  animation: loaderAutoDismiss 0s 4s forwards;
}
@keyframes loaderAutoDismiss {
  to {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

/* Subtle "loading…" feedback so users see progress during the wait */
.loader::after {
  content: "Loading…";
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
  opacity: 0;
  animation: loaderHint 1.5s ease-in-out 0.5s infinite;
}
@keyframes loaderHint {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

/* Ensure body content is visible even if loader is in the way */
html, body { background: var(--bg); }

/* Help the browser by giving videos a fixed aspect for layout stability */
.video-card, .commercial-tile, .cinema-frame, .drift-tile, .specialty-card {
  contain: layout paint;
}

/* ============================================================
   v8 — HERO CALL TO ACTION BUTTONS
   ============================================================ */
.hero-ctas {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: var(--s-4);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.8s forwards;
  flex-wrap: wrap;
}
.hero-btn {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 34px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
  font-family: var(--font-body);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.hero-btn.primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.hero-btn.primary::before { background: var(--cream); }
.hero-btn.primary:hover { color: var(--bg); }
.hero-btn.primary:hover::before { transform: translateX(0); }
.hero-btn.secondary {
  border: 1px solid rgba(245, 240, 230, 0.45);
  color: var(--cream);
}
.hero-btn.secondary::before { background: rgba(245, 240, 230, 0.09); }
.hero-btn.secondary:hover::before { transform: translateX(0); }
@media (max-width: 540px) {
  .hero-ctas { gap: 0.9rem; }
  .hero-btn { padding: 13px 28px; }
}

/* ============================================================
   v8 — STATS STRIP (below marquee, above about)
   ============================================================ */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-strip-item {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  text-align: center;
  border-right: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}
.stats-strip-item:last-child { border-right: none; }
.stats-strip-item:hover { background: rgba(201, 169, 97, 0.04); }
.stats-strip-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
}
.stats-strip-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
@media (max-width: 768px) {
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-strip-item:nth-child(2) { border-right: none; }
  .stats-strip-item:nth-child(3),
  .stats-strip-item:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .stats-strip-item:nth-child(4) { border-right: none; }
}
@media (max-width: 480px) {
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   v8 — EDITORIAL SERVICES LIST (replaces plain grid)
   ============================================================ */
.services-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--muted);
  max-width: 58ch;
  margin-top: var(--s-3);
  line-height: 1.6;
}
.services-editorial {
  margin-top: var(--s-4);
}
.service-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--line-soft);
  cursor: default;
  transition: background 0.4s var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--line-soft); }
.service-row:hover { background: rgba(201,169,97,0.04); }
.service-row-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  width: 68px;
  transition: opacity 0.4s;
}
.service-row:hover .service-row-num { opacity: 1; }
.service-row-body { flex: 1; min-width: 0; }
.service-row-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--cream);
  line-height: 1.1;
  font-weight: 400;
  display: block;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service-row:hover .service-row-title { color: var(--gold); transform: translateX(6px); }
.service-row-desc {
  color: var(--cream-2);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 0.45rem;
}
.service-row-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.sra-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-1px, 1px);
  transition: border-color 0.4s var(--ease);
}
.service-row:hover .service-row-arrow { background: var(--gold); border-color: var(--gold); }
.service-row:hover .sra-icon { border-color: var(--bg); }
@media (max-width: 768px) {
  .service-row-arrow { display: none; }
  .service-row-num { width: 50px; font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .service-row-num { width: 40px; font-size: 1.15rem; }
  .service-row-title { font-size: 1.2rem; }
}

/* ============================================================
   v8 — VISUAL SERVICE CARD GRID
   ============================================================ */
.svc-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: var(--s-4);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: var(--s-4);
  contain: layout paint;
}
.svc-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--cream);
  background: var(--surface);
  isolation: isolate;
  cursor: pointer;
  contain: layout paint;
}
.svc-card-media {
  position: absolute;
  inset: 0;
}
.svc-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.9);
  transition: transform 1.4s var(--ease), filter 0.7s var(--ease);
  will-change: transform;
}
.svc-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.svc-card:hover .svc-card-media img {
  transform: scale(1.07);
  filter: brightness(0.45) saturate(1.1);
}
.svc-card:hover .svc-card-media video { opacity: 1; }
.svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15,14,12,0.05) 0%,
    rgba(15,14,12,0.35) 50%,
    rgba(15,14,12,0.9) 100%);
  z-index: 1;
  transition: background 0.6s var(--ease);
}
.svc-card:hover .svc-card-overlay {
  background: linear-gradient(180deg,
    rgba(15,14,12,0.1) 0%,
    rgba(15,14,12,0.55) 40%,
    rgba(15,14,12,0.95) 100%);
}
.svc-card-num {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 0.05em;
  transition: opacity 0.4s;
}
.svc-card:hover .svc-card-num { opacity: 1; }
.svc-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.svc-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  transition: transform 0.5s var(--ease);
}
.svc-card:hover .svc-card-title { transform: translateY(-6px); }
.svc-card-desc {
  font-size: clamp(0.78rem, 0.95vw, 0.86rem);
  color: rgba(245,240,230,0.8);
  line-height: 1.6;
  margin: 0 0 0.9rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.45s var(--ease);
}
.svc-card:hover .svc-card-desc { max-height: 80px; opacity: 1; }
.svc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc-card:hover .svc-card-cta { opacity: 1; transform: translateY(0); }
.svc-cta-arr {
  display: inline-block;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card { aspect-ratio: 3/4; }
}
@media (max-width: 540px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .svc-card { aspect-ratio: 3/4; }
  .svc-section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { aspect-ratio: 16/9; }
}

/* ============================================================
   v8 — SERVICES CONSULTATION CTA BAND
   ============================================================ */
.services-cta-band {
  margin-top: var(--s-5);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  background: rgba(201, 169, 97, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.services-cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}
.services-cta-band-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--cream-2);
  line-height: 1.3;
}
.services-cta-band-text strong {
  color: var(--gold);
  font-style: normal;
  font-weight: 400;
}
@media (max-width: 640px) {
  .services-cta-band { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HOME PAGE — MOBILE IMPROVEMENTS
   ============================================================ */

/* Hero: move nav arrows closer to edge on small phones */
@media (max-width: 540px) {
  .hero-video-prev { left: 0.75rem !important; }
  .hero-video-next { right: 0.75rem !important; }
  /* shift dots above the scroll indicator so they don't crowd */
  .hero-video-dots { bottom: 5rem !important; }
}

/* Hero: tighten CTA button on very small screens */
@media (max-width: 380px) {
  .hero-btn { padding: 11px 22px; font-size: 0.7rem; letter-spacing: 0.12em; }
  .hero-ctas { margin-top: var(--s-3); }
}

/* About: stats in 2-column layout on tiny screens */
@media (max-width: 400px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-stats .stat:last-child {
    grid-column: span 2;
    text-align: center;
  }
}

/* Services grid: portrait cards on tiny screens instead of landscape */
@media (max-width: 380px) {
  .svc-grid { grid-template-columns: 1fr !important; gap: var(--s-2) !important; }
  .svc-card { aspect-ratio: 16/10 !important; }
}

/* Founder: reduce image height and quote size on small screens */
@media (max-width: 540px) {
  .founder-img { aspect-ratio: 4/3; }
  .founder-text q { font-size: clamp(1.3rem, 4vw, 1.6rem); }
}

/* Testimonial: shrink quote on tiny screens */
@media (max-width: 380px) {
  .testimonial-quote { font-size: 1.2rem; }
  .testimonial-quote::before { font-size: 3.5rem; margin-bottom: -1.5rem; }
}

/* Contact: full-width submit button and better touch targets */
@media (max-width: 540px) {
  .btn-submit { width: 100%; justify-content: center; }
  .field input, .field textarea, .field select { padding: 20px 0 14px; }
  .contact-wrap { gap: var(--s-3); }
}

/* Press logos: left-aligned wrap on mobile */
@media (max-width: 540px) {
  .press-track { justify-content: flex-start; padding: 0 var(--s-3); gap: 1.25rem 2rem; }
}

/* Portfolio header: stack buttons on small screens */
@media (max-width: 400px) {
  .portfolio-grid > div[style] { flex-direction: column; align-items: flex-start; }
}

/* Journal header: stack on small screens */
@media (max-width: 400px) {
  .section .container > div[style*="justify-content:space-between"] { flex-direction: column; align-items: flex-start; }
}

/* Marquee: reduce font size slightly on very small screens */
@media (max-width: 380px) {
  .marquee-stack .lane span { font-size: 1.2rem; padding: 0 1.2rem; }
  .marquee-stack .lane.muted span { font-size: 1.5rem; }
}

/* Section padding: reduce on very small screens */
@media (max-width: 380px) {
  .section { padding: var(--s-5) 0; }
  .drift-gallery { padding: var(--s-5) 0; }
  .gallery-wall { padding: var(--s-5) 0; }
}

/* Stats strip: ensure 2 columns on small phones */
@media (max-width: 400px) {
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Featured villa meta: wrap tighter on mobile */
@media (max-width: 480px) {
  .featured-villa-meta { gap: 1rem; }
  .featured-villa { height: 65vh; min-height: 420px; }
}

/* Commercial grid: single column on small phones */
@media (max-width: 400px) {
  .commercial-grid { grid-template-columns: 1fr !important; }
  .commercial-tile.feature { grid-column: span 1 !important; height: 320px; }
  .commercial-tile { height: 220px; }
}

/* Video reel: 1 column on tiny screens */
@media (max-width: 380px) {
  .video-reel { grid-template-columns: 1fr; }
  .video-card { aspect-ratio: 16/9; }
}
