/* Orbitron - regular */
@font-face {
  font-display: swap;
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/orbitron-v31-latin-regular.woff2") format("woff2");
}

/* Orbitron - 700 */
@font-face {
  font-display: swap;
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/orbitron-v31-latin-700.woff2") format("woff2");
}

/* Orbitron - 900 */
@font-face {
  font-display: swap;
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/orbitron-v31-latin-900.woff2") format("woff2");
}

/* Roboto Mono - regular */
@font-face {
  font-display: swap;
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/roboto-mono-v23-latin-regular.woff2") format("woff2");
}

/* Roboto Mono - 700 */
@font-face {
  font-display: swap;
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/roboto-mono-v23-latin-700.woff2") format("woff2");
}

/* Roboto Mono - 700 italic */
@font-face {
  font-display: swap;
  font-family: "Roboto Mono";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/roboto-mono-v23-latin-700italic.woff2") format("woff2");
}

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

body {
  background-color: #0a0a0a;
  color: #e5e5e5;
  font-family: "Roboto Mono", monospace;
  margin: 0;
  overflow-x: hidden;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 1.25rem;
  text-align: center;
  color: white;
  pointer-events: none;
}

.header-overlay img {
  max-width: 500px;
  width: 100%;
  height: auto;
  mix-blend-mode: difference;
}

#strapline {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: white;
  margin: 2.5rem;
  font-size: 3rem;
  line-height: 1.2;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  #strapline {
    font-size: 1.6rem;
    margin: 1.5rem;
  }
}

@media (min-width: 481px) and (max-width: 700px) {
  #strapline {
    font-size: 2.2rem;
    margin: 2rem;
  }
}

.scroll-btn {
  display: inline-block;
  pointer-events: auto;
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 20, 147, 0.4);
  border-radius: 8px;
  margin-top: 1.5rem;
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.15),
              0 0 16px rgba(76, 131, 255, 0.15);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.25s;
  cursor: pointer;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 20, 147, 0.6);
  box-shadow: 0 0 24px rgba(255, 20, 147, 0.3),
              0 0 24px rgba(76, 131, 255, 0.3);
  transform: scale(1.05);
}

#p5CanvasContainer {
  padding-left: 0;
  z-index: 1;
}

#p5CanvasContainer canvas {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1.5s ease-in;
}

/* Scroll fade hint */
.scroll-fade {
  position: relative;
  z-index: 10;
  height: 80px;
  margin-top: -80px;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  pointer-events: none;
}

/* Gallery section */
.gallery-section {
  position: relative;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.gallery-thumb {
  width: 80px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.25s, border-color 0.25s;
  flex-shrink: 0;
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: rgba(255, 20, 147, 0.6);
}

.gallery-prose {
  font-family: "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 1rem;
  font-style: italic;
  color: #e5e5e5;
  line-height: 1.7;
}

.gallery-prose p + p {
  margin-top: 1rem;
}

.gallery-prose .cta a {
  color: rgb(255, 20, 147);
  text-decoration: none;
  transition: color 0.25s;
}

.gallery-prose .cta a:hover {
  color: rgb(76, 131, 255);
}

/* Links section */
.links-section {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 5rem;
  pointer-events: auto;
  animation: fadeIn 1.5s ease-in;
}

@keyframes bioGlow {
  0%, 100% { color: rgb(255, 20, 147); }
  50% { color: rgb(76, 131, 255); }
}

.bio {
  font-family: "Roboto Mono", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2rem;
  animation: bioGlow 8s ease-in-out infinite;
}

.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.6rem 1rem;
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #e5e5e5;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.link-btn:hover {
  border-color: rgba(255, 20, 147, 0.5);
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.2),
              0 0 16px rgba(76, 131, 255, 0.2);
}

.link-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: opacity 0.35s, transform 0.35s;
}

.link-btn:hover .link-thumb {
  opacity: 0;
  transform: scale(0.8);
}

.link-btn .link-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 0;
  border-radius: 7px;
}

.link-btn:hover .link-bg {
  opacity: 1;
}

.link-btn span {
  position: relative;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s, color 0.3s;
}

.link-btn:hover span {
  color: white;
  background: rgba(0, 0, 0, 0.55);
}
