:root { --accent: #6aa5b1; }
html, body { margin: 0; padding: 0; height: 100%; height: 100dvh; background: #0c1014; overflow: hidden; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(106,165,177,0.35); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.screen {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0c1014;
  color: #e8edef;
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  touch-action: none;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 44px;
}

header img {
  height: 24px;
  display: block;
  animation: fadeUp .8s ease both;
}

header a.contact {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #8b98a0;
  text-decoration: none;
  transition: color .2s;
  animation: fadeUp .8s ease .1s both;
}
header a.contact:hover { color: var(--accent); }

main {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, min(6vw, 8.5vh), 84px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
  min-height: 1.06em;
  animation: fadeUp .8s ease .25s both;
}

h1 .cursor {
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
  font-weight: 400;
}

.heading-panel {
  width: min(440px, 86vw);
  max-height: 0;
  margin: 0 auto;
  opacity: 0;
  overflow: hidden;
  text-align: center;
  transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease;
}
.heading-panel.is-open {
  max-height: 220px;
  opacity: 1;
  margin-top: clamp(16px, 3vh, 26px);
}

.heading-panel .panel-box {
  display: block;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  background: rgba(14,19,24,0.35);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: height .5s ease;
}
.heading-panel .panel-content {
  display: block;
  opacity: 1;
  transition: opacity .3s ease;
}
.heading-panel .panel-content.is-hidden {
  opacity: 0;
}
.heading-panel .desc {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: #c3ccd2;
  text-wrap: pretty;
}

.subtitle {
  margin: clamp(16px, 3vh, 30px) 0 0;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  color: #8b98a0;
  max-width: 46ch;
  text-wrap: pretty;
  animation: fadeUp .8s ease .4s both;
}

.cta-row {
  margin-top: clamp(20px, 4vh, 42px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .8s ease .55s both;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0c1014;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(106,165,177,0.55), 0 0 10px rgba(106,165,177,0.4);
}
