:root {
  --white: #ffffff;
  --black: #000000;
  --moss: #c7cabe;
  --stage-width: min(100vw, calc(100svh * 1.6));
  --geo-font: "Futura PT", Futura, "Avenir Next", "Century Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--moss);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--black);
  background: var(--moss);
  font-family: var(--geo-font);
}

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

.top-page {
  display: grid;
  place-items: start center;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      var(--white) 0,
      var(--white) calc(var(--stage-width) * 0.5),
      var(--moss) calc(var(--stage-width) * 0.5),
      var(--moss) 100%
    );
}

.hero-wrap {
  position: relative;
  width: var(--stage-width);
  aspect-ratio: 1440 / 900;
  overflow: visible;
}

.hero-stage {
  position: relative;
  width: 1440px;
  height: 900px;
  overflow: visible;
  flex: 0 0 auto;
  background:
    linear-gradient(
      to bottom,
      var(--white) 0,
      var(--white) 450px,
      var(--moss) 450px,
      var(--moss) 100%
    );
  transform: scale(calc(var(--stage-width) / 1440px));
  transform-origin: top left;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 33px;
  left: 128px;
  display: grid;
  grid-template-columns: 420px 892px;
  align-items: center;
  width: 1312px;
}

.logo {
  width: max-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.global-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.45fr;
  height: 31px;
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.global-nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 31px;
  background: var(--black);
  z-index: 0;
}

.global-nav a {
  position: relative;
  z-index: 1;
}

.global-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 31px;
  padding: 0 14px;
  font-size: 16px;
  font-family: var(--geo-font);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.42em;
  white-space: nowrap;
}

.global-nav a:last-child {
  letter-spacing: 0.12em;
}

.moss-band {
  position: absolute;
  z-index: 0;
  top: 450px;
  left: -720px;
  width: 2880px;
  height: 900px;
  background: var(--moss);
}

.hero-title {
  position: absolute;
  z-index: 2;
  top: 107px;
  left: 128px;
  display: grid;
  grid-template-columns: 221px 142px 168px 70px 190px 177px;
  column-gap: 49px;
  align-items: center;
  width: 1213px;
  height: 220px;
  margin: 0;
}

.letter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 220px;
  color: var(--black);
  font-family: var(--geo-font);
  font-size: 205px;
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: 0;
}

.letter-d {
  position: relative;
  overflow: hidden;
  width: 221px;
  background: var(--black);
  color: var(--white);
  font-size: 208px;
}

.hero-title .letter:last-child {
  transform: translateX(-32px);
}

.letter-mark {
  position: relative;
  z-index: 1;
}

.blocks {
  position: absolute;
  z-index: 1;
  top: 340px;
  left: 128px;
  width: 1111px;
  height: 680px;
}

.block {
  position: absolute;
  display: block;
  overflow: hidden;
  background: var(--black);
}

.work-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(80%) contrast(105%);
}

.work-image-d {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: grayscale(100%) brightness(56%) contrast(105%);
}

.block-a {
  top: 0;
  left: 0;
  width: 221px;
  height: 220px;
}

.block-b {
  top: 0;
  left: 241px;
  width: 220px;
  height: 220px;
}

.block-c {
  top: 0;
  left: 481px;
  width: 220px;
  height: 220px;
}

.block-d {
  top: 33px;
  left: 754px;
  width: 154px;
  height: 154px;
}

.block-e {
  top: 0;
  left: 962px;
  width: 220px;
  height: 220px;
}

.block-f {
  top: 240px;
  left: 0;
  width: 221px;
  height: 220px;
}

.block-g {
  top: 240px;
  left: 336px;
  width: 30px;
  height: 440px;
}

.block-h {
  top: 240px;
  left: 481px;
  width: 220px;
  height: 220px;
}

.block-i {
  top: 240px;
  left: 721px;
  width: 220px;
  height: 220px;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  left: 1089px;
  top: 678px;
  width: 200vw;
  height: 24px;
  margin: 0;
  padding: 0 0 0 20px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-family: var(--geo-font);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  :root {
    --stage-width: 100vw;
  }

  .top-page,
  .hero-wrap {
    min-height: 100svh;
    overflow: visible;
  }

  .hero-wrap {
    display: block;
    width: 100%;
    aspect-ratio: auto;
  }

  .hero-stage {
    width: 100%;
    min-height: 100svh;
    height: auto;
    overflow: hidden;
    transform: none;
  }

  .site-header {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    padding: 24px 18px 0;
  }

  .logo {
    font-size: 25px;
    letter-spacing: 0.11em;
  }

  .global-nav {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .global-nav a {
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .global-nav a:last-child {
    letter-spacing: 0.06em;
  }

  .moss-band {
    top: 370px;
    left: 0;
    width: 100%;
    height: calc(100% - 370px);
    min-height: 560px;
  }

  .hero-title {
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: 1.1fr 0.74fr 0.82fr;
    row-gap: 14px;
    column-gap: 15px;
    width: auto;
    height: auto;
    margin: 30px 18px 0;
  }

  .letter,
  .letter-d {
    width: auto;
    height: clamp(94px, 27vw, 150px);
    font-size: clamp(88px, 25vw, 136px);
  }

  .blocks {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, clamp(94px, 27vw, 150px));
    gap: 14px;
    width: auto;
    height: auto;
    margin: 14px 18px 96px;
  }

  .block {
    position: static;
    width: auto;
    height: auto;
  }

  .block-a {
    grid-column: 1 / 4;
    grid-row: 1;
  }

  .block-b {
    grid-column: 4 / 7;
    grid-row: 1;
  }

  .block-c {
    grid-column: 1 / 4;
    grid-row: 2;
  }

  .block-d {
    grid-column: 4 / 6;
    grid-row: 2;
    align-self: center;
    height: 70%;
  }

  .block-e {
    grid-column: 6 / 7;
    grid-row: 2;
  }

  .block-f {
    grid-column: 1 / 4;
    grid-row: 3;
  }

  .block-g {
    grid-column: 4 / 5;
    grid-row: 3 / 5;
    justify-self: center;
    width: 24px;
  }

  .block-h {
    grid-column: 1 / 4;
    grid-row: 4;
  }

  .block-i {
    grid-column: 4 / 7;
    grid-row: 5;
  }

  .hero-copy {
    left: auto;
    top: auto;
    right: 18px;
    bottom: 28px;
    width: auto;
    height: auto;
    max-width: calc(100vw - 36px);
    padding: 7px 10px 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: right;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 21px;
  }

  .hero-title {
    column-gap: 10px;
  }

  .global-nav a {
    font-size: 10px;
  }
}
