/*
 * Blush V2 — Moonlit Velvet
 * A cooler, more mysterious interpretation.
 * Content floats in darkness with a single breathing orb.
 */

/* ─────────────────────────────────────────────────────────
   Typography — DM Serif Display + Inter
   ───────────────────────────────────────────────────────── */

:root {
  /* Spacing scale */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;

  /* Form width */
  --form-w: min(360px, 78vw);

  /* Typography */
  --font-logo: "DM Serif Display", serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;

  /* Colors — oxblood/raspberry, not chocolate */
  --void: #0a0507;
  --mid: #2a0b12;
  --ember: #5b0f1f;

  /* Cream tones */
  --cream: rgba(245, 231, 210, 0.92);
  --cream-soft: rgba(245, 231, 210, 0.62);

  /* Text — warm cream */
  --text: rgba(240, 221, 196, 0.92);
  --text-soft: rgba(240, 221, 196, 0.70);
  --text-whisper: rgba(240, 210, 190, 0.45);

  /* Borders & edges */
  --edge: rgba(240, 200, 180, 0.10);
  --edge-hover: rgba(244, 168, 154, 0.20);

  /* The orb — coral glow */
  --orb-core: rgba(244, 168, 154, 0.35);
  --orb-mid: rgba(232, 136, 122, 0.20);
  --orb-outer: rgba(200, 100, 90, 0.10);

  /* Focus ring */
  --ring: rgba(244, 168, 154, 0.25);
  --ring-outer: rgba(232, 136, 122, 0.10);
}

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

html {
  height: 100%;
}

html, body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(550px 400px at 50% 40%, rgba(110, 24, 46, 0.18), transparent 60%),
    radial-gradient(480px 350px at 55% 50%, rgba(90, 20, 38, 0.12), transparent 62%),
    radial-gradient(900px 700px at 20% 80%, rgba(0, 0, 0, 0.40), transparent 60%),
    var(--void);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Force form controls to inherit */
button, input, textarea, select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* ─────────────────────────────────────────────────────────
   The Orb — single soft light source, bottom-right
   ───────────────────────────────────────────────────────── */

.orb {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 75vmax;
  height: 55vmax;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(110, 24, 46, 0.55) 0%,
    rgba(95, 20, 38, 0.30) 30%,
    rgba(75, 18, 32, 0.12) 50%,
    transparent 70%
  );
  filter: blur(90px);
  transform: translate(-50%, -50%);
  opacity: 0.85;
  will-change: opacity, transform;
  animation:
    orb-breathe 6s ease-in-out infinite,
    orb-drift 7s ease-in-out infinite;
}

@keyframes orb-breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes orb-drift {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1, 1);
  }
  /* Visible wave-like stretches */
  15% {
    transform: translate(-50%, -50%) scale(1.20, 0.88);
  }
  30% {
    transform: translate(-50%, -50%) scale(1, 1);
  }
  45% {
    transform: translate(-50%, -50%) scale(0.88, 1.18);
  }
  60% {
    transform: translate(-50%, -50%) scale(1, 1);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.15, 0.90);
  }
  90% {
    transform: translate(-50%, -50%) scale(0.92, 1.12);
  }
}

/* Mouse following — JS controls transform, keep breathing */
.orb.mouse-active {
  animation: orb-breathe 8s ease-in-out infinite;
}

/* Settle lower when user is typing — very visible drift */
.orb.at-rest {
  animation: none;
  transform: translate(-50%, -5%) scale(1.25, 0.82);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sensual pulse on keystroke — like a heartbeat */
.orb.pulse {
  animation: keystroke-pulse 0.35s ease-out forwards;
}

@keyframes keystroke-pulse {
  0% {
    opacity: 0.85;
    filter: blur(90px) brightness(1);
  }
  40% {
    opacity: 1;
    filter: blur(75px) brightness(1.4);
  }
  100% {
    opacity: 0.85;
    filter: blur(90px) brightness(1);
  }
}

/* ─────────────────────────────────────────────────────────
   Waves — concentric ripples emanating from center
   ───────────────────────────────────────────────────────── */

.waves {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200vmax;
  height: 200vmax;
  pointer-events: none;
  z-index: 0;
}

.waves::before,
.waves::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(80px);
}

/* Inner wave - faster pulse */
.waves::before {
  width: 70%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(110, 24, 46, 0.20) 0%,
    rgba(90, 20, 38, 0.12) 40%,
    transparent 70%
  );
  animation: wave-pulse 12s ease-in-out infinite;
}

