/* =========================================================================
   MIRAN HILLS — Coming Soon
   Standalone splash. Reuses design tokens from styles.css. No motion layer.
   ========================================================================= */

.cs {
  min-height: 100vh;
  background: var(--ink);
}

/* ---------- Hero shell ---------- */
.cs-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.cs-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cs-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Ink wash keeps the type legible over photography. */
.cs-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(10,10,10,0.22) 0%, rgba(10,10,10,0.52) 72%, rgba(10,10,10,0.70) 100%);
}
/* Light film grain — opacity controls how much noise shows. */
.cs-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 180px 180px;
  opacity: 0.35;
}

/* ---------- Content stack ---------- */
.cs-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: var(--gutter);
  text-align: center;
  color: var(--linen);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-logo {
  height: 64px;
  color: var(--linen);          /* mask stencil inherits currentColor */
  margin-bottom: clamp(28px, 5vh, 56px);
}

.cs-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mauve-soft);
  margin-bottom: 22px;
}

.cs-title {
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-size: clamp(34px, 7vw, 72px);
  margin-bottom: 22px;
}

.cs-sub {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244,239,228,0.78);
  max-width: 46ch;
  margin-bottom: clamp(32px, 5vh, 52px);
}

/* ---------- Notify form ---------- */
.cs-form {
  width: 100%;
  max-width: 480px;
}
.cs-form__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cs-form__row {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(244,239,228,0.30);
  transition: border-color 0.3s var(--ease);
}
.cs-form__row:focus-within { border-color: var(--linen); }

.cs-input {
  flex: 1 1 auto;
  padding: 14px 4px;
  font-size: 16px;          /* >=16px avoids iOS zoom-on-focus */
  font-weight: 400;
  color: var(--linen);
}
.cs-input::placeholder { color: rgba(244,239,228,0.45); }

.cs-btn {
  flex: 0 0 auto;
  padding: 14px 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--linen);
  white-space: nowrap;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cs-btn:hover { color: var(--mauve-soft); }

/* Validation / success feedback */
.cs-form__message {
  min-height: 1.4em;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: left;
}
.cs-form__message[data-state="error"]   { color: #E7A6A0; }
.cs-form__message[data-state="success"] { color: var(--teal-soft); }

.cs-form.is-done .cs-form__row { opacity: 0.45; pointer-events: none; }

/* ---------- Footer line ---------- */
.cs-footer {
  margin-top: clamp(40px, 7vh, 72px);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,239,228,0.55);
}
.cs-footer a {
  color: rgba(244,239,228,0.8);
  border-bottom: 1px solid rgba(244,239,228,0.3);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cs-footer a:hover { color: var(--linen); border-color: var(--linen); }
.cs-footer__sep { margin: 0 6px; }

/* ---------- Entrance (CSS only, disabled for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cs-content > * {
    opacity: 0;
    transform: translateY(16px);
    animation: cs-rise 0.9s var(--ease-expo) forwards;
  }
  .cs-logo    { animation-delay: 0.05s; }
  .cs-eyebrow { animation-delay: 0.18s; }
  .cs-title   { animation-delay: 0.30s; }
  .cs-sub     { animation-delay: 0.44s; }
  .cs-form    { animation-delay: 0.58s; }
  .cs-footer  { animation-delay: 0.72s; }
}
@keyframes cs-rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .cs-form__row { flex-direction: column; gap: 0; }
  .cs-btn { align-self: flex-start; padding-left: 0; }
}
