* {
  box-sizing: border-box;
}

:root {
  --oxford: #002147;
  --deep: #001632;
  --white: #f8f8ff;
  --muted: rgba(248, 248, 255, .82);
  --mouse-x: 0;
  --mouse-y: 0;
  --scroll: 0;
  --lines: 0;
  --line-slide: 92px;
  --logo-lift: 0px;
}

html {
  min-height: 100%;
  background: #f4f6fb;
}

body {
  min-height: 210vh;
  margin: 0;
  font-family: "Darker Grotesque", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: #f4f6fb;
  overflow-x: hidden;
}

.scroll-space {
  position: absolute;
  inset: 0;
  height: 210vh;
  pointer-events: none;
}

.site-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(0px, .8vw, 14px);
  background: linear-gradient(180deg, #f7f8fc, #eef2f7);
}

.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(0px, 2vw, 34px);
  background:
    radial-gradient(circle at calc(50% + (var(--mouse-x) * 1px)) calc(47% + (var(--mouse-y) * .72px)), rgba(30, 105, 204, .30), transparent 32%),
    radial-gradient(circle at 76% 35%, rgba(255, 255, 255, .06), transparent 24%),
    radial-gradient(circle at 20% 80%, rgba(0, 110, 255, .13), transparent 28%),
    linear-gradient(135deg, #002c61 0%, var(--oxford) 44%, var(--deep) 100%);
  box-shadow: 0 30px 82px rgba(0, 18, 42, .28);
}

.ambient-layer {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(circle at 48% 45%, rgba(255,255,255,.09), transparent 22%),
    conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(255,255,255,.035) 70deg, transparent 130deg, rgba(255,255,255,.02) 220deg, transparent 310deg);
  transform: translate3d(calc(var(--mouse-x) * .25px), calc(var(--mouse-y) * .25px), 0) rotate(calc(var(--scroll) * 3deg));
  opacity: .9;
  pointer-events: none;
}

.grain-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .17;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.22), transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 68%);
  pointer-events: none;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: clamp(24px, 4vw, 52px);
  left: clamp(26px, 5vw, 76px);
  right: clamp(24px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.25vw, 18px);
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(42px, 4.5vw, 66px);
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 9px 16px rgba(0,0,0,.16));
}

.brand-name {
  font-size: clamp(1.15rem, 1.45vw, 1.48rem);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.linktree-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: clamp(44px, 3.8vw, 58px);
  padding: 0 clamp(19px, 2vw, 28px);
  border-radius: 999px;
  color: #071635;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .20);
  text-decoration: none;
  font-size: clamp(1rem, 1.18vw, 1.22rem);
  font-weight: 800;
  line-height: 1;
  transition: transform .32s ease, box-shadow .32s ease, background .32s ease;
}

.linktree-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .28);
  background: #fff;
}

.button-arrow {
  font-size: 1.16em;
  transform: translateY(-1px);
}

.stage {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: calc(47.3% - (var(--scroll) * 66px));
  width: min(950px, 86vw);
  transform: translate(-50%, -50%) scale(calc(1 - (var(--scroll) * .045)));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform;
}

.hero-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(168px, 15.5vw, 265px);
  margin-bottom: clamp(10px, 1.5vw, 20px);
  transform: translate3d(0, calc(var(--scroll) * -10px), 0);
  will-change: transform;
}

.neon-glow {
  position: absolute;
  inset: 12%;
  z-index: 0;
  border-radius: 42%;
  background: rgba(255,255,255,.24);
  filter: blur(calc(28px + (var(--scroll) * 24px)));
  opacity: calc(.36 + (var(--scroll) * .22));
  transform:
    translate3d(calc(var(--mouse-x) * .45px), calc(var(--mouse-y) * .45px), 0)
    scale(calc(1 + (var(--scroll) * .18)));
  transition: opacity .2s ease;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 24px 44px rgba(0,0,0,.18));
  animation: logoIn 1.05s cubic-bezier(.22, 1, .36, 1) both;
}

