:root {
  --bg: #071019;
  --bg-deep: #03070d;
  --panel: #101b27;
  --text: #f6f8fb;
  --muted: #b8c7d8;
  --accent: #35c8ff;
  --warm: #f2c14e;
  --line: rgba(255, 255, 255, 0.14);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text);
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #0b1722 0%, var(--bg) 45%, var(--bg-deep) 100%);
  background-attachment: fixed;
  background-position: 0 0, 0 0, 0 0;
  background-size: 48px 48px, 48px 48px, auto;
}

body::after {
  content: "";
  position: fixed;
  right: clamp(28px, 4vw, 72px);
  top: clamp(28px, 4vw, 72px);
  width: clamp(70px, 9vw, 132px);
  height: clamp(70px, 9vw, 132px);
  border-top: 2px solid rgba(53, 200, 255, 0.52);
  border-right: 2px solid rgba(242, 193, 78, 0.42);
  pointer-events: none;
  z-index: 0;
}

.bg-gradient,
.background-pattern,
.glass-panel,
.floating-circle {
  display: none;
}

.page {
  --page-y-padding: clamp(28px, 4vw, 64px);
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 56px));
  margin: 0 auto;
  padding: var(--page-y-padding) 0;
}

.hero-copy {
  --hero-line-start: clamp(92px, 8vw, 128px);
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100dvh - (var(--page-y-padding) * 2));
  width: min(1120px, 100%);
  padding-bottom: 0;
  display: grid;
  align-content: center;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: 17px;
  top: calc(50% + var(--hero-line-start));
  bottom: 0;
  width: 2px;
  background: rgba(53, 200, 255, 0.72);
  box-shadow: 0 0 24px rgba(53, 200, 255, 0.12);
}

.tagline {
  margin: 0;
  max-width: 100%;
  font-size: clamp(44px, 6.2vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.tagline-static {
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
}

#rotating-text {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.subtagline {
  color: #eef6ff;
  margin: clamp(20px, 2.6vw, 36px) 0 0;
  max-width: 24ch;
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1.08;
  font-weight: 700;
}

.cursor {
  color: var(--warm);
  animation: blink 1s infinite;
  font-weight: 800;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 44px);
  z-index: 2;
  display: grid;
  gap: 2px;
  width: 34px;
  height: 38px;
  place-items: center;
  transform: translateX(-50%);
  opacity: 0.72;
}

.scroll-cue span {
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(238, 246, 255, 0.72);
  border-bottom: 2px solid rgba(53, 200, 255, 0.78);
  transform: rotate(45deg);
  animation: cuePulse 1.55s ease-in-out infinite;
}

.scroll-cue span + span {
  animation-delay: 0.2s;
}

.scroll-cue:hover {
  opacity: 1;
}

.timeline {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 0 clamp(76px, 10vw, 144px);
  padding: 0;
}

.timeline-entry {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100svh;
  padding: clamp(48px, 7svh, 88px) 0 clamp(48px, 7svh, 88px) clamp(58px, 7vw, 96px);
  display: grid;
  align-content: center;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  bottom: -50%;
  width: 2px;
  background: rgba(53, 200, 255, 0.72);
  box-shadow: 0 0 24px rgba(53, 200, 255, 0.12);
}

.timeline-entry::after {
  content: none;
}

.timeline-entry:nth-child(even)::before {
  background: rgba(242, 193, 78, 0.68);
  box-shadow: 0 0 24px rgba(242, 193, 78, 0.1);
}

.timeline-entry:first-child::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 50%;
  width: 2px;
  background: rgba(53, 200, 255, 0.72);
  box-shadow: 0 0 24px rgba(53, 200, 255, 0.12);
}

.timeline-entry:last-child::before {
  bottom: 50%;
}

.timeline-node {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 2px solid rgba(53, 200, 255, 0.72);
  background:
    radial-gradient(circle at center, rgba(242, 193, 78, 0.96) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(16, 27, 39, 0.96), rgba(3, 7, 13, 0.96));
  box-shadow:
    0 0 0 5px rgba(3, 7, 13, 0.92),
    0 0 28px rgba(53, 200, 255, 0.16);
}

.timeline-entry:nth-child(even) .timeline-node {
  border-color: rgba(242, 193, 78, 0.78);
  background:
    radial-gradient(circle at center, rgba(53, 200, 255, 0.98) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(16, 27, 39, 0.96), rgba(3, 7, 13, 0.96));
}

