:root {
  --bg: #080d1f;
  --deep: #0f1a38;
  --panel: #1a294d;
  --cyan: #38ebd1;
  --magenta: #c76bf2;
  --text: #ebf5ff;
  --muted: #9eb8d6;
  --spine: 4.5rem;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--magenta);
}

/* —— Left spine (desktop) —— */
.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.5rem;
  background: linear-gradient(180deg, rgba(8, 13, 31, 0.96), rgba(15, 26, 56, 0.92));
  border-right: 1px solid rgba(56, 235, 209, 0.18);
}

.spine__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
  writing-mode: horizontal-tb;
}

.spine__nav {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  align-items: center;
}

.spine__nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.spine__nav a:hover,
.spine__nav a.is-active {
  color: var(--cyan);
}

.spine__coord {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--magenta);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.dock {
  display: none;
}

main {
  margin-left: var(--spine);
}

/* —— Hero full-bleed —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 31, 0.15) 0%, rgba(8, 13, 31, 0.55) 45%, rgba(8, 13, 31, 0.96) 100%),
    linear-gradient(90deg, rgba(56, 235, 209, 0.12), transparent 40%, rgba(199, 107, 242, 0.12));
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(42rem, calc(100% - 3rem));
  padding: 0 1.5rem 4.5rem;
  animation: rise 0.9s ease-out both;
}

.hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero__tag {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

/* —— Timeline features —— */
.arc {
  padding: 5rem 1.5rem 4rem;
  max-width: 70rem;
}

.arc__intro {
  max-width: 34rem;
  margin-bottom: 3rem;
  text-align: left;
}

.arc__intro h2,
.screens__intro h2,
.legal h2,
.support h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.arc__intro p,
.screens__intro p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2.25rem;
  position: relative;
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.6rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  opacity: 0.45;
}

.timeline__node {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(56, 235, 209, 0.35);
  margin-top: 0.15rem;
}

.timeline h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.arc__gallery {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.arc__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(56, 235, 209, 0.2);
}

/* —— Mosaic screens —— */
.screens {
  padding: 2rem 1.5rem 5rem;
  max-width: 70rem;
  background: radial-gradient(ellipse at 20% 0%, rgba(199, 107, 242, 0.12), transparent 50%);
}

.screens__intro {
  max-width: 34rem;
  margin-bottom: 2rem;
  text-align: left;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.85rem;
}

.mosaic__large {
  grid-row: 1 / span 2;
  margin: 0;
}

.mosaic figure {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(56, 235, 209, 0.22);
  background: var(--deep);
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mosaic__large img {
  min-height: 28rem;
}

/* —— Legal —— */
.legal,
.support {
  padding: 3.5rem 1.5rem;
  max-width: 46rem;
}

.legal {
  border-top: 1px solid rgba(56, 235, 209, 0.15);
}

.legal__body h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cyan);
}

.legal__body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.support {
  background: linear-gradient(135deg, rgba(15, 26, 56, 0.9), rgba(26, 41, 77, 0.65));
  border-radius: 1.25rem;
  margin: 0 1.5rem 3rem;
  border: 1px solid rgba(199, 107, 242, 0.25);
  max-width: 46rem;
}

.support p {
  color: var(--muted);
}

.support__mail {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 0.15rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 5rem;
  max-width: 70rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(56, 235, 209, 0.1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .spine {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .dock {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 50;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    background: rgba(8, 13, 31, 0.92);
    border: 1px solid rgba(56, 235, 209, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(12px);
  }

  .dock a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
  }

  .dock a:hover,
  .dock a.is-active {
    color: var(--bg);
    background: var(--cyan);
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic__large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .mosaic__large img {
    min-height: 18rem;
  }

  .arc__gallery {
    grid-template-columns: 1fr;
  }

  .support {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 560px) {
  .mosaic {
    grid-template-columns: 1fr;
  }
}
