:root {
  --bg: #fbf8f5;
  --card: #ffffff;
  --ink: #232020;
  --muted: #5f6368;
  --line: #e7e1db;
  --orange: #f26522;
  --orange-dark: #c94c17;
  --orange-soft: #fff1e8;
  --ok: #1e7a46;
  --err: #b42318;
  --radius: 18px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 50% -10%, #fff 0%, rgba(255, 255, 255, 0) 70%);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--orange-dark);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  height: auto;
  width: 168px;
}

.top-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}

.top-link:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

/* Hero */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 72px;
  text-align: center;
}

.art {
  width: min(520px, 100%);
  margin: 0 auto;
}

.hatch {
  width: 100%;
  height: auto;
  overflow: visible;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.lede {
  margin: 0 auto 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(242, 101, 34, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(242, 101, 34, 0.34);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* Contact */
.contact {
  max-width: 680px;
  margin: 0 auto 72px;
  padding: 36px clamp(20px, 5vw, 44px) 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 60px -30px rgba(122, 58, 18, 0.25);
  scroll-margin-top: 24px;
}

.contact h2 {
  margin: 0 0 4px;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.contact-intro {
  margin: 0 0 24px;
  color: var(--muted);
}

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

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

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

form .button {
  justify-self: start;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  margin: 0;
  min-height: 1.6em;
  font-weight: 600;
}

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

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

/* Footer */
.foot {
  padding: 0 24px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot p {
  margin: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .top {
    padding: 16px;
  }

  .brand img {
    width: 136px;
  }

  .hero {
    padding: 0 16px 56px;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .contact {
    margin: 0 12px 56px;
  }

  form .button {
    justify-self: stretch;
  }
}

/* Hero animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes rise {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hatch .orbit {
  transform-box: view-box;
  transform-origin: 270px 265px;
  animation: spin 60s linear infinite;
}

.hatch .chip {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 60s linear infinite reverse;
}

.hatch .cap {
  transform-box: fill-box;
  transform-origin: center;
  animation: bob 4.5s ease-in-out infinite;
}

.hatch .net {
  animation: rise 5s ease-in-out infinite;
}

.hatch .node {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s ease-in-out infinite;
}

.hatch .n2 {
  animation-delay: 0.8s;
}

.hatch .n3 {
  animation-delay: 1.6s;
}

.hatch .wire {
  stroke-dasharray: 6 8;
  animation: flow 1.6s linear infinite;
}

.hatch .w2 {
  animation-duration: 2.1s;
}

.hatch .w3 {
  animation-duration: 2.7s;
}

.hatch .spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 2.6s ease-in-out infinite;
}

.hatch .s2 {
  animation-delay: 0.9s;
}

.hatch .s3 {
  animation-delay: 1.7s;
}

.hatch .inner-glow,
.hatch .halo {
  animation: glow 3.2s ease-in-out infinite;
}

.hatch .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hatch *,
  .button {
    animation: none !important;
    transition: none !important;
  }
}

/* Shown only on the stage copy, from config.json. */
.stage-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-align: center;
}
