:root {
  --pink: #dd0f66;
  --orange: #fe7d0b;
  --text: #f4f4f5;
  --muted: #8b8b93;
  --line: #26262b;
  --field: #0c0c0e;
}

* { box-sizing: border-box; }

html { background: #000; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 64px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo {
  width: min(320px, 72vw);
  height: auto;
  filter: drop-shadow(0 0 48px rgb(221 15 102 / 0.35));
  animation: rise 0.7s ease-out both;
}

h1 {
  margin: 28px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Pop-out contact form */
dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0; /* padding lives on the form so only true backdrop clicks hit the dialog */
  background: #060607;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 0 80px rgb(221 15 102 / 0.22);
  text-align: left;
}

dialog form { padding: 28px 24px 24px; }

dialog[open] { animation: pop 0.22s ease-out both; }

dialog::backdrop {
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(6px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.close {
  width: 32px;
  height: 32px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.close:hover { color: var(--text); background: var(--line); }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea { resize: vertical; min-height: 110px; }

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(254 125 11 / 0.2);
}

input[aria-invalid="true"] { border-color: var(--pink); }

.hint {
  min-height: 1.4em;
  margin: 6px 0 12px;
  font-size: 0.8rem;
  color: var(--pink);
}

/* Gradient button: the colours travel as a wave while a glow breathes behind it. */
.wave {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  /* pink -> orange -> pink is one full period, so the loop has no seam */
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--pink)) 0 0 / 200% 100%;
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  animation: wave 6s linear infinite;
  transition: filter 0.15s, transform 0.05s;
}

.wave::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: blur(18px);
  animation: wave 6s linear infinite, glow 3s ease-in-out infinite;
}

.cta {
  width: auto;
  margin-top: 40px;
  padding: 15px 38px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wave:hover { filter: brightness(1.12); }
.wave:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wave:disabled { opacity: 0.55; cursor: progress; }

.status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.status[data-kind="error"] { color: var(--pink); }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  min-height: 65px; /* reserve the widget's height so the form doesn't jump */
  margin-top: 18px;
}

.turnstile + .wave { margin-top: 12px; }

footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  font-size: 0.75rem;
  color: #6b6b73;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* About page */
.about .logo { width: min(180px, 48vw); }

.about-copy {
  width: 100%;
  margin-top: 36px;
  text-align: left;
  color: #c9c9cf;
}

.about-copy p { margin: 0 0 1em; }

/* Success screen: the bolt strikes, rings burst out, the headline rides the colour wave. */
.sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 32px;
  text-align: center;
  animation: flash 0.5s ease-out both;
}

.sent[hidden] { display: none; }

.strike {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
}

.bolt {
  position: relative;
  height: 108px;
  width: auto;
  filter: drop-shadow(0 0 22px rgb(254 125 11 / 0.75));
  animation: strike 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both, hum 2.4s ease-in-out 0.6s infinite;
}

.ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--pink);
  border-radius: 50%;
  opacity: 0;
  animation: burst 1.1s ease-out 0.18s both;
}

.ring-2 {
  border-color: var(--orange);
  animation-delay: 0.36s;
}

.sent-title {
  margin: 22px 0 0;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--pink)) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wave 4s linear infinite, rise 0.45s ease-out 0.3s both;
}

.sent-sub {
  margin: 10px 0 0;
  text-wrap: balance;
  color: #c9c9cf;
  animation: rise 0.45s ease-out 0.45s both;
}

.ghost {
  margin-top: 26px;
  padding: 10px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  animation: rise 0.45s ease-out 0.6s both;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ghost:hover {
  border-color: var(--orange);
  box-shadow: 0 0 24px rgb(254 125 11 / 0.3);
}

@keyframes strike {
  0% { opacity: 0; transform: translateY(-70px) scale(1.5) rotate(-14deg); }
  60% { opacity: 1; transform: translateY(6px) scale(0.94) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes hum {
  0%, 100% { filter: drop-shadow(0 0 18px rgb(254 125 11 / 0.55)); }
  50% { filter: drop-shadow(0 0 34px rgb(221 15 102 / 0.9)); }
}

@keyframes burst {
  0% { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(1.9); }
}

@keyframes flash {
  0% { background: rgb(254 125 11 / 0.22); }
  100% { background: transparent; }
}

@keyframes wave {
  to { background-position: -200% 0; }
}

@keyframes glow {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .wave, .wave::before, dialog[open],
  .sent, .sent * { animation: none; }
  .ring { display: none; }
  .wave::before { opacity: 0.5; }
  * { transition: none !important; }
}

.about-copy .signoff {
  margin-top: 1.6em;
  color: var(--text);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
}

.portrait {
  width: min(300px, 80vw);
  height: auto;
  margin-top: 32px;
  border-radius: 20px;
  box-shadow: 0 0 60px rgb(254 125 11 / 0.14);
}
