/* ============================================================
   EVANESCE INK — style.css
   Photo-driven editorial. Every decision serves the imagery.
   ============================================================ */

/* ─── VARIABLES ─── */
:root {
  --bg:          #0A0A0A;
  --text:        #F5F5F0;
  --gold:        #C9A84C;
  --gold-dim:    rgba(201, 168, 76, 0.18);
  --gold-border: rgba(201, 168, 76, 0.30);
  --muted:       rgba(245, 245, 240, 0.50);
  --overlay:     rgba(0, 0, 0, 0.45);
  --nav-h:       72px;

  --cg:   'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;

  --ease: 0.35s ease;
  --ease-long: 0.9s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── SELECTION ─── */
::selection { background: rgba(201, 168, 76, 0.22); color: var(--text); }

/* ─── FOCUS ─── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}


/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-border);
  transition: background var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.88);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-evanesce {
  font-family: var(--cg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}

.nav-logo-ink {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--text);
  text-transform: uppercase;
  opacity: 0.75;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.70;
  position: relative;
  padding-bottom: 3px;
  transition: opacity var(--ease), color var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 1;
  color: var(--gold);
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* YouTube iframe — covers full hero */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation: videoReveal 0.4s ease 2.5s forwards;
}

@keyframes videoReveal {
  to { opacity: 1; }
}

/* Solid mask inside the wrapper — lifts after wrapper is visible,
   guaranteeing the play indicator is gone before anyone sees the video */
.hero-video-mask {
  position: absolute;
  inset: 0;
  background: #0A0A0A;
  z-index: 2;
  pointer-events: none;
  animation: maskLift 0.6s ease 4.2s forwards;
}

@keyframes maskLift {
  to { opacity: 0; }
}

.hero-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;   /* 16:9 ratio */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 = 100*16/9 */
  border: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-eyebrow {
  font-family: var(--cg);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.hero-title {
  font-family: var(--cg);
  font-size: clamp(52px, 9vw, 80px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: rgba(245, 245, 240, 0.78);
  line-height: 1.75;
  max-width: 400px;
}

/* Hero CTA button */
.btn-hero {
  display: inline-block;
  padding: 14px 44px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
  border-radius: 2px;
  cursor: pointer;
  margin-top: 8px;
}

.btn-hero:hover,
.btn-hero:focus-visible {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.30);
  outline: none;
}


/* ══════════════════════════════════════════
   ORIGIN
══════════════════════════════════════════ */
.origin {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.origin-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.origin-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.origin-content {
  position: relative;
  z-index: 2;
  padding: 80px;
  max-width: 680px;
}

.origin-heading {
  font-family: var(--cg);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 28px;
}

.origin-body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: rgba(245, 245, 240, 0.85);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 20px;
}

.origin-disclaimer {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════
   ATMOSPHERE STRIP
══════════════════════════════════════════ */
.atmosphere {
  display: flex;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.atm-photo {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.atm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}

.atm-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 76, 0.12);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.atm-photo:hover img   { transform: scale(1.04); }
.atm-photo:hover::after { opacity: 1; }


/* ══════════════════════════════════════════
   FOUNDERS
══════════════════════════════════════════ */
.founders {
  background: var(--bg);
  padding-top: 100px;
}

.founders-header {
  text-align: center;
  padding-bottom: 56px;
}

.founders-heading {
  font-family: var(--cg);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 400;
  color: var(--text);
  margin-top: 8px;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.founder-panel {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.founder-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: transform 0.8s ease;
}

.founder-panel:hover .founder-bg { transform: scale(1.03); }

.founder-bg--zella {
  background-position: center top !important;
  filter: grayscale(50%) brightness(0.68) contrast(1.1);
}

.founder-bg--riley {
  background-position: center 20% !important;
  filter: grayscale(35%) brightness(0.70) contrast(1.08);
}

.founder-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.92));
  pointer-events: none;
}

.founder-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 44px;
  z-index: 2;
}

.founder-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.founder-role {
  font-family: var(--cg);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.founder-bio {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: rgba(245, 245, 240, 0.65);
  line-height: 1.72;
  max-width: 340px;
}

/* Stagger reveal for second panel */
.founder-panel:nth-child(2).reveal { transition-delay: 0.18s; }


/* ══════════════════════════════════════════
   WAITLIST
   Stage photo left, form right — mirrors contact layout
══════════════════════════════════════════ */
.waitlist {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.waitlist-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.waitlist-overlay {
  position: absolute;
  inset: 0;
  /* Dark on left (form) → transparent right (stage photo) */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.80) 35%,
    rgba(0, 0, 0, 0.42) 62%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.waitlist-content {
  position: relative;
  z-index: 2;
  width: 44%;
  max-width: 500px;
  padding: 80px 32px 80px 60px;
  margin-left: 4%;
}

.waitlist-heading {
  font-family: var(--cg);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 16px;
}

.waitlist-sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 36px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input {
  background: #1a1a1a;
  border: 1px solid rgba(245, 245, 240, 0.12);
  border-radius: 2px;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  width: 100%;
}

.field-input::placeholder { color: rgba(245, 245, 240, 0.22); }

.field-input:focus {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

/* Submit button */
.btn-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease), transform 0.1s ease;
  margin-top: 8px;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background: #d9bb8e;
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.25);
  outline: none;
}

