/* ─────────────────────────────────────────────
   SHREE DARSHAN — Coming Soon
   ───────────────────────────────────────────── */

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design tokens ─────────────────────────── */
:root {
  --bg:          #07070a;
  --gold:        #c9a96e;
  --gold-glow:   rgba(201, 169, 110, 0.12);
  --gold-border: rgba(201, 169, 110, 0.22);
  --cream:       #f5efe6;
  --cream-muted: rgba(245, 239, 230, 0.42);

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Montserrat', system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ──────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom,
      rgba(7,7,10,0.88) 0%,
      rgba(7,7,10,0.68) 50%,
      rgba(7,7,10,0.78) 100%),
    url('building-bg.jpg');
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: var(--ff-sans);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

/* ── Curtain intro ─────────────────────────── */
.curtain {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50%;
  background: #000;
  z-index: 9999;
  transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1) 0.2s;
}
.curtain--top    { top: 0; }
.curtain--bottom { bottom: 0; }
.curtain--top.open    { transform: translateY(-100%); }
.curtain--bottom.open { transform: translateY(100%); }

/* ── Particle canvas ───────────────────────── */
#canvas-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Film grain overlay ────────────────────── */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 100;
  animation: grain 0.18s steps(3) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-4%, 3%); }
  66%  { transform: translate(3%, -4%); }
  100% { transform: translate(-2%, 2%); }
}

/* ── Cursor glow ───────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  transition: left 1s ease, top 1s ease;
  will-change: left, top;
}

/* ── Page wrapper ──────────────────────────── */
.page {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

/* ── Reveal animation base ─────────────────── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.page.visible .anim-fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* ── Logo ──────────────────────────────────── */
.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: clamp(220px, 44vw, 380px);
  max-height: 130px;
  object-fit: contain;
  /* invert(1): black logo → white, white bg → near-black
     screen blend: near-black blends into dark page bg (invisible),
     white logo stays white — gives a clean floating logo effect */
  filter: invert(1);
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

.logo-text {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.logo-text:not(.hidden) { display: flex; }

.logo-name {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--cream);
}
.logo-tagline {
  font-family: var(--ff-sans);
  font-size: clamp(0.48rem, 1.2vw, 0.58rem);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--gold);
}

/* ── Ornamental divider ────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s var(--ease-out) 0.4s;
}
.page.visible .divider-line { transform: scaleX(1); }

.divider-gem {
  font-size: 0.45rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.5s ease 1.2s;
}
.page.visible .divider-gem { opacity: 1; }

/* ── Hero ──────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.eyebrow {
  font-family: var(--ff-sans);
  font-size: clamp(0.52rem, 1.3vw, 0.65rem);
  font-weight: 300;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Title — each line clips its inner span */
.title {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  /* Not in anim-fade-up — uses slide-up mask instead */
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.2em; /* prevents descender clip */
}

.title-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-expo);
}

.title-line:nth-child(1) .title-inner { transition-delay: 0.25s; }
.title-line:nth-child(2) .title-inner { transition-delay: 0.42s; }

.page.visible .title-inner { transform: translateY(0); }

.title .italic {
  font-style: italic;
  color: var(--gold);
}

.subtitle {
  font-family: var(--ff-sans);
  font-size: clamp(0.68rem, 1.6vw, 0.85rem);
  font-weight: 300;
  color: var(--cream-muted);
  max-width: 480px;
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ── Footer ────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.social-link {
  color: var(--cream-muted);
  transition: color 0.25s ease;
  display: flex;
}
.social-link:hover { color: var(--gold); }
.social-link svg { width: 16px; height: 16px; }

.copyright {
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(245,239,230,0.2);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 480px) {
  .page { gap: 1.2rem; }
  .title { font-size: clamp(2.4rem, 13vw, 4rem); }
}

@media (max-height: 680px) {
  .page { gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
}
