.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(34px, 6vw, 66px) 0 38px;
}
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
.hero-copy .intro { margin-bottom: 17px; }
.hero-details {
  padding: 0;
  margin: 0 0 19px;
  list-style: none;
  border-left: 1px solid var(--line);
}
.hero-details li {
  padding-left: 12px;
  margin: 6px 0;
  color: var(--muted);
}
.hero-details strong { color: var(--ink); margin-right: .45em; }
.hero-orbit {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: min(100%, 430px);
  justify-self: end;
  display: grid;
  place-items: center;
  perspective: 740px;
  gap: 24px;
}
.orbit-shape {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  width: 74%;
  aspect-ratio: 1.55;
  transform-style: preserve-3d;
  transform: rotateX(15deg) rotateY(-23deg) rotateZ(7deg);
}
.stack-layers {
  display: contents;
}
.site-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #202019;
}
.site-layer[data-depth="0"] {
  z-index: 3;
  box-shadow: 0 20px 40px #0008;
}
.site-layer[data-depth="1"] {
  z-index: 2;
  transform: translate3d(18px, 15px, -45px);
}
.site-layer[data-depth="2"] {
  z-index: 1;
  transform: translate3d(36px, 30px, -90px);
  border-color: var(--accent);
}
.stack-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: .875rem;
}
.stack-controls button {
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
}
.layer-lines strong {
  font-size: clamp(.8rem, 1.5vw, 1rem);
  white-space: nowrap;
}
.layer-bar {
  height: 15%;
  border-bottom: 1px solid var(--line);
  padding: 0 6%;
  display: flex;
  align-items: center;
}
.layer-bar::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 9px 0 var(--muted), 18px 0 var(--line);
}
.layer-content {
  height: 85%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12%;
  padding: 7%;
  align-items: center;
}
.layer-content img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 6px;
}
.layer-lines {
  display: grid;
  gap: 9px;
}
.layer-lines i {
  background: var(--line);
  border-radius: 3px;
  height: 4px;
}
.layer-lines i:first-child {
  background: var(--ink);
  width: 85%;
  height: 7px;
}
.layer-lines i:last-child {
  background: var(--accent);
  width: 55%;
  height: 11px;
}
@media (prefers-reduced-motion: no-preference) {
  .orbit-shape {
    animation: orbit-drift 6s ease-in-out infinite;
  }
  .site-layer { transition: transform .65s ease, box-shadow .65s ease; }
  .hero-orbit[data-paused] .orbit-shape { animation-play-state: paused; }
  @keyframes orbit-drift {
    0%, 100% { transform: rotateX(15deg) rotateY(-23deg) rotateZ(7deg); }
    50% { transform: translateY(-18px) rotateX(2deg) rotateY(12deg) rotateZ(-6deg); }
  }
  .card {
    overflow: visible;
    transform-style: preserve-3d;
    transition: transform .3s ease-out, box-shadow .3s ease-out, border-color .3s ease-out;
  }
  .card > img {
    border-radius: 11px 11px 0 0;
    backface-visibility: hidden;
  }
  .card > img,
  .card-body {
    transition: transform .3s ease-out;
  }
  .card:focus-within {
    transform: perspective(900px) translateY(-4px);
  }
  .card:active {
    transform: perspective(900px) scale(.98) rotateX(3deg);
  }
  @media (hover: hover) and (pointer: fine) {
    .card[data-tilt] {
      position: relative;
      z-index: 1;
      transform: perspective(850px) translateY(-8px)
        rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
      border-color: var(--accent);
      box-shadow: 0 22px 38px #0009;
    }
    .card[data-tilt] > img { transform: translateZ(16px); }
    .card[data-tilt] .card-body { transform: translateZ(24px); }
  }
  dialog[open] {
    animation: demo-arrive .3s ease-out both;
  }
  @keyframes demo-arrive {
    from { opacity: 0; transform: perspective(850px) translateY(16px) rotateX(-9deg) scale(.97); }
    to { opacity: 1; transform: perspective(850px) translateY(0) rotateX(0) scale(1); }
  }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-orbit {
    grid-column: 1;
    grid-row: 2;
    width: min(94%, 360px);
    justify-self: center;
  }
}
.stack-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.stack-options button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-steps {
  margin: 22px 0 0;
  padding-left: 1.4rem;
}
.contact-steps li {
  padding-left: 6px;
  margin-bottom: 14px;
}
.contact-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}
.contact-steps span {
  display: block;
  color: var(--muted);
}