.timeline-content {
  display: grid;
  gap: clamp(18px, 2.6svh, 32px);
}

.timeline-copy {
  max-width: 980px;
}

.timeline-copy h2,
.contact-line h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.timeline-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.timeline-copy h2 a:hover {
  color: inherit;
  text-decoration: none;
}

.timeline-copy p {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  max-width: 820px;
  color: rgba(238, 246, 255, 0.78);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.28;
  font-weight: 400;
}

.timeline-media {
  position: relative;
  width: min(920px, 100%);
  max-height: min(54svh, 560px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(53, 200, 255, 0.1), transparent 30%),
    rgba(16, 27, 39, 0.78);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.timeline-entry:nth-child(even) .timeline-media {
  background:
    linear-gradient(135deg, rgba(242, 193, 78, 0.1), transparent 30%),
    rgba(16, 27, 39, 0.78);
}

.timeline-media img,
.timeline-media iframe {
  display: block;
  width: 100%;
}

.timeline-media img {
  height: auto;
  max-height: min(54svh, 560px);
  object-fit: contain;
}

.timeline-media--video {
  width: min(820px, 100%);
  aspect-ratio: 16 / 9;
}

.timeline-media--square {
  width: min(560px, 100%);
}

.timeline-media iframe {
  height: 100%;
  border: 0;
}

.timeline-entry--text .timeline-content {
  min-height: clamp(180px, 24vw, 280px);
  align-content: start;
}

.contact-line {
  width: min(760px, 100%);
  margin: 0;
  padding-top: 0;
  color: rgba(184, 199, 216, 0.72);
}

.contact-line p {
  margin: clamp(12px, 1.5vw, 18px) 0 clamp(18px, 2.4vw, 28px);
  color: rgba(238, 246, 255, 0.78);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.15;
  font-weight: 700;
}

.contact-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(53, 200, 255, 0.46);
  border-radius: 8px;
  color: rgba(238, 246, 255, 0.86);
  background: rgba(16, 27, 39, 0.68);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-line a:hover {
  color: #ffffff;
  border-color: rgba(242, 193, 78, 0.7);
}

.site-footer {
  position: absolute;
  left: calc((100vw - min(1480px, calc(100vw - 56px))) / -2);
  width: 100vw;
  bottom: clamp(10px, 2vw, 18px);
  padding: 0;
  color: rgba(238, 246, 255, 0.42);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 400;
}

.site-footer p {
  margin: 0;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes cuePulse {
  0% {
    opacity: 0.18;
    transform: translateY(-4px) rotate(45deg);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.18;
    transform: translateY(6px) rotate(45deg);
  }
}

@media (max-width: 760px) {
  body::after {
    right: 20px;
    top: 20px;
    width: 54px;
    height: 54px;
  }

  .page {
    width: min(100% - 28px, 1120px);
  }

  .site-footer {
    left: -14px;
  }

  .hero-copy {
    --hero-line-start: clamp(76px, 18vw, 108px);
    padding-bottom: 0;
  }

  .tagline {
    font-size: clamp(40px, 12vw, 64px);
  }

  .subtagline {
    font-size: clamp(24px, 7vw, 38px);
  }

  .timeline {
    margin-bottom: 72px;
  }

  .hero-copy::after,
  .timeline-entry::before,
  .timeline-entry:first-child::after {
    left: 13px;
  }

  .timeline-entry {
    padding-left: 44px;
  }

  .timeline-node {
    width: 28px;
    height: 28px;
    box-shadow:
      0 0 0 4px rgba(3, 7, 13, 0.92),
      0 0 24px rgba(53, 200, 255, 0.16);
  }

  .timeline-copy h2,
  .contact-line h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .timeline-copy p {
    font-size: clamp(18px, 5.2vw, 23px);
  }

}

@media (max-height: 720px) and (min-width: 761px) {
  .timeline-entry {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .timeline-copy h2,
  .contact-line h2 {
    font-size: clamp(26px, 2.8vw, 38px);
  }

  .timeline-copy p {
    font-size: clamp(17px, 1.7vw, 22px);
  }

  .timeline-content {
    gap: 18px;
  }

  .timeline-media,
  .timeline-media img {
    max-height: 48svh;
  }

  .timeline-media--video {
    width: min(720px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor,
  .scroll-cue span {
    animation: none;
  }
}
