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

:root {
  --bg:       #0f0f0f;
  --surface:  #161616;
  --border:   #252525;
  --text:     #e8e8e8;
  --muted:    #888;
  --accent:   #e0e0e0;
  --font:     'Inter', system-ui, sans-serif;
  --radius:   8px;
  --max-w:    900px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
.section-alt { background: var(--surface); }

/* ── Family bar ─────────────────────────────────────────────── */
.family-bar {
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
}

.family-label {
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.family-bar a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.family-bar a:hover { color: var(--text); }

.family-current {
  color: var(--text);
  font-weight: 500;
}

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

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

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

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

nav ul a:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* ── Button ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--surface);
  border-color: #444;
  color: #fff;
}

/* ── About ──────────────────────────────────────────────────── */
#about h2, #work h2, #contact h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  align-items: start;
}

.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text a { color: var(--text); }

.about-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.link-item {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  transition: color 0.15s;
}

.link-item:hover { color: var(--text); }

/* ── Work cards ─────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

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

.card:hover { border-color: #444; }

.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.card-link:hover { color: var(--text); }

/* ── Hero links ─────────────────────────────────────────────── */
.hero-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--border); color: var(--text); }

/* ── Section intro ──────────────────────────────────────────── */
.section-intro {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ── Feature block (Now) ────────────────────────────────────── */
.feature-block { max-width: 680px; }
.feature-block h3 { font-size: 1.25rem; font-weight: 400; margin-bottom: 0.4rem; }
.feature-block h3 a { text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.feature-block h3 a:hover { border-color: var(--text); }
.feature-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; letter-spacing: 0.05em; }
.feature-text p { color: var(--muted); margin-bottom: 1rem; }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 3.5rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: 1px solid var(--border); }

.timeline-period {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
  white-space: nowrap;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-content p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* ── Tags ───────────────────────────────────────────────────── */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

/* ── Video grid ─────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ── Standards list ─────────────────────────────────────────── */
.standards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.standards-list li { padding-left: 1rem; border-left: 2px solid var(--border); }
.standards-list strong { color: var(--text); }

/* ── Contact ────────────────────────────────────────────────── */
.contact-block { text-align: center; }
.contact-block > p { color: var(--muted); margin-bottom: 2rem; }
.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.contact-note { font-size: 0.85rem; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span { font-size: 0.8rem; color: var(--muted); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav ul { gap: 1rem; font-size: 0.85rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 5rem 0 4rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-period { padding-top: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.75rem; }
}
