:root {
  --bg: #0f1115;
  --bg-raised: #15181e;
  --text: #e8e8e8;
  --text-dim: #9aa0a6;
  --line: #262a31;
  --accent: #d98e4a;
  --gold: #b5a07b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
a { color: inherit; text-decoration: none; }

.layout { display: flex; min-height: 100%; opacity: 0; transition: opacity 0.5s ease; }
.layout.ready { opacity: 1; }

/* Left nav */
.nav { width: 220px; flex-shrink: 0; padding: 2rem 1.5rem; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.nav .brand { display: flex; align-items: center; gap: 0.5rem; font-family: Georgia, serif;
  font-size: 1.3rem; letter-spacing: 0.04em; margin-bottom: 2.5rem; }
.nav .brand img { width: 160px; height: auto; object-fit: contain; }
.nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem;
  font-family: Georgia, "Times New Roman", serif; }
.nav li a { display: block; padding: 0.5rem 0; color: var(--gold); opacity: 0.65; font-size: 1.1rem;
  letter-spacing: 0.03em; border-left: 2px solid transparent; padding-left: 0.75rem; }
.nav li a.active { opacity: 1; border-left-color: var(--gold); }
.nav li a:hover { opacity: 1; }
.nav .search { margin-top: auto; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text-dim); font-size: 0.85rem; }

/* Main canvas */
.main { flex: 1; padding: 2rem 3rem 4rem; max-width: 1100px; }

/* Hero */
.hero { position: relative; border-radius: 10px; overflow: hidden; height: 380px; margin-bottom: 3rem;
  background: #1b1e24; display: flex; align-items: flex-end; }
.hero .hero-slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0;
  transition: opacity 1.2s ease; }
.hero .hero-slide.active { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 100% at 50% 100%, transparent 30%, rgba(0,0,0,0.55) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.15) 65%, transparent 85%); }
.hero .hero-copy { position: relative; z-index: 2; padding: 1.75rem 2rem; }
.hero .eyebrow { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.hero h1 { font-size: 2rem; margin: 0 0 0.4rem; color: #fff; }
.hero p { margin: 0 0 0.75rem; color: #dcdee1; max-width: 480px; font-size: 0.95rem; }
.hero .cta { font-size: 0.85rem; border-bottom: 1px solid var(--gold); padding-bottom: 2px; color: var(--gold); }
.hero .dots { position: absolute; z-index: 2; right: 1.5rem; bottom: 1.5rem; display: flex; gap: 0.4rem; }
.hero .dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.hero .dots span.active { background: var(--gold); }

section { margin-bottom: 3.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.3rem; margin: 0; }
.section-head .all { font-size: 0.8rem; color: var(--text-dim); }

/* Build cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { display: block; }
.card img { width: 100%; height: 160px; object-fit: contain; border-radius: 6px; border: 1px solid var(--gold);
  background: var(--bg-raised); display: block; }
.card .name { margin-top: 0.6rem; font-size: 0.95rem; }
.card .meta { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.15rem; }
.card .placeholder { width: 100%; height: 160px; border-radius: 6px; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: Georgia, serif;
  font-size: 3rem; color: var(--gold); background: var(--bg-raised); }
.pill { display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); margin-top: 0.4rem; }
.pill.done { border-color: var(--gold); color: var(--gold); }
.pill.progress { border-color: #4caf6d; color: #4caf6d; }
.pill.upcoming { border-color: var(--gold); color: var(--gold); }

/* Kits table */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; color: var(--text-dim); font-weight: 400; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
td img { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 0.75rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; background: var(--bg-raised); }

/* Placeholder page */
.placeholder-page { padding: 4rem 0; text-align: center; color: var(--text-dim); }
.placeholder-page h2 { color: var(--text); font-size: 1.5rem; margin-bottom: 0.5rem; }

/* History copy */
.history p { line-height: 1.7; color: #cfd2d6; margin-bottom: 1.1rem; }

@media (max-width: 800px) {
  .nav { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Intro animation */
html.intro, html.intro body { overflow: hidden; height: 100%; }
#intro { position: fixed; inset: 0; background: #000; z-index: 1000;
  display: flex; align-items: center; justify-content: center; }
#intro img { width: 320px; height: auto; object-fit: contain;
  opacity: 0; transform: scale(0.3); will-change: transform, opacity; }
#intro img.run {
  animation: introMove 2.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes introMove {
  0%   { transform: scale(0.3); opacity: 0; }
  18%  { opacity: 1; }
  38%  { transform: scale(1.15); opacity: 1; }
  55%  { transform: scale(1); opacity: 1; }
  100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--ts, 0.5)); opacity: 1; }
}
#intro.hide { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
