/* Digital Wave — smooth horizon intro and reference-matched hero. */
.intro {
  display: block;
  background: #050507;
}

.intro::before { display: none; }

.intro-horizon {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -58%;
  width: 144vw;
  height: 124vh;
  border-radius: 50%;
  isolation: isolate;
  opacity: .04;
  transform: translateX(-50%) translateY(-46vh) scale(1.06);
  will-change: transform, opacity;
  animation: dwIntroHorizonIn 4.75s var(--ease) .04s forwards;
}

.intro-glow,
.intro-moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.intro-glow-wide {
  background: #4922e5;
  filter: blur(52px);
  transform: scale(1.04) translateY(7%);
  opacity: .72;
}

.intro-glow-violet {
  background: #a558fb;
  filter: blur(29px);
  transform: scale(1.018) translateY(3.5%);
  opacity: .92;
}

.intro-glow-white {
  background: #f8f2ff;
  filter: blur(7px);
  transform: scale(1.007) translateY(1.2%);
  box-shadow: 0 8px 28px rgba(255,255,255,.72);
}

.intro-moon {
  z-index: 2;
  background: #000;
  box-shadow: inset 0 -18px 48px rgba(73,34,229,.12);
}

.intro-content {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 58%;
  width: min(94vw, 1180px);
  text-align: center;
  transform: translate(-50%, -50%);
}

.intro-welcome {
  margin: 0;
  color: #f7f7f8;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: .95;
}

.intro-wordmark {
  display: block;
  margin: 10px 0 0;
  color: #7646ff;
  font-family: "Helvetica Neue", Inter, Arial, sans-serif;
  font-size: clamp(70px, 9.4vw, 136px);
  font-weight: 780;
  letter-spacing: -.075em;
  line-height: .9;
  text-shadow: 0 0 34px rgba(112,64,255,.34);
}

.intro-subline {
  margin: 26px 0 0;
  color: #c0bdc8;
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.intro-capabilities {
  display: block;
  margin: 22px 0 0;
  color: #706b7d;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro-type {
  opacity: 1;
  filter: none;
}

.typed-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  filter: blur(9px);
  animation: dwTypeChar .48s var(--ease) var(--char-delay) forwards;
}

.typed-char.typed-space {
  width: .28em;
}

.intro-capabilities .typed-dot {
  color: #7447ff;
  text-shadow: 0 0 12px rgba(116,71,255,.8);
}

.intro-controls {
  z-index: 8;
  bottom: 25px;
}

.intro-controls button {
  color: #77747f;
  font-size: 10px;
}

.intro-progress {
  z-index: 7;
  left: 50%;
  bottom: 31px;
  display: block;
  width: min(20vw, 220px);
  transform: translateX(-50%);
}

.intro-progress > i {
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
}

.intro-progress b {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #4922e5, #b98aff, #fff);
  transform: translateX(-100%);
  animation: dwIntroProgress 8.45s linear .05s forwards;
}

body.intro-leaving .intro-content { animation: dwIntroContentExit .38s ease forwards; }
body.intro-leaving .intro-horizon { z-index: 6; animation: dwIntroHorizonExit 1.12s var(--ease) forwards; }
body.intro-leaving .intro { animation: dwIntroExit 1.18s var(--ease) forwards; }

@keyframes dwTypeChar {
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes dwIntroHorizonIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes dwIntroHorizonExit {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  58% { opacity: 1; transform: translateX(-50%) translateY(-45vh) scale(1.035); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-70vh) scale(1.06); }
}

@keyframes dwIntroContentExit {
  to { opacity: 0; transform: translate(-50%, -78%) scale(.98); filter: blur(9px); }
}

@keyframes dwIntroExit {
  0%, 58% { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes dwIntroProgress {
  to { transform: translateX(0); }
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 100svh;
  padding-top: clamp(172px, 20.5vh, 232px);
  padding-bottom: clamp(190px, 28vh, 300px);
  overflow: hidden;
  background: linear-gradient(to bottom, #030303 0%, #050505 30%, #545555 74%, #d9dbda 93%, #b6b8b7 100%);
  border-bottom: 0;
}

.hero::after { display: none; }

.hero-grid {
  position: absolute;
  inset: 0 0 30%;
  opacity: .48;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 6rem 5rem;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 56%, transparent 104%);
  will-change: transform, opacity;
  animation: dwHeroGridDrift 14s ease-in-out 2s infinite alternate;
}

.hero-horizon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(100% - clamp(195px, 27vh, 285px));
  width: 154%;
  height: clamp(590px, 86vh, 900px);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 -2px 5px rgba(255,255,255,1),
    0 -9px 24px rgba(255,255,255,.82),
    0 -23px 58px rgba(255,255,255,.42),
    0 -48px 112px rgba(255,255,255,.2);
  opacity: 0;
  transform: translateX(-50%) translateY(120px) scaleX(1.12);
  will-change: transform, opacity;
}

.hero-horizon::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -4px -1% auto;
  height: 42px;
  border-top: 2px solid rgba(255,255,255,.88);
  border-radius: 50%;
  box-shadow: 0 -8px 26px rgba(255,255,255,.68);
  opacity: .22;
  pointer-events: none;
  animation: dwHeroRimBreath 4.8s ease-in-out 1.4s infinite alternate;
}

.hero-horizon span {
  position: absolute;
  inset: 11px 4px 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    #f8f8f6 0,
    #d8d9d7 1.4%,
    #929491 3.2%,
    #3f403f 5.8%,
    #141414 8.8%,
    #000 13.5%
  );
  box-shadow:
    inset 0 9px 18px rgba(255,255,255,.34),
    inset 0 25px 48px rgba(255,255,255,.08);
}

