:root {
  --ink: #15202b;
  --muted: #5d6978;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --line: #dfe6ee;
  --blue: #2563eb;
  --green: #0f8a5f;
  --amber: #b86b00;
  --rose: #bc3b5a;
  --shadow: 0 18px 55px rgba(21, 32, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 249, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

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

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.56fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 58px;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.button.primary,
.links a:first-child {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.secondary {
  background: white;
}

.signal-panel {
  display: grid;
  gap: 12px;
}

.signal-panel div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-value {
  display: block;
  font-size: 2rem;
  font-weight: 850;
  color: var(--rose);
}

.signal-label {
  color: var(--muted);
}

.projects {
  padding: 28px 0 84px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(21, 32, 43, 0.08);
}

.project-card.featured {
  grid-column: 1 / -1;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #e8eef5;
}

.project-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-title-row h3 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.project-title-row span {
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff6e7;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
}

.project-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  background: #f8fafc;
}

footer {
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

footer a {
  font-weight: 700;
}

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

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

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .project-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .project-title-row {
    flex-direction: column;
    gap: 8px;
  }
}
