:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-muted: #efede6;
  --ink: #1d2424;
  --muted: #5e6868;
  --line: #d9d5c8;
  --accent: #28786f;
  --accent-dark: #174f49;
  --focus: #0c6159;
  --shadow: 0 18px 50px rgba(29, 36, 36, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(247, 245, 239, 0) 420px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::selection {
  background: #bddbd6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 14px;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 213, 200, 0.78);
}

.brand {
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a {
  padding: 8px 0;
}

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

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

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 58px 0 72px;
}

.hero-copy {
  max-width: 710px;
}

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

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

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

.button.secondary:hover {
  background: white;
}

.featured-signal {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(40, 120, 111, 0.12), rgba(255, 255, 255, 0.18)),
    var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.app-mark img {
  width: min(74%, 270px);
  height: auto;
}

.signal-label {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-signal h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.featured-signal p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1fr);
  gap: 24px;
  min-height: 320px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.project-media img {
  width: min(72%, 260px);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.project-kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.project-content p {
  margin: 16px 0 0;
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 6px 10px;
  background: #e7f0ed;
  border: 1px solid #c8dfd9;
  border-radius: 8px;
  color: #255953;
  font-size: 0.84rem;
  font-weight: 700;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.about,
.contact {
  max-width: 760px;
}

.about p,
.contact p {
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-link:hover {
  border-color: var(--accent);
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 28px, 1120px);
  }

  main,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 0 62px;
  }

  .featured-signal {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    padding: 16px;
  }

  .featured-signal h2 {
    font-size: 1.45rem;
  }

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

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

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

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.2rem);
  }

  .hero-actions,
  .project-links {
    flex-direction: column;
  }

  .button,
  .project-link,
  .contact-link {
    width: 100%;
  }

  .featured-signal {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .project-media {
    min-height: 220px;
  }

  .section {
    padding: 58px 0;
  }
}