body.site-ready .hero-horizon { animation: dwHeroHorizonIn 1.08s var(--ease) .02s forwards; }

.hero-layout {
  position: relative;
  z-index: 3;
  display: block;
}

.hero-copy {
  max-width: 1080px;
  margin-inline: auto;
  padding: 0;
  text-align: center;
}

body.intro-active .hero-copy { opacity: 0; transform: translateY(28px); }
body.site-ready .hero-copy { animation: dwHeroCopyIn .72s var(--ease) .46s both; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 auto 25px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(255,255,255,.075), rgba(255,255,255,.015));
  color: #aaa;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: .12em;
  backdrop-filter: blur(10px);
}

.hero .eyebrow span {
  color: #e8e8e8;
  font-size: 16px;
  line-height: .6;
  transition: transform .3s var(--ease);
}

.hero .eyebrow:hover span { transform: translateX(3px); }

.hero h1 {
  max-width: 1080px;
  margin: 0 auto;
  color: #f7f7f5;
  font-family: "Helvetica Neue", Inter, Arial, sans-serif;
  font-size: clamp(58px, 7.8vw, 116px);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: .94;
  text-wrap: balance;
}

.hero-line {
  padding-bottom: .05em;
  margin-bottom: -.05em;
}

.hero-line > span { transform: translateY(115%); }
.hero-line:nth-child(1) > span {
  color: #fbfbf9;
  text-shadow:
    0 1px 0 rgba(255,255,255,.22),
    0 7px 18px rgba(0,0,0,.17);
}
.hero-line:nth-child(2) > span {
  color: #dededb;
  text-shadow:
    0 1px 0 rgba(255,255,255,.1),
    0 8px 20px rgba(0,0,0,.3),
    0 19px 42px rgba(0,0,0,.2);
}
body.site-ready .hero-line:nth-child(1) > span { animation: heroLineIn .88s var(--ease) .62s forwards; }
body.site-ready .hero-line:nth-child(2) > span { animation: heroLineIn .88s var(--ease) .78s forwards; }

.hero-lead {
  max-width: 720px;
  margin: 25px auto 0;
  color: #bfc0be;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.48;
  text-wrap: balance;
  text-shadow: 0 6px 18px rgba(0,0,0,.34);
}

.hero .button-row {
  justify-content: center;
  margin-top: 34px;
}

body.site-ready .hero-copy .eyebrow { animation: heroDetailIn .62s var(--ease) .46s forwards; }
body.site-ready .hero-copy .hero-lead { animation: heroDetailIn .7s var(--ease) 1.02s forwards; }
body.site-ready .hero-copy .button-row { animation: heroDetailIn .7s var(--ease) 1.18s forwards; }

.button-hero {
  min-width: 210px;
  border-color: rgba(255,255,255,.48);
  border-radius: 8px;
  background: rgba(5,5,5,.82);
  color: #fff;
  box-shadow: 0 10px 36px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}

.button-hero:hover {
  border-color: #fff;
  background: #050505;
}

.hero-scroll { display: none; }

@keyframes dwHeroHorizonIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0) scaleX(1); }
}

@keyframes dwHeroGridDrift {
  from { transform: translate3d(-1.2rem, -.7rem, 0) scale(1.025); opacity: .4; }
  to { transform: translate3d(1.2rem, .7rem, 0) scale(1.025); opacity: .52; }
}

@keyframes dwHeroRimBreath {
  from { opacity: .18; transform: scaleX(.994); }
  to { opacity: .46; transform: scaleX(1.004); }
}

@keyframes dwHeroCopyIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 1040px) {
  .hero-layout { display: block; }
  .hero-copy { padding-top: 0; }
}

@media (max-width: 760px) {
  .intro-horizon {
    top: -43%;
    width: 190vw;
    height: 103vh;
  }

  .intro-content {
    top: 61%;
    width: calc(100% - 30px);
  }

  .intro-welcome { font-size: clamp(32px, 10vw, 46px); }
  .intro-wordmark { margin-top: 7px; font-size: clamp(58px, 18vw, 84px); line-height: .9; }
  .intro-subline { margin-top: 21px; font-size: 9px; letter-spacing: .14em; }
  .intro-capabilities { gap: 8px; margin-top: 18px; font-size: 7px; letter-spacing: .08em; }
  .intro-progress { bottom: 26px; width: 26vw; }
  body.intro-leaving .intro-horizon { animation-name: dwIntroHorizonExitMobile; }

  .hero {
    min-height: 100svh;
    padding-top: clamp(150px, 21vh, 186px);
    padding-bottom: 200px;
  }

  .hero h1 { font-size: clamp(51px, 14.4vw, 72px); line-height: .94; }
  .hero-lead { max-width: 560px; margin-top: 22px; font-size: 15px; line-height: 1.5; }
  .hero .eyebrow { margin-bottom: 21px; padding: 8px 13px; font-size: 8px; }
  .hero .button-row { display: flex; margin-top: 28px; }
  .hero .button-row .button { width: auto; min-width: 205px; }
  .hero-horizon { top: calc(100% - 160px); width: 220%; height: 520px; }
  .hero-horizon span { inset: 10px 4px 0; }
  .hero-grid { bottom: 24%; background-size: 4rem 4rem; }
}

@keyframes dwIntroHorizonExitMobile {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  58% { opacity: 1; transform: translateX(-50%) translateY(-38vh) scale(1.035); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-62vh) scale(1.06); }
}
