:root {
  --mint: #00F5A0;
  --mint-dim: #00c47e;
  --dark: #0d0d0d;
  --dark3: #1c1c1c;
  --border: rgba(255,255,255,0.07);
  --text: #ececec;
  --text-muted: #777;
  --card-bg: rgba(255,255,255,0.025);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo-slot { height: 36px; display: flex; align-items: center; }
.nav-logo-slot img { height: 100%; width: auto; display: block; }
.nav-logo-slot .logo-fallback {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; letter-spacing: 0.04em; color: var(--text);
}
.nav-logo-slot .logo-fallback em { font-style: normal; color: var(--mint); }
.nav-pill {
  background: rgba(0,245,160,0.07);
  border: 0.5px solid rgba(0,245,160,0.25);
  color: var(--mint);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em;
  padding: 0.3rem 0.85rem; border-radius: 100px; text-transform: uppercase;
}

/* HERO */
.hero {
  min-height: 65vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,245,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,160,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,245,160,0.07) 0%, transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -55%); pointer-events: none;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--mint);
  margin-bottom: 2rem; opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.15s; position: relative; z-index: 1;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 4vw, 3.25rem); font-weight: 400;
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.35s;
  position: relative; z-index: 1;
}
.hero-title em { font-style: italic; color: var(--mint); }
.hero-sub {
  max-width: 520px; color: var(--text-muted); font-size: 1.05rem;
  font-weight: 300; line-height: 1.8; margin-bottom: 4rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.55s;
  position: relative; z-index: 1;
}
.hero-scroll {
  display: flex; align-items: center; gap: 12px;
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.9s;
  position: relative; z-index: 1;
}
.scroll-line { width: 40px; height: 0.5px; background: var(--text-muted); }

/* TIMELINE */
.timeline-section { padding: 5rem 2rem 7rem; max-width: 1060px; margin: 0 auto; }
.section-eyebrow {
  text-align: center; font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 0.9rem;
}
.section-title {
  text-align: center; font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 400;
  letter-spacing: -0.01em; margin-bottom: 5rem;
}
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(0,245,160,0.2); transform: translateX(-50%);
}

.tl-content { min-width: 0; }

/* TIMELINE ITEMS */
.tl-item {
  display: grid; grid-template-columns: 1fr 56px 1fr;
  margin-bottom: 1.2rem; position: relative;
}
.tl-item:not(:first-child) {
  margin-top: -5rem;
}
.tl-item:nth-child(odd)  .tl-content { grid-column: 1; text-align: right; padding-right: 2.8rem; }
.tl-item:nth-child(odd)  .tl-node    { grid-column: 2; }
.tl-item:nth-child(odd)  .tl-empty   { grid-column: 3; }
.tl-item:nth-child(even) .tl-empty   { grid-column: 1; grid-row: 1; }
.tl-item:nth-child(even) .tl-node    { grid-column: 2; grid-row: 1; }
.tl-item:nth-child(even) .tl-content { grid-column: 3; text-align: left; padding-left: 2.8rem; grid-row: 1; }

.tl-node {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 0.5rem; position: relative; z-index: 2;
}
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 3px rgba(0,245,160,0.12), 0 0 18px rgba(0,245,160,0.3);
  flex-shrink: 0; position: relative;
}
.tl-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 0.5px solid rgba(0,245,160,0.2);
  animation: pulse 2.5s ease-in-out infinite;
}

/* CARD */
.tl-card {
  background: var(--card-bg); border: 0.5px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  width: 100%;
}
.tl-card:hover { border-color: rgba(0,245,160,0.2); transform: translateY(-3px); }

.tl-date {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--mint);
  display: block; margin-bottom: 0.5rem;
}
.tl-tag {
  display: inline-block; font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.65rem; border-radius: 100px; margin-bottom: 0.6rem;
}
.tag-milestone { background: rgba(0,245,160,0.08);  color: var(--mint); border: 0.5px solid rgba(0,245,160,0.25); }
.tag-build     { background: rgba(0, 245, 160, 0.08); color: var(--mint); border: 0.5px solid rgba(0, 245, 160, 0.25); }
.tag-launch    { background: rgba(0,196,126,0.1);    color: #00c47e;     border: 0.5px solid rgba(0,196,126,0.25); }
.tag-story     { background: rgba(0, 245, 160, 0.08); color: var(--mint); border: 0.5px solid rgba(0, 245, 160, 0.25); }

.tl-card-title {
  font-family: 'DM Serif Display', serif; font-size: 1.1rem;
  font-weight: 400; line-height: 1.3; margin-bottom: 0.55rem;
}
.tl-card-body {
  font-size: 0.88rem; font-weight: 300; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 1rem;
}

/* ─── IMAGE CAROUSEL ─── */
.carousel {
  position: relative;
  margin-top: 0.8rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark3);
  border: 0.5px solid rgba(255,255,255,0.08);
  user-select: none;
}