h1 {
  margin: 0;
  font-size: clamp(3.05rem, 4.75vw, 5.25rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.035em;
  text-shadow: 0 18px 38px rgba(0,0,0,.20);
  animation: fadeUp .95s .16s cubic-bezier(.22, 1, .36, 1) both;
}

.message-area {
  position: relative;
  display: grid;
  place-items: center;
  width: min(820px, 92vw);
  min-height: clamp(70px, 8vh, 92px);
  margin-top: clamp(28px, 4.1vh, 50px);
}

.message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: rgba(248,248,255,.93);
  font-size: clamp(1.35rem, 1.62vw, 1.78rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: .004em;
  opacity: 0;
  transform: translateY(18px) scale(.99);
  transition: opacity .52s ease, transform .52s ease;
}

body[data-scene="0"] .message-one,
body[data-scene="1"] .message-two,
body[data-scene="2"] .message-three {
  opacity: 1;
  transform: translateY(0) scale(1);
}

h2 {
  margin: clamp(18px, 2.8vh, 34px) 0 0;
  font-size: clamp(2.22rem, 3.1vw, 4.05rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.022em;
  color: var(--white);
  text-shadow: 0 18px 44px rgba(0,0,0,.23);
  animation: fadeUp .95s .30s cubic-bezier(.22, 1, .36, 1) both;
}

.side-lines {
  position: absolute;
  z-index: 4;
  top: 15%;
  width: min(33vw, 550px);
  height: 80%;
  opacity: var(--lines);
  pointer-events: none;
  transition: opacity .22s ease;
  will-change: transform, opacity;
}

.side-lines-left {
  left: -4%;
  transform:
    translate3d(calc(var(--line-slide) * -1 + var(--mouse-x) * .55px), calc(var(--mouse-y) * .32px), 0)
    scale(calc(.96 + var(--scroll) * .07));
}

.side-lines-right {
  right: -4%;
  transform:
    translate3d(calc(var(--line-slide) * 1 + var(--mouse-x) * -.55px), calc(var(--mouse-y) * -.32px), 0)
    scale(calc(.96 + var(--scroll) * .07));
}

.side-lines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.curve {
  fill: none;
  stroke: rgba(248,248,255,.88);
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.10));
}

.curve-main {
  stroke-dasharray: 820;
  stroke-dashoffset: calc(820 - (var(--scroll) * 820));
}

.curve-loop {
  stroke-dasharray: 900;
  stroke-dashoffset: calc(900 - (var(--scroll) * 900));
}

.curve-cross {
  stroke-dasharray: 760;
  stroke-dashoffset: calc(760 - (var(--scroll) * 760));
  opacity: .88;
}

.footer {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: clamp(32px, 5.8vh, 64px);
  width: min(590px, 88vw);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(25px, 5.4vh, 54px);
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.8vw, 40px);
}

.socials a {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--white);
  text-decoration: none;
  opacity: .96;
  transition: transform .24s ease, opacity .24s ease, filter .24s ease;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(248,248,255,.34));
}

.socials svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.82;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer p {
  margin: 0;
  color: rgba(248,248,255,.94);
  font-size: clamp(1.02rem, 1.3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .003em;
  text-align: center;
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.92) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) {
  .hero-card:hover .side-lines {
    opacity: calc(var(--lines) + .07);
  }
}

@media (max-width: 1100px) {
  .side-lines {
    width: min(42vw, 520px);
  }

  .side-lines-left {
    left: -15%;
  }

  .side-lines-right {
    right: -15%;
  }
}

@media (max-width: 820px) {
  body {
    min-height: 180vh;
  }

  .site-shell {
    padding: 0;
  }

  .hero-card {
    min-height: 100vh;
    border-radius: 0;
  }

  .topbar {
    top: 22px;
    left: 22px;
    right: 22px;
  }

  .brand-mark {
    width: 39px;
  }

  .brand-name {
    font-size: 1.06rem;
  }

  .linktree-button {
    min-height: 43px;
    padding: 0 17px;
    font-size: .98rem;
  }

  .stage {
    top: calc(47% - (var(--scroll) * 34px));
    width: min(92vw, 720px);
  }

  .hero-logo-wrap {
    width: clamp(138px, 28vw, 188px);
  }

  h1 {
    font-size: clamp(2.65rem, 10vw, 3.75rem);
  }

  .message-area {
    min-height: 94px;
    margin-top: 24px;
  }

  .message {
    font-size: clamp(1.12rem, 4.2vw, 1.36rem);
  }

  h2 {
    font-size: clamp(1.95rem, 7.6vw, 2.75rem);
  }

  .side-lines {
    top: 34%;
    width: 62vw;
    height: 64%;
    opacity: calc(var(--lines) * .56);
  }

  .side-lines-left {
    left: -36%;
  }

  .side-lines-right {
    right: -36%;
  }

  .footer {
    bottom: 28px;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .linktree-button {
    max-width: 178px;
    min-height: 40px;
    padding: 0 14px;
    font-size: .91rem;
  }

  .button-arrow {
    display: none;
  }

  .stage {
    top: calc(47% - (var(--scroll) * 22px));
  }

  .message-area {
    width: 90vw;
  }

  .socials {
    gap: 20px;
  }

  .socials a {
    width: 30px;
    height: 30px;
  }

  .socials svg {
    width: 25px;
    height: 25px;
  }

  .x-logo {
    width: 23px;
    height: 23px;
  }

  .footer p {
    font-size: .94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
