:root {
  --navy: #0d1b2e;
  --navy-mid: #1a2d4a;
  --blue: #2f4467;
  --accent: #f19280;
  --accent2: #7eb8c9;
  --white: #f0ece4;
  --muted: rgba(240, 236, 228, 0.55);
  --card-bg: rgba(47, 68, 103, 0.28);
  --card-border: rgba(126, 184, 201, 0.18);
}
@font-face {
  font-family: Spaceport;
  src: url("fonts/Spaceport_2006.otf");
}
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.starry-cohete-pair,
.starry-cohete-pair img {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: 0;
  user-select: none;
  -webkit-user-select: none;
}
.contact-row-val,
.hero-cta,
.nav-links a,
.nav-logo,
.project-link,
[role="button"],
a,
button {
  cursor: pointer;
  user-select: auto;
  -webkit-user-select: auto;
}
h1,
h2,
h3,
h4,
h5,
h6,
li,
p,
span {
  user-select: text;
  -webkit-user-select: text;
}
.starry-cohete-pair {
  cursor: pointer !important;
}
html {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy);
  background-image: url("parallax/fondo-estrellado.png");
  background-size: cover;
  background-attachment: fixed;
  font-family: "DM Mono", monospace;
  color: var(--white);
}
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 48px;
  backdrop-filter: blur(0px);
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.scrolled {
  backdrop-filter: blur(2px);
}
nav.nav-compact {
  padding-top: 28px;
  padding-bottom: 28px;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.starry-bg {
  flex: 1;
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.starry-cohete-pair {
  position: fixed;
  left: 0;
  top: 0;
  width: 130px;
  height: 130px;
  pointer-events: auto;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  will-change: transform, opacity;
  clip-path: inset(0);
  max-width: 130px;
  overflow: hidden;
}
.starry-cohete {
  position: absolute;
  top: 0;
  left: 0;
  height: 130px;
  width: auto;
  pointer-events: none;
  display: block;
}
.starry-cohete-fondo {
  z-index: 1;
}
.starry-cohete-top {
  z-index: 2;
}
.starry-p9-wrap {
  position: absolute;
  right: 8%;
  top: 50%;
  height: 110px;
  width: auto;
  z-index: 2;
  pointer-events: none;
  animation: floatP9 7s ease-in-out infinite;
}
.starry-p9 {
  height: 110px;
  width: auto;
  opacity: 0.32;
  display: block;
  filter: drop-shadow(0 0 18px rgba(126, 184, 201, 0.25));
}
.starry-p9.spinning {
  animation: spinX 2.2s ease-in-out;
}
@keyframes floatP9 {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes spinX {
  from {
    transform: rotateY(0);
  }
  to {
    transform: rotateY(360deg);
  }
}
@media (min-width: 601px) {
  .starry-p9-wrap {
    pointer-events: auto;
    cursor: pointer;
  }
}
.parallax-footer {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: auto;
}
#p1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
  background-image: url("parallax/parallax 1.png");
  background-size: auto 100%;
  background-position: left center;
  background-repeat: repeat-x;
  animation: bgBreath 8s ease-in-out infinite;
  mask-image: linear-gradient(to bottom, transparent 0%, black 80%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 80%);
}
.layer {
  position: absolute;
  bottom: 0;
  will-change: transform;
}
.layer img {
  height: 100%;
  width: auto;
  display: block;
}
#p3 {
  z-index: 2;
  right: 0;
  bottom: 0;
  height: 320px;
}
#p4 {
  z-index: 3;
  left: 0;
  bottom: 0;
  height: 280px;
}
#group-256 {
  z-index: 4;
  left: 0;
  bottom: 0;
  height: 280px;
  width: 60%;
}
#group-256 .gl {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
#group-256 .gl img {
  height: 100%;
  width: auto;
  display: block;
}
#p7 {
  z-index: 5;
  left: 0;
  bottom: 0;
  height: 320px;
  width: auto;
}
#p8 {
  z-index: 1;
  right: -100px;
  bottom: 59px;
  height: 230px;
  opacity: 0.82;
  rotate: -12deg;
}
.footer-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 50px 20px;
  pointer-events: none;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}
.footer-col-left {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin-top: 5%;
}
.footer-col-left .name {
  font-family: Spaceport, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1.2;
}
.footer-col-left .role {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.5;
}
.footer-col-left .year {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 0;
}
.footer-col-right {
  text-align: center;
  max-width: 320px;
}
.footer-col-right p {
  font-size: 13px;
  font-style: italic;
  opacity: 0.85;
  line-height: 1.8;
  font-family: Georgia, serif;
}
@keyframes bgBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
@media (max-width: 900px) {
  nav {
    padding: 16px 28px;
  }
  .nav-links {
    gap: 20px;
  }
  .footer-text {
    gap: 60px;
  }
  .footer-col-right p {
    font-size: 10px;
  }
  .footer-col-left .name {
    font-size: 18px;
  }
  .footer-col-left .role {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .footer-col-left .name {
    white-space: nowrap;
  }
  nav {
    padding: 12px 18px;
  }
  .nav-links {
    gap: 17px;
  }
  .nav-links a {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
  .parallax-footer {
    height: 280px;
  }
  #p3 {
    height: 280px;
  }
  #group-256,
  #p4,
  #p7 {
    display: none;
  }
  .footer-text {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 4px;
  }
  .footer-col-left .name {
    font-size: 20px;
  }
  .footer-col-left .role,
  .footer-col-left .year {
    font-size: 13px;
  }
}
.starry-bg .footer-col-left {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}
@media (max-width: 400px) {
  .footer-col-left .name {
    white-space: nowrap;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
  }
  .footer-col-left {
    margin-top: 20%;
    gap: 10px;
  }
  #p3 {
    height: 240px;
  }
  #p8 {
    height: 210px;
  }
  img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
  }
}
@media (min-width: 601px) {
  .starry-p9 {
    pointer-events: auto;
  }
}
