@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #111111;
  --muted: #666666;
  --line: #e8e8e8;
  --accent: #0e6e5d;
  --bg: #ffffff;

  --hl-green: #d4edd4;
  --hl-blue: #d0e8f5;
  --hl-yellow: #fdefc3;
  --hl-pink: #fcd9e0;
  --hl-purple: #e5d9f5;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

/* Layout */

.wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 28px 72px;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Links */

a {
  color: var(--ink);
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hero */

.hero {
  margin-bottom: 0;
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}

/* Highlighted words in hero bio */
.hl {
  display: inline;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.hl-green {
  background: var(--hl-green);
}

.hl-blue {
  background: var(--hl-blue);
}

.hl-yellow {
  background: var(--hl-yellow);
}

.hl-pink {
  background: var(--hl-pink);
}

.hl-purple {
  background: var(--hl-purple);
}

.hero-bio {
  font-size: 17px;
  color: var(--ink);
  max-width: 660px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-location {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
}

/* Section headings */

h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

section {
  margin-bottom: 0;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: -14px;
  margin-bottom: 24px;
}

/* Capabilities grid */

.caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.cap h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.cap p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Experience / Products */

.entry {
  margin-bottom: 32px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.entry h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1px;
}

.org {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  display: block;
}

.dates {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

.entry p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.entry ul {
  padding-left: 16px;
  font-size: 14px;
}

.entry li {
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.55;
}

.entry li:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 10px;
}

.contact p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 480px;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 100;
  overflow-y: auto;
  padding: 32px 20px;
}

.modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-box {
  background: var(--bg);
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  position: relative;
  padding: 48px 52px;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 17px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
  transition: color .15s;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-content p {
  margin-bottom: 14px;
}

.modal-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px !important;
}

.modal-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-lead {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 28px !important;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.modal-content h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 28px;
}

.modal-content ul {
  padding-left: 16px;
  margin-bottom: 14px;
}

.modal-content li {
  font-size: 14px;
  margin-bottom: 7px;
  color: var(--ink);
  line-height: 1.6;
}

.modal-content li:last-child {
  margin-bottom: 0;
}

.visual-block {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.visual-block img {
  width: 100%;
  display: block;
}

.visual-caption {
  font-size: 12.5px;
  color: var(--muted);
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
  margin: 0 !important;
}

.modal-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  padding: 9px 18px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.modal-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Clickable entry */

.clickable-entry {
  cursor: pointer;
  border-radius: 6px;
  margin-left: -10px;
  margin-right: -10px;
  padding: 8px 10px;
  transition: background .15s;
  user-select: none;
}

.clickable-entry:hover {
  background: #f4f4f4;
}

.clickable-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.clickable-entry p,
.clickable-entry li {
  pointer-events: none;
}

/* Responsive */

@media (max-width: 600px) {
  .wrap {
    padding: 36px 18px 56px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-bio {
    font-size: 16px;
  }

  .caps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal-box {
    padding: 36px 20px;
  }

  .entry-head {
    flex-direction: column;
    gap: 2px;
  }

  .divider {
    margin: 32px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}