/* ---------------------------------------------------
   Bryce Dishongh — Conversion Strategy & Experimentation
   --------------------------------------------------- */

:root {
  --bg: #f7f7fa;
  --surface: #ffffff;
  --surface-alt: #f1f2f6;
  --ink: #14161f;
  --ink-soft: #454857;
  --muted: #6b6f80;
  --border: #e4e5ec;
  --accent: #3452ff;
  --accent-ink: #1f2fb8;
  --accent-soft: #edf0ff;
  --success: #0f7a56;
  --success-soft: #e6f5ef;
  --warn: #b8560c;
  --warn-soft: #fcecdd;
  --control: #b7bac6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 22, 31, 0.04), 0 8px 24px rgba(20, 22, 31, 0.06);
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 250, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(20, 22, 31, 0.03);
}
nav.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.navlinks {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navlinks a:not(.btn-primary) {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.94rem;
}
.navlinks a:not(.btn-primary):hover { color: var(--accent-ink); text-decoration: none; }
.navlinks a.current { color: var(--accent-ink); }
.navlinks .btn { margin-left: 4px; }
.nav-toggle { display: none; }
.text-white{color:white;}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 1.1rem;
  }
  .navlinks {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 16px;
  }
  .navlinks.open { display: flex; }
  .navlinks .btn { margin-left: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(52, 82, 255, 0.28); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.hero-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.stat-row:first-of-type { border-top: none; }
.stat-row .n { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.stat-row .l { font-size: 0.85rem; color: var(--muted); text-align: right; max-width: 55%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 32px 0; }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- tool bridge ---------- */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bridge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.bridge-card h3 { text-align:left; }
.bridge-card .have { font-weight: 700; color: var(--ink); }
.bridge-card .maps-to { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
@media (max-width: 780px) { .bridge-grid { grid-template-columns: 1fr; } }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-neutral { background: var(--surface-alt); color: var(--ink-soft); border: 1px solid var(--border); }

/* ---------- flagship case study ---------- */
.flagship {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flagship-head { padding: 40px 40px 0; }
.flagship-media { padding: 0 40px; margin: 28px 0; }
.flagship-media img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(20,22,31,0.12);
}
.flagship-body { padding: 0 40px 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.flagship-block h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.flagship-block.outcome {
  grid-column: 1 / -1;
  background: var(--success-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.flagship-block.outcome h4 { color: var(--success); }
.flagship-block.outcome .big { font-size: 2.1rem; font-weight: 800; color: var(--success); }
@media (max-width: 720px) {
  .flagship-head, .flagship-media, .flagship-body { padding-left: 22px; padding-right: 22px; }
  .flagship-body { grid-template-columns: 1fr; }
}

/* ---------- test highlight cards ---------- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.test-card figure { margin: 0; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.test-card figure img { width: 100%; }
.test-card .content { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.test-card .tag { align-self: flex-start; }
.test-card h3 { margin-bottom: 2px; }
.test-card .field { font-size: 0.88rem; }
.test-card .field b { color: var(--ink); }
@media (max-width: 780px) { .test-grid { grid-template-columns: 1fr; } }

/* ---------- selected work strip ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.work-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work-item figure { margin: 0; height: 130px; overflow: hidden; background: var(--surface-alt); }
.work-item figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-item .content { padding: 14px 16px; }
.work-item h4 { font-size: 0.92rem; margin-bottom: 4px; }
.work-item p { font-size: 0.82rem; margin: 0; color: var(--muted); }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- resume ---------- */
.resume-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
}
.resume-side .block { margin-bottom: 32px; }
.resume-side h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.resume-side ul { list-style: none; margin: 0; padding: 0; }
.resume-side li {
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.resume-side li:first-child { border-top: none; }
.edu-item { margin-bottom: 14px; }
.edu-item .degree { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.edu-item .school { font-size: 0.85rem; color: var(--muted); }

.job { margin-bottom: 36px; }
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.job-head h3 { margin: 0; }
.job-head .dates { font-size: 0.85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.job .company { font-weight: 700; color: var(--accent-ink); margin-bottom: 10px; display: block; font-size: 0.95rem; }
.job ul { margin: 0; padding-left: 20px; }
.job li { margin-bottom: 8px; color: var(--ink-soft); }
.earlier-role { padding: 14px 0; border-top: 1px solid var(--border); }
.earlier-role:last-child { padding-bottom: 0; }
.earlier-role .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.earlier-role .title { font-weight: 700; color: var(--ink); font-size: 0.94rem; }
.earlier-role .co { color: var(--muted); font-size: 0.88rem; }
.earlier-role .dates { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 860px) { .resume-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7c9d6; max-width: 52ch; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site p { margin: 0; font-size: 0.86rem; color: var(--muted); }
footer.site .flinks { display: flex; gap: 18px; }
footer.site .flinks a { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- page hero (secondary pages) ---------- */
.page-hero { padding: 56px 0 24px; }
.page-hero .eyebrow { margin-bottom: 12px; }

/* ---------- copy email (the mailto buttons copy instead of opening mail) ---------- */
.copy-email-btn {
  position: relative;
  font-family: inherit;
  cursor: pointer;
}
button.copy-email-btn:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.copy-email-btn svg { width: 15px; height: 15px; flex: 0 0 auto; display: block; }
.copy-email-btn .copy-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}
.copy-email-btn .copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.copy-email-btn.copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- print (résumé → PDF, keeps a single HTML source of truth) ---------- */
@media print {
  @page {
    size: letter;
    margin: 0.55in 0.65in;
  }

  html, body {
    background: #fff;
  }

  body {
    font-size: 11pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  header.site,
  footer.site,
  .hero-actions,
  section.alt,
  .page-hero .eyebrow,
  .nav-toggle {
    display: none !important;
  }

  main, .wrap {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .page-hero {
    padding: 0 0 14px;
  }
  .page-hero h1 {
    font-size: 22pt;
    margin-bottom: 4px;
  }
  .page-hero .lede {
    font-size: 10pt;
    max-width: none;
  }

  section.tight {
    padding: 0;
  }

  .resume-grid {
    gap: 28px;
  }

  /* Core Tools / Core Competencies side by side to save vertical space */
  .resume-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
  .resume-side .block:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }

  * {
    box-shadow: none !important;
  }

  .job,
  .block,
  .edu-item,
  .earlier-role {
    break-inside: avoid;
  }
}
