:root {
  --ink: #101820;
  --muted: #657083;
  --line: #d9e0ea;
  --paper: #f3f0e8;
  --white: #ffffff;
  --lime: #c7f464;
  --orange: #f59e0b;
  --blue: #2563eb;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(243, 240, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.nav-cta,
.button,
.project-actions button,
.project-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

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

.button.ghost:hover,
.nav-cta:hover,
.project-actions a:hover {
  background: rgba(16, 24, 32, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: end;
  min-height: calc(100vh - 76px);
  padding: 74px 5vw 84px;
  background:
    linear-gradient(rgba(16, 24, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #5f4b14;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: #3e4755;
  font-size: 19px;
  line-height: 1.7;
}

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

.hero-panel {
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.panel-header strong {
  color: var(--ink);
}

.founder-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d8e0ea;
  border-radius: var(--radius);
  background: #101820;
  color: var(--white);
}

.founder-card span {
  display: block;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.founder-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.panel-grid article {
  min-height: 132px;
  padding: 18px;
  border-radius: var(--radius);
  background: #eef4f1;
}

.panel-grid span {
  display: block;
  margin-bottom: 36px;
  font-size: 34px;
  font-weight: 900;
}

.panel-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 86px 5vw;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2,
.proof h2,
.contact h2 {
  font-size: clamp(34px, 5vw, 64px);
}

.section-heading > p,
.contact-copy p,
.proof > div > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.search-wrap {
  flex: 1;
}

.search-wrap input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d2dd;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.contact-form textarea {
  min-height: 130px;
  padding-top: 14px;
  resize: vertical;
}

.search-wrap input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(16, 24, 32, 0.08);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #c9d2dd;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: var(--radius);
  background: var(--white);
}

.project-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  background: var(--accent);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-image span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.project-body {
  padding: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-meta span,
.scope-list span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf1f5;
  color: #465163;
  font-size: 12px;
  font-weight: 800;
}

.project-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.14;
}

.project-card p {
  min-height: 110px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.project-actions button,
.project-actions a {
  flex: 1;
  min-height: 40px;
  padding: 0 12px;
}

.project-actions button {
  background: var(--ink);
  color: var(--white);
}

.loading,
.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #b6c2d0;
  border-radius: var(--radius);
  color: var(--muted);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 42px;
  color: var(--white);
  background: var(--ink);
}

.proof .eyebrow {
  color: var(--lime);
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-list article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.proof-list span {
  color: var(--lime);
  font-weight: 900;
}

.proof-list h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.proof-list p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.process {
  background: #ffffff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline article {
  min-height: 250px;
  padding: 24px;
  background: #fbfcfd;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 70px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--lime);
  font-weight: 900;
}

.timeline h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.7fr);
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #465163;
  font-weight: 800;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-modal {
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-modal::backdrop {
  background: rgba(16, 24, 32, 0.62);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.modal-hero {
  height: 330px;
  background: var(--accent);
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 28px;
}

.modal-body h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.modal-body p {
  color: var(--muted);
  line-height: 1.7;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.result-box {
  margin: 20px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #f2f5f8;
}

.result-box p {
  margin: 8px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 5vw;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-cta {
    width: 100%;
  }

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

  .hero {
    min-height: auto;
    padding: 56px 20px;
  }

  .section {
    padding: 56px 20px;
  }

  .section-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

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

  .project-card p {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-heading h2,
  .proof h2,
  .contact h2 {
    font-size: 34px;
  }
}
