@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap");
:root {
  --paper: #f2f1ec;
  --ink: #181914;
  --muted: #66685f;
  --line: #d8d7cf;
  --blue: #2948ff;
  --lime: #c7ff45;
  --white: #fff;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}
h1,
h2,
h3,
h4,
.brand {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.045em;
}
p {
  color: var(--muted);
}
a {
  color: inherit;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  height: 78px;
  margin: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 241, 236, 0.94);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 11px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header nav a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.header nav a.active {
  color: var(--blue);
}
.home-link {
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 3px;
}
.menu-button {
  display: none;
  border: 0;
  background: none;
  font-weight: 700;
}
.page-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 95px 0 80px;
  border-bottom: 1px solid var(--line);
}
.crumb,
.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.page-hero h1 {
  max-width: 1000px;
  margin: 25px 0;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.98;
}
.page-hero > p:last-child {
  max-width: 720px;
  font-size: 20px;
}
.content {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}
.lead-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.lead-grid figure {
  margin: 0;
}
.lead-grid img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.lead-grid .logo-box {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 50px;
  background: #fff;
}
.lead-grid .logo-box img {
  max-width: 310px;
  height: auto;
}
.lead-grid h2,
.section-head h2 {
  margin: 0 0 25px;
  font-size: clamp(36px, 4vw, 55px);
  line-height: 1.08;
}
.lead-grid p {
  font-size: 18px;
}
.section {
  padding: 95px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  margin-bottom: 45px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.card {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.card .number {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.card h3 {
  margin: 38px 0 12px;
  font-size: 26px;
}
.card p {
  margin-bottom: 0;
}
.clean-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}
.clean-list li {
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.document {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 28px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
}
.document small {
  color: var(--lime);
  font-weight: 700;
  text-transform: uppercase;
}
.document h3 {
  margin: 35px 0 12px;
  font-size: 28px;
}
.document p {
  color: #aeb0a8;
}
.document strong {
  margin-top: auto;
  color: var(--lime);
}
.article-block {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 55px;
  padding: 45px 0;
  border-top: 1px solid var(--line);
}
.article-block h3 {
  margin: 0;
  font-size: 28px;
}
.article-block h4 {
  margin: 25px 0 5px;
  font-size: 19px;
}
.article-block ul {
  padding-left: 20px;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}
.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.callout {
  margin-top: 30px;
  padding: 24px;
  border-left: 4px solid var(--blue);
  background: #fff;
}
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(var(--max), calc(100% - 40px));
  margin: 80px auto;
}
.page-nav a {
  display: flex;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.page-nav a + a {
  border-left: 0;
}
footer {
  padding: 65px max(20px, calc((100% - var(--max)) / 2)) 25px;
  color: #fff;
  background: var(--blue);
}
footer h2 {
  margin: 12px 0;
  font-size: 45px;
}
footer > a {
  color: var(--lime);
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 12px;
}
@media (max-width: 760px) {
  .header {
    height: 68px;
  }
  .brand strong {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .header nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .header nav.open {
    display: flex;
  }
  .header nav a {
    padding: 10px;
  }
  .home-link {
    text-align: center;
  }
  .page-hero {
    padding: 65px 0;
  }
  .page-hero h1 {
    font-size: 48px;
  }
  .page-hero > p:last-child {
    font-size: 17px;
  }
  .lead-grid,
  .article-block {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 70px 0;
  }
  .section {
    padding: 70px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cards,
  .document-grid,
  .clean-list {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 230px;
  }
  .page-nav {
    grid-template-columns: 1fr;
    margin: 50px auto;
  }
  .page-nav a + a {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* Sticky navigation: full-width bar and unobstructed anchor targets */
html {
  scroll-padding-top: 92px;
}
.header {
  width: 100%;
  height: 76px;
  margin: 0;
  padding-right: max(24px, calc((100% - var(--max)) / 2));
  padding-left: max(24px, calc((100% - var(--max)) / 2));
  background: rgba(242, 241, 236, 0.97);
  box-shadow: 0 4px 18px rgba(24, 25, 20, 0.05);
}
.page-hero,
.section,
.lead-grid {
  scroll-margin-top: 0;
}
@media (max-width: 760px) {
  .header {
    width: 100%;
    height: 68px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Shared portfolio navigation */
:root {
  --max: 1240px;
}
.header nav a.active {
  color: inherit;
}
.header .brand {
  font-size: 16px;
}
.header .brand span {
  width: 38px;
  height: 38px;
  margin-right: 12px;
  font-size: 12px;
}
.header .brand span {
  width: 42px;
  height: 42px;
  margin-right: 14px;
  border-radius: 50%;
  background-color: var(--lime);
  background-image: url("../favicon.ico");
  background-position: center;
  background-size: 72%;
  background-repeat: no-repeat;
  font-size: 0;
}
.header nav {
  gap: 28px;
}
.header nav a {
  font-size: 14px;
  font-weight: 600;
}
.home-link {
  padding: 10px 16px;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background: var(--ink);
}
.subnav {
  position: sticky;
  top: 88px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 5px;
  width: min(var(--max), calc(100% - 40px));
  height: 54px;
  margin: 12px auto 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(242, 241, 236, 0.94);
  box-shadow: 0 8px 24px rgba(24, 25, 20, 0.07);
  backdrop-filter: blur(14px);
}
.subnav a {
  padding: 7px 12px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:first-child {
  margin-right: auto;
  padding-left: 0;
  color: var(--ink);
}
.subnav a.active {
  color: #fff;
  background: var(--blue);
}
.subnav a:not(.active):hover {
  color: var(--blue);
}
@media (max-width: 760px) {
  .subnav {
    top: 76px;
    width: calc(100% - 20px);
    height: 50px;
    margin-top: 8px;
    padding: 0 10px;
    overflow-x: auto;
    border-radius: 25px;
    scrollbar-width: none;
  }
  .subnav::-webkit-scrollbar {
    display: none;
  }
  .subnav a:first-child {
    margin-right: 4px;
  }
  .header nav .home-link {
    margin-top: 5px;
    color: #fff;
  }
}
.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.social-links a {
  position: relative;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.social-links a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
@media (max-width: 760px) {
  .social-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}
