:root {
  --ink: #111416;
  --muted: #5e666b;
  --paper: #f5f7f8;
  --line: #d8dee2;
  --red: #cf3f2f;
  --teal: #087868;
  --gold: #b8872d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei UI", serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 20, 22, 0.72), rgba(17, 20, 22, 0));
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 82svh;
  overflow: hidden;
  padding: 112px 28px 64px;
  color: var(--white);
  background: #101416;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 18, 0.92), rgba(13, 17, 18, 0.38) 58%, rgba(13, 17, 18, 0.72)),
    url("./assets/knspark-workbench.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.42;
  overflow-wrap: break-word;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
}

.primary-link {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.secondary-link {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

.intro h2,
.work h2,
.contact h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
}

.intro p,
.contact p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.85;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  min-height: 150px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
}

.metrics span {
  color: var(--muted);
  font-size: 16px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.work-grid span {
  display: block;
  margin-bottom: 54px;
  color: var(--red);
  font-weight: 800;
}

.work-grid h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.work-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.contact {
  padding-top: 36px;
}

.contact-link {
  margin-top: 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 82px;
  padding: 24px;
  color: #687177;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    justify-content: center;
    min-height: 78px;
    padding: 12px 18px;
    gap: 8px;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
    gap: 18px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    min-height: 86svh;
    padding: 118px 20px 44px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 58px);
  }

  .eyebrow {
    max-width: 290px;
    font-size: 11px;
    line-height: 1.5;
  }

  .hero-copy {
    max-width: 300px;
    font-size: 19px;
    line-height: 1.56;
    word-break: break-all;
  }

  .section {
    width: min(100% - 36px, 1060px);
    padding: 64px 0;
  }

  .intro,
  .metrics,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 8px;
  }

  .metrics div {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .work-grid article {
    min-height: 210px;
  }
}
