:root {
  --ink: #172026;
  --muted: #5d6b76;
  --paper: #f7f4ef;
  --surface: #ffffff;
  --line: #d8dde0;
  --accent: #226d68;
  --accent-2: #b64b3c;
  --deep: #263238;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid rgba(23, 32, 38, 0.1);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(10px, 2vw, 28px);
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  padding: 108px clamp(20px, 5vw, 72px) 56px;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.34;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: linear-gradient(90deg, rgba(247, 244, 239, 0.98), rgba(247, 244, 239, 0.82), rgba(247, 244, 239, 0.48));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 14vw, 9rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.25;
}

.lede {
  color: var(--deep);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-width: 152px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 72px);
}

.about,
.apps {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.section-copy p,
.apps p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.profile-image {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: min(100%, 390px);
}

.publication-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.publication,
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.publication h3 {
  margin-bottom: 10px;
}

.authors,
.venue,
.blog-card p {
  color: var(--muted);
}

.publication a,
.blog-card a {
  color: var(--accent);
  font-weight: 800;
}

.projects {
  background: #e9eef0;
}

.project-feature {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  margin-top: 28px;
}

.project-images {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.project-images img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

time {
  color: var(--accent-2);
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.apps {
  background: var(--deep);
  color: white;
}

.apps p {
  color: rgba(255, 255, 255, 0.76);
}

.apps .button.primary {
  background: white;
  color: var(--deep);
}

.app-list {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 12px;
}

.app-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 10px;
}

.app-list li:last-child {
  border-bottom: 0;
}

footer {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

footer a {
  color: white;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 10px;
    position: sticky;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 84vh;
    padding-top: 54px;
  }

  .about,
  .apps,
  .project-feature,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .project-images {
    grid-template-columns: 1fr;
  }
}
