:root {
  --ink: #0e1014;
  --muted: #5f626a;
  --line: #d8dade;
  --blue: #1d4fff;
  --lavender: #eff0fa;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgb(29 79 255 / 22%);
  outline-offset: 4px;
}

.site-header {
  width: calc(100% - 64px);
  max-width: 1500px;
  height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.35;
}

nav {
  display: flex;
  gap: 42px;
  font-size: 14px;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  width: calc(100% - 64px);
  max-width: 1500px;
  min-height: 670px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.grid-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  pointer-events: none;
}

.grid-lines i {
  border-right: 1px solid #f0f1f3;
}

.grid-lines span {
  position: absolute;
  top: 14%;
  right: 2%;
  width: 25%;
  aspect-ratio: 1;
  border: 1px solid #e7e8eb;
}

.grid-lines span::before,
.grid-lines span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -20.7%;
  width: 141.4%;
  height: 1px;
  background: #e7e8eb;
}

.grid-lines span::before {
  transform: rotate(45deg);
}

.grid-lines span::after {
  transform: rotate(-45deg);
}

.hero-content {
  max-width: 930px;
  position: relative;
  z-index: 1;
  padding: 86px 32px 86px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(68px, 7.1vw, 116px);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.98;
}

.hero p {
  max-width: 570px;
  margin: 46px 0;
  color: #303238;
  font-size: 21px;
  line-height: 1.45;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 5px;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  font-size: 16px;
  transition: gap 180ms ease;
}

.text-link:hover {
  gap: 31px;
}

.arrow {
  width: 20px;
  height: 10px;
  position: relative;
  display: inline-block;
  border-bottom: 1px solid currentColor;
  transform: translateY(-5px);
}

.arrow::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  right: 0;
  bottom: -4px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.work {
  width: calc(100% - 64px);
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 70px;
}

.work > h2 {
  margin: 0 0 50px;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.project {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 30px;
  padding: 0 0 74px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-copy {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 92px 28px 14px 0;
  border-right: 1px solid var(--line);
}

.project h3 {
  margin: 0 0 13px;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.project-type {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-description {
  max-width: 370px;
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.45;
}

.project-visual {
  align-self: end;
  overflow: hidden;
  border: 1px solid #c8cad0;
  border-radius: 13px;
  background: var(--lavender);
  box-shadow: 0 22px 45px rgb(22 25 39 / 8%);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.project-visual:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgb(22 25 39 / 13%);
}

.browser-bar {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.65fr) 1fr;
  align-items: center;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #dedfe5;
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6259;
}

.browser-dots i:nth-child(2) {
  background: #f5be3d;
}

.browser-dots i:nth-child(3) {
  background: #45bf63;
}

.browser-address {
  overflow: hidden;
  padding: 7px 16px;
  border-radius: 6px;
  background: #f3f4f7;
  color: #747780;
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-menu {
  justify-self: end;
  color: #4b4e57;
  letter-spacing: 2px;
}

.project-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: top;
}

.capabilities {
  width: calc(100% - 64px);
  max-width: 1500px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capabilities div {
  min-height: 160px;
  padding: 27px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.capabilities div:last-child {
  border-right: 0;
}

.capabilities span {
  color: #9699a1;
  font-size: 11px;
}

.capabilities strong {
  font-size: 16px;
  font-weight: 400;
}

footer {
  width: calc(100% - 64px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 84px 0 38px;
}

.contact {
  min-height: 210px;
  border-bottom: 1px solid var(--line);
}

.contact h2 {
  margin: 0 0 28px;
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

footer > p {
  margin: 32px 0 0;
  color: #73767e;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 600px;
  }

  .grid-lines span {
    opacity: 0.45;
  }

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

  .project-copy {
    min-height: 410px;
    padding-right: 0;
    border-right: 0;
  }

  .capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities div:nth-child(2) {
    border-right: 0;
  }

  .capabilities div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .work,
  .capabilities,
  footer {
    width: calc(100% - 36px);
  }

  .site-header {
    height: 78px;
  }

  nav {
    gap: 22px;
    font-size: 13px;
  }

  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding: 72px 2px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 72px);
    line-height: 0.97;
  }

  .hero p {
    max-width: 330px;
    margin: 36px 0;
    font-size: 17px;
  }

  .work {
    padding-top: 46px;
  }

  .work > h2 {
    margin-bottom: 36px;
    font-size: 32px;
  }

  .project-copy {
    min-height: 340px;
    padding-top: 50px;
  }

  .project h3 {
    font-size: 42px;
  }

  .project-description {
    max-width: 320px;
    font-size: 16px;
  }

  .browser-bar {
    height: 38px;
    grid-template-columns: 1fr 1.5fr 1fr;
    padding: 0 10px;
  }

  .browser-dots i {
    width: 7px;
    height: 7px;
  }

  .project-visual img {
    aspect-ratio: 1.08;
    object-position: 28% top;
  }

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

  .capabilities div,
  .capabilities div:nth-child(2) {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capabilities div:last-child {
    border-bottom: 0;
  }

  footer {
    padding-top: 64px;
  }

  .contact h2 {
    font-size: 38px;
  }

  .contact .text-link {
    gap: 14px;
    font-size: 14px;
  }
}

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

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