:root {
  --ink: #171717;
  --muted: #606060;
  --paper: #f7f5ef;
  --surface: #fffdfa;
  --line: #ded8cd;
  --accent: #2b6f62;
}

* {
  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.55;
}

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 40px;
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.intro,
.section,
.footer-cta {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  padding: 96px 0 76px;
  border-bottom: 1px solid var(--line);
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 21px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

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

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

.section-title {
  max-width: 660px;
  margin-bottom: 32px;
}

.section-title p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.work-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.work-meta {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.work-meta span {
  color: var(--accent);
  font-weight: 850;
}

.work-meta strong {
  color: var(--ink);
  font-weight: 750;
}

.work-body h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
}

.work-body p {
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
}

ul {
  max-width: 820px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.stack span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #363636;
  font-size: 13px;
  font-weight: 650;
}

.inline-link {
  margin-top: 18px;
}

.inline-link a {
  color: var(--accent);
  font-weight: 750;
}

.demo-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.demo-column {
  display: grid;
  gap: 18px;
}

.demo-video {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.demo-copy {
  padding: 22px 22px 18px;
}

.demo-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-copy h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.demo-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--line);
  background: #111;
}

.demo-video.phone video {
  width: min(72%, 360px);
  justify-self: center;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-video.wide video {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

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

.profile-grid div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-grid h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.profile-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-cta {
  padding: 64px 0 90px;
}

.footer-cta p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 820px) {
  .site-header {
    padding: 16px 24px;
  }

  nav {
    display: none;
  }

  .intro,
  .section,
  .footer-cta {
    width: min(100% - 32px, 1120px);
  }

  .intro {
    padding: 64px 0 52px;
  }

  .work-item,
  .profile-grid,
  .demo-showcase,
  .demo-column {
    grid-template-columns: 1fr;
  }

  .work-item {
    gap: 18px;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .demo-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }

  .lead,
  .work-body p,
  .footer-cta p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .demo-copy {
    padding: 18px;
  }

  .demo-video.phone video {
    width: min(86%, 340px);
  }
}
