:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6f6f6f;
  --line: #d9d9d9;
  --gold: #c6a972;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

body {
  min-height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
  pointer-events: none;
}

main {
  width: min(100%, 1300px);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  min-height: calc(100dvh - clamp(100px, 16vh, 160px));
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: clamp(1.5rem, 5vh, 3.5rem);
  padding: clamp(1.25rem, 4vh, 2.5rem) 1rem 0;
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: min(480px, 68vw);
  height: auto;
  display: block;
}

.sparkle-line {
  width: min(360px, 54vw);
  height: 14px;
  margin: 0.15rem 0 0;
  position: relative;
}

.sparkle-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #d7c39a 18%,
    #e8dcc4 52%,
    #d7c39a 82%,
    transparent 100%
  );
}

.sparkle-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 8% 42%,
      rgba(226, 196, 141, 0.95) 0 1px,
      transparent 1.6px
    ),
    radial-gradient(
      circle at 24% 62%,
      rgba(223, 188, 128, 0.7) 0 1px,
      transparent 1.6px
    ),
    radial-gradient(
      circle at 50% 28%,
      rgba(238, 216, 174, 1) 0 1.3px,
      transparent 2px
    ),
    radial-gradient(
      circle at 74% 62%,
      rgba(223, 188, 128, 0.7) 0 1px,
      transparent 1.6px
    ),
    radial-gradient(
      circle at 92% 42%,
      rgba(226, 196, 141, 0.95) 0 1px,
      transparent 1.6px
    );
  opacity: 0.8;
  animation: sparklePulse 2.8s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(480px, 1.35fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
  margin: -0.8rem 0 0;
}

.hero-text-block {
  text-align: left;
  max-width: 640px;
}

.hero-figure {
  width: min(920px, 100%);
  margin: 0 0 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.hero-figure::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.11),
    rgba(0, 0, 0, 0)
  );
  filter: blur(9px);
  z-index: -1;
}

.hero-message {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.5;
  margin: 0 0 1.15rem;
  max-width: 620px;
}

.divider {
  width: 180px;
  height: 1px;
  margin: 1rem auto 1.3rem;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--line) 20%,
    var(--line) 80%,
    transparent 100%
  );
}

.coming-soon {
  font-size: 1.08rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.7rem;
}

.email-form {
  width: min(680px, 100%);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
}

.email-form input {
  width: 100%;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  font:
    500 1.05rem/1.1 "Cormorant Garamond",
    "Times New Roman",
    serif;
  padding: 0.9rem 1rem;
  color: #202020;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.email-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 169, 114, 0.2);
}

.email-form button {
  border: 1px solid #191919;
  border-radius: 4px;
  background: #111111;
  color: #ffffff;
  font:
    600 0.96rem/1 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.92rem 1.85rem;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.email-form button:hover {
  background: #ffffff;
  color: #111111;
  transform: translateY(-2px);
}

.email-form button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-message {
  min-height: 1.45rem;
  margin: 0.95rem 0 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.form-message.error {
  color: #7c1f1f;
}

.form-message.success {
  color: #4e4a37;
}

.form-footer {
  margin-top: 1.25rem;
}

.form-footer-line {
  width: 48px;
  height: 1px;
  margin: 0 auto 0.9rem;
  background: linear-gradient(
    to right,
    transparent 0%,
    #c4c4c4 50%,
    transparent 100%
  );
}

.form-whisper,
.form-tagline {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.form-whisper {
  margin-bottom: 0.35rem;
}

.form-tagline {
  font-size: 0.75rem;
  color: #a8a8a8;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
}

.fade-in.visible {
  animation: fadeLift 800ms ease forwards;
}

@keyframes fadeLift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sparklePulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

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

/* Tablet: single-column layout to avoid grid overflow (desktop unchanged) */
@media (max-width: 900px) and (min-width: 641px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-text-block {
    text-align: center;
    max-width: 100%;
    order: 2;
  }

  .hero-figure {
    width: min(85vw, 520px);
    margin: 0 auto;
    order: 1;
  }

  .hero-message {
    margin-left: auto;
    margin-right: auto;
  }

  .email-form {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 400px;
  }

  .email-form button {
    width: 100%;
  }

  .form-message {
    text-align: center;
  }
}

/* Mobile: full small-screen adjustments (desktop unchanged) */
@media (max-width: 640px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0));
    box-sizing: border-box;
  }

  main {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .brand-header {
    margin: 0;
    margin-top: env(safe-area-inset-top, 0);
    padding: 1.5rem 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .brand-logo {
    width: min(320px, 82vw);
  }

  .sparkle-line {
    width: min(260px, 70vw);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    box-sizing: border-box;
  }

  .hero-text-block {
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    order: 2;
    box-sizing: border-box;
  }

  .hero-figure {
    width: 100%;
    max-width: min(94vw, 400px);
    margin: 0 auto;
    padding: 0;
    order: 1;
    box-sizing: border-box;
  }

  .hero-message {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  .coming-soon {
    letter-spacing: 0.24em;
    margin-bottom: 1.4rem;
  }

  .email-form {
    grid-template-columns: 1fr;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .email-form input {
    min-height: 48px;
    padding: 0.85rem 1rem;
    font-size: 16px; /* avoids zoom on focus in iOS */
  }

  .email-form button {
    width: 100%;
    min-height: 48px;
    padding: 0.95rem 1.25rem;
  }

  .form-message {
    text-align: center;
  }
}

@media (max-height: 760px) and (min-width: 641px) {
  .brand-logo {
    width: min(420px, 62vw);
  }

  .sparkle-line {
    margin-bottom: 1.1rem;
  }

  .hero-message {
    font-size: clamp(1.2rem, 2.1vw, 1.85rem);
  }
}
