/* ============ tokens ============ */
:root {
  --ink: #12151c;
  --ink-2: #1b2029;
  --ink-soft: #2a303c;
  --bone: #f5f0e6;
  --paper: #fbf8f2;
  --amber: #c1602a;
  --amber-dark: #93461d;
  --text-dark: #1c1a17;
  --text-muted: #6b6459;
  --text-on-ink: #efe9db;
  --text-on-ink-muted: #a7a89e;
  --border-soft: rgba(28, 26, 23, 0.1);
  --border-on-ink: rgba(239, 233, 219, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1140px;
  --radius: 14px;
}

/* ============ reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
p { margin: 0; }
section { scroll-margin-top: 84px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  display: block;
}
.section-kicker-light { color: #e3a479; }

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  color: var(--text-dark);
  max-width: 26ch;
}
.section-title-light { color: var(--text-on-ink); }

.section-sub {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--border-soft); color: var(--text-dark); }
.btn-outline:hover { border-color: var(--text-dark); }
.btn-cta { background: var(--amber); color: #fff; }
.btn-cta:hover { background: var(--amber-dark); }
.btn-large { font-size: 1.05rem; padding: 0.9rem 2rem; margin-top: 2.5rem; }

/* ============ header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.main-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a { position: relative; padding: 0.25rem 0; }
.main-nav a:hover { color: var(--amber); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}

/* ============ hero ============ */
.hero {
  position: relative;
  background: var(--paper);
  padding-top: 2rem;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-portrait { display: flex; justify-content: center; }
.portrait-frame {
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-frame.portrait-missing::after {
  content: "Add headshot.jpg to Website/assets/";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-on-ink-muted);
  font-size: 0.9rem;
}
.portrait-frame.portrait-missing img { display: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============ about ============ */
.about-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}
.about-copy p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bone);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--amber);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============ experience ============ */
.experience { background: var(--ink); color: var(--text-on-ink); }
.timeline {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-on-ink);
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.timeline-dates {
  font-size: 0.85rem;
  color: var(--text-on-ink-muted);
  line-height: 1.5;
}
.timeline-org {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #e3a479;
}
.timeline-body ul { display: flex; flex-direction: column; gap: 0.6rem; }
.timeline-body li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.6;
  color: var(--text-on-ink-muted);
}
.timeline-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.education-skills {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-on-ink);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}
.education-skills h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-ink-muted);
  margin-bottom: 1.25rem;
}
.edu-item { margin-bottom: 1.25rem; }
.edu-degree { font-weight: 600; margin-bottom: 0.25rem; }
.edu-school { color: var(--text-on-ink-muted); font-size: 0.92rem; }

.skill-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-chips span {
  border: 1px solid var(--border-on-ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  color: var(--text-on-ink);
}

/* ============ work ============ */
.work-filters {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid var(--border-soft);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.work-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.work-card.is-hidden { display: none; }
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

/* photography renders as a plain image gallery, no project card chrome */
.work-card--photo {
  background: transparent;
  border-radius: 8px;
}
.work-card--photo .work-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.work-grid.is-gallery {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.work-grid.is-gallery .work-card {
  border-radius: 8px;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-badge span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 21, 28, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.work-info { padding: 1.1rem 1.25rem 1.35rem; }
.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.4rem;
  display: block;
}
.work-title { font-weight: 600; margin-bottom: 0.3rem; }
.work-caption { font-size: 0.88rem; color: var(--text-muted); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 28, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: min(90vw, 1000px); max-height: 88vh; }
.lightbox-content img, .lightbox-content video {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ============ resume ============ */
.resume-panel { margin-top: 2.5rem; }
.resume-embed {
  width: 100%;
  height: 780px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bone);
}
.resume-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}
.resume-actions { margin-top: 1.5rem; }

/* ============ contact ============ */
.contact { background: var(--ink-2); color: var(--text-on-ink); text-align: center; }
.contact .section-kicker,
.contact .section-title { text-align: center; margin-left: auto; margin-right: auto; }
.contact-lede {
  margin: 1.25rem auto 0;
  max-width: 44ch;
  color: var(--text-on-ink-muted);
  font-size: 1.05rem;
}
.contact-grid {
  margin: 3rem auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.contact-link {
  border: 1px solid var(--border-on-ink);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-link:hover { border-color: var(--amber); transform: translateY(-2px); }
.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-ink-muted);
}
.contact-value { font-weight: 600; word-break: break-word; }

/* ============ footer ============ */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--border-on-ink); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-on-ink-muted);
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .hero-inner { display: flex; flex-direction: column; text-align: left; }
  .hero-portrait { order: -1; width: 100%; max-width: 260px; margin: 0 auto 1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .education-skills { grid-template-columns: 1fr; gap: 2rem; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid.is-gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { gap: 0.5rem; }
  .btn-cta { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
  .section-inner { padding: 4rem 1.25rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid.is-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    gap: 1.25rem;
  }
}
