:root {
  --bg-1: #f1e4e6;
  --bg-2: #decfd1;
  --card: rgba(255, 251, 252, 0.76);
  --card-border: rgba(28, 21, 26, 0.14);
  --text: #171317;
  --muted: #61565d;
  --accent: #2a2028;
  --accent-2: #3b2f39;
  --danger: #b93f59;
  --success: #2f6b4d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.56) 0%, transparent 42%),
    radial-gradient(circle at 82% 10%, rgba(228, 203, 207, 0.48) 0%, transparent 43%),
    radial-gradient(circle at 64% 92%, rgba(210, 184, 188, 0.38) 0%, transparent 48%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

#noise-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.14;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.08;
  z-index: 1;
}

.layout {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 100svh;
  padding: 22px 0 30px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
}

.layout.is-form-open {
  min-height: auto;
  align-content: start;
}

.form-card {
  width: min(640px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 18px 40px rgba(70, 52, 58, 0.12);
}

.label {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  margin: 12px 0;
  line-height: 1;
}

h2 {
  font-size: clamp(32px, 8vw, 48px);
}

.lead,
.sub,
.meta {
  color: var(--muted);
  line-height: 1.55;
}

.meta {
  margin: 14px 0 20px;
  font-size: 13px;
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 56svh, 520px);
  max-height: clamp(280px, 56svh, 520px);
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, min-height 0.35s ease;
}

.eyes-scene {
  position: relative;
  width: min(560px, 96%);
  height: clamp(180px, 34svh, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.eye {
  position: relative;
  width: clamp(120px, 26vw, 176px);
  height: clamp(120px, 26vw, 176px);
  border: 3px solid #11141a;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.eye + .eye {
  margin-left: -16px;
}

.eye-left {
  transform: translateY(-2px);
}

.eye-right {
  transform: translateY(2px);
}

.eye-white {
  position: absolute;
  inset: 0;
}

.pupil-wrap {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
}

.pupil {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000;
  position: relative;
}

.shine {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.eyelid {
  position: absolute;
  left: -3px;
  right: -3px;
  top: -3px;
  height: 34%;
  background: #f2dde2;
  border-bottom: 3px solid #11141a;
  transform-origin: top;
  transition: transform 0.15s ease;
}

.eyes-scene.is-blink .eyelid {
  transform: scaleY(2.4);
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: -8px;
  margin-bottom: 6px;
  max-height: 70px;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

.layout.is-form-open .hero-stage {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  max-height: 0;
  min-height: 0;
  overflow: hidden;
}

.layout.is-form-open .hero-actions {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.primary-btn {
  border: 1px solid rgba(25, 19, 24, 0.22);
  border-radius: 999px;
  padding: 14px 26px;
  background: linear-gradient(120deg, rgba(255, 253, 253, 0.95), rgba(241, 225, 229, 0.96));
  color: #261d24;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(81, 59, 68, 0.13);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
  box-shadow: 0 10px 24px rgba(81, 59, 68, 0.16);
}

.primary-btn:active {
  transform: translateY(1px);
}

.form-card {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  width: min(640px, 100%);
  padding-top: 0;
  padding-bottom: 0;
  transition: opacity 0.4s ease, max-height 0.6s ease, padding 0.4s ease;
}

.form-card.is-open {
  max-height: 980px;
  opacity: 1;
  padding-top: 26px;
  padding-bottom: 22px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  font-size: 13px;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid rgba(26, 21, 25, 0.26);
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(255, 252, 252, 0.85);
  color: var(--text);
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: rgba(22, 18, 21, 0.9);
  box-shadow: 0 0 0 3px rgba(22, 18, 21, 0.12);
}

.status {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

@media (min-width: 900px) {
  .layout {
    width: min(980px, calc(100% - 48px));
    padding-top: 30px;
  }
}
