:root {
  --ink: #17191c;
  --paper: #ffffff;
  --soft: #f3f5f7;
  --line: #d7dce2;
  --blue: #0d57c7;
  --yellow: #f3c623;
  --coral: #dd654f;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

.site-header {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 68px;
  justify-content: space-between;
  padding: 0 34px;
  position: relative;
  z-index: 2;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 4px;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.76rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header nav a {
  align-items: center;
  color: #424850;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 44px;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--blue);
}

.project-hero {
  background-image: url("assets/studio-print-hero.jpg");
  background-position: center;
  background-size: cover;
  color: var(--paper);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.hero-overlay {
  background: rgba(12, 14, 17, 0.66);
  inset: 0;
  position: absolute;
}

.hero-copy {
  margin: 0 auto;
  max-width: 1180px;
  padding: 88px 28px 72px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

.hero-copy h1 {
  font-size: 4.4rem;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 22px;
  max-width: 720px;
}

.hero-copy > p:not(.hero-eyebrow) {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 30px;
  max-width: 600px;
}

.hero-action {
  align-items: center;
  background: var(--yellow);
  border-radius: 4px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 44px;
  padding: 13px 18px;
  text-decoration: none;
}

.hero-action:hover,
.hero-action:focus-visible {
  background: #ffda36;
}

.demo-context {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  gap: 18px;
  justify-content: center;
  min-height: 54px;
  padding: 9px 24px;
  text-align: center;
}

.demo-context strong {
  color: var(--yellow);
  font-size: 0.8rem;
}

.demo-context span {
  color: #c4cad1;
  font-size: 0.76rem;
}

.case-study {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 72px max(28px, calc((100% - 1124px) / 2));
}

.case-study-heading {
  display: grid;
  gap: 16px;
  grid-template-columns: 140px minmax(0, 760px);
  margin-bottom: 46px;
}

.case-study-heading > p {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 8px 0 0;
}

.case-study h2 {
  font-size: 2.5rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

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

.case-study article {
  border-left: 1px solid #bdc4cc;
  min-height: 240px;
  padding: 0 24px 0 18px;
}

.case-study article span {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 700;
}

.case-study article h3 {
  font-size: 1.05rem;
  margin: 18px 0 12px;
}

.case-study article p {
  color: #555e68;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

footer {
  align-items: center;
  background: var(--paper);
  color: #626b75;
  display: flex;
  font-size: 0.74rem;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 34px;
}

@media (max-width: 860px) {
  .project-hero {
    min-height: 390px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .hero-copy h1 {
    font-size: 3.45rem;
    max-width: 600px;
  }

  .case-study-heading {
    grid-template-columns: 1fr;
  }

  .case-study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 62px;
    padding: 0 16px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:last-child {
    display: none;
  }

  .project-hero {
    min-height: 420px;
  }

  .hero-copy {
    padding: 76px 20px 58px;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
    line-height: 1.02;
  }

  .hero-copy > p:not(.hero-eyebrow) {
    font-size: 1rem;
  }

  .demo-context {
    align-items: start;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    text-align: left;
  }

  .case-study {
    padding: 52px 20px;
  }

  .case-study h2 {
    font-size: 2rem;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .case-study article {
    min-height: auto;
    padding-bottom: 24px;
  }

  footer {
    align-items: start;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding: 16px 20px;
  }
}
