:root {
  --red: #B22234;
  --blue: #17223B;
  --blue-2: #22345A;
  --white: #FFFFFF;
  --grey: #8A8F98;
  --black: #0A0A0A;
  --link-blue: #5C9DFF;
}

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

html,
body {
  background: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  color: #111;
  overflow-x: hidden;
}

a {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #8AB8FF;
}

/* ============ SCROLL DRIVER ============ */
.scroll-driver {
  height: 900vh;
  width: 100%;
  position: relative;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

/* ============ STRIPES (red lines on white) ============ */
.stripes-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Perfect spacing for the 6 white gaps */
  align-items: center;
  z-index: 2;
}

.stripe-line {
  width: 100%; /* Spans full screen width like a real flag */
  height: calc(100% / 13); /* 13 total stripes (7 red, 6 white) */
  background: var(--red);
  flex-shrink: 0;
}

/* ============ HERO TITLE ============ */
.hero-title-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  padding: 0 6vw;
}

.hero-title-wrap h1 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 6vw, 5rem);
  color: #111;
  
  /* Solid white background with a massive soft feathered edge fully closes off the stripes */
  background: #ffffffcc;
  padding: 0.3em 0.7em;
  
  line-height: 1.15;
}

.hero-title-wrap .eyebrow {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ============ BLUE PANEL ============ */
.blue-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-2) 100%);
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  fill: #ffffff;
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

/* mid paragraph sitting inside the blue field */
.blue-paragraph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(64%, 680px);
  color: #ffffff;
  opacity: 0;
  z-index: 3;
  text-align: left;
  background: rgba(23, 34, 59, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding: 2.5rem 2.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.blue-paragraph p {
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  color: #e9ecf3;
}

.blue-paragraph p+p {
  margin-top: 1rem;
}

.blue-paragraph .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ============ CORNER PARAGRAPHS ============ */
.corner {
  position: fixed;
  width: min(42%, 560px);
  z-index: 6;
  opacity: 0;
  padding: 1.8rem 2rem;
  border-radius: 12px;
  background: rgba(10, 16, 32, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.corner-left {
  top: 8vh;
  left: 5vw;
}

.corner-right {
  bottom: 8vh;
  right: 5vw;
}

.corner .tag {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.corner-left .tag {
  color: var(--red);
}

.corner-right .tag {
  color: #9fb0d6;
}

.corner p {
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 300;
  color: #f0f3f9;
}

/* ============ BLACK FINALE OVERLAY ============ */
.finale-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.finale-content {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4vw;
  opacity: 0;
  padding: 0 6vw;
  pointer-events: none;
}

.finale-image {
  width: min(28vw, 340px);
  height: min(28vw, 340px);
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.finale-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 520px;
}

.finale-text .tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.finale-text p {
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 300;
  color: #f2f2f2;
}

.finale-text p.grey {
  color: var(--grey);
}

/* ============ SCROLL HINT ============ */
.scroll-hint {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bob 2s ease-in-out infinite;
}

.scroll-hint span {
  width: 1px;
  height: 24px;
  background: #999;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@media (max-width:760px) {
  .finale-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 8vw;
    overflow-y: auto;
  }
  .finale-image {
    width: 50vw;
    height: 50vw;
  }
  .corner {
    width: 85vw;
    left: 50% !important;
    transform: translateX(-50%);
    padding: 1.2rem;
  }
  .corner-left {
    top: 6vh;
  }
  .corner-right {
    bottom: 6vh;
  }
  .blue-paragraph {
    width: 85%;
    padding: 1.5rem;
  }
}