:root {
  --ink: #122522;
  --ink-soft: #52615e;
  --paper: #f4f1e9;
  --paper-deep: #ebe7dd;
  --white: #fffdf8;
  --mint: #bbf64a;
  --mint-dark: #91c72b;
  --orange: #ee6939;
  --line: rgba(18, 37, 34, .16);
  --shadow: 0 20px 60px rgba(18, 37, 34, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-shell { max-width: 1540px; margin: 0 auto; overflow: hidden; }

.site-header {
  min-height: 92px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand-dot { color: var(--orange); }
.brand-mark { display: flex; align-items: end; gap: 2px; height: 20px; }
.brand-mark span { width: 4px; border-radius: 4px; background: var(--ink); }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 20px; }
.main-nav { display: flex; gap: 34px; align-items: center; }
.nav-link {
  position: relative;
  padding: 35px 0 30px;
  color: var(--ink-soft);
  border: 0;
  background: none;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--orange);
}
.kaggle-link { justify-self: end; font-weight: 700; text-decoration: none; }
.kaggle-link:hover, .text-link:hover { color: var(--orange); }

.page { animation: page-in .45s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.hero, .projects-hero {
  position: relative;
  min-height: 525px;
  padding: 96px clamp(24px, 7vw, 110px) 70px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 70px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px; height: 420px;
  top: 45px; right: 9%;
  border-radius: 50%;
  background: var(--mint);
  opacity: .7;
  filter: blur(1px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 310px; height: 310px;
  right: -100px; bottom: -120px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.eyebrow, .section-kicker {
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
h1, h2 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: -.06em; }
h1 { max-width: 850px; font-size: clamp(55px, 7.5vw, 108px); line-height: .94; }
h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.07em; }
.hero-intro { max-width: 600px; margin: 34px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.hero-stats {
  min-width: 160px;
  padding: 26px 0;
  display: grid;
  gap: 22px;
  background: rgba(244, 241, 233, .72);
  backdrop-filter: blur(8px);
}
.hero-stats div { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.hero-stats div:last-child { padding-bottom: 0; border: 0; }
.hero-stats strong { display: block; font-family: Manrope, sans-serif; font-size: 31px; }
.hero-stats span { color: var(--ink-soft); font-size: 13px; }

.section-bar {
  padding: 75px clamp(24px, 7vw, 110px) 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
}
.section-kicker { margin-bottom: 10px; color: var(--orange); }
h2 { font-size: clamp(34px, 4vw, 55px); line-height: 1.05; }
.search-box {
  width: min(100%, 310px);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
}
.search-box svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-box input { width: 100%; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search-box input::placeholder { color: #7c8784; }
.filter-row {
  padding: 0 clamp(24px, 7vw, 110px) 32px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  background: var(--white);
}
.filter-button {
  padding: 8px 14px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.filter-button:hover, .filter-button.active { color: var(--white); border-color: var(--ink); background: var(--ink); }

.dataset-grid {
  padding: 0 clamp(24px, 7vw, 110px) 95px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--white);
}
.dataset-card {
  min-height: 355px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dataset-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.topic-badge { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-arrow { font-size: 22px; transition: transform .2s ease; }
.dataset-card:hover .card-arrow { transform: translate(3px, -3px); }
.dataset-visual {
  height: 105px;
  margin: 25px 0;
  display: flex;
  align-items: end;
  gap: 8px;
}
.dataset-visual span { flex: 1; max-width: 22px; border-radius: 3px 3px 0 0; background: var(--mint); }
.dataset-card:nth-child(3n + 2) .dataset-visual span { background: var(--orange); opacity: .8; }
.dataset-card:nth-child(3n + 3) .dataset-visual span { background: var(--ink); opacity: .72; }
.dataset-card h3, .project-card h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 23px; letter-spacing: -.035em; line-height: 1.18; }
.dataset-card p, .project-card p { color: var(--ink-soft); line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 12px; }
.empty-state { margin: 0; padding: 10px 7vw 100px; background: var(--white); color: var(--ink-soft); }

.projects-hero {
  min-height: 560px;
  display: block;
  color: var(--white);
  background-color: var(--ink);
  background-image: radial-gradient(circle at 78% 32%, rgba(187,246,74,.16), transparent 28%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.projects-hero .hero-intro { color: #aeb9b6; }
.projects-hero h1 em { color: var(--mint); }
.projects-bar { background: var(--paper); }
.build-status { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.build-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-dark); box-shadow: 0 0 0 5px rgba(145,199,43,.16); }
.project-grid {
  padding: 0 clamp(24px, 7vw, 110px) 95px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  min-height: 310px;
  padding: 35px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.project-card.featured { color: var(--white); background: var(--ink); }
.project-card.featured p, .project-card.featured .project-tech { color: #aeb9b6; }
.project-number { margin-bottom: 45px; color: var(--orange); font-family: Georgia, serif; font-style: italic; }
.project-card.featured .project-number { color: var(--mint); }
.project-card p { max-width: 500px; }
.project-tech { margin-top: auto; padding-top: 25px; color: var(--ink-soft); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.project-link { position: absolute; top: 30px; right: 30px; text-decoration: none; font-size: 21px; }

.about-section { padding: 105px clamp(24px, 7vw, 110px); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12vw; }
.about-grid p { margin-top: 5px; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.text-link { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration: none; }
footer {
  padding: 38px clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #aeb9b6;
  background: var(--ink);
  font-size: 13px;
}
.footer-brand { color: var(--white); }
footer p:last-child { justify-self: end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { order: 3; grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--line); }
  .nav-link { padding: 18px 0 15px; }
  .kaggle-link { font-size: 14px; }
  .hero { align-items: flex-start; flex-direction: column; }
  .hero-stats { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { padding: 0 15px; border-right: 1px solid var(--line); border-bottom: 0; }
  .dataset-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 620px) {
  .site-header { padding-top: 20px; }
  .brand-mark { display: none; }
  .main-nav { gap: 22px; }
  .kaggle-link { font-size: 0; }
  .kaggle-link span { font-size: 22px; }
  .hero, .projects-hero { min-height: auto; padding-top: 70px; padding-bottom: 65px; }
  .hero::after { width: 240px; height: 240px; right: -80px; }
  h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-intro { font-size: 16px; }
  .hero-stats strong { font-size: 24px; }
  .section-bar { padding-top: 60px; align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .dataset-grid, .project-grid { grid-template-columns: 1fr; }
  .dataset-card { min-height: 330px; }
  .about-section { padding-top: 75px; padding-bottom: 75px; }
  footer { grid-template-columns: 1fr; gap: 13px; text-align: center; }
  .footer-brand, footer p:last-child { justify-self: center; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
