/* User references: centred 12-column hero + four native scroll-parallax planes. */
.hero { --hero-opening-height: 100svh; }
.hero .hero-field,
html[data-motion="static"] .hero .hero-field { height: var(--hero-opening-height); }
.hero .field-shade { background: #001b1466; }
.leaf-depth { position: absolute; inset: 0; }
.leaf-light { display: none; }
html[data-motion="scroll"] .hero .material-image { animation: none; }
html[data-motion="scroll"] .hero[data-background-paused="true"] .field-camera { transform: scale(1.02); }

.opening-frame { position: relative; height: var(--hero-opening-height); overflow: clip; isolation: isolate; }
html[data-motion="scroll"] .hero .opening-frame { position: absolute; inset: 0 0 auto; }
.opening-scene {
  position: absolute; inset: 12px; border-radius: 20px; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - var(--handoff-feather, 0px)), transparent 100%);
}
.opening-back, .opening-light, .opening-front { position: absolute; inset: 0; }
[data-parallax-layer] { transform: translate3d(0, var(--layer-y, 0px), 0); }
.opening-back img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.opening-back::after { content: ""; position: absolute; inset: 0; background: #00180e66; }
.opening-light {
  background: radial-gradient(ellipse at 75% 30%, #dcf4ba36, transparent 60%);
  pointer-events: none;
}
.opening-front {
  background: linear-gradient(0deg, #031d13b3, transparent 70%),
    radial-gradient(ellipse at 50% 35%, transparent 40%, #031d1333);
}
.hero-grid { position: absolute; inset: 0; pointer-events: none; }
.hero-grid > span { position: absolute; top: 0; bottom: 0; width: 1px; background: #ffffff2b; }
.hero-grid > span:nth-child(1) { left: 8.333333%; }
.hero-grid > span:nth-child(2) { left: 33.333333%; }
.hero-grid > span:nth-child(3) { left: 66.666667%; }
.hero-grid > span:nth-child(4) { left: 91.666667%; }

.hero .opening,
html[data-motion="scroll"] .hero .opening {
  position: relative; inset: auto; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 150px 48px 110px; text-align: center;
}
.opening-content { width: min(1024px, 100%); }
.opening-content:focus-within { transform: none; }
.hero .opening h1 {
  font: 400 clamp(56px, 6.667vw, 112px)/1.03 Aspekta, Arial, sans-serif;
  letter-spacing: -.045em; color: #fff; max-width: none; margin: 0;
}
.hero .opening-bottom {
  position: static; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 32px; margin: 28px auto 0; width: min(640px, 100%);
}
.hero .opening-bottom > p { max-width: 60ch; font-size: 20px; line-height: 1.45; letter-spacing: -.015em; color: #ffffffe6; }
.hero .opening-bottom > .split-button {
  flex: none; gap: 0; min-height: 50px; margin: 0;
  font: 400 15px/1.2 Aspekta, Arial, sans-serif; text-transform: none; letter-spacing: -.01em;
}
.hero .opening-bottom > .split-button > span {
  padding: 15px 26px; border-radius: 999px; background: #e1fcad; color: #122023;
  transition: background .3s, color .3s;
}
.hero .opening-bottom > .split-button > i {
  position: relative; width: 50px; min-height: 50px; overflow: hidden;
  border-radius: 50%; background: #e1fcad; color: #122023; transform: none;
  transition: background .3s, color .3s;
}
.hero .opening-bottom > .split-button > i > b {
  position: absolute; inset: 0; display: grid; place-items: center; font: 400 25px/1 Aspekta, Arial, sans-serif;
  transition: transform .4s cubic-bezier(.2,.65,.2,1);
}
.hero .opening-bottom > .split-button > i > b:last-child { transform: translateX(-50px); }
.hero .opening-bottom > .split-button:is(:hover,:focus-visible) > span,
.hero .opening-bottom > .split-button:is(:hover,:focus-visible) > i { background: #122023; color: #e1fcad; }
.hero .opening-bottom > .split-button:is(:hover,:focus-visible) > i > b:first-child { transform: translateX(50px); }
.hero .opening-bottom > .split-button:is(:hover,:focus-visible) > i > b:last-child { transform: translateX(0); }
.hero-motion-toggle {
  position: absolute; top: 118px; right: var(--rail); display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 8px 13px; border: 1px solid #e6f2db50; border-radius: 24px;
  color: #f5f8ed; background: #10291dc9; font: 12px/1.2 Aspekta, Arial, sans-serif;
}
.hero-motion-toggle[hidden] { display: none; }
.hero-motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hero-motion-toggle .motion-play { display: none; }
.hero[data-background-paused="true"] .motion-pause { display: none; }
.hero[data-background-paused="true"] .motion-play { display: block; }
.hero-motion-toggle:hover { background: #254d34; }

@media (max-width: 700px) {
  .opening-scene { inset: 8px; }
  .hero .opening,
  html[data-motion="scroll"] .hero .opening { padding: 170px 32px 100px; }
  .hero .opening h1 { font-size: clamp(42px, 11.8vw, 76px); line-height: 1.04; letter-spacing: -.04em; }
  .hero .opening-bottom { margin-top: 24px; gap: 28px; }
  .hero .opening-bottom > p { font-size: 17px; line-height: 1.4; }
  .hero-grid > span:nth-child(2), .hero-grid > span:nth-child(3) { display: none; }
  .hero-motion-toggle { top: 106px; right: 24px; }
}
@media (max-height: 650px) {
  .hero { --hero-opening-height: max(100svh, 680px); }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax-layer] { transform: none !important; }
}
