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

:root {
  --red: #D90000;
  --red-bright: #FF1A1A;
  --white: #FFFFFF;
  --black: #080808;
  --gray: #1a1a1a;
}

html, body {
  width: 100%; height: 100%;
  background: var(--black);
  overflow: hidden;
  font-family: 'Barlow', sans-serif;
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow: hidden;
}

/* grain texture */
#loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

/* red sweep light — the signature element */
#sweep {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(217,0,0,0.07) 50%, transparent 100%);
  transform: skewX(-12deg);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* ── LOGO BLOCK ── */
#logo-block {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  user-select: none;
}

#word-go {
  font-family: 'Anton', sans-serif;
  font-style: italic;
  color: var(--red);
  font-size: clamp(100px, 22vw, 220px);
  letter-spacing: -0.02em;
  line-height: 0.85;
  position: relative;
  z-index: 2;
  /* starts off-screen left */
  transform: translateX(-120vw);
  opacity: 0;
  /* subtle red glow only on the text */
  text-shadow: 0 0 60px rgba(217,0,0,0.4);
}

#word-leaside {
  font-family: 'Anton', sans-serif;
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 3px var(--red);
  font-size: clamp(54px, 12vw, 118px);
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
  /* overlaps behind GO, shifted up so GO overlaps top-left */
  margin-top: -0.18em;
  margin-left: 0.06em;
  z-index: 1;
  /* starts off-screen right + down */
  transform: translate(120vw, 40px);
  opacity: 0;
}

/* ── DOTS ── */
#dots {
  display: flex;
  gap: 10px;
  margin-top: clamp(28px, 5vw, 56px);
  position: relative;
  z-index: 10;
  opacity: 0;
}

.dot {
  width: clamp(7px, 1.2vw, 11px);
  height: clamp(7px, 1.2vw, 11px);
  border-radius: 50%;
  background: var(--red);
  animation: bounce 1s ease-in-out infinite;
}
.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.18s; }
.dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-12px); opacity: 1; }
}

/* thin red progress bar */
#progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--red);
  z-index: 20;
  transition: width linear;
}

/* ── FADE-OUT ── */
#loader.fade-out {
  animation: loaderOut 0.7s ease-in forwards;
}
@keyframes loaderOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

/* ── MAIN CONTENT (hidden until load done) ── */
#main {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

#main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.35;
}

#main.visible {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.8s ease;
}

.main-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 2;
}

.main-title {
  font-family: 'Anton', sans-serif;
  font-style: italic;
  font-size: clamp(52px, 11vw, 130px);
  color: var(--white);
  line-height: 0.9;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.main-title span {
  color: var(--red);
}

.main-sub {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(13px, 2vw, 17px);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.6rem;
  position: relative;
  z-index: 2;
}

.main-cta {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.9em 2.6em;
  border: 2px solid var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  z-index: 2;
  cursor: pointer;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.main-cta:hover {
  background: var(--red);
  color: var(--white);
}

/* fine horizontal rule */
.rule {
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background: var(--red);
  margin: 2rem auto 0;
  position: relative;
  z-index: 2;
  opacity: 0.5;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  #word-go, #word-leaside { transition: none !important; }
  .dot { animation: none; opacity: 1; }
  #sweep { display: none; }
}