:root {
  --brand: rgb(81, 178, 197);
  --ink: #101414;
  --paper: #fff;
  --white: #fff;
  --border: 3px solid var(--ink);
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--brand);
  font-family: var(--body);
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 24px auto;
}

.main-block,
.contact-block {
  border: var(--border);
  box-shadow: 8px 8px 0 var(--ink);
}

.main-block {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - 48px);
  background: var(--paper);
}

.site-header {
  display: flex;
  min-height: 74px;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  align-self: stretch;
  min-width: 78px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.1em;
}

.brand-name {
  padding: 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  letter-spacing: -0.045em;
}

.header-link {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0 1.5rem;
  border-left: var(--border);
  font-weight: 700;
  text-decoration: none;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.5rem, 7vw, 6.5rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  font-family: var(--display);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h1 {
  max-width: 1000px;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 10vw, 9rem);
}

h1 span {
  position: relative;
  display: inline-block;
  z-index: 0;
}

h1 span::after {
  position: absolute;
  right: -0.02em;
  bottom: 0.02em;
  left: -0.02em;
  z-index: -1;
  height: 0.18em;
  background: var(--brand);
  content: "";
}

.intro {
  max-width: 650px;
  margin: 0 0 2.3rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 54px;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: 700 0.86rem/1.2 var(--body);
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.button-primary {
  background: var(--brand);
}

.portfolio-note {
  font-size: 0.82rem;
}

.expertise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--border);
  font: 700 clamp(0.85rem, 1.5vw, 1rem)/1.2 var(--body);
  text-transform: uppercase;
}

.expertise span {
  padding: 1.5rem;
  text-align: center;
}

.expertise span + span {
  border-left: var(--border);
}

.contact-block {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 520px;
  margin-top: 38px;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem) 1.5rem;
  background: var(--brand);
}

.contact-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-weight: 700;
}

.contact-copy h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
}

.contact-copy > p:last-child {
  max-width: 540px;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.contact-action {
  display: flex;
  align-items: center;
}

.email-text {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-block footer {
  display: flex;
  grid-column: 1 / -1;
  align-self: end;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(16, 20, 20, 0.5);
  font-size: 0.75rem;
}

.contact-block footer a {
  font-weight: 700;
}

@media (max-width: 780px) {
  .contact-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-action {
    align-items: flex-start;
  }

  .contact-block footer {
    grid-column: 1;
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .main-block,
  .contact-block {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .site-header {
    min-height: 62px;
  }

  .brand-mark {
    min-width: 61px;
    font-size: 1.05rem;
  }

  .brand-name {
    padding: 0 0.75rem;
    font-size: 1rem;
  }

  .header-link {
    gap: 0.4rem;
    padding: 0 0.75rem;
    font-size: 0.72rem;
  }

  .header-link span {
    display: none;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .intro {
    font-size: 0.95rem;
  }

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

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

  .expertise span {
    padding: 1rem 1.5rem;
    text-align: left;
  }

  .expertise span + span {
    border-top: var(--border);
    border-left: 0;
  }

  .contact-block {
    min-height: 620px;
    margin-top: 26px;
  }

  .contact-copy h2 {
    font-size: 3.7rem;
  }

  .contact-block footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
