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

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #e8e5e0;
  --text: #1a1a1a;
  --text-secondary: #5c5854;
  --text-muted: #8a8580;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --announce-h: 36px;
  --header-total: calc(var(--announce-h) + var(--nav-h));
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Hide desktop gallery blocks on mobile by default */
.desktop-only {
  display: none;
}

/* ── Announcement bar ── */
.announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--announce-h);
  background: var(--text);
  color: #f5f3f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announce-text {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.announce-track {
  display: none;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 99;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.nav-sanskrit {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-latin {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
}

.nav-contact {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-contact:hover {
  color: var(--text);
}

/* ── Hero (mobile-first: centered coming soon) ── */
.hero {
  min-height: 100dvh;
  min-height: 100svh;
  padding: var(--header-total) 1.25rem 0;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 420px);
  height: min(90vw, 420px);
  background: radial-gradient(circle, rgba(232, 229, 224, 0.45) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-copy {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s var(--ease) both;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.logo-sanskrit {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 600;
  font-size: clamp(2.75rem, 14vw, 4rem);
  line-height: 1;
}

.logo-latin {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--text-secondary);
}

.coming-soon {
  font-size: clamp(0.6875rem, 3vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-line {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-line span {
  display: block;
  height: 1px;
  background: var(--border);
  animation: lineGrow 1.2s var(--ease) 0.3s forwards;
  transform: scaleX(0);
}

.hero-line span:nth-child(1) { width: 56px; }
.hero-line span:nth-child(2) { width: 28px; animation-delay: 0.45s; }
.hero-line span:nth-child(3) { width: 14px; animation-delay: 0.6s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  min-height: 48px;
  min-width: 160px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--text);
  color: #faf9f7;
  border: 1px solid var(--text);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-light {
  background: #f5f3f0;
  color: var(--text);
  border: 1px solid #f5f3f0;
}

/* ── Footer ── */
.footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem 1.75rem;
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.sep { opacity: 0.4; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

/* ══════════════════════════════════════════
   DESKTOP (901px+)
   ══════════════════════════════════════════ */
@media (min-width: 901px) {
  html {
    scroll-behavior: smooth;
  }

  .desktop-only {
    display: block;
  }

  .announce {
    overflow: hidden;
    justify-content: flex-start;
  }

  .announce-text {
    display: none;
  }

  .announce-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: ticker 18s linear infinite;
  }

  .announce-track span:nth-child(even) {
    opacity: 0.35;
  }

  .nav {
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  }

  .nav-contact {
    min-height: auto;
    font-size: 0.8125rem;
  }

  .hero {
    min-height: 100dvh;
    padding: calc(var(--header-total) + 2rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
    justify-content: center;
    overflow: hidden;
  }

  .hero::before {
    top: 15%;
    left: auto;
    right: -8%;
    transform: none;
    width: 45vw;
    height: 45vw;
    max-width: 480px;
    max-height: 480px;
  }

  .hero-inner {
    max-width: 1080px;
    flex: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 0 auto;
  }

  .hero-copy {
    text-align: left;
    align-items: flex-start;
    animation: fadeUp 0.9s var(--ease) both;
  }

  .logo-mark {
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .logo-sanskrit {
    font-size: clamp(3rem, 9vw, 5rem);
  }

  .logo-latin {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    letter-spacing: 0.55em;
    text-indent: 0.55em;
  }

  .coming-soon {
    letter-spacing: 0.55em;
    text-indent: 0.55em;
    margin-bottom: 1.75rem;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
  }

  .hero-line {
    justify-content: flex-start;
    margin-bottom: 2rem;
  }

  .hero-line span {
    transform-origin: left;
  }

  .hero-line span:nth-child(1) { width: 48px; }
  .hero-line span:nth-child(2) { width: 24px; }
  .hero-line span:nth-child(3) { width: 12px; }

  .btn {
    font-size: 0.8125rem;
    padding: 0.75rem 1.75rem;
    min-height: auto;
    min-width: auto;
  }

  /* Floating image cards */
  .hero-visual {
    position: relative;
    height: 400px;
  }

  .float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
    animation: float 7s ease-in-out infinite;
    overflow: hidden;
  }

  .float-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px;
  }

  .float-1 { top: 8%; left: 8%; width: 168px; z-index: 3; }
  .float-2 { top: 28%; right: 0; width: 188px; z-index: 4; animation-delay: -2.5s; }
  .float-2 img { aspect-ratio: 4/5; }
  .float-3 { bottom: 10%; left: 18%; width: 108px; z-index: 2; opacity: 0.88; animation-delay: -4s; }
  .float-4 { top: 52%; left: 42%; width: 96px; z-index: 1; opacity: 0.72; animation-delay: -1s; }

  .scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    opacity: 0.5;
    animation: bounce 2.5s ease-in-out infinite;
  }

  .section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem clamp(1.25rem, 4vw, 2.5rem);
  }

  .mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 1rem;
  }

  .mosaic-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.5s var(--ease);
  }

  .mosaic-item:hover {
    transform: translateY(-4px);
  }

  .mosaic-item:hover img {
    transform: scale(1.06);
  }

  .mosaic-item.tall { grid-row: span 2; }
  .mosaic-item.wide { grid-column: span 2; }

  .mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
  }

  .marquee-section {
    padding-top: 0;
    padding-bottom: 4rem;
  }

  .marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
  }

  .marquee-inner {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ticker 22s linear infinite;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }

  .marquee-inner span:nth-child(odd) {
    font-family: "Noto Sans Devanagari", sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: none;
  }

  .closing {
    padding-bottom: 2rem;
  }

  .closing-box {
    text-align: center;
    background: var(--text);
    color: #f5f3f0;
    padding: clamp(3rem, 8vw, 5rem) 2rem;
    border-radius: 4px;
  }

  .closing-logo {
    display: block;
    font-family: "Noto Sans Devanagari", sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .closing-latin {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    opacity: 0.55;
    margin-bottom: 1.5rem;
  }

  .closing-soon {
    font-size: 0.75rem;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2rem;
  }

  .footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem 2.5rem;
    font-size: 0.75rem;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }

  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
  }

  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-line span {
    transform: scaleX(1);
  }
}
