*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

canvas { display: block; cursor: none; }

#mobile-portrait {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(88vw, 520px);
  height: auto;
  transform: translateX(-50%) scale(1.5);
  transform-origin: center bottom;
  opacity: 0;
  transition: opacity .9s ease;
  z-index: 2;
  pointer-events: none;
}

/* ── nav bar ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; bottom: 35px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center;
  pointer-events: none;
  opacity: 0; transition: opacity 1s ease 1.3s;
  padding: 20px 40px 0 20px; z-index: 10;
}
.nav.show { opacity: 1; }
.nav a {
  color: #fff;
  font-size: 15px;
  letter-spacing: .12em;
  padding: 15px 20px;
  text-transform: uppercase; text-decoration: none;
  pointer-events: all;
  transition: color .25s ease;
}
.nav a:hover { color: #2bd9e9; }
.nav a.active { color: #2bd9e9; }

/* ── page transition overlay ─────────────────────────────────────────────── */
#page-overlay {
  position: fixed; inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 999;
}
#page-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── intro text ─────────────────────────────────────────────────────────── */
#intro {
  position: fixed; left: 0; top: 0;
  width: 40%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: clamp(40px, 10vw, 300px);
  pointer-events: none; z-index: 10;
}

@media (max-width: 900px) {
  #intro { width: 100%; padding: 75px 40px 0; text-align: center; justify-content: flex-start; }
}

@media (max-width: 767px) {
  body.mobile-static canvas { display: none; }
  body.mobile-static #mobile-portrait { display: block; opacity: 0; }
  body.mobile-static.mobile-ready #mobile-portrait { opacity: 1; }
}

.i-eye {
  font-size: clamp(11px, 1vw, 13px); letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  font-weight: 400; opacity: 0; transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.i-eye.show { opacity: 1; transform: none; }
.i-rule {
  width: 0; height: 1px;
  background: rgba(180,205,255,.35);
  margin: 22px 0 24px;
  transition: width .9s cubic-bezier(.4,0,.2,1) .2s;
}
.i-rule.show { width: 56px; }
.i-head {
  font-size: clamp(40px, 6vw, 86px); font-weight: 800;
  line-height: .9; letter-spacing: -.025em; text-transform: uppercase;
  color: #fff;
}
.i-head .w { display: block; }
.i-head .w span {
  display: block; white-space: nowrap;
  transform: translateY(24px); opacity: 0;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .7s ease;
}
.i-head.show .w:nth-child(1) span { transform: translateY(0); opacity: 1; transition-delay: .1s; }
.i-head.show .w:nth-child(2) span { transform: translateY(0); opacity: 1; transition-delay: .25s; }

/* ── cta button ──────────────────────────────────────────────────────── */
.i-btn {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  margin-top: 38px;
  padding: 20px 28px;
  border: 1px solid rgba(180,205,255,.3);
  border-radius: 2px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: clamp(10px, .85vw, 12px); letter-spacing: .22em;
  text-transform: uppercase; font-family: inherit; cursor: pointer;
  pointer-events: all;
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s ease .6s, transform .8s ease .6s,
              background .3s, color .3s, border-color .3s;
}
.i-btn.show { opacity: 1; transform: none; }
.i-btn:hover {
  background: rgba(180,205,255,.07);
  border-color: #2bd9e9;
  color: #2bd9e9;
}
.i-btn svg { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.i-btn:not(.i-btn--contact):not(.i-btn--cv):hover svg { transform: translateX(5px); }

.i-btn--cv:hover svg { transform: translateY(3px); }

.i-btn-group {
  display: flex; align-items: center; gap: 12px;
  margin-top: 38px;
}
.i-btn-group .i-btn {
  margin-top: 0;
  text-decoration: none;
}
.i-btn--cv {
  padding: 20px 20px;
  font-size: clamp(10px, .85vw, 12px);
  letter-spacing: .22em;
}
.i-btn--portfolio {
  text-decoration: none;
}
.i-btn--contact {
  position: relative;
  padding: 20px 20px;
  gap: 0;
}
.i-btn--contact:hover svg { transform: scale(1.15); }

.i-btn--contact::after {
  content: attr(data-feedback);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 6px 9px;
  border: 1px solid rgba(180,205,255,.26);
  background: rgba(4,8,14,.82);
  color: #d9ecff;
  letter-spacing: .08em;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.i-btn--contact.copied::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .i-btn-group { justify-content: center; }
  .i-rule { margin-left: auto; margin-right: auto; }
}