@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap");

:root {
  --page-bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --border: #d7dde5;
  --border-strong: #b9c3cf;
  --text: #12181f;
  --muted: #5d6876;
  --accent: #184d80;
  --accent-strong: #123b61;
  --accent-soft: #edf3f8;
  --highlight: #ffffd0;
  --highlight-border: #ececb2;
  --shadow: 0 10px 24px rgba(18, 24, 31, 0.05);
  --shadow-strong: 0 14px 28px rgba(18, 24, 31, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.4px;
  text-underline-offset: 0.18em;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

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

p,
h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-header,
.hero-section,
.project-strip,
.content-section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 16px;
}

.brand,
.nav-links,
.hero-actions,
.footer-links,
.filter-bar,
.text-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.nav-links a {
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 700;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: center;
  margin-top: 10px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 0.98;
}

h1 span {
  display: inline;
}

h1 span + span::before {
  content: " ";
}

h2 {
  margin-top: 4px;
  font-size: clamp(1.95rem, 3.8vw, 2.6rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.42;
  font-weight: 900;
}

.hero-text {
  display: grid;
  gap: 10px;
  max-width: 72ch;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  box-shadow: none;
  font-weight: 900;
  text-decoration: underline;
}

.button.primary {
  background: none;
  color: var(--accent);
}

.button:hover,
.button:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.button svg,
.text-link svg,
.footer-links svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.hero-visual {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.profile-photo {
  width: min(300px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.focus-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.focus-board div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.metric {
  display: block;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.25;
}

.signal-grid {
  display: none;
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.project-strip div {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-strip span,
.card-topline,
.meta,
.date {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.project-strip span {
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-strip strong {
  font-size: 1rem;
  line-height: 1.35;
}

.featured-mention {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) auto;
  gap: 18px 24px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 22px;
  border: 1px solid var(--highlight-border);
  border-radius: 12px;
  background: var(--highlight);
  box-shadow: var(--shadow);
}

.featured-mention h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
}

.featured-mention p:not(.eyebrow) {
  color: var(--text);
  line-height: 1.65;
}

.content-section {
  padding-top: 44px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px 28px;
  align-items: center;
  margin-bottom: 18px;
}

.section-heading::after {
  content: "Built systems, research prototypes, conference work, and challenge entries. The list stays project-first, with repo links attached where the code is public.";
  max-width: 70ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.split-section .section-heading::after,
#experience .section-heading::after {
  content: "";
}

.filter-bar {
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: #a7bfd5;
  background: #e5eef6;
  color: var(--accent-strong);
  outline: none;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project-card.featured {
  border: 1px solid var(--highlight-border);
  border-radius: 8px;
  background: var(--highlight);
}

.project-card[hidden] {
  display: none;
}

.card-topline {
  justify-content: flex-start;
  gap: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-type {
  color: var(--accent-strong);
}

.project-card p,
.experience-grid p,
.timeline-item p {
  color: var(--text);
  line-height: 1.72;
}

.compact-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #c7d4e1;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

.text-link {
  width: fit-content;
  gap: 6px;
  color: var(--accent);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 34px;
  align-items: start;
}

.split-section .section-heading {
  display: block;
}

.timeline {
  display: grid;
  gap: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.timeline-date {
  color: var(--accent-strong);
  font-weight: 900;
}

.timeline-item div {
  display: grid;
  gap: 8px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.experience-grid article {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.experience-grid article::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--accent);
}

.meta {
  margin: 5px 0 10px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 42px;
  padding: 30px 0 56px;
  color: var(--muted);
}

.site-footer h2 {
  max-width: 720px;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-section,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading::after {
    max-width: 100%;
  }

  .project-strip,
  .featured-mention,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero-section,
  .project-strip,
  .featured-mention,
  .content-section,
  .site-footer {
    width: min(342px, calc(100% - 48px));
  }

  .hero-section,
  .project-card,
  .experience-grid article {
    padding: 18px;
  }

  .hero-section {
    overflow: hidden;
  }

  .hero-copy,
  .hero-text,
  .eyebrow {
    max-width: 286px;
  }

  .focus-board {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  h1 span {
    display: block;
  }

  h1 span + span::before {
    content: "";
  }
}
