*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; }
.container { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.narrow { width: min(48rem, calc(100% - 3rem)); }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon.sm { width: 1rem; height: 1rem; }
.icon.muted { color: #94a3b8; }
.center { text-align: center; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
.nav-inner {
  height: 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
}
.nav-links { display: none; gap: 2rem; font-size: .875rem; font-weight: 500; color: #475569; }
.nav-links a:hover, .mobile-menu a:hover { color: #0f172a; }
.nav-cta { display: none; }
.menu-btn {
  border: 0; background: transparent; color: #475569; cursor: pointer; padding: .25rem;
}
.mobile-menu {
  display: none;
  flex-direction: column; gap: 1rem;
  border-top: 1px solid #e2e8f0; background: #fff;
  padding: 1rem 1.5rem 1.25rem; font-size: .875rem; font-weight: 500; color: #475569;
}
.mobile-menu:not([hidden]) {
  display: flex;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 2rem; border-radius: .375rem;
  font-size: .875rem; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-outline { background: #fff; border-color: #e2e8f0; color: #0f172a; }
.btn-outline:hover { background: #f1f5f9; }
.btn-block { width: 100%; }

.hero {
  max-width: 56rem; margin: 0 auto;
  padding: 7rem 1.5rem 4rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid #e2e8f0; background: #fff; border-radius: 999px;
  padding: .25rem .75rem; font-size: .875rem; color: #475569; margin-bottom: 2rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: #22c55e; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.hero h1 {
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.5rem;
}
.br-md { display: none; }
.lead {
  max-width: 42rem; color: #475569; font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 20rem; }

.section { padding: 3rem 0; }
.section-white { background: #fff; }
.section-border { border-block: 1px solid #e2e8f0; }
.section-dark { background: #0f172a; color: #f8fafc; }
.section-head { margin-bottom: 3rem; max-width: 40rem; }
.section-head h2, .center h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem;
}
.section-head p, article > p, .project > p { color: #475569; font-size: .95rem; line-height: 1.65; }
.eyebrow {
  font-size: .7rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: #64748b; margin-bottom: .75rem;
}

.grid-2, .grid-3, .projects { display: grid; gap: 1.5rem; }
.grid-3 article h3, .card h3, .project h3 {
  font-size: 1.125rem; font-weight: 700; margin: .75rem 0 .5rem;
}
.icon-box {
  width: 3rem; height: 3rem; border-radius: .5rem; margin-bottom: 1.5rem;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  display: grid; place-items: center; color: #334155;
}

.card, .project {
  border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; padding: 2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project {
  background: #f8fafc; display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.project .shot {
  display: block; flex-shrink: 0; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid #e2e8f0; background: #e2e8f0;
}
.project .shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .35s ease;
}
.project:hover .shot img { transform: scale(1.03); }
.project-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
  min-width: 0;
}
.project-body .eyebrow { margin-bottom: .5rem; }
.project-body h3 {
  margin: 0 0 .5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.project-body > p { margin: 0; }
.project-body .tags { margin: 1rem 0 1rem; }
.project-body .project-link {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 650;
}
.project-body .project-link:hover { text-decoration: underline; }
.card:hover, .project:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(15,23,42,.12); }
.card-title {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; min-width: 0;
}
.card-title h3 {
  margin: 0; font-size: 1.25rem; line-height: 1.25;
  overflow-wrap: break-word; min-width: 0;
}
.card-title .icon { flex-shrink: 0; margin-top: .15rem; }
.process article { padding: 0; }
.process .step {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  color: #64748b; margin-bottom: .75rem;
}
.process h3 { margin: 0 0 .5rem; font-size: 1.125rem; }
.process p { color: #475569; font-size: .95rem; line-height: 1.65; }
.stack-lead { color: #94a3b8; max-width: 36rem; margin: .75rem auto 0; font-size: .95rem; }
.checks { margin-top: 1.5rem; display: grid; gap: .5rem; font-size: .875rem; font-weight: 500; color: #475569; }
.checks li { display: flex; align-items: center; gap: .5rem; }
.checks li::before {
  content: ""; width: .85rem; height: .85rem; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.card-wide { display: grid; gap: 2rem; }
.mini-grid { display: grid; gap: 1rem; }
.mini {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem; border-radius: .5rem; background: #f8fafc; border: 1px solid #f1f5f9;
  font-size: .875rem; font-weight: 500; color: #334155;
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.25rem; }
.tags span {
  font-size: .75rem; font-weight: 500; color: #475569;
  border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: .25rem .65rem;
}

.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; opacity: .85; margin-top: 2.5rem; }
.stack span {
  border: 1px solid #334155; background: #1e293b; color: #f8fafc;
  border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500;
}

.form {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.5rem;
  display: grid; gap: 1.5rem;
}
.form-row { display: grid; gap: 1.5rem; }
label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
input, textarea {
  width: 100%; border: 1px solid #cbd5e1; background: #fff; border-radius: .375rem;
  padding: .65rem .75rem; font-size: .875rem; outline: none;
}
input:focus, textarea:focus { border-color: #94a3b8; box-shadow: 0 0 0 3px rgba(148,163,184,.35); }
textarea { min-height: 7.5rem; resize: vertical; }
.form-status { font-size: .875rem; font-weight: 500; color: #334155; }
.form a, .section-head a { color: #0f172a; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.footer { border-top: 1px solid #e2e8f0; background: #fff; padding: 2.5rem 0; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center; color: #64748b; font-size: .875rem;
}
.footer .brand { color: #0f172a; }
.social { display: flex; gap: 1rem; color: #94a3b8; }
.social a:hover { color: #0f172a; }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; max-width: none; width: auto; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form { padding: 2rem; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .br-md { display: block; }
  .hero { padding: 10rem 1.5rem 6rem; }
  .section { padding: 5rem 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1280px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
}