/* Outer wave - slower, larger pulse */
.waves::after {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(95, 22, 40, 0.14) 0%,
    rgba(75, 18, 32, 0.07) 50%,
    transparent 75%
  );
  animation: wave-pulse 18s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes wave-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────────────────
   Bokeh — soft floating circles, dreamy depth
   ───────────────────────────────────────────────────────── */

.bokeh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bokeh::before,
.bokeh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  animation: bokeh-float 20s ease-in-out infinite;
}

.bokeh::before {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(244, 168, 154, 0.15) 0%, transparent 70%);
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.bokeh::after {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 200, 180, 0.12) 0%, transparent 70%);
  top: 60%;
  right: 15%;
  animation-delay: -8s;
  animation-duration: 22s;
}

@keyframes bokeh-float {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  15% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
    transform: translateY(-30px) scale(1.1);
  }
  85% {
    opacity: 0.5;
  }
}

/* ─────────────────────────────────────────────────────────
   Dust Motes — tiny particles drifting upward
   ───────────────────────────────────────────────────────── */

.dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dust::before,
.dust::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 230, 210, 0.4);
  filter: blur(1px);
  animation: dust-rise linear infinite;
}

.dust::before {
  width: 3px;
  height: 3px;
  left: 25%;
  bottom: -10px;
  animation-duration: 18s;
  animation-delay: 0s;
}

.dust::after {
  width: 2px;
  height: 2px;
  left: 70%;
  bottom: -10px;
  animation-duration: 22s;
  animation-delay: -7s;
}

@keyframes dust-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-110vh) translateX(30px);
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────────────────
   Light Leak — soft warm glow at edges
   ───────────────────────────────────────────────────────── */

.light-leak {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.light-leak::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 60%;
  top: -10%;
  right: -15%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 180, 160, 0.08) 0%,
    rgba(244, 140, 130, 0.04) 40%,
    transparent 70%
  );
  filter: blur(60px);
  animation: leak-drift 30s ease-in-out infinite;
}

.light-leak::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 50%;
  bottom: -5%;
  left: -10%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 200, 180, 0.06) 0%,
    rgba(232, 160, 150, 0.03) 40%,
    transparent 70%
  );
  filter: blur(50px);
  animation: leak-drift 35s ease-in-out infinite reverse;
  animation-delay: -15s;
}

@keyframes leak-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translate(5%, 3%) scale(1.1);
    opacity: 1;
  }
  66% {
    transform: translate(-3%, -2%) scale(0.95);
    opacity: 0.7;
  }
}

/* ─────────────────────────────────────────────────────────
   Vignette — heavy edges fade to true darkness
   ───────────────────────────────────────────────────────── */

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    transparent 10%,
    rgba(21, 0, 7, 0.35) 50%,
    rgba(15, 0, 6, 0.80) 100%
  );
  animation: vignette-breathe 60s ease-in-out infinite;
}

@keyframes vignette-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

/* ─────────────────────────────────────────────────────────
   Grain — subtle texture
   ───────────────────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: -10px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -2%); }
  20% { transform: translate(1%, 3%); }
  30% { transform: translate(-3%, 1%); }
  40% { transform: translate(3%, -1%); }
  50% { transform: translate(-1%, 2%); }
  60% { transform: translate(2%, -3%); }
  70% { transform: translate(-2%, 1%); }
  80% { transform: translate(1%, -2%); }
  90% { transform: translate(3%, 2%); }
}

/* ─────────────────────────────────────────────────────────
   Shell — centers content
   ───────────────────────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  min-height: 100dvh; /* dynamic viewport for keyboard */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vh, 72px) var(--s4);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────
   Content — floating in the void
   ───────────────────────────────────────────────────────── */

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  width: min(520px, 86vw);
  margin: 0 auto;
}

/* Copy block — logo + tagline + subline */
.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0; /* secondary handles gap to form */
}

.primary {
  opacity: 0;
  animation: emerge 1.4s cubic-bezier(0.33, 1, 0.68, 1) 0.4s forwards;
}

.secondary {
  opacity: 0;
  animation: emerge 1.4s cubic-bezier(0.33, 1, 0.68, 1) 0.6s forwards;
}

.form {
  opacity: 0;
  animation: emerge-form 1.8s cubic-bezier(0.22, 1, 0.36, 1) 2.4s forwards;
}

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

