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

:root {
  --cream:    #FAFAF8;
  --warm-bg:  #F0EFEB;
  --sand:     #E2E1DC;
  --rose:     #C84B31;
  --rose-dk:  #A83A22;
  --ink:      #111111;
  --ink-soft: #444444;
  --muted:    #888888;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-h:    64px;
  --byline-h: 36px;
  --max-w:    1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 300;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose); }

ul { list-style: none; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--sand);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rose);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--rose); }

/* ── Mobile Nav Toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rose-dk);
  color: #fff;
  box-shadow: 0 4px 16px rgba(162, 103, 79, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
}
.btn-secondary:hover {
  background: var(--rose);
  color: #fff;
}

/* ── Hero ── */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  background: var(--warm-bg);
  position: relative;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  max-width: 480px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  animation: bounce 2s infinite;
}

.hero-scroll-hint:hover {
  color: var(--rose);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */
.section { padding: 6rem 0; }
.section-alt { background: var(--warm-bg); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.section-intro {
  max-width: 560px;
  color: var(--ink-soft);
  margin-bottom: 3rem;
}

/* ── About ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.about-text .btn { margin-top: 0.5rem; }

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 4px;
  border: 3px solid var(--sand);
  box-shadow: 0 8px 30px rgba(43, 33, 24, 0.12);
  filter: saturate(0.85) contrast(1.05);
}

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

.work-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.work-card:hover {
  box-shadow: 0 8px 32px rgba(43, 33, 24, 0.1);
  transform: translateY(-2px);
}

.work-card[data-tags="special"] {
  border-left: 3px solid var(--rose);
}

.work-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(194, 130, 106, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.875rem;
}

.work-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.work-title a { color: var(--ink); transition: color 0.2s; }
.work-title a:hover { color: var(--rose); }

.work-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.work-desc { font-size: 0.9rem; color: var(--ink-soft); }

/* ── Resume ── */
.resume-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--warm-bg);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 3rem;
}

.resume-download-bar p { color: var(--ink-soft); }

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.resume-section-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sand);
}

.resume-entry { margin-bottom: 1.75rem; }

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}

.resume-entry-header strong {
  font-size: 1rem;
  font-weight: 500;
}

.resume-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.resume-employer {
  font-size: 0.875rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.resume-entry ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.resume-entry li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skills-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--sand);
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rose); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── PDF Work Cards ── */
.work-card[data-pdf] {
  position: relative;
}
.work-card[data-pdf]:hover {
  border-color: var(--rose);
}

.work-read-cue {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--rose);
  text-transform: uppercase;
}

/* ── PDF Overlay ── */
.pdf-overlay {
  position: fixed;
  background: var(--cream);
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(43, 33, 24, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.pdf-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.pdf-close:hover { opacity: 1; }

.pdf-frame {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
}

/* ── Backdrop ── */
.pdf-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, 0.6);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 0 1.25rem; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.75rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo-wrap { order: -1; }
  .about-photo { max-width: 280px; }

  .resume-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .resume-download-bar { flex-direction: column; align-items: flex-start; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.75rem; }
  .hero-name { font-size: 3rem; }
}

/* ── Scroll offset for fixed nav + byline ── */
section[id], header[id] {
  scroll-margin-top: calc(var(--nav-h) + 0.5rem);
}

/* ══════════════════════════════════════════
   RECRUITER BYLINE STRIP
══════════════════════════════════════════ */
.byline-strip {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  height: var(--byline-h);
  background: var(--ink);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.byline-strip-inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  flex-wrap: nowrap;
  overflow: hidden;
}

.byline-role {
  color: var(--sand);
  font-weight: 400;
  white-space: nowrap;
}

.byline-role em {
  font-style: normal;
  font-weight: 500;
  color: #fff;
}

.byline-divider {
  color: rgba(255, 255, 255, 0.18);
  font-weight: 300;
  flex-shrink: 0;
}

.byline-stat {
  color: var(--muted);
  white-space: nowrap;
}

.byline-badge {
  color: #82c9a0;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   BY THE NUMBERS STRIP
══════════════════════════════════════════ */
.numbers-strip {
  background: var(--cream);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 3.5rem 0;
}

.numbers-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.numbers-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.numbers-figure {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.numbers-label {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.numbers-rule {
  width: 1px;
  height: 3rem;
  background: var(--sand);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   WORK FILTER BAR
══════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.38rem 0.85rem;
  border-radius: 2px;
  border: 1.5px solid var(--sand);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}

.filter-btn:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ══════════════════════════════════════════
   CARD: PUBLICATION CREDIBILITY BLOCK
══════════════════════════════════════════ */
.work-pub-block {
  margin: 0.35rem 0 0.8rem;
  padding-left: 0.55rem;
  border-left: 2px solid var(--ink);
}

.work-pub {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.work-date {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0.1rem 0 0;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   RESUME: SCANNABLE REDESIGN
══════════════════════════════════════════ */
.resume-company {
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.2rem;
  line-height: 1;
}

.resume-highlight {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0.4rem 0 0.6rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--rose);
  line-height: 1.55;
}

.resume-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.3rem;
}

.resume-bullets li {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   SKILLS GRID (chips)
══════════════════════════════════════════ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.skills-chip {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--warm-bg);
  border: 1px solid var(--sand);
  border-radius: 2px;
  padding: 0.28rem 0.65rem;
  display: inline-block;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   CONTACT / HIRE ME SECTION
══════════════════════════════════════════ */
.contact-section {
  background: var(--ink);
  padding: 6rem 0;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.contact-section .section-label {
  color: var(--rose);
}

.contact-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--cream);
  margin: 0;
  line-height: 1.15;
}

.contact-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}

.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--sand);
  display: inline-block;
  margin: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(232, 217, 197, 0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.contact-email:hover {
  color: #fff;
  text-decoration-color: var(--rose);
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.contact-section .btn-secondary {
  border-color: rgba(156, 136, 120, 0.5);
  color: var(--muted);
}

.contact-section .btn-secondary:hover {
  background: var(--muted);
  color: var(--ink);
  border-color: var(--muted);
}

/* ══════════════════════════════════════════
   RESPONSIVE — new elements
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .byline-stat { display: none; }
  .byline-divider:first-of-type { display: none; }

  .numbers-inner { flex-wrap: wrap; gap: 2.5rem 0; }
  .numbers-rule  { display: none; }
  .numbers-item  { flex: 0 0 50%; }

  .filter-bar    { gap: 0.35rem; }
  .filter-btn    { font-size: 0.65rem; padding: 0.32rem 0.7rem; }

  .contact-section { padding: 4rem 0; }
  .contact-actions { flex-direction: column; align-items: center; }
}
