/* The copy stays centered while native 3D geometry travels through a sticky viewport. */
.stage.hero, .stage.audience {
  --stage-screen: max(650px, 100svh);
  display: block;
  height: calc(var(--stage-screen) * 1.18);
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.stage-viewport {
  position: sticky;
  top: 0;
  height: var(--stage-screen);
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

html {
  scroll-padding-top: 0;
}

html.intro-transition {
  scroll-behavior: auto !important;
}

html.dialog-open {
  overflow: hidden;
}

.scene-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-layer canvas, .product-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage .stage-copy {
  width: 66%;
  max-width: 1000px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.stage .stage-copy a {
  pointer-events: auto;
}

.hero .stage-copy {
  padding-top: 60px;
}

.hero h1 {
  font-size: clamp(64px, 7vw, 108px);
}

.stage-copy.reveal {
  opacity: 1;
  translate: none;
  transition: none;
}

.stage-copy:before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -24px -30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff 50%, #fff0 73%);
  pointer-events: none;
}

.business .stage-copy:before {
  background: radial-gradient(ellipse, #061a0e 50%, #061a0e00 73%);
}

.stage .eyebrow {
  font-size: 12px !important;
  letter-spacing: .4em;
}

.scene-layer:before, .scene-layer:after {
  content: '';
  position: absolute;
  width: 25vw;
  height: 35vw;
  border-radius: 45% 55% 62% 38%;
  z-index: -1;
  background: #e3f7e1;
  opacity: .55;
  transform: rotate(-28deg);
}

.scene-layer:before {
  left: -15vw;
  top: 17%;
}

.scene-layer:after {
  right: -17vw;
  bottom: 4%;
  transform: rotate(25deg);
}

.business .scene-layer:before, .business .scene-layer:after {
  background: #113d20;
}

.product-preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-flower, .contact-star {
  text-shadow: none;
  filter: none;
}

.paper-fallback {
  font-size: 120px;
  color: var(--green);
  position: absolute;
  left: 10%;
  top: 12%;
  transform: rotate(-15deg);
}

.paper-fallback-b {
  left: auto;
  right: 10%;
  top: auto;
  bottom: 10%;
  color: var(--purple);
}

.business .paper-fallback-b {
  color: white;
}

.product-preview .paper-fallback {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media(max-width: 760px) {
  .stage.hero, .stage.audience {
    --stage-screen: max(640px, 100svh);
    height: calc(var(--stage-screen) * 1.16);
    min-height: 0;
  }
  .stage .stage-copy {
    width: calc(100% - 36px);
    max-width: 550px;
  }
  .hero .stage-copy {
    padding-top: 10px;
  }
  .hero h1 {
    font-size: clamp(46px, 11vw, 72px);
    line-height: .97;
  }
  .stage-copy:before {
    inset: -25px -10px;
  }
  .stage-copy p {
    max-width: 330px;
    font-size: 17px;
  }
  .audience h2 {
    font-size: clamp(41px, 9.4vw, 64px);
  }
  .stage .eyebrow {
    margin-bottom: 18px !important;
  }
  .stage .button {
    min-width: 0;
    max-width: 100%;
    font-size: 15px;
    padding: 12px 23px;
  }
  .scene-layer:before, .scene-layer:after {
    width: 50vw;
    height: 80vw;
    top: auto;
    bottom: 0;
    opacity: .45;
  }
  .scene-layer:before {
    left: -30vw;
  }
  .scene-layer:after {
    right: -30vw;
  }
}

@media(prefers-reduced-motion: reduce) {
  .stage.hero, .stage.audience {
    height: auto;
    min-height: 0;
  }
  .stage-viewport {
    position: relative;
  }
}

/* Two gently tilted, seamless marquees frame the personal section. */
.personal .ribbon {
  position: absolute;
  left: -4%;
  width: 108%;
  z-index: 3;
  padding: 14px 0;
  pointer-events: none;
  transform-origin: center;
}

.personal .ribbon-top {
  top: 22px;
  transform: rotate(-1.3deg);
}

.personal .ribbon-bottom {
  bottom: 22px;
  transform: rotate(1.3deg);
}

.personal .ribbon > .ribbon-track {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  animation: ribbon-loop 30s linear infinite;
  will-change: transform;
}

.ribbon-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
  width: max(115vw, 1100px);
  gap: 40px;
  padding: 0 30px;
  white-space: nowrap;
}

.ribbon-group span {
  flex-shrink: 0;
  font-weight: 500;
}

.ribbon-group b {
  flex-shrink: 0;
}

.personal .ribbon-bottom > .ribbon-track {
  animation-direction: reverse;
}

@keyframes ribbon-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media(max-width: 760px) {
  .personal .ribbon {
    padding: 12px 0;
  }
  .personal .ribbon-top {
    top: 16px;
  }
  .personal .ribbon-bottom {
    bottom: 16px;
  }
  .ribbon-group {
    width: 1000px;
    gap: 30px;
    padding: 0 24px;
  }
  .ribbon-group span {
    font-size: 11px;
    letter-spacing: .2em;
  }
}

@media(prefers-reduced-motion: reduce) {
  .personal .ribbon > .ribbon-track {
    animation: none;
    will-change: auto;
  }
}

/* Four tapered lanes point inward, leaving the central reading area open. */
.corner-ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.corner-fill {
  fill: var(--green);
}

.corner-outline {
  fill: white;
}

.corner-copy {
  fill: var(--purple);
  font-family: var(--font);
  font-size: var(--corner-font-size, 16px);
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: pre;
}
