/* ==============================================================
   RAMAAJAY Luxury Horology — Design System
   Palette: Midnight Black | Grand Gold | Ivory | Sapphire
   ============================================================== */

:root {
  --c-black:    #020205;
  --c-dark:     #08080c;
  --c-mid:      #12121a;
  --c-stone:    #6b6b7a;
  --c-warm:     #d4af37;
  --c-white:    #050508; /* Global Background */
  --c-offwhite: #0a0a0f; /* Section Contrast */
  --c-text:     #e8e4dd; /* Ivory Text */
  --c-accent:   #d4af37;
  --f-serif:    'Cormorant Garamond', Georgia, serif;
  --f-sans:     'Inter', system-ui, sans-serif;
  --nav-h:      72px;
  --pad:        clamp(80px, 10vw, 160px);
  --side:       clamp(24px, 4vw, 72px);
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* Typography helpers */
.section-label {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.2rem;
  display: block;
  text-align: center;
}
.section-title {
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 2rem;
}

/* Dividers */
.divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 42px;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease);
}
.btn--outline  { border: 1px solid var(--c-text); color: var(--c-text); background: transparent; }
.btn--outline:hover { background: var(--c-text); color: var(--c-black); }
.btn--filled   { background: var(--c-accent); color: var(--c-black); border: 1px solid var(--c-accent); width: 100%; }
.btn--filled:hover { background: var(--c-text); border-color: var(--c-text); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side);
  z-index: 100;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(5,5,8,0.92);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212,175,55,0.1);
}
.nav__logo {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--c-accent); /* Branded gold */
  text-shadow: 0 0 20px rgba(212,175,55,0.2);
}
.nav__links {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(232,228,221,0.6);
  transition: all 0.3s;
}
.nav__links a:hover { color: var(--c-accent); }
.nav__cta  { border: 1px solid var(--c-accent) !important; padding: 10px 24px; color: var(--c-accent) !important; }
.nav__cta:hover { background: var(--c-accent) !important; color: var(--c-black) !important; }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--c-black);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    transparent 50%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 2;
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: heroFadeIn 1.5s 2.2s ease forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scrollPulse 2.2s 3.2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(1) translateY(0); opacity: 0.8; }
  100% { transform: scaleY(0.2) translateY(30px); opacity: 0; }
}

/* ── INTRO ── */
.intro {
  padding: var(--pad) var(--side);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.intro__headline {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 300;
  line-height: 1.05;
  margin: 1rem 0 2.5rem;
}
.intro__headline em { font-style: italic; color: var(--c-accent); }
.intro__body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--c-stone);
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

/* ── WORK ── */
.work  { padding: var(--pad) var(--side); background: var(--c-white); }
.work__header { margin-bottom: 5.5rem; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Symmetrical 2-column grid */
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.project { 
  position: relative; 
  overflow: hidden; 
  cursor: pointer; 
  background: var(--c-dark); 
  border: 1px solid rgba(212,175,55,0.05); 
  aspect-ratio: 4 / 5;
}
.project--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.project__img-wrap { width: 100%; height: 100%; overflow: hidden; }
.project__img-wrap img { transition: transform 1.5s var(--ease); }
.project:hover .project__img-wrap img { transform: scale(1.05); }
.project__meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: var(--c-text);
}
.project__tag  { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); display: block; margin-bottom: 8px; }
.project__title { font-family: var(--f-serif); font-size: 1.6rem; font-weight: 300; letter-spacing: 0.05em; }
.project__loc  { font-size: 0.78rem; color: rgba(232,228,221,0.5); margin-top: 6px; }

/* ── QUOTE ── */
.quote {
  padding: clamp(100px, 12vw, 180px) var(--side);
  background: var(--c-black);
  text-align: center;
}
.quote__text {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--c-text);
  max-width: 900px;
  margin: 0 auto;
}
.quote__text em { font-style: italic; color: var(--c-accent); }

/* ── PROCESS ── */
.process { padding: var(--pad) var(--side); }
.process__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.process__left { position: sticky; top: calc(var(--nav-h) + 40px); }
.process__body { font-size: 0.95rem; line-height: 1.8; color: var(--c-stone); margin-top: 1.5rem; }
.process__steps { display: flex; flex-direction: column; }
.step {
  padding: 36px 0;
  border-top: 1px solid var(--c-offwhite);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
}
.step:last-child { border-bottom: 1px solid var(--c-offwhite); }
.step__num { font-family: var(--f-serif); font-size: 1.8rem; font-weight: 300; color: var(--c-offwhite); line-height: 1; padding-top: 4px; }
.step__title { font-family: var(--f-serif); font-size: 1.2rem; font-weight: 400; margin-bottom: 8px; }
.step__desc { font-size: 0.9rem; color: var(--c-stone); line-height: 1.75; }

/* ── STATS ── */
.stats { padding: clamp(60px, 8vw, 120px) var(--side); background: var(--c-dark); }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.stat { color: var(--c-white); }
.stat__num  { font-family: var(--f-serif); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; color: var(--c-warm); }
.stat__unit { font-family: var(--f-serif); font-size: 2rem; color: var(--c-warm); }
.stat__label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-stone); margin-top: 8px; }

/* ── TEAM ── */
.team { padding: var(--pad) var(--side); background: var(--c-offwhite); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: 3rem auto 0; }
.team__member { text-align: center; }
.team__photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 0 auto 1.2rem; filter: grayscale(0.25); transition: filter 0.3s; }
.team__member:hover .team__photo { filter: none; }
.team__name { font-family: var(--f-serif); font-size: 1.1rem; font-weight: 400; }
.team__role { font-size: 0.72rem; color: var(--c-stone); margin-top: 4px; letter-spacing: 0.06em; }

/* ── CONTACT ── */
.contact { padding: var(--pad) var(--side); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact__body { font-size: 0.95rem; color: var(--c-stone); line-height: 1.8; margin: 1.5rem 0 2rem; }
.contact__info p { font-size: 0.85rem; color: var(--c-stone); line-height: 2; }
.contact__info strong { color: var(--c-black); }
.contact__info a:hover { color: var(--c-accent); }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-stone); }
.field input, .field select, .field textarea {
  border: none; border-bottom: 1px solid var(--c-offwhite);
  background: transparent;
  padding: 10px 0;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--c-black);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-black); }
.form__note { font-size: 0.8rem; color: var(--c-stone); }

/* ── FOOTER ── */
.footer { background: var(--c-black); padding: 48px var(--side); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; max-width: 1200px; margin: 0 auto; }
.footer__brand { font-family: var(--f-serif); font-size: 1.2rem; letter-spacing: 0.2em; color: var(--c-white); }
.footer__links { display: flex; gap: 32px; }
.footer__links a { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__links a:hover { color: var(--c-white); }
.footer__copy { font-size: 0.68rem; color: rgba(255,255,255,0.28); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
  .project--large, .project--wide { grid-column: span 2; }
  .project--wide { height: 300px; }
  .project:not(.project--large):not(.project--wide) { grid-column: span 1; }
  .process__inner { grid-template-columns: 1fr; }
  .process__left  { position: static; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(16px);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 99;
  }
  .nav__links.open a { font-size: 1rem; }
  .stats__inner    { grid-template-columns: 1fr 1fr; }
  .contact__inner  { grid-template-columns: 1fr; }
  .team__grid      { grid-template-columns: 1fr; }
  .work__grid      { display: flex; flex-direction: column; }
  .project         { height: 260px; }
  .footer__inner   { flex-direction: column; text-align: center; }
  .footer__links   { justify-content: center; }
}
