:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #a7b0c0;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(15, 23, 42, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 70, 229, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 20%, rgba(8, 145, 178, 0.2), transparent 30rem),
    #060b16;
}

a { color: inherit; }

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

.hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 0 58px;
}

.identity {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.identity span:last-child { display: grid; gap: 2px; }
.identity strong { font-size: 15px; }
.identity small { color: var(--muted); font-size: 12px; }

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy { max-width: 790px; padding-top: 84px; }

.eyebrow,
.project-type {
  margin: 0 0 14px;
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(44px, 7.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 670px;
  margin: 28px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 74px;
}

.project {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project::after {
  content: "";
  width: 260px;
  height: 260px;
  position: absolute;
  right: -105px;
  bottom: -125px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.28;
}

.project.phone::after { background: #6366f1; }
.project.cre::after { background: #0891b2; }

.project:hover,
.project:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.project-number {
  align-self: flex-end;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.project h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.project p:not(.project-type) {
  max-width: 460px;
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.7;
}

.project-link {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 750;
}

.project-link span { margin-left: 6px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p { margin: 0; }
footer div { display: flex; gap: 18px; }
footer a { text-underline-offset: 4px; }

@media (max-width: 760px) {
  main { width: min(100% - 28px, 1120px); }
  .hero { min-height: auto; padding-bottom: 42px; }
  .hero-copy { padding-top: 76px; }
  .projects { grid-template-columns: 1fr; }
  .project { min-height: 360px; }
  footer { flex-direction: column; }
}
