:root {
  --paper: #f0efed;
  --ink: #333333;
  --muted: #666666;
  --line: #d9d9d9;
  --font: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: #ffffff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62.667px;
  padding: 20px 130.667px;
  background: var(--paper);
  box-shadow: 0 6.667px 6.667px rgba(240, 239, 237, 0.5);
}

.brand,
.home-nav nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 17.333px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.brand img {
  width: 22.667px;
  height: 22.667px;
}

.brand em {
  color: var(--muted);
  font-style: normal;
}

.home-nav nav {
  gap: 38.667px;
  color: #666666;
  font-size: 16px;
  font-weight: 600;
}

.home-nav nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  display: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.project-back {
  position: fixed;
  top: 86px;
  left: 24px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(143, 75, 92, 0.18);
  border-radius: 999px;
  color: #8f4b5c;
  background: rgba(255, 240, 244, 0.9);
  box-shadow: 0 10px 28px rgba(143, 75, 92, 0.1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.project-back span {
  font-size: 16px;
  line-height: 1;
}

.project-slices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.project-slices img {
  width: min(100%, 1280px);
  height: auto;
  flex: 0 0 auto;
}

.other-works {
  width: min(1066.667px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
  text-align: center;
}

.other-works h2 {
  margin: 0 0 32.889px;
  color: #000000;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.18;
}

.other-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.other-work-card {
  display: block;
  padding: 13.333px;
  border-radius: 50px;
  background: #ffffff;
  box-shadow: 0 6.667px 16.667px #d9d9d9;
  text-align: left;
}

.other-work-card img {
  width: 100%;
  height: 340px;
  border-radius: 40px;
  object-fit: cover;
}

.other-work-card h3 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 1.11rem;
  font-weight: 600;
}

.other-work-card p {
  min-height: 56px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

footer {
  padding: 44px 20px 18px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

@media (max-width: 1120px) {
  .home-nav {
    padding-inline: 40px;
  }

  .other-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-nav {
    height: auto;
    padding: 12px 24px;
  }

  .project-back {
    top: 76px;
    left: 16px;
  }

  .brand {
    gap: 0;
  }

  .brand span {
    display: none;
  }

  .home-nav nav {
    display: flex;
    gap: 8px;
  }

  .home-nav nav a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #666666;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .home-nav nav a:hover,
  .home-nav nav a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink);
  }

  .nav-label {
    display: none;
  }

  .nav-icon {
    display: block;
  }

  .other-works {
    width: calc(100% - 28px);
    padding: 44px 0;
  }

  .other-work-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .other-work-card {
    border-radius: 34px;
  }

  .other-work-card img {
    height: auto;
    aspect-ratio: 441.334 / 340;
    border-radius: 26px;
  }
}