@keyframes emerge-form {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  50% {
    opacity: 0.8;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────── */

.brand {
  font-family: var(--font-logo);
  font-size: clamp(6rem, 14vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 var(--s4) 0; /* 24px */
  color: #f5e7d2;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  text-shadow:
    0 1px 18px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(255, 210, 190, 0.08),
    0 0 80px rgba(140, 31, 45, 0.40);
  opacity: 0;
  animation: emerge-brand 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes emerge-brand {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(4px);
  }
  60% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.primary {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--cream);
  margin: 0 0 var(--s2) 0; /* 12px */
}

.secondary {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: lowercase;
  color: rgba(240, 221, 196, 0.55);
  margin: 0 0 26px 0; /* separate from email section */
  transition: color 800ms ease;
}

/* ─────────────────────────────────────────────────────────
   Form — minimal, stacked
   ───────────────────────────────────────────────────────── */

.form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: var(--form-w);
}

.form::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(255, 255, 255, 0.012) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Hide password manager icons */
input::-webkit-credentials-auto-fill-button,
input::-webkit-contacts-auto-fill-button,
input::-webkit-credit-card-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* Hide LastPass */
[data-lastpass-icon-root],
[data-lastpass-root],
div[data-lastpass-icon-root],
div[data-lastpass-root],
.lastpass-icon,
#__lpform_input_idx_0,
[id^="__lpform"],
[class*="lastpass"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* Hide 1Password, Bitwarden, Dashlane */
[data-com-onepassword-filled],
com-1password-button,
[data-dashlanecreated],
[style*="data:image/svg+xml"] {
  display: none !important;
}

input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 var(--s1) 10px;
  margin-top: 10px; /* hug the label */
  margin-bottom: 20px; /* line → button spacing */
  border: none;
  border-bottom: 1px solid rgba(246, 231, 214, 0.22);
  border-radius: 0;
  background: transparent;
  color: rgba(246, 231, 214, 0.88);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  outline: none;
  transition:
    border-color 500ms ease,
    box-shadow 500ms ease;
}

input[type="text"]::placeholder {
  color: rgba(240, 210, 190, 0.55);
}

input[type="text"]:hover {
  border-bottom-color: rgba(246, 231, 214, 0.28);
}

input[type="text"]:focus {
  border-bottom-color: rgba(246, 231, 214, 0.38);
  box-shadow: 0 10px 18px -18px rgba(255, 77, 109, 0.45);
}

/* Fix iOS/Safari autofill background color */
input[type="text"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus,
input[type="text"]:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(246, 231, 214, 0.88);
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px transparent;
}

button[type="submit"] {
  min-height: 42px;
  min-width: 140px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    color 500ms ease,
    border-color 500ms ease,
    background 500ms ease;
}

button[type="submit"]:hover {
  color: rgba(240, 221, 196, 0.90);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

button[type="submit"]:active {
  transform: scale(0.98);
  transition: transform 150ms ease;
}

button[type="submit"]:focus-visible {
  outline: none;
  border-color: rgba(255, 250, 245, 0.12);
}

/* Button success state — neon glow */
button[type="submit"].success {
  border-color: rgba(255, 180, 190, 0.65);
  background: transparent;
  color: #f5e7d2;
  text-shadow: 0 0 6px rgba(255, 200, 210, 0.4);
  box-shadow:
    0 0 8px rgba(255, 170, 185, 0.3),
    0 0 16px rgba(255, 150, 170, 0.18),
    0 0 30px rgba(255, 130, 160, 0.1),
    inset 0 0 12px rgba(255, 180, 195, 0.06);
  animation: neon-pulse 1.5s ease-in-out infinite;
  pointer-events: none;
  transition: all 0.8s ease-out;
}

/* Smooth fade out when success ends */
button[type="submit"]:not(.success) {
  transition: all 0.6s ease-out;
}

@keyframes neon-pulse {
  0%, 100% {
    border-color: rgba(255, 180, 190, 0.65);
    box-shadow:
      0 0 8px rgba(255, 170, 185, 0.3),
      0 0 16px rgba(255, 150, 170, 0.18),
      0 0 30px rgba(255, 130, 160, 0.1),
      inset 0 0 12px rgba(255, 180, 195, 0.06);
  }
  50% {
    border-color: rgba(255, 200, 210, 0.8);
    box-shadow:
      0 0 12px rgba(255, 180, 195, 0.38),
      0 0 22px rgba(255, 160, 180, 0.25),
      0 0 38px rgba(255, 140, 165, 0.14),
      inset 0 0 16px rgba(255, 190, 200, 0.08);
  }
}

/* Success tick icon */
button[type="submit"] .tick {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 1em;
  text-shadow: none;
}

/* ─────────────────────────────────────────────────────────
   Utility
   ───────────────────────────────────────────────────────── */

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

/* ─────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────── */

.footer {
  position: fixed;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 var(--s4);
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: rgba(240, 221, 196, 0.55);
}


/* ─────────────────────────────────────────────────────────
   Reduced Motion
   ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .orb,
  .vignette,
  .waves::before,
  .waves::after,
  .bokeh::before,
  .bokeh::after,
  .dust::before,
  .dust::after,
  .light-leak::before,
  .light-leak::after,
  .grain {
    animation: none;
  }

  .orb {
    opacity: 0.85;
    transform: translate(-50%, -50%);
  }

  .bokeh::before,
  .bokeh::after {
    opacity: 0.5;
  }

  .grain {
    transform: none;
  }

  .brand,
  .primary,
  .secondary,
  .form {
    animation: none;
    opacity: 1;
  }

  input[type="text"],
  button[type="submit"] {
    transition: none;
  }
}

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --form-w: min(320px, 78vw);
  }

  .shell {
    min-height: 100dvh;
    padding: clamp(16px, 4dvh, 40px) var(--s3);
    padding-bottom: env(safe-area-inset-bottom, 16px);
    transition: padding-top 0.3s ease;
  }

  /* When keyboard is open, give more top padding so logo isn't cramped */
  body.keyboard-open .shell {
    padding-top: clamp(48px, 8dvh, 80px);
    align-items: flex-start;
    justify-content: flex-start;
  }

  body.keyboard-open .content {
    margin-top: clamp(24px, 4dvh, 48px);
  }

  .copy {
    margin-bottom: 0; /* secondary handles gap */
  }

  .brand {
    font-size: clamp(4rem, 18vw, 6rem);
    margin: 0 0 var(--s3) 0; /* 16px */
    animation: emerge-brand 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  }

  .primary {
    font-size: 15px;
    margin: 0 0 var(--s1) 0; /* 8px */
    animation: emerge 1s cubic-bezier(0.33, 1, 0.68, 1) 0.3s forwards;
  }

  .secondary {
    font-size: 11px;
    letter-spacing: 0.02em;
    margin: 0 0 22px 0; /* slightly tighter on mobile */
    animation: emerge 1s cubic-bezier(0.33, 1, 0.68, 1) 0.5s forwards;
  }

  .form {
    animation: emerge-form 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
  }

  input[type="text"] {
    height: 40px;
    font-size: 13px;
    padding: 0 var(--s1) 8px;
    margin-top: 8px;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
  }

  button[type="submit"] {
    min-height: 40px;
    padding: 12px 20px;
    font-size: 11px;
  }

  .footer {
    bottom: 18px;
    padding: 0 var(--s3);
  }

  .footer p {
    font-size: 11px;
  }

  /* Mobile at-rest — keep more centered */
  .orb.at-rest {
    transform: translate(-50%, -40%) scale(1.15, 0.88);
  }

  /* More dramatic mobile pulse */
  /* Mobile pulse — slower, gentler, matches stretch */
  .orb.pulse {
    animation: keystroke-pulse 0.8s ease-in-out forwards;
  }

  @keyframes keystroke-pulse {
    0% {
      opacity: 0.85;
      filter: blur(70px) brightness(1);
    }
    30% {
      opacity: 0.95;
      filter: blur(55px) brightness(1.3);
    }
    60% {
      opacity: 1;
      filter: blur(50px) brightness(1.5);
    }
    100% {
      opacity: 0.85;
      filter: blur(70px) brightness(1);
    }
  }

  .orb {
    width: 120vw;
    height: 80vh;
    filter: blur(70px);
    animation:
      orb-breathe 5s ease-in-out infinite,
      orb-drift-mobile 5s ease-in-out infinite;
  }

  @keyframes orb-drift-mobile {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1, 1);
    }
    15% {
      transform: translate(-38%, -58%) scale(1.40, 0.75);
    }
    30% {
      transform: translate(-55%, -45%) scale(0.80, 1.35);
    }
    50% {
      transform: translate(-42%, -55%) scale(1.30, 0.78);
    }
    70% {
      transform: translate(-58%, -42%) scale(0.75, 1.40);
    }
    85% {
      transform: translate(-45%, -52%) scale(1.25, 0.82);
    }
  }

  .waves {
    width: 150vw;
    height: 150vh;
  }

  .waves::before {
    width: 80%;
    height: 80%;
  }

  .waves::after {
    width: 110%;
    height: 110%;
  }
}

