/* ============================================================
   mccameron.com — Portfolio stylesheet
   Fast by default: system fonts, no external requests.
   ============================================================ */

:root {
  --navy: #1a5276;
  --navy-dark: #12394f;
  --navy-light: #2980b9;
  --ink: #1a1a1a;
  --charcoal: #2c3e50;
  --gray: #5a6a7a;
  --muted: #7f8c8d;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --line: #d5dbdb;
  --accent: #2980b9;
  --radius: 6px;
  --maxw: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header / nav ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; color: var(--navy); font-size: 1.1rem; letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--charcoal); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 72px 0 56px;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.5px; }
.hero .subtitle { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: #cfe0ef; margin-top: 14px; max-width: 700px; }
.hero .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dde9f3; font-size: .95rem; }
.hero .meta a { color: #dde9f3; }
.hero .cta { margin-top: 28px; }
.btn {
  display: inline-block; background: #fff; color: var(--navy-dark);
  font-weight: 700; padding: 12px 22px; border-radius: var(--radius);
  transition: .15s ease; border: 2px solid #fff;
}
.btn:hover { background: var(--navy-light); border-color: var(--navy-light); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---- Sections ---- */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-soft); }
.section h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 10px; }
.section .intro { color: var(--gray); max-width: 680px; margin-bottom: 30px; }

/* 3-column capability grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .15s ease;
}
.card:hover { border-color: var(--navy-light); box-shadow: 0 6px 18px rgba(18,57,79,.08); }
.card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--charcoal); font-size: .95rem; }
.card .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }

/* Work / case studies */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-item {
  display: block; color: inherit; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: #fff; transition: .15s ease;
}
.work-item:hover { text-decoration: none; border-color: var(--navy-light); box-shadow: 0 6px 18px rgba(18,57,79,.08); }
.work-item .field { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.work-item h3 { color: var(--navy); margin: 6px 0 8px; font-size: 1.1rem; }
.work-item p { color: var(--charcoal); font-size: .93rem; }
.work-item .outcome { margin-top: 10px; color: var(--navy); font-weight: 600; font-size: .9rem; }

/* Writing */
.writing-list { display: grid; gap: 12px; }
.writing-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: #fff; }
.writing-item .kind { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.writing-item h3 { color: var(--navy); font-size: 1.05rem; margin: 4px 0; }

/* About / timeline */
.timeline { list-style: none; }
.timeline li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline .period { min-width: 130px; color: var(--navy); font-weight: 700; }
.timeline .desc { color: var(--charcoal); }

/* Contact */
.contact-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
}
.contact-card a { color: #fff; font-weight: 600; }
.contact-card .big { font-size: 1.3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .85rem; }

/* Reveal-on-scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(14px); transition: .5s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .grid3, .work-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
}
@media (max-width: 520px) {
  .nav-links { font-size: .85rem; }
  .timeline li { flex-direction: column; gap: 4px; }
  .timeline .period { min-width: 0; }
}

/* Print-friendly */
@media print {
  .site-header, .hero .cta, .site-footer { display: none; }
  .section { padding: 24px 0; }
}

/* ---- Reel hero (letting the work lead) ---- */
.reel-wrap { margin-top: 34px; max-width: 860px; }
.reel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; gap: 12px; flex-wrap: wrap;
}
.reel-label {
  font-size: .78rem; font-weight: 700; letter-spacing: 2px; color: #9fc3dd;
}
.reel-role { font-size: .8rem; color: #cfe0ef; }

.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.45);
  background: #000;
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---- Work thumbnail cards ---- */
.thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px;
  margin-bottom: 12px; background: #eef1f3;
}
.work-item .myrole {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin: 4px 0 6px; font-weight: 600;
}


/* Compact credit list + accordion */
.credit-list { list-style: none; max-width: 720px; }
.credit-list li {
  padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--charcoal); font-size: .95rem;
}
details.acc { max-width: 720px; }
details.acc summary {
  cursor: pointer; font-weight: 600; color: var(--navy); padding: 12px 0; border-bottom: 1px solid var(--line);
}
details.acc .acc-body { padding: 12px 0; }
