/* jeremyvandusen.com — v1 — hand-built, no framework */
:root {
  --bg: #2B383D;        /* deep slate (page) */
  --bg-2: #44555A;      /* slate grey (banner) — surfaces */
  --navy: #1F3A5F;
  --sky: #5BB0E6;
  --mustard: #F2B33D;
  --text: #E9E2D4;      /* warm off-white */
  --muted: #C4BDAF;
  --line: rgba(233, 226, 212, 0.14);
  --max: 1080px;
  --font-head: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mustard); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mustard); color: #1B2328; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(43, 56, 61, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { white-space: nowrap; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--mustard); }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; padding: 6px 0; }
.nav a:hover, .nav a:focus { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 10px; font: inherit; cursor: pointer; }
@media (max-width: 767px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 10px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.eyebrow { color: var(--mustard); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-photo { width: min(260px, 70vw); border-radius: 14px; border: 3px solid var(--bg-2); box-shadow: 0 10px 30px rgba(0,0,0,.35); justify-self: start; }
.hero-line { color: var(--sky); font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; }
.hero-sub { font-size: 1.15rem; max-width: 42rem; }
.hero-small { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--mustard); color: #1B2328; }
.btn-primary:hover { background: #F7C25B; color: #1B2328; }
.btn-secondary { border-color: var(--sky); color: var(--sky); }
.btn-secondary:hover { background: rgba(91,176,230,.12); color: var(--text); }
@media (min-width: 768px) {
  .hero .wrap { grid-template-columns: 300px 1fr; gap: 48px; }
  .hero-photo { width: 300px; }
}

/* About */
.about p { max-width: 46rem; }
.about .aside { border-left: 3px solid var(--mustard); padding-left: 16px; color: var(--muted); }

/* Cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.card { background: var(--bg-2); border-radius: 12px; padding: 22px; border: 1px solid var(--line); }
.card svg { width: 36px; height: 36px; stroke: var(--sky); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.card p { margin: 0; color: var(--text); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Proof tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; }
.tile { background: var(--navy); border-radius: 12px; padding: 20px 18px; }
.tile strong { display: block; font-size: clamp(1.5rem, 5.5vw, 2rem); overflow-wrap: anywhere; font-weight: 800; color: var(--mustard); line-height: 1.1; margin-bottom: 6px; letter-spacing: -0.01em; }
.tile span { color: var(--text); font-size: .95rem; line-height: 1.4; display: block; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* AI & Systems */
.ai ul { padding-left: 1.2em; max-width: 46rem; }
.ai li { margin-bottom: .6em; }
.ai .rule { background: var(--bg-2); border-radius: 12px; padding: 18px 22px; max-width: 46rem; border-left: 4px solid var(--sky); margin-top: 8px; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--mustard); }
.timeline h3 { margin-bottom: 2px; }
.timeline .org { color: var(--sky); font-weight: 600; }
.timeline .when { color: var(--muted); font-size: .92rem; }
.timeline p { margin: 6px 0 0; }
.edu { margin-top: 28px; }
.edu ul { padding-left: 1.2em; }

/* Contact */
.contact { background: var(--navy); border-top: 0; }
.contact .lead { font-size: 1.25rem; max-width: 40rem; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-list li { font-size: 1.05rem; }
.contact-list .label { color: var(--muted); display: inline-block; min-width: 86px; }
@media (max-width: 479px) { .contact-list .label { display: block; font-size: .85rem; min-width: 0; } }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav a { margin-right: 16px; }
.credit img { width: 72px; height: 72px; opacity: .85; }
.credit:hover img { opacity: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .btns, .site-footer .credit { display: none; } body { background: #fff; color: #000; } }
