/* Jungbluth's own CSS horizon. Mount behind the hero copy; no images or runtime required. */
:is(.studio-hero-shell, .studio-hero) {
  --horizon-ink: #041918;
  --horizon-deep: #073735;
  --horizon-teal: #057f77;
  --horizon-light: #81d8d0;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: min(100svh, 1040px);
  padding: clamp(136px, 13vh, 190px) max(24px, env(safe-area-inset-right)) 158px;
  overflow: hidden;
  background: var(--horizon-ink);
  color: #fff;
}

:is(.studio-horizon, .studio-hero-scene) {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(ellipse 74% 58% at 50% 76%, #0c8e84 0, #07504b 47%, transparent 86%),
    linear-gradient(180deg, #041615 0, #061d1b 36%, #073b37 69%, #0c5550 100%);
}
:is(.studio-horizon, .studio-hero-scene) > span {
  display: block;
  position: absolute;
  pointer-events: none;
}
:is(.studio-horizon, .studio-hero-scene)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 70% at 50% 24%, transparent 20%, #00100c6b 100%);
  z-index: 5;
}
:is(.studio-horizon, .studio-hero-scene)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(180deg, #00141033 0, #00141000 58%, #00141044 100%);
}
.studio-horizon-light {
  width: 84%;
  height: 24%;
  left: 8%;
  top: 68%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #d7fff3b0, #81d8d04d 23%, #0ca69826 50%, transparent 73%);
  filter: blur(16px);
}
.studio-horizon-core {
  width: 26%;
  height: 8%;
  top: 77.5%;
  left: 37%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e9fff785, #7ce1c93d 30%, transparent 72%);
  filter: blur(8px);
}
.studio-horizon-far {
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 26%;
  background: linear-gradient(162deg, #18675e 0, #0b4944 42%, #103e39 78%);
  clip-path: polygon(0 12%, 8% 23%, 16% 25%, 24% 41%, 34% 38%, 42% 48%, 48% 53%, 55% 51%, 65% 39%, 74% 32%, 83% 14%, 91% 21%, 100% 5%, 100% 100%, 0 100%);
  opacity: .76;
}
.studio-horizon-left {
  inset: auto auto -1px -3%;
  width: 72%;
  height: 28%;
  background: linear-gradient(155deg, #0b4a43 8%, #052d29 47%, #041b18 93%);
  clip-path: polygon(0 7%, 12% 11%, 21% 26%, 30% 29%, 40% 46%, 53% 53%, 64% 63%, 78% 70%, 91% 86%, 100% 100%, 0 100%);
}
.studio-horizon-right {
  inset: auto -4% -1px auto;
  width: 74%;
  height: 27%;
  background: linear-gradient(213deg, #104a42 0, #062c27 54%, #041a17 96%);
  clip-path: polygon(0 100%, 12% 89%, 25% 81%, 38% 64%, 50% 57%, 61% 42%, 73% 32%, 83% 14%, 94% 5%, 100% 8%, 100% 100%);
}
.studio-horizon-foreground {
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 14%;
  background: linear-gradient(180deg, #072c27, #041918);
  clip-path: polygon(0 20%, 12% 34%, 21% 39%, 36% 71%, 49% 85%, 61% 67%, 76% 43%, 87% 39%, 100% 16%, 100% 100%, 0 100%);
}

/* Optional content hooks. Keep the actual brand message and working CTA targets in the page. */
.studio-hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1010px);
  margin: 0 auto;
  text-align: center;
}
.studio-hero-copy h1 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-family: var(--studio-heading-font, Inter, Arial, sans-serif);
  font-size: clamp(54px, 7.35vw, 106px);
  font-weight: 500;
  line-height: 1.025;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.studio-hero-copy h1 em {
  font-family: var(--studio-serif-font, Georgia, 'Times New Roman', serif);
  font-size: 1.04em;
  font-weight: 400;
  letter-spacing: -.06em;
}
.studio-hero-summary {
  width: min(100%, 690px);
  margin: 30px auto 0;
  color: #d3e9e4;
  font-size: clamp(17px, 1.34vw, 20px);
  line-height: 1.65;
  text-wrap: pretty;
}
.studio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 31px;
}
.studio-hero-actions a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 25px;
  border: 1px solid #b8fff12e;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  color: #fff;
  background: #103a3466;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.studio-hero-actions a:first-child {
  border-color: #81d8d0;
  color: #062623;
  background: #81d8d0;
}
.studio-hero-actions a:hover {
  background-color: #24524b;
  border-color: #81d8d0aa;
  transform: translateY(-2px);
}
.studio-hero-actions a:first-child:hover { background: #a4ece4; }
.studio-hero-actions a:active { transform: translateY(0); }
.studio-hero-actions a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.studio-hero-proof {
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #c0d9d1;
}

@media (min-width: 1000px) and (min-height: 760px) {
  :is(.studio-hero-shell, .studio-hero) { min-height: 100svh; }
}
@media (max-width: 760px) {
  :is(.studio-hero-shell, .studio-hero) {
    min-height: 100svh;
    padding: 126px 26px 160px;
  }
  .studio-hero-copy h1 { font-size: clamp(48px, 8.6vw, 68px); line-height: 1.055; letter-spacing: -.052em; }
  .studio-hero-summary { max-width: 560px; margin-top: 24px; font-size: 17px; line-height: 1.6; }
  .studio-horizon-light { left: -30%; width: 160%; top: 74%; height: 18%; }
  .studio-horizon-core { left: 18%; width: 64%; top: 80%; height: 7%; }
  .studio-horizon-far { height: 20%; }
  .studio-horizon-left, .studio-horizon-right { height: 22%; }
  .studio-horizon-foreground { height: 10%; }
}
@media (max-width: 450px) {
  :is(.studio-hero-shell, .studio-hero) { padding: 112px 22px 146px; }
  .studio-hero-copy h1 { font-size: clamp(42px, 10.2vw, 48px); line-height: 1.08; }
  .studio-hero-summary { margin-top: 22px; font-size: 16px; }
  .studio-hero-actions { flex-direction: column; gap: 12px; margin-top: 24px; }
  .studio-hero-actions a { width: min(100%, 300px); min-height: 50px; }
  .studio-hero-proof { max-width: 280px; margin: 21px auto 0; }
}

/* A short one-time arrival preserves the complete composition when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .studio-hero-copy { animation: studio-hero-arrival 700ms cubic-bezier(.2,.7,.2,1) both; }
  .studio-horizon-light, .studio-horizon-core { animation: studio-horizon-arrival 1.3s ease-out both; }
  @keyframes studio-hero-arrival {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes studio-horizon-arrival {
    from { opacity: .3; }
    to { opacity: 1; }
  }
}

/* The continuous landscape is a page layer, as the camera travels through the tour. */
body.studio-atmosphere-ready{isolation:isolate;background:#041918}
.studio-atmosphere{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#041918;contain:strict}
.studio-atmosphere>.studio-horizon,.studio-atmosphere>.studio-hero-scene{position:absolute;z-index:0}
.studio-atmosphere-canvas{display:none;position:absolute;inset:0;width:100%;height:100%;z-index:1}
.studio-atmosphere.has-webgl>.studio-atmosphere-canvas{display:block}
.studio-atmosphere.has-webgl>.studio-horizon,.studio-atmosphere.has-webgl>.studio-hero-scene{visibility:hidden}
.studio-atmosphere::after{content:'';position:absolute;inset:0;z-index:2;opacity:var(--atmosphere-exit,0);background:linear-gradient(90deg,#011712dc 0,#01171269 24vw,transparent 40vw),radial-gradient(ellipse at 50% 42%,transparent 40%,#0014116b 100%)}
.studio-atmosphere-ready>main{position:relative;z-index:2}
.studio-atmosphere-ready .ra-footer{position:relative;z-index:2}
.studio-atmosphere-ready :is(.studio-hero-shell,.studio-hero){background:transparent}
.studio-atmosphere-ready :is(.studio-hero-shell,.studio-hero)>.studio-horizon,.studio-atmosphere-ready :is(.studio-hero-shell,.studio-hero)>.studio-hero-scene{display:none}
.studio-atmosphere-ready .ra-header{position:fixed;z-index:30}
.studio-atmosphere-ready .studio-hero-copy{animation:none}
.studio-atmosphere-ready .studio-hero-copy>h1{text-shadow:0 2px 40px #01272280}
.studio-atmosphere-ready .studio-hero-summary{color:#f2fffb;text-shadow:0 1px 2px #00251acc,0 1px 18px #001911b3}
.studio-atmosphere-ready .studio-hero-proof,.studio-atmosphere-ready .ra-brands>span{color:#e0f3ed;text-shadow:0 1px 18px #001911cc}
@media(min-width:761px){
 .studio-page.studio-atmosphere-pinned :is(.studio-hero-shell,.studio-hero){position:fixed;inset:0;z-index:6;min-height:0;height:100dvh;padding:40px max(20px,env(safe-area-inset-right)) 0;pointer-events:none;overflow:hidden}
 .studio-atmosphere-pinned .studio-hero-copy{max-width:1130px;pointer-events:none}
 .studio-atmosphere-pinned .studio-hero-copy>*{will-change:transform;animation:none!important;translate:none!important}
 .studio-atmosphere-pinned .studio-hero-copy a,.studio-atmosphere-pinned .studio-hero-copy button{pointer-events:auto}
}
@media(max-width:760px){
 .studio-atmosphere-ready .studio-hero-copy{transform:none!important;opacity:1!important}
 .studio-atmosphere-ready .studio-hero-proof,.studio-atmosphere-ready .ra-brands>span{text-shadow:0 0 10px #001911f2,0 1px 22px #001911e6;color:#fff}
}
@media(prefers-reduced-motion:reduce){
 .studio-atmosphere-ready .ra-header{transition:none}
 .studio-atmosphere-ready .studio-hero-copy>*{transform:none!important;will-change:auto}
}

/* The page owns initial visibility; enhanced desktop owns only scroll and pointer movement. */
@media(min-width:761px){
 .studio-atmosphere-pinned .letter-nav{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
 .studio-atmosphere-pinned .letter-proof{color:#effaf7;text-shadow:0 1px 14px #001911cc}
}