.btn-submit:active { transform: scale(0.99); }

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-fine {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: rgba(245, 245, 240, 0.22);
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* Form states */
.form-success,
.form-error { padding: 8px 0; text-align: center; }

.success-title {
  font-family: var(--cg);
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 10px;
}

.success-body {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.error-msg {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 245, 240, 0.55);
  line-height: 1.7;
}

.error-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--ease);
}

.error-link:hover { opacity: 0.75; }


/* ══════════════════════════════════════════
   SUPPORT / DONATIONS
══════════════════════════════════════════ */
.support {
  background: #0d0d0d;
  border-top: 1px solid rgba(201, 168, 76, 0.14);
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
  padding: 120px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.support-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-heading {
  font-family: var(--cg);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 28px;
}

.support-heading em {
  font-style: italic;
  color: var(--gold);
}

.support-body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 48px;
}

.btn-support {
  display: inline-block;
  padding: 16px 52px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--ease), box-shadow var(--ease), transform 0.1s ease;
}

.btn-support:hover,
.btn-support:focus-visible {
  background: #d9bb8e;
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.28);
  outline: none;
}

.btn-support:active { transform: scale(0.99); }

.support-fine {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(245, 245, 240, 0.22);
  letter-spacing: 0.04em;
  margin-top: 20px;
  font-style: italic;
}


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: #050505;
  border-top: 1px solid rgba(245, 245, 240, 0.06);
  padding: 64px 24px 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  font-family: var(--cg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-info {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-link {
  color: var(--muted);
  transition: color var(--ease);
}

.footer-link:hover { color: var(--gold); }

.footer-ig {
  color: var(--muted);
  display: flex;
  transition: color var(--ease);
}

.footer-ig:hover { color: var(--gold); }

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(245, 245, 240, 0.20);
  letter-spacing: 0.04em;
}

.footer-legal {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(245, 245, 240, 0.18);
  letter-spacing: 0.03em;
  font-style: italic;
}


/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */

/* Hero fade-in on load */
.fade-hero {
  animation: fadeHero 1.4s ease forwards;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--ease-long), transform var(--ease-long);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal       { transition: none; }
  .fade-hero    { animation: none; opacity: 1; transform: none; }
  .atm-photo img,
  .founder-bg   { transition: none; }
}


/* ══════════════════════════════════════════
   MOBILE NAV DRAWER
══════════════════════════════════════════ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
}

.nav-overlay.open { display: block; }


/* ══════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE (≤768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ── */
  .navbar { padding: 0 20px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(75vw, 300px);
    background: #111;
    border-left: 1px solid rgba(245, 245, 240, 0.07);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 36px;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-link {
    font-size: 1rem;
    letter-spacing: 0.14em;
    opacity: 0.85;
  }

  /* ── Hero — video attempts to play on mobile (muted + inline) ── */
  /* Falls back to hero_fallback_silhouette.jpg if blocked by browser */

  .hero-title { font-size: clamp(44px, 12vw, 64px); }

  .hero-sub br.br-desktop { display: none; }

  /* ── Origin — auto height, centered content ── */
  .origin {
    min-height: auto;
    align-items: center;
    justify-content: center;
  }

  .origin-content {
    padding: 120px 28px 72px;
    text-align: center;
    max-width: 100%;
  }

  .origin-body { margin-inline: auto; }

  /* ── Atmosphere — stack vertically ── */
  .atmosphere {
    flex-direction: column;
    height: auto;
  }

  .atm-photo {
    width: 100%;
    height: 40vw;
    min-height: 200px;
    flex: none;
  }

  /* ── Founders — stack vertically ── */
  .founders { padding-top: 72px; }

  .founders-grid { grid-template-columns: 1fr; }

  .founder-panel {
    height: 70vh;
  }

  .founder-panel:nth-child(2).reveal { transition-delay: 0s; }

  .founder-text { padding: 32px 28px; }

  .founder-bio { max-width: 100%; }

  /* ── Waitlist — swap back to original photo on mobile ── */
  .waitlist { justify-content: center; }

  .waitlist-bg {
    background-image: url('./images/waitlist_bg.jpg') !important;
    background-position: center !important;
  }

  .waitlist-overlay {
    background: rgba(0, 0, 0, 0.64);
  }

  .waitlist-content {
    width: 100%;
    max-width: 100%;
    padding: 80px 24px 60px;
    margin-left: 0;
  }

  .waitlist-sub { max-width: 100%; }

  /* ── Footer ── */
  .footer { padding: 48px 24px 40px; }
}

@media (max-width: 480px) {
  .origin-heading { font-size: 30px; }
  .hero-title     { font-size: 42px; }
}



/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  /* Light on left (her face) → dark on right (readable text) */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.38) 38%,
    rgba(0, 0, 0, 0.80) 62%,
    rgba(0, 0, 0, 0.86) 100%
  );
}

.contact-content {
  position: relative;
  z-index: 2;
  width: 44%;
  max-width: 500px;
  padding: 80px 60px 80px 32px;
  margin-right: 4%;
}

.contact-heading {
  font-family: var(--cg);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: var(--text);
  margin-top: 8px;
  margin-bottom: 16px;
}

.contact-sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 380px;
}

.field-textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--sans);
  line-height: 1.6;
}

/* Contact mobile */
@media (max-width: 768px) {
  .contact {
    justify-content: center;
  }

  .contact-overlay {
    background: rgba(0, 0, 0, 0.70);
  }

  .contact-content {
    width: 100%;
    max-width: 100%;
    padding: 80px 24px 60px;
    margin-right: 0;
  }

  .contact-sub { max-width: 100%; }
}
