:root {
  --color-black: #111111;
  --color-white: #ffffff;
  --color-paper: #f7f6f2;
  --color-muted: #666666;
  --color-red: #d82121;
  --color-blue: #1058d7;
  --color-yellow: #f0c419;
  --line: 3px solid var(--color-black);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--color-blue);
}

main {
  border-left: var(--line);
  border-right: var(--line);
}

section {
  border-bottom: var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.hero {
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.hero-copy {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 110px);
}

.eyebrow,
.section-index,
.section-label span {
  display: inline-block;
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.08;
}

.hero-description {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 18px;
}

.mondrian-panel {
  position: relative;
  min-height: 620px;
  border-left: var(--line);
  background:
    linear-gradient(var(--color-black), var(--color-black)) 0 33% / 100% 3px no-repeat,
    linear-gradient(var(--color-black), var(--color-black)) 0 68% / 100% 3px no-repeat,
    linear-gradient(90deg, var(--color-black), var(--color-black)) 36% 0 / 3px 100% no-repeat,
    linear-gradient(90deg, var(--color-black), var(--color-black)) 72% 0 / 3px 100% no-repeat,
    var(--color-paper);
}

.block {
  position: absolute;
  display: block;
}

.block-red {
  top: 0;
  right: 0;
  width: 28%;
  height: 33%;
  background: var(--color-red);
}

.block-blue {
  bottom: 0;
  left: 0;
  width: 36%;
  height: 32%;
  background: var(--color-blue);
}

.block-yellow {
  right: 0;
  bottom: 0;
  width: 28%;
  height: 32%;
  background: var(--color-yellow);
}

.block-white-a {
  top: 33%;
  left: 36%;
  width: 36%;
  height: 35%;
  background: var(--color-white);
}

.block-white-b {
  top: 0;
  left: 0;
  width: 36%;
  height: 33%;
  background: var(--color-white);
}

.section-label {
  padding: 48px 32px;
  border-right: var(--line);
}

.section-copy {
  max-width: 880px;
  padding: clamp(44px, 6vw, 86px);
}

.section-copy h2,
.section-heading h2,
.contact-card h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p,
.contact-card p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 20px;
}

.services {
  padding: clamp(44px, 6vw, 86px);
}

.section-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 42px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--line);
  border-left: var(--line);
}

.service-card {
  min-height: 280px;
  padding: 28px;
  border-right: var(--line);
  border-bottom: var(--line);
  background: var(--color-white);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.service-card:nth-child(1):hover {
  background: #fbe7e7;
}

.service-card:nth-child(2):hover,
.service-card:nth-child(5):hover {
  background: #e7eefc;
}

.service-card:nth-child(3):hover,
.service-card:nth-child(6):hover {
  background: #fcf4cf;
}

.service-card:nth-child(4):hover {
  background: var(--color-paper);
}

.service-card:hover {
  transform: translate(-4px, -4px);
}

.card-number {
  display: block;
  margin-bottom: 46px;
  font-size: 14px;
  font-weight: 800;
}

.service-card h3,
.team-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.service-card p,
.team-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 16px;
}

.team-intro {
  padding-bottom: 34px;
}

.team-grid {
  display: grid;
  gap: 0;
  padding: 0 clamp(44px, 6vw, 86px) clamp(44px, 6vw, 86px);
}

.team-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 620px;
  padding: 26px;
  border: var(--line);
  background: var(--color-paper);
}

.member-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: var(--line);
  background: var(--color-yellow);
  font-weight: 800;
}

.contact-card {
  padding: clamp(44px, 6vw, 86px);
  background:
    linear-gradient(var(--color-black), var(--color-black)) 0 100% / 100% 0 no-repeat,
    linear-gradient(90deg, transparent 0 74%, var(--color-blue) 74% 84%, transparent 84%),
    linear-gradient(transparent 0 58%, var(--color-yellow) 58% 72%, transparent 72%),
    var(--color-white);
}

.contact-card p {
  margin-bottom: 30px;
}

.email-link {
  display: inline-flex;
  max-width: 100%;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--color-red);
  color: var(--color-black);
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.email-link:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 20px, var(--container));
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 18px 0;
  }

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

  .section-grid,
  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .mondrian-panel {
    min-height: auto;
  }

  .hero-copy {
    padding: 46px 24px 58px;
  }

  .mondrian-panel {
    height: 320px;
    border-top: var(--line);
    border-left: 0;
  }

  .section-label {
    padding: 28px 24px 0;
    border-right: 0;
  }

  .section-copy,
  .services,
  .contact-card {
    padding: 34px 24px 46px;
  }

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

  .service-card {
    min-height: 230px;
  }

  .team-grid {
    padding: 0 24px 46px;
  }
}

@media (max-width: 560px) {
  main {
    border-left-width: 2px;
    border-right-width: 2px;
  }

  :root {
    --line: 2px solid var(--color-black);
  }

  .nav a {
    font-size: 12px;
  }

  .hero-description,
  .section-copy p,
  .contact-card p {
    font-size: 17px;
  }

  .team-card {
    grid-template-columns: 1fr;
  }
}
