:root {
  --cyan: #50baca;
  --cyan-light: #88cedd;
  --cyan-pale: #add9e0;
  --cyan-deep: #1f7f93;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
html { height: 100%; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #fff;
  overflow-x: hidden;
  background: #fff;
}

/* blue field: starts full-screen, then shrinks to a framed panel on all four sides */
.hero {
  --frame: 45px;
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background-color: var(--cyan);
  background-image: linear-gradient(-45deg, #50baca 0%, #88cedd 25%, #add9e0 51%, #50baca 100%);
  background-size: 300% 300%;
  animation: bg 20s ease infinite, frame 1.6s .5s cubic-bezier(.65,0,.25,1) both;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url(../../imgs/grid-white.png) center / auto repeat;
}
@keyframes frame {
  from { clip-path: inset(0 round 0); }
  to { clip-path: inset(var(--frame) round 0px); }
}

@keyframes bg { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* very subtle light that follows the cursor */
.glow {
  position: absolute; left: 0; top: 0; pointer-events: none;
  width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.28), rgba(255,255,255,.10) 45%, rgba(255,255,255,0) 100%);
  opacity: 0; transition: opacity 1.2s ease; will-change: transform;
}
.glow.on { opacity: 1; }

main {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 77px 24px;
}

.domain {
  margin: 36px 0 0; padding: 8px 30px 8px 32px; border-radius: 99px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 500; letter-spacing: 6px; text-transform: uppercase;
  animation: rise .9s 1.5s both cubic-bezier(.2,.8,.2,1);
}

h1 { margin: 0 0 40px; font-weight: 800; }
.psst {
  display: block; font-size: clamp(24px, 4vw, 45px); font-weight: 600; margin-bottom: 8px;
  animation: rise .9s .25s both cubic-bezier(.2,.8,.2,1);
}
.big { display: block; font-size: clamp(40px, 8.4vw, 110px); line-height: 1.05; letter-spacing: 0; text-shadow: 0 4px 24px rgba(15,76,90,.18); }
.w { display: inline-block; animation: rise 1s calc(.45s + var(--i) * .18s) both cubic-bezier(.2,.8,.2,1); }
.l { display: inline-block; will-change: transform; }
.dot { font-style: normal; display: inline-block; transform-origin: 50% 100%; animation: bounce 2.4s 1.8s ease-in-out infinite; }

.info {
  margin: 0; max-width: 40ch; font-size: clamp(17px, 2.2vw, 28px); line-height: 1.5; font-weight: 200;
  animation: rise 1s .95s both cubic-bezier(.2,.8,.2,1);
}
.info { text-wrap: balance; }
.info[hidden], .domain[hidden] { display: none; }

/* little animated "building" bars */
.building { display: flex; gap: 8px; align-items: flex-end; height: 34px; margin: 44px 0 0; animation: rise 1s 1.15s both; }
.building span { width: 10px; background: #fff; border-radius: 2px; animation: build 1.6s ease-in-out infinite; }
.building span:nth-child(1) { animation-delay: 0s; }
.building span:nth-child(2) { animation-delay: .15s; }
.building span:nth-child(3) { animation-delay: .3s; }
.building span:nth-child(4) { animation-delay: .45s; }
.building span:nth-child(5) { animation-delay: .6s; }
@keyframes build { 0%, 100% { height: 8px; opacity: .5; } 50% { height: 34px; opacity: 1; } }

.by { display: block; margin-top: 48px; color: #fff; text-decoration: none; opacity: .85; transition: opacity .3s, transform .3s; animation: rise 1s 1.3s both; }
.by:hover, .by:focus-visible { opacity: 1; transform: translateY(-3px); }
.by small { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.by img { width: 340px; max-width: 80vw; height: auto; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-14px); } 80% { transform: translateY(0); } 88% { transform: translateY(-5px); } }

@media (max-width: 767px) {
  .hero { --frame: 18px; }
  main { padding: 50px 28px; }
  .big { font-weight: 900; line-height: 1.1; }
  .info { font-weight: 400; }
  .info br { display: none; }
  .building { margin-top: 32px; }
  .by img { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

@media (max-height: 520px) and (orientation: landscape) {
  main { padding: 60px 24px; }
  h1 { margin-bottom: 16px; }
  .big { font-size: 15vh; }
  .psst { font-size: 6vh; }
  .info { font-size: 4.5vh; }
  .building { margin-top: 20px; }
  .by { margin-top: 24px; }
  .by img { width: 200px; }
}
