.hero-art {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 32rem;
}

.hero-art__fallback {
  display: block;
  width: 100%;
  height: auto;
}

#hero-3d-canvas {
  position: absolute;
  inset: 0;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 53%, rgb(22 203 189 / 16%), transparent 68%);
}

.hero-art:not(.is-3d) #hero-3d-canvas,
.hero-art.is-3d .hero-art__fallback {
  visibility: hidden;
}

.hero-art__render {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-demo {
  --demo-hue: 158;
  --demo-ink: hsl(var(--demo-hue) 36% 13%);
  --demo-dark: hsl(var(--demo-hue) 45% 13%);
  --demo-deep: hsl(var(--demo-hue) 47% 24%);
  --demo-accent: hsl(var(--demo-hue) 58% 76%);
  --demo-highlight: hsl(var(--demo-hue) 56% 90%);
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  height: 202px;
  overflow: hidden;
  transform-origin: 0 0;
  background: hsl(var(--demo-hue) 18% 96%);
  color: var(--demo-ink);
  font: 15px/1.2 system-ui, sans-serif;
}

.hero-demo__nav {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 38px;
  padding: 4px 12px;
  border-bottom: 1px solid #dfe9e3;
  background: #fff;
}

.hero-demo__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-weight: 800;
}

.hero-demo__brand::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--demo-deep) 50%, var(--demo-accent) 50%);
}

.hero-demo button {
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.hero-demo__nav button {
  color: var(--demo-deep);
  font-size: 13px;
}

.hero-demo__nav button[aria-current],
.hero-demo__nav button:hover {
  background: var(--demo-highlight);
  color: var(--demo-ink);
}

.hero-demo :focus-visible {
  outline: 2px solid var(--demo-deep);
  outline-offset: 1px;
}

.hero-demo__body {
  height: 164px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 9px 12px;
}

.hero-demo__home {
  min-height: 145px;
  padding: 12px 15px;
  border-radius: 12px;
  background:
    repeating-radial-gradient(circle at 100% 0, transparent 0 15px, hsl(var(--demo-hue) 75% 78% / 14%) 16px 17px, transparent 18px 26px),
    linear-gradient(125deg, var(--demo-dark) 40%, var(--demo-deep));
  color: #fff;
}

.hero-demo__home :focus-visible {
  outline-color: #fff;
}

.hero-demo h2 {
  font-size: 19px;
  font-weight: 760;
}

.hero-demo__home h2 {
  margin: 3px 0 4px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.hero-demo__home p:first-child {
  color: var(--demo-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-demo__home p:not(:first-child) {
  max-width: 240px;
  color: #fff;
  font-size: 14px;
}

.hero-demo__home button {
  margin-top: 8px;
  background: var(--demo-accent);
  color: var(--demo-ink);
}

.hero-demo__submit button {
  background: var(--demo-deep);
  color: #fff;
}

.hero-demo__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.hero-demo__gallery figure {
  margin: 0;
  padding: 4px;
  border: 1px solid #dce8e1;
  border-radius: 9px;
  background: #fff;
}

.hero-demo__gallery svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.hero-demo__gallery figcaption {
  margin: 4px 1px 2px;
  font-size: 13px;
  font-weight: 650;
}

.hero-demo__contact-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}

.hero-demo__contact-heading p {
  color: var(--demo-deep);
  font-size: 12px;
}

.hero-demo__form,
.hero-demo__form label {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.hero-demo__form {
  gap: 4px;
  margin-top: 3px;
}

.hero-demo__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hero-demo input,
.hero-demo textarea {
  width: 100%;
  min-height: 24px;
  border: 1px solid #79988d;
  border-radius: 6px;
  padding: 2px 6px;
  background: #fff;
}

.hero-demo textarea {
  resize: vertical;
}

.hero-demo__submit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-trap {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact-verification {
  margin: auto;
  width: 21rem;
  max-width: calc(100% - 1rem);
  padding: 1rem;
  border: 1px solid #79988d;
  border-radius: 0.75rem;
  background: #f4f7f5;
  color: #142e29;
}

#contact-verification::backdrop {
  background: rgb(0 0 0 / 65%);
}

#contact-verification h2 {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

#contact-verification button {
  padding: 0.4rem 0.75rem;
}
