/* Two House Productions — premium dark editorial theme, self-hosted static. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0a;
  color: #ece8e2;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, "SF Mono", monospace; }
::selection { background: #ece8e2; color: #0a0a0a; }
:focus-visible { outline: 1px solid #b4b1ac; outline-offset: 3px; }

/* Cinematic grain + vignette (fixed, non-interactive) */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
  background-size: 140px;
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 100% at 50% -8%, transparent 48%, rgba(0,0,0,0.55) 100%);
}
main { position: relative; }

/* Sticky top bar + hamburger menu */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,10,10,0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236,232,226,0.08);
}
.topbar-inner {
  max-width: 52rem; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.logo-btn img { height: 2.5rem; width: 2.5rem; border-radius: 9px; }
.burger {
  position: relative; width: 2.9rem; height: 2.9rem; min-width: 2.9rem;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 1px solid rgba(236,232,226,0.12); border-radius: 10px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span { display: block; width: 18px; height: 1.5px; background: #ece8e2; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.mmenu { background: #0c0c0c; border-top: 1px solid rgba(236,232,226,0.06); padding: 0.5rem 1.25rem 1.1rem; animation: rise 0.3s cubic-bezier(0.16,1,0.3,1) both; }
.mmenu[hidden] { display: none; }
.mmenu a { display: block; padding: 0.95rem 0.25rem; font-size: 1rem; font-weight: 600; color: #ece8e2; text-decoration: none; border-bottom: 1px solid rgba(236,232,226,0.07); }
.mmenu a:last-of-type { border-bottom: 0; }
.mmenu a:hover { color: #b4b1ac; }
.mmenu-note { display: inline-block; margin-top: 0.7rem; font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; letter-spacing: 0.12em; color: #8a877f; text-transform: uppercase; }
@media (min-width: 768px) { .topbar-inner { padding: 0.8rem 1.5rem; } }

/* Comfortable tap targets on small screens (≥48px, 16px text) */
.field, .chip, .primary { min-height: 48px; }
.field, .chip { font-size: 16px; }
.primary { font-size: 16px; }
#form { scroll-margin-top: 4.5rem; }

/* Header */
.hero { text-align: center; max-width: 52rem; margin: 0 auto; padding: 4rem 1.5rem 0; }
.logo { width: 5rem; height: 5rem; border-radius: 14px; }
@media (min-width: 640px) { .logo { width: 6rem; height: 6rem; } }
.hero h1 {
  max-width: 21ch; margin: 2.5rem auto 0; font-size: 1.9rem; line-height: 1.1;
  font-weight: 600; letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
.sub { margin: 1.25rem auto 0; max-width: 52ch; color: #b4b1ac; line-height: 1.7; font-size: 1rem; }
@media (min-width: 640px) { .sub { font-size: 1.125rem; } }
.sub.narrow { max-width: 30ch; }
.sub.strong { font-size: 1.15rem; color: #ece8e2; }
.note { margin-top: 1.5rem; color: #8a877f; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-line { width: 26rem; max-width: 78%; height: 1px; background: rgba(236,232,226,0.1); margin: 3rem auto 0; }

/* Wrap */
.wrap { max-width: 40rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
@media (min-width: 640px) { .wrap { padding-top: 4rem; } }

/* Progress */
.progress-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.count { font-size: 0.75rem; letter-spacing: 0.14em; color: #8a877f; }
.label { font-size: 0.68rem; letter-spacing: 0.16em; color: #8a877f; text-transform: uppercase; }
.progress-track { height: 1px; background: rgba(236,232,226,0.1); margin-bottom: 3rem; }
.progress-fill { height: 100%; background: #ece8e2; transition: width 0.55s cubic-bezier(0.16,1,0.3,1); }

/* Steps */
.step { display: flex; flex-direction: column; gap: 1.75rem; animation: rise 0.55s cubic-bezier(0.16,1,0.3,1) both; }
.step[hidden] { display: none; }
h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.step.success { align-items: center; text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Fields */
.field-block { display: flex; flex-direction: column; gap: 0;
  margin-bottom: 1.5rem; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field-label { display: block; color: #b4b1ac; font-size: 0.82rem; margin-bottom: 0.5rem; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; }
.tiny { font-size: 0.66rem; letter-spacing: 0.12em; color: #8a877f; text-transform: uppercase; }
.field {
  display: block; width: 100%; background: #0e0e0e; border: 1px solid rgba(236,232,226,0.1);
  border-radius: 12px; color: #ece8e2; font: inherit; padding: 0.95rem 1.05rem;
  transition: border-color 0.2s, background-color 0.2s; -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: #8a877f; }
.field:focus { outline: none; border-color: #b4b1ac; background: #151515; }
textarea.field { resize: vertical; min-height: 9.5rem; line-height: 1.55; }
.field.error { border-color: rgba(216,164,142,0.7); }
.error-msg { margin: 0.5rem 0 0; color: #e7b7a0; font-size: 0.8rem; line-height: 1.4; min-height: 0; }
.error-msg:empty { display: none; }
.error-msg.global { text-align: center; background: #0e0e0e; border: 1px solid rgba(236,232,226,0.24); border-radius: 12px; padding: 0.9rem 1rem; }

/* Chips */
.chip-field { border: 0; padding: 0; margin: 0 0 1.5rem; }
.chip-field legend { padding: 0; }
.hint { color: #8a877f; font-size: 0.85rem; line-height: 1.5; margin: -0.25rem 0 0.75rem; }
.chip-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
@media (min-width: 640px) { .chip-grid { grid-template-columns: 1fr 1fr; } }
.chip {
  -webkit-tap-highlight-color: transparent; text-align: left; width: 100%;
  border: 1px solid rgba(236,232,226,0.1); background: transparent; color: #b4b1ac;
  border-radius: 12px; padding: 0.95rem 1rem; font: inherit; line-height: 1.25; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.15s;
}
.chip:hover { border-color: rgba(236,232,226,0.24); color: #ece8e2; }
.chip:active { transform: scale(0.985); }
.chip[aria-checked="true"] { background: #ece8e2; border-color: #ece8e2; color: #0a0a0a; font-weight: 600; }

/* Nav */
.nav { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }
.nav[hidden] { display: none; }
.primary {
  width: 100%; cursor: pointer; font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  background: #ece8e2; color: #0a0a0a; border: 0; border-radius: 12px; padding: 1rem 2rem;
  transition: background-color 0.2s, transform 0.15s; -webkit-appearance: none; appearance: none;
}
.primary:hover { background: #f6f3ed; }
.primary:active { transform: scale(0.985); }
.primary.center { max-width: 22rem; margin: 3rem auto 0; }
.back {
  cursor: pointer; font: inherit; font-size: 0.875rem; color: #b4b1ac; background: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.25rem;
  transition: color 0.2s;
}
.back:hover { color: #ece8e2; }
.chev { font-size: 1.1rem; line-height: 1; }

/* Recap */
.recap { margin: 0; }
.recap .row { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(236,232,226,0.1); }
@media (min-width: 640px) { .recap .row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1.5rem; } }
.recap dt { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.14em; color: #8a877f; text-transform: uppercase; }
@media (min-width: 640px) { .recap dt { flex: 0 0 11rem; } }
.recap dd { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #ece8e2; }
@media (min-width: 640px) { .recap dd { flex: 1; text-align: right; } }

/* Success */
.check-ring {
  display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem;
  border: 1px solid rgba(236,232,226,0.24); border-radius: 50%; color: #ece8e2;
  animation: pop 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.check-draw { stroke-dasharray: 40; animation: draw 0.7s 0.15s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes draw { 0% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.92); } 60% { transform: scale(1.02); } 100% { opacity: 1; transform: scale(1); } }
.bye { margin: 3rem 0 0; color: #8a877f; font-size: 0.9rem; line-height: 1.6; }
.bye span { color: #b4b1ac; }

/* Footer */
.footer { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem 5rem; }
.footer .border-t { border-top: 1px solid rgba(236,232,226,0.1); padding-top: 2rem; text-align: center; }
.f-brand { margin: 0; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.f-tag { margin: 0.4rem 0 0; font-size: 0.8rem; color: #8a877f; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
}