:root {
  --bg: #f7f8fb;
  --text: #10131a;
  --muted: #525a6a;
  --surface: #ffffff;
  --border: rgba(16, 19, 26, 0.1);
  --accent: #2457ff;
  --accent-dark: #1d46ce;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(19, 33, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #f7f8fb 0%, #f2f5ff 55%, #f7f8fb 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-orb--a {
  width: 380px;
  height: 380px;
  background: #88a9ff;
  top: -120px;
  right: -110px;
}

.bg-orb--b {
  width: 320px;
  height: 320px;
  background: #8fd5ff;
  bottom: -90px;
  left: -110px;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 251, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-family: Syne, sans-serif;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.button-link,
.button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white !important;
  padding: 0.55rem 1rem !important;
  box-shadow: 0 10px 24px rgba(36, 87, 255, 0.35);
}

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

.hero {
  padding: 4rem 0 2rem;
}

.hero h1 {
  margin: 0.25rem 0 1rem;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.12;
  padding-bottom: 0.05em;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  color: var(--accent);
  font-weight: 800;
  margin: 0;
}

.lede {
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.1rem;
  align-items: center;
}

.link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.about-strip {
  margin: 0 auto 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-strip--expanded {
  padding: 1.8rem 1.5rem;
  min-height: 230px;
}

.about-strip__content {
  max-width: 76ch;
}

.about-strip__content h2 {
  margin: 0.55rem 0 0.75rem;
  font-family: Syne, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}

.about-strip__content p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.page-head {
  padding: 2.7rem 0 1.4rem;
}

.page-head h1 {
  margin: 0.3rem 0 0.6rem;
  font-family: Syne, sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.meta {
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card__body {
  padding: 0;
}

.project-card__body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-family: Syne, sans-serif;
  line-height: 1.2;
}

.project-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.project-card__footer {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text);
}

.project-card__footer span:last-child {
  transition: transform 0.18s ease;
}

.project-card:hover .project-card__footer {
  color: var(--accent-dark);
}

.project-card:hover .project-card__footer span:last-child {
  transform: translateX(2px);
}

.project-article,
.static-page {
  padding-bottom: 3rem;
}

.page-head--company {
  padding-bottom: 0.55rem;
}

.page-head--company h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
}

.prose {
  max-width: 72ch;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: Syne, sans-serif;
  line-height: 1.2;
}

.prose p,
.prose li {
  color: #222938;
}

.prose img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.prose a {
  color: var(--accent-dark);
}

.prose--company p {
  font-size: 1.18rem;
  line-height: 1.48;
}

.prose--company p:first-child {
  margin-top: 0;
}

.prose--company h3 {
  margin-top: 1.45rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.75rem, 3.1vw, 2.2rem);
}

.contact-box {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  max-width: 460px;
}

.contact-box p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.contact-box a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: auto;
}

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

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.7rem 0;
    gap: 0.5rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
