:root {
  --bg: #faf9f6;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e2da;
  --accent: #6a86bd;
  --accent-deep: #3a4a68;
  --accent-soft: #edf0f7;
  --gold: #c99836;
  --panel: #ffffff;
  --radius: 14px;
  --max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---- Top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
}

.nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav a:hover { color: var(--accent-deep); }

/* ---- Hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) 1.5rem 2.5rem;
  text-align: center;
}

.roll {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.tagline { color: var(--muted); font-size: 1.1rem; margin: 0.75rem auto 1.75rem; }

.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.btn.is-busy { opacity: 0.6; pointer-events: none; }

/* ---- Panels ---- */
.panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.panel-title {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

/* ---- Showreel ---- */
.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #000;
}

.video-wrap video { display: block; width: 100%; aspect-ratio: 16 / 9; }

.caption { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }
.caption code { background: var(--line); padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.85em; }

/* ---- About ---- */
.lead { margin: 0; max-width: 60ch; }

/* ---- Timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }

.job { position: relative; padding: 0 0 1.75rem 1.5rem; }

.job::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.job h3 { margin: 0; font-size: 1.05rem; }
.job .co { color: var(--muted); font-weight: 500; }
.job .meta { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0.5rem; }
.job p:last-child { margin: 0; color: #444; }

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chips span {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ---- Contact ---- */
.contact-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

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

.footer p { margin: 0; }

/* ---- Narrow screens ---- */
@media (max-width: 560px) {
  .topbar { flex-direction: column; gap: 0.5rem; }
  .nav { justify-content: center; }
}