html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: RGB(111, 123, 140);
  font-family: orbitron;
  /* Clear the fixed two-row navbar */
  padding-top: 118px;
}

/* div {
  border: 1px solid red;
} */

@keyframes fadeInAnimation {
  /*for div fade-in */
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

card {
  min-height: 400px;
}

.fadein {
  animation: fadeInAnimation ease 2s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}


.area {
  min-height: 750px;
}

.spacer {
  min-height: 75px;
}

#splash {
  position: relative;
  /* Let the splash run full-bleed up behind the fixed navbar */
  margin-top: -118px;
  min-height: 800px;
  background: url("/images/Thethrone.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

/* Top branding bar inside the fixed navbar */
.top-header {
  background-color: #212529;
}

.top-header-logo {
  height: 40px;
  width: auto;
}

.top-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

/* Generative art canvas layer, full-bleed behind the overlay + copy */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#hero-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Dark overlay that sits over the splash art/background image.
   Lighter than before so the p5 generative art reads through it. */
#splash .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  letter-spacing: 0.25rem;
  font-size: 0.85rem;
  color: #cdd6e0;
}

/* Your name is the anchor of the hero — fluid size so it stays bold and
   commanding on desktop but scales down to fit narrow phones without wrapping awkwardly. */
.hero-name {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Rotating role headline (text driven by TypeScript: src/roles.ts) */
.role-line {
  color: #e9edf2;
}

.role-rotator {
  color: #ff8a3d; /* warm orange accent, matches the p5 hero palette */
  font-weight: 600;
  /* Reserve space + smooth the swap so the line doesn't jump as words change */
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.role-rotator.is-swapping {
  opacity: 0;
  transform: translateY(-0.25em);
}
