*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:      #f9f7f4;
  --warm-gray:  #edeae3;
  --ink:        #0f0f0d;
  --ink-mid:    #4c4945;
  --ink-soft:   #9a9590;
  --rule:       #dedad3;
  --navy:       #1d3461;
  --terra:      #b5481a;
}

html {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Shared centering ── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─────────────────────────────
   LIGHTBOX
───────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 13, 0.88);
  z-index: 100;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(90vw, 700px);
  max-height: 90vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  padding: 8px;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ─────────────────────────────
   HERO
───────────────────────────── */
.hero {
  padding-top: 80px;
  padding-bottom: 68px;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 52px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}

.role {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-mid);
  margin-bottom: 22px;
  line-height: 1.5;
}

.role strong {
  font-weight: 500;
  color: var(--navy);
}

/* Meta grid: label + value rows */
.meta-grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 16px;
  align-items: baseline;
}

.meta-label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 2px;
}

.meta-value {
  font-size: 0.83rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

.meta-sep {
  margin: 0 5px;
  color: var(--rule);
}

/* Portrait */
.portrait-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: 50%;
  display: block;
}

.hero-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--rule);
  background: var(--warm-gray);
  display: block;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.portrait-btn:hover .hero-portrait {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ─────────────────────────────
   DIVIDER
───────────────────────────── */
hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
}

/* ─────────────────────────────
   BIO
───────────────────────────── */
.bio-section {
  padding: 60px 0 64px;
}

.section-label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.bio-text {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.82;
  max-width: 600px;
}

/* ─────────────────────────────
   PROJECTS — full-width warm band
───────────────────────────── */
.projects-band {
  background: var(--warm-gray);
  padding: 60px 28px;
}

.projects-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: #c8c3b8;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.62;
  flex: 1;
}

.card-cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--terra);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* ─────────────────────────────
   APPEARANCES
───────────────────────────── */
.appearances-section {
  padding: 64px 0 40px;
}

.appearance-list {
  list-style: none;
}

.appearance-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.appearance-item:first-of-type {
  border-top: 1px solid var(--rule);
}

.appearance-venue {
  flex-shrink: 0;
  width: 120px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}

.appearance-body {
  flex: 1;
  min-width: 0;
}

.appearance-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.12s ease;
}

.appearance-title:hover {
  color: var(--navy);
}

.appearance-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.5;
}

/* ─────────────────────────────
   TABS
───────────────────────────── */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  margin-right: 32px;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.tab-btn:hover {
  color: var(--ink-mid);
}

.tab-btn[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ─────────────────────────────
   CONTACT
───────────────────────────── */
.contact-section {
  padding-top: 48px;
  padding-bottom: 80px;
  border-top: 1px solid var(--rule);
}

.contact-text {
  font-size: 1rem;
  color: var(--ink-mid);
}

.contact-text a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

.contact-text a:hover {
  border-color: var(--ink);
}

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 580px) {
  .hero {
    padding-top: 52px;
    padding-bottom: 48px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .hero-portrait {
    width: 108px;
    height: 108px;
  }

  .meta-grid {
    grid-template-columns: 64px 1fr;
    gap: 7px 12px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .appearance-item {
    flex-direction: column;
    gap: 4px;
  }

  .appearance-venue {
    width: auto;
  }

  .bio-section,
  .appearances-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
