:root {
  --ink: #101216;
  --muted: #5d6470;
  --line: #dfe4ea;
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #154bff;
  --blue-deep: #0f2fb7;
  --green: #29b57a;
  --amber: #ffb547;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(16, 18, 22, 0.12);
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  letter-spacing: 0;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

.topbar nav a,
.topbar-cta {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a[aria-current="page"],
.topbar-cta:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(56px, 9vw, 124px) clamp(20px, 6vw, 92px) clamp(36px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(21, 75, 255, 0.07), transparent 42%),
    var(--white);
}

.inner-page .hero {
  min-height: auto;
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.inner-page .hero-visual {
  min-height: 300px;
}

.inner-page .hero-image,
.inner-page .hero-panel {
  min-height: 300px;
}

.home-page .topbar {
  background: rgba(16, 18, 22, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.home-page .topbar nav a,
.home-page .topbar-cta {
  color: rgba(255, 255, 255, 0.68);
}

.home-page .brand-mark {
  background: var(--white);
  color: var(--ink);
}

.home-page .hero {
  min-height: 680px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 18, 22, 0.96), rgba(16, 18, 22, 0.74) 45%, rgba(16, 18, 22, 0.2)),
    #101216;
}

.home-page .lead {
  color: rgba(255, 255, 255, 0.74);
}

.home-page .button-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.home-page .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.home-page .stats div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.home-page .stats span {
  color: rgba(255, 255, 255, 0.66);
}

.home-page .hero-visual {
  background: #06070a;
  border-color: rgba(255, 255, 255, 0.12);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-link {
  color: inherit;
  border-bottom: 1px dashed currentColor;
  text-decoration: none;
  text-transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(48px, 7.2vw, 108px);
}

h2 {
  font-size: clamp(34px, 4.6vw, 68px);
}

h3 {
  font-size: clamp(23px, 2.2vw, 34px);
}

.lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 54px;
}

.stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.stats strong {
  display: block;
  font-size: 42px;
  font-weight: 500;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
  min-height: 440px;
}

.hero-panel span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 44px;
  font-weight: 500;
}

.section {
  padding: clamp(78px, 10vw, 140px) clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.logo-strip {
  padding: 26px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.logo-strip h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 18px 34px;
  align-items: center;
}

.logo-tile {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  min-height: 74px;
  margin: 0;
  padding: 8px;
  background: transparent;
}

.logo-image {
  max-width: 130px;
  max-height: 46px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.58;
}

.logo-tile figcaption {
  color: #a1a8b3;
  font-size: 13px;
}

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

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

.gallery-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.gallery-card[hidden] {
  display: none;
}

.case-catalog[data-filter="featured"] .case-index-card[data-featured="false"] {
  display: none;
}

.case-index-card p {
  color: var(--muted);
}

.case-index-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.case-index-card h3 {
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.08;
}

.case-index-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-list span,
.facet-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.facet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facet-row a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.case-catalog {
  min-height: calc(100vh - 78px);
  padding: clamp(34px, 5vw, 68px) clamp(20px, 6vw, 92px) clamp(42px, 6vw, 78px);
  background: var(--paper);
}

.case-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.case-catalog h1 {
  max-width: 900px;
  font-size: clamp(44px, 6vw, 86px);
}

.case-catalog .lead {
  max-width: 860px;
  margin-top: 18px;
  font-size: clamp(18px, 1.8vw, 24px);
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.catalog-stats strong {
  display: block;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.catalog-stats span {
  color: var(--muted);
  font-size: 13px;
}

.catalog-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.catalog-filters {
  position: sticky;
  top: 94px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.filter-chip,
.catalog-reset {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1.1;
  cursor: pointer;
}

.filter-chip {
  width: 100%;
}

.filter-chip span {
  color: #9ba3af;
}

.filter-chip:hover,
.filter-chip.is-active,
.catalog-reset:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--white);
}

.filter-chip.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
}

.catalog-toolbar p {
  margin: 0;
}

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

.gallery-image {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: var(--paper);
}

.case-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.case-card:first-child {
  grid-row: span 2;
  background: var(--paper);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.card-index,
.block-type {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.card p,
.article-flow p,
.cta p,
.footer p {
  color: var(--muted);
}

.narrative {
  background: var(--paper);
}

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

.article-flow article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  background: var(--blue);
  color: var(--white);
}

.intro-band {
  text-align: center;
}

.intro-band h2,
.intro-band p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.intro-band p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.project-list {
  display: grid;
  gap: 28px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.project-image {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-row a {
  color: var(--blue);
  font-weight: 700;
}

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

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card.is-featured {
  background: var(--blue);
  color: var(--white);
}

.service-card.is-featured .card-index,
.service-card.is-featured p {
  color: rgba(255, 255, 255, 0.76);
}

.service-card p {
  color: var(--muted);
}

.principles {
  padding-top: 60px;
  padding-bottom: 60px;
  background: var(--paper);
}

.principles article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.principles article:first-child {
  border-top: 1px solid var(--line);
}

.principles span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 20px;
}

.delivery {
  background: var(--white);
}

.delivery-card {
  max-width: 640px;
  margin: 0 auto 70px;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

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

.award-row article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.reviews {
  background: var(--ink);
  color: var(--white);
}

.reviews .eyebrow,
.reviews blockquote p {
  color: rgba(255, 255, 255, 0.68);
}

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

.review-grid blockquote {
  margin: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.review-grid cite {
  display: block;
  margin-top: 18px;
  color: var(--white);
  font-style: normal;
  font-weight: 700;
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 42px clamp(20px, 6vw, 92px);
  background: var(--ink);
  color: var(--white);
}

.footer div {
  display: grid;
  gap: 10px;
}

.footer a {
  color: var(--white);
}

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

  .topbar nav {
    justify-content: flex-start;
  }

  .hero,
  .case-catalog-head,
  .catalog-shell,
  .section-head,
  .article-flow,
  .case-grid,
  .card-grid,
  .catalog-grid,
  .gallery-grid,
  .project-row,
  .service-grid,
  .award-row,
  .review-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .case-catalog {
    min-height: auto;
  }

  .catalog-filters {
    position: static;
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
  }

  .filter-chip {
    width: auto;
    flex: 0 0 auto;
  }

  .catalog-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-stats div {
    min-height: 76px;
    padding: 12px;
  }

  .catalog-stats strong {
    font-size: 28px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer,
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
