/* Twyla — coming-soon landing
   Aesthetic: "after-hours studio" — warm ink, a drifting stage-light glow,
   fine film grain, high-contrast Fraunces display against Hanken Grotesk. */

:root {
  --ink: #0a0911;             /* cool deep ink */
  --ink-rise: #191026;        /* purple-tinted lift behind the glow */
  --bone: #f2eef6;            /* primary near-white (faint cool) */
  --bone-dim: #9b93a6;        /* muted captions */
  --pink: #f0609f;            /* brand pink */
  --pink-soft: #f58cc0;       /* readable pink on dark */
  --purple: #9a5de6;          /* brand purple */
  --line: rgba(242, 238, 246, 0.12);
  --pad: clamp(1.4rem, 4vw, 3.75rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--bone);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Atmosphere ───────────────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(125% 125% at 72% -12%, var(--ink-rise) 0%, var(--ink) 55%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.glow-1 {
  width: 58vw; height: 58vw;
  left: -8vw; top: -22vh;
  background: radial-gradient(circle, rgba(240, 96, 159, 0.22), transparent 64%);
  animation: drift1 23s ease-in-out infinite alternate;
}
.glow-2 {
  width: 46vw; height: 46vw;
  right: -12vw; bottom: -18vh;
  background: radial-gradient(circle, rgba(138, 92, 240, 0.2), transparent 65%);
  animation: drift2 29s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(7vw, 6vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-6vw, -5vh) scale(1.1); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Frame ────────────────────────────────────────────────────── */
.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--pad);
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--bone);
}
.logo {
  display: block;
  height: clamp(26px, 3vw, 34px);
  width: auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  white-space: nowrap;
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(240, 96, 159, 0.55);
  animation: pulse 2.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 96, 159, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(240, 96, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 96, 159, 0); }
}

/* ── Hero (editorial, left-aligned, vertically centred) ───────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 46rem;
  padding: clamp(2.5rem, 8vh, 6rem) 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.eyebrow-line {
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
}
.headline {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(2.7rem, 8.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.headline em {
  font-style: italic;
  font-weight: 420;
  background: linear-gradient(110deg, #f57cb6 0%, #b06ee8 55%, #9a5de6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pitch {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(243, 236, 227, 0.74);
}

/* ── Access form ──────────────────────────────────────────────── */
.access { margin-top: 2.5rem; }
.micro {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 30rem;
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field:focus-within {
  border-color: rgba(240, 96, 159, 0.5);
  box-shadow: 0 0 0 4px rgba(240, 96, 159, 0.12);
  background: rgba(255, 255, 255, 0.045);
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--bone);
  font: inherit;
  padding: 0.7rem 0;
}
.field input::placeholder { color: rgba(243, 236, 227, 0.4); }
.field input:focus { outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(120deg, #f0609f 0%, #9a5de6 100%);
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px -10px rgba(154, 93, 230, 0.6);
  filter: brightness(1.05);
}
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(2px); }

.note {
  margin: 0.95rem 0 0;
  font-size: 0.85rem;
  color: var(--bone-dim);
}
.success {
  margin: 2.5rem 0 0;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--pink-soft);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--bone-dim);
}
.footer-tag { text-align: right; }

/* ── Reveal on load ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 560px) {
  .field { flex-wrap: wrap; border-radius: 1.4rem; padding: 0.5rem; }
  .field input { flex: 1 1 100%; padding: 0.6rem 0.75rem; }
  .btn { flex: 1 1 100%; justify-content: center; padding: 0.8rem; }
  .footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .footer-tag { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  .glow { animation: none; }
  .pill .dot { animation: none; }
  .btn:hover svg { transform: none; }
}
