:root {
  --bg: #0B0C0E;
  --surface: #15171B;
  --surface2: #1C1F24;
  --text: #EDEAE3;
  --muted: #8A8D93;
  --accent: #E3A83B;
  --accent2: #3E8E8A;
  --line: #2A2D33;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: 'Fraunces', serif; margin: 0; }
.mono { font-family: 'JetBrains Mono', monospace; }

a { color: inherit; }

/* ---------- Timeline (signature element) ---------- */
.timeline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(11,12,14,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.timeline-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.timeline-fill {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}
.timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
}
.tm-tick {
  width: 2px;
  height: 10px;
  background: var(--muted);
  display: block;
  transition: background 0.2s, height 0.2s;
}
.tm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.timeline-marker.active .tm-tick {
  background: var(--accent);
  height: 14px;
}
.timeline-marker.active .tm-label,
.timeline-marker:hover .tm-label { color: var(--accent); }
.timeline-marker:hover .tm-tick { background: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.55);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.55) 0%, rgba(11,12,14,0.35) 40%, rgba(11,12,14,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 64px;
  max-width: 820px;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 13px;
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 600;
  line-height: 0.95;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 28px;
  opacity: 0.9;
}
.hero-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}
.hero-meta .dot { margin: 0 10px; color: var(--line); }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue svg { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Projects ---------- */
main { padding-top: 56px; }

.project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5vw;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 90px 6vw;
  border-bottom: 1px solid var(--line);
}
.project.reverse { direction: rtl; }
.project.reverse > * { direction: ltr; }

.project-media video {
  width: 100%;
  border-radius: 6px;
  background: #000;
  display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.tc {
  color: var(--accent2);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.project-info h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 12px;
}
.project-client {
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
  margin: 0 0 6px;
}
.project-role {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 22px;
  letter-spacing: 0.03em;
}
.project-why {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.92;
  margin-bottom: 26px;
}
.why-label {
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  font-family: 'Fraunces', serif;
}
.skill-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  background: var(--surface);
}

/* ---------- Footer ---------- */
.contact {
  text-align: center;
  padding: 120px 6vw 100px;
}
.contact h2 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 500;
  margin: 18px 0 28px;
}
.contact-links {
  font-size: 15px;
  color: var(--muted);
}
.contact-links a { text-decoration: none; }
.contact-links a:hover { color: var(--accent); }
.contact .dot { margin: 0 10px; color: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .project, .project.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 60px 6vw;
    gap: 28px;
  }
  .timeline { padding: 0 16px; }
  .tm-label { display: none; }
  .hero-content { padding: 0 6vw 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
}
