:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #596579;
  --line: #d8dee8;
  --paper: #f8fafc;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --gold: #c58a1d;
  --blue: #24486f;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px 40px;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(216, 222, 232, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.project-topline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
  background: #eef3f8;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68vh;
  max-height: 680px;
  padding: 96px 40px 88px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.92) 34%, rgba(248, 250, 252, 0.35) 68%, rgba(248, 250, 252, 0.1) 100%),
    url("/assets/hero-workspace.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.hero-copy {
  width: min(640px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: 64px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 25px;
}

.hero-text {
  max-width: 590px;
  margin: 22px 0 0;
  color: #334155;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(89, 101, 121, 0.28);
}

.button.secondary:hover {
  border-color: var(--teal);
}

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

.intro {
  padding: 34px 0 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.intro-grid > p {
  margin: 0;
  color: #263241;
  font-size: 22px;
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.facts div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.facts dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

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

.project-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0) 45%),
    var(--surface);
  box-shadow: var(--shadow);
}

.project-card.accent {
  border-top-color: var(--gold);
  background:
    linear-gradient(135deg, rgba(197, 138, 29, 0.12), rgba(255, 255, 255, 0) 45%),
    var(--surface);
}

.project-topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.status.live {
  background: var(--teal);
}

.status.hosted {
  background: var(--blue);
}

.project-card p {
  margin: 14px 0 28px;
  color: var(--muted);
}

.project-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 900;
}

.project-link::after {
  content: " ->";
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 42px;
  border-top: 1px solid var(--line);
}

.copy-block p {
  margin: 0;
  color: #3b4858;
  font-size: 18px;
}

.copy-block p + p {
  margin-top: 16px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 56px;
  padding: 28px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
}

.contact-band .eyebrow {
  color: #7dd3fc;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 24px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-inline: 8px;
  }

  .hero {
    min-height: 70vh;
    padding: 64px 24px 56px;
    background-image:
      linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.88) 55%, rgba(248, 250, 252, 0.48) 100%),
      url("/assets/hero-workspace.png");
    background-position: center right;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-text,
  .intro-grid > p {
    font-size: 18px;
  }

  .section,
  .contact-band {
    width: min(100% - 32px, 1120px);
  }

  .intro-grid,
  .project-grid,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .contact-band {
    margin-bottom: 32px;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    gap: 0;
    font-size: 14px;
  }

  .hero-actions .button,
  .contact-link {
    width: 100%;
  }

  .project-card,
  .contact-band {
    padding: 20px;
  }
}