/* track */
.carousel-track-wrap {
  overflow: hidden;
  border-radius: 10px;
  touch-action: pan-y;
}
.carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* each slide */
.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
}
/* placeholder when no real image */
.carousel-slide .slide-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  color: #3a3a3a;
  font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em;
}
.slide-placeholder-icon {
  width: 28px; height: 28px; opacity: 0.25;
}

/* PREV / NEXT ARROWS */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(13,13,13,0.75);
  border: 0.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--text);
  outline: none;
}
.carousel-btn:hover {
  background: rgba(0,245,160,0.15);
  border-color: rgba(0,245,160,0.4);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn:active { transform: translateY(-50%) scale(0.96); }
.carousel-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* hide arrows when only 1 slide */
.carousel[data-count="1"] .carousel-btn { display: none; }

/* DOTS */
.carousel-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: 8px 0 6px;
  background: transparent;
}
.carousel-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s, width 0.25s;
  outline: none;
}
.carousel-dot.active {
  background: var(--mint);
  width: 16px; border-radius: 3px;
  transform: none;
}
.carousel[data-count="1"] .carousel-dots { display: none; }

/* COUNTER badge */
.carousel-counter {
  position: absolute; bottom: 10px; right: 10px;
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  padding: 3px 7px; border-radius: 20px;
  pointer-events: none;
  z-index: 5;
}
.carousel[data-count="1"] .carousel-counter { display: none; }

/* swipe hint on first load */
.swipe-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  color: rgba(255,255,255,0.55); letter-spacing: 0.1em;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 20px;
  animation: hintFade 2.5s ease forwards 1.2s;
  opacity: 0;
}
.carousel[data-count="1"] .swipe-hint { display: none; }
@keyframes hintFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* QUOTE */
.quote-section {
  max-width: 780px; margin: 0 auto; padding: 4rem 2rem 5rem; text-align: center;
}
.quote-mark {
  font-family: 'DM Serif Display', serif; font-size: 5rem;
  line-height: 0.6; color: var(--mint); opacity: 0.25;
  display: block; margin-bottom: 1.5rem;
}
.quote-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem); font-style: italic;
  font-weight: 400; line-height: 1.6; color: #ddd; margin-bottom: 1.5rem;
}
.quote-cite {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--mint);
}

/* CTA */
.cta-section { padding: 5rem 2rem 7rem; text-align: center; position: relative; }
.cta-glow {
  position: absolute; width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,245,160,0.04) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 400;
  margin-bottom: 1rem; letter-spacing: -0.01em;
}
.cta-sub {
  font-size: 0.95rem; font-weight: 300; color: var(--text-muted);
  max-width: 420px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: #000;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 0.8rem 1.9rem; border-radius: 100px; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--mint-dim); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-weight: 400;
  font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 0.8rem 1.9rem; border-radius: 100px;
  border: 0.5px solid var(--border); text-decoration: none; margin-left: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

footer {
  border-top: 0.5px solid var(--border); padding: 1.8rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-muted); font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.08em;
}
footer a { color: var(--mint); text-decoration: none; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0;   transform: scale(1.9); }
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 720px) {
  nav { padding: 0.95rem 1rem; }
  .hero {
    min-height: auto;
    padding: 5.3rem 1rem 3rem;
  }
  .hero-sub {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 2.6rem;
  }
  .timeline-section {
    padding: 3.4rem 0.9rem 5rem;
  }
  .section-title {
    margin-bottom: 2.4rem;
  }
  .timeline::before { left: 14px; }
  .tl-item {
    grid-template-columns: 30px minmax(0, 1fr);
    margin-bottom: 1rem;
  }
  .tl-item:not(:first-child) {
    margin-top: 0;
  }
  .tl-item:nth-child(odd)  .tl-content,
  .tl-item:nth-child(even) .tl-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0 0.75rem;
  }
  .tl-item:nth-child(odd)  .tl-node,
  .tl-item:nth-child(even) .tl-node { grid-column: 1; grid-row: 1; }
  .tl-item:nth-child(odd)  .tl-empty,
  .tl-item:nth-child(even) .tl-empty { display: none; }
  .tl-node {
    padding-top: 0.35rem;
  }
  .tl-dot {
    width: 11px;
    height: 11px;
  }
  .tl-card {
    border-radius: 12px;
    padding: 1rem;
  }
  .tl-card-title {
    font-size: 1.02rem;
  }
  .tl-card-body {
    font-size: 0.94rem;
    line-height: 1.65;
  }
  .carousel-btn {
    width: 30px;
    height: 30px;
  }
  .carousel-counter {
    bottom: 8px;
    right: 8px;
  }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .btn-ghost { margin-left: 0; margin-top: 0.7rem; }
}

@media (max-width: 420px) {
  nav {
    padding: 0.85rem 0.8rem;
  }
  .nav-pill {
    display: none;
  }
  .timeline-section {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .timeline::before {
    left: 12px;
  }
  .tl-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .tl-item:nth-child(odd)  .tl-content,
  .tl-item:nth-child(even) .tl-content {
    padding-left: 0.6rem;
  }
  .carousel-slide {
    aspect-ratio: 4 / 3;
  }
  .carousel-btn {
    display: none;
  }
}
