/* ==========================================================================
   AVYAKT (अव्यक्त) — Wear the Unexpressed
   ========================================================================== */

:root {
  --charcoal:      #2C2A27;
  --charcoal-deep: #1A1917;
  --cream:         #E8E2D6;
  --cream-dim:     rgba(232, 226, 214, 0.6);
  --cream-faint:   rgba(232, 226, 214, 0.22);
  --cream-ghost:   rgba(232, 226, 214, 0.12);

  --serif:  'Cormorant Garamond', 'Georgia', serif;
  --system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--charcoal-deep);
  color: var(--cream);
  overflow: hidden;
}

html.loaded { overflow: auto; }

body {
  font-family: var(--system);
  line-height: 1.55;
  overflow-x: hidden;
}

::selection {
  background: var(--cream);
  color: var(--charcoal-deep);
}

img { display: block; max-width: 100%; }


/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--charcoal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

.loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 80px;
  height: 80px;
  filter: invert(1);
  opacity: 0.9;
  animation: spinIn 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes spinIn {
  0%   { opacity: 0; transform: rotate(0deg) scale(0.7); }
  15%  { opacity: 0.9; transform: rotate(0deg) scale(1); }
  70%  { opacity: 0.9; transform: rotate(360deg) scale(1); }
  100% { opacity: 0.9; transform: rotate(360deg) scale(0.55); }
}


/* ==========================================================================
   SITE
   ========================================================================== */
.site {
  opacity: 0;
}

.site.visible {
  animation: reveal 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ==========================================================================
   HERO — Full viewport
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

/* Left-heavy gradient veil */
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(20, 19, 17, 0.94) 0%,
    rgba(20, 19, 17, 0.88) 30%,
    rgba(20, 19, 17, 0.55) 52%,
    rgba(20, 19, 17, 0.12) 78%,
    rgba(20, 19, 17, 0.0)  100%
  );
}


/* ==========================================================================
   LOGO — Centered at top
   ========================================================================== */
.site-logo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.logo-mark {
  width: 60px;
  height: 60px;
  filter: invert(1);
  opacity: 0.85;
}


/* ==========================================================================
   LEFT PANEL — Brand copy + form
   ========================================================================== */
.hero-panel {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 50%;
  max-width: 540px;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3.5rem 5rem;
}


/* ── Body ──────────────────────────────────────────────── */
.panel-body {
  display: flex;
  flex-direction: column;
}

/* Brand name block */
.brand-block {
  margin-bottom: 1.8rem;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.brand-script {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
}

/* Tagline */
.tagline {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 1.8rem;
}

/* Divider */
.divider {
  width: 36px;
  height: 1px;
  background: var(--cream-faint);
  margin-bottom: 1.8rem;
}

/* Status */
.status {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
  margin-bottom: 0.9rem;
}

/* Descriptor */
.descriptor {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--cream-dim);
  margin-bottom: 2.5rem;
}


/* ── Email signup ──────────────────────────────────────── */
.signup-block {
  max-width: 420px;
}

.signup-label {
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cream-dim);
  margin-bottom: 0.85rem;
}

.signup-form {
  position: relative;
}

.signup-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--cream-faint);
  transition: border-color 0.4s ease;
}

.signup-row:focus-within {
  border-bottom-color: var(--cream-dim);
}

.signup-input {
  flex: 1;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--system);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--cream);
  padding: 0.85rem 0;
}

.signup-input::placeholder {
  color: var(--cream-ghost);
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.signup-input:focus::placeholder {
  opacity: 0.35;
}

.signup-submit {
  appearance: none;
  background: transparent;
  border: none;
  font-family: var(--system);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  padding: 0.85rem 0 0.85rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.signup-submit:hover { color: var(--cream); }
.signup-submit:disabled { opacity: 0.3; cursor: default; }

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* Message */
.form-msg {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-top: 0.65rem;
  min-height: 1.1rem;
  color: var(--cream-dim);
}

.form-msg.error { color: #C87A5A; }


/* ==========================================================================
   FOOTER — Full width, pinned to bottom
   ========================================================================== */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.ig-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ig-link:hover { color: var(--cream); }

.ig-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-copy { color: var(--cream-faint); }


/* ==========================================================================
   CONFIRMATION SCREEN — Full page after email submit
   ========================================================================== */
.confirm-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--charcoal-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.confirm-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-logo {
  width: 72px;
  height: 72px;
  filter: invert(1);
  opacity: 0.85;
}

.confirm-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--cream-dim);
  text-align: center;
  max-width: 400px;
}

.confirm-ig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.confirm-ig-hint {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-faint);
}

.confirm-ig-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.confirm-ig-link:hover {
  color: var(--cream);
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.anim {
  opacity: 0;
  transform: translateY(14px);
}

.site.visible .anim {
  animation: fadeUp 0.7s ease forwards;
}

.site.visible .anim-1 { animation-delay: 0.1s; }
.site.visible .anim-2 { animation-delay: 0.2s; }
.site.visible .anim-3 { animation-delay: 0.35s; }
.site.visible .anim-4 { animation-delay: 0.5s; }
.site.visible .anim-5 { animation-delay: 0.65s; }
.site.visible .anim-6 { animation-delay: 0.8s; }

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


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .hero-panel {
    width: 58%;
    padding: 5rem 2.5rem;
  }

  .site-footer {
    padding: 1.5rem 2.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero-image {
    object-position: 55% center;
  }

  .hero-veil {
    background: linear-gradient(
      to bottom,
      rgba(20, 19, 17, 0.94) 0%,
      rgba(20, 19, 17, 0.85) 40%,
      rgba(20, 19, 17, 0.55) 70%,
      rgba(20, 19, 17, 0.30) 100%
    );
  }

  .site-logo {
    padding: 1.5rem 0;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
  }

  .hero-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 5rem 1.75rem 4rem;
  }

  .brand-name {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
  }

  .divider {
    margin-bottom: 1.4rem;
  }

  .descriptor {
    margin-bottom: 2rem;
  }

  .signup-block {
    max-width: none;
  }

  .site-footer {
    padding: 1.25rem 1.75rem;
  }

  .confirm-logo {
    width: 56px;
    height: 56px;
  }
}

/* Short screens */
@media (max-height: 680px) {
  .hero-panel {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .brand-block { margin-bottom: 1.2rem; }
  .tagline { margin-bottom: 1.2rem; }
  .divider { margin-bottom: 1.2rem; }
  .status { margin-bottom: 0.5rem; }
  .descriptor { margin-bottom: 1.6rem; }
}

@media (max-height: 560px) {
  .hero-panel {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .brand-block { margin-bottom: 0.8rem; }
  .tagline { font-size: 1.3rem; margin-bottom: 0.8rem; }
  .divider { margin-bottom: 0.8rem; }
  .descriptor { margin-bottom: 1.2rem; font-size: 0.85rem; }
}
