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

:root {
  --bg:        #0e0e0e;
  --card:      #141414;
  --card-alt:  #111111;
  --structure: #f0f0f0;
  --muted:     #777;
  --dim:       #2a2a2a;
  --accent:    #ff0099;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--structure);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9000;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 3rem;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s ease, border-color 0.5s ease;
}
nav.scrolled {
  background: rgba(14,14,14,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dim);
}
.nav-toggle, .nav-overlay, .nav-close { display: none; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.nav-logo svg { width: 34px; height: 34px; }
.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-wordmark span {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--structure);
}
.nav-wordmark span:first-child { font-weight: 300; }
.nav-wordmark span:last-child  { font-weight: 800; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}
.nav-links a:hover { color: var(--structure); }
.nav-links a:hover::after { width: 100%; }


/* ══════════════════════════════════════════════════
   HERO — layout & typography only
   Animation lives in hero-animation.css
══════════════════════════════════════════════════ */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 1.2rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0rem;
}
.hero-headline {
  font-size: clamp(2rem, 2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.hero-headline em { 
    font-style: normal; 
    color: var(--accent); 
}

.hero-subline {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
  max-width: 400px;
}
.hero-scroll {
  margin-top: 0rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.scroll-line { width: 36px; height: 1px; background: var(--dim); }
.scroll-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ══════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════ */

.divider { height: 1px; background: var(--dim); }


/* ══════════════════════════════════════════════════
   MANIFESTO
══════════════════════════════════════════════════ */

.manifesto-section {
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.manifesto-wrap {
  perspective: 1400px;
  width: 520px;
  min-height: 260px;
  cursor: pointer;
}
.manifesto-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  display: grid;
}
.manifesto-wrap:hover .manifesto-inner,
.manifesto-wrap.tapped .manifesto-inner {
  transform: rotateY(180deg);
}
.manifesto-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  text-align: center;
}
.manifesto-front { background: var(--card); }
.manifesto-back  { background: var(--card-alt); transform: rotateY(180deg); }

.manifesto-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 1.4rem;
  animation: pulse 2.5s ease-in-out infinite;
}
.manifesto-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.manifesto-question {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.manifesto-hint {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
}
.manifesto-answer {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
}
.manifesto-answer strong { font-weight: 800; color: var(--structure); }
.manifesto-back-label { margin-bottom: 1.4rem; }


/* ══════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════ */

.projects { padding: 7rem 0; }
.projects-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.section-label {
  font-size: 1.0rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.projects-intro {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--dim);
  border: 1px solid var(--dim);
}
.project-card {
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project-card:hover { background: #181818; }
.project-card * { text-decoration: none; color: inherit; }

.card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--dim);
  overflow: hidden;
}
.card-thumb svg { width: 70%; height: 70%; }

.card-body {
  padding: 1.8rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-number {
    font-size: 3.5rem;
        font-weight: 800;
        letter-spacing: .04em;
        color: var(--dim);
        line-height: 1;
        text-align: left;
        user-select: none;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.4rem;
}
.card-status {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.28rem 0.7rem;
  align-self: flex-start;
}
.status-active    { color: var(--accent); border: 1px solid rgba(255,0,153,0.35); }
.status-completed { color: var(--structure); border: 1px solid var(--dim); }
.status-stealth   { color: var(--accent); border: 1px solid transparent; letter-spacing: 0.38em; padding-left: 0; }

.card-thumb.stealth-thumb { background: #0d0d0d; }
.stealth-pulse {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  opacity: 0.45;
}
.card-name.stealth-name { color: #303030; }


/* ══════════════════════════════════════════════════
   PHILOSOPHY
══════════════════════════════════════════════════ */

.philosophy { padding: 7rem 0; text-align: center; }
.philosophy-text {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
}
.philosophy-text strong { font-weight: 800; color: var(--structure); }
.philosophy-text em { font-style: normal; color: var(--accent); }


/* ══════════════════════════════════════════════════
   ROADMAP
══════════════════════════════════════════════════ */

.roadmap { padding: 7rem 0; }
.roadmap-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 2rem;
}
.roadmap-intro {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dim);
  border: 1px solid var(--dim);
}
.roadmap-col { background: var(--card); padding: 2.5rem; }
.roadmap-horizon {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  color: var(--accent);
}

.roadmap-items {
  font-size: 1.0rem;
  font-weight: 300;
  line-height: 2.1;
}
.roadmap-items.here     { color: #D6D3D1; }
.roadmap-items.building { color: #A6A09B; }
.roadmap-items.distant  { color: #79716B; }
.roadmap-items a {
  color: inherit;
  text-decoration: none;
}
.roadmap-items a:hover {
  color: #fff;
}


/* ══════════════════════════════════════════════════
   TAGS
══════════════════════════════════════════════════ */

.tag-pill {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--dim);
    padding: 0.2rem 0.6rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.tag-pill.primary {
    color: var(--accent);
    border-color: rgba(255, 0, 153, 0.3);
}


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */

footer {
  padding: 0rem 1rem 3rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 1rem; }
.footer-left svg { width: 26px; height: 26px; }
.footer-desc { font-size: 0.72rem; font-weight: 300; color: var(--muted); letter-spacing: 0.06em; }
.footer-right { display: flex; align-items: center; gap: 2.5rem; }
.footer-right a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-right a:hover { color: var(--structure); }
.footer-year { font-size: 0.65rem; color: var(--dim); letter-spacing: 0.1em; }


/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════════════════
   SHARED KEYFRAMES
══════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.5; }
}


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .projects-header, .roadmap-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .manifesto-wrap { width: 90%; max-width: 520px; }
}

/* Mobile Nav */
@media (max-width: 640px) {
  section { gap: 0;}
  .container { padding: 0 1.5rem; }
  .projects { padding: 2rem 0; }
  .roadmap { padding: 3rem 0; }
  .hero-composition svg { 
    max-width: 250px; 
    gap: 0;
    padding: 0px;
  }
  .hero-headline { font-size: clamp(2rem, 6vw, 2.8rem); }
  .hero-subline { font-size: 1.2rem; }
  .hero { 
    padding-top: 0rem;
    padding-bottom: 2rem;
    gap: 0;
  }

  .card-grid { grid-template-columns: 1fr; gap: .5rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-right { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }

  nav { 
    padding: 1.5rem; 
    position: relative; 
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--structure);
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: auto;
    /* min-height: 100vh; */
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 4rem 1.5rem 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--dim);
    list-style: none;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dim);
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
  }
  .nav-close {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--dim)!important;
    font-size: 2.5rem!important;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.2s;
  }
  .nav-close:hover {
    color: var(--structure);
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 499;
  }
  .nav-overlay.open { display: block; }
  .nav-links { z-index: 500; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
