@font-face {
  font-family: 'Michroma';
  src: url('Michroma-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #060d1a;
  --surface:   #12121a;
  --border:    #1e1e2e;
  --accent:    #5b8dee;
  --accent2:   #a78bfa;
  --sunset:    #d4773a;
  --text:      #e8e8f0;
  --muted:     #6e6e8a;
  --radius:    12px;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Michroma', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

nav ul a:hover { color: var(--text); background: var(--border); }
nav ul a.active { color: var(--text); background: var(--surface); }

/* ── Hero (Home) ── */
.hero {
  flex: 1;
  margin-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  padding: 4rem 8rem 4rem 8rem;
  gap: 4rem;
  min-height: calc(100vh - var(--nav-h));
}

.hero-content { display: flex; flex-direction: column; gap: 1.75rem; }

.wordmark {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid var(--sunset);
  padding-left: 1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  width: fit-content;
  transition: opacity 0.2s, transform 0.2s;
}
.cta:hover { opacity: 0.85; transform: translateY(-2px); }

/* ── Hero Art ── */
.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 360px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

/* ── History Page ── */
.history-main {
  flex: 1;
  margin-top: var(--nav-h);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 2rem 4rem;
}

.history-hero { margin-bottom: 4rem; }

.history-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 84px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--border));
}

.timeline-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 3rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 80px;
  padding-top: 0.1rem;
  flex-shrink: 0;
}

.year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  flex-shrink: 0;
  position: relative;
  right: -26px;
}

.dot.upcoming {
  background: var(--sunset);
  box-shadow: 0 0 0 2px var(--sunset);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1;
  transition: border-color 0.2s;
}

.timeline-card:hover { border-color: var(--accent); }

.timeline-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.timeline-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.timeline-card p strong { color: var(--text); }

.upcoming-card { border-color: color-mix(in srgb, var(--sunset) 30%, var(--border)); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sunset);
  background: color-mix(in srgb, var(--sunset) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sunset) 35%, transparent);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 2rem 4rem 2rem;
    gap: 3rem;
  }
  .hero-art { min-height: 260px; }
  #hero-canvas { min-height: 260px; }
  .timeline::before { left: 60px; }
  .timeline-marker { min-width: 56px; }
}
