* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #efefef;
}

.page {
  max-width: 1280px;
  height: calc(100vh - clamp(52px, 7vh, 76px));
  padding: clamp(16px, 3.2vh, 44px) clamp(20px, 3.2vw, 44px) 0;
  overflow: hidden;
  position: relative;
}

.top-layout {
  display: grid;
  grid-template-columns: minmax(290px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 2.8vw, 48px);
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.profile-block {
  max-width: 320px;
  pointer-events: auto;
}

.portrait-frame {
  width: 100%;
  border: clamp(5px, 0.55vw, 8px) solid #000;
  background: #fff;
}

.portrait-image {
  display: block;
  width: 100%;
  height: auto;
}

.profile-name {
  margin: clamp(12px, 1.5vh, 18px) 0 0;
  font-size: clamp(1.75rem, 2.25vw, 2.35rem);
  line-height: 0.98;
  font-weight: 500;
  white-space: nowrap;
}

.profile-title {
  margin: clamp(4px, 0.8vh, 10px) 0 0;
  font-size: clamp(1.75rem, 2.25vw, 2.35rem);
  line-height: 0.98;
  font-weight: 500;
}

.project-card {
  min-height: 0;
  width: 100%;
  max-width: none;
  justify-self: start;
  border: clamp(5px, 0.55vw, 8px) solid #000;
  background: #efefef;
  padding: clamp(12px, 1.8vh, 22px) clamp(18px, 1.8vw, 26px);
  pointer-events: auto;
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(12px, 1.3vw, 24px);
}

.project-title-wrap {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 18px);
}

.logo-image {
  width: clamp(72px, 5.9vw, 98px);
  height: auto;
  flex: 0 0 auto;
}

.project-name {
  margin: 0;
  font-size: clamp(2.65rem, 4.05vw, 3.7rem);
  line-height: 1;
  font-weight: 500;
}

.project-meta {
  margin: clamp(8px, 1vh, 16px) clamp(4px, 0.5vw, 10px) 0 0;
  font-size: clamp(2rem, 2.4vw, 2.65rem);
  line-height: 1;
  font-weight: 400;
}

.title-rule {
  margin-top: clamp(8px, 1.2vh, 12px);
  height: clamp(8px, 0.95vh, 12px);
  width: min(290px, 100%);
  background: #000;
}

.project-body {
  margin-top: clamp(8px, 1.1vh, 14px);
  display: block;
}

.project-desc-heading {
  margin: 0;
  font-size: clamp(2rem, 2.45vw, 2.65rem);
  line-height: 1;
  font-weight: 400;
}

.project-desc-copy {
  margin: clamp(8px, 0.9vh, 10px) 0 0;
  max-width: 69ch;
  font-size: clamp(1.65rem, 1.45vw, 2rem);
  line-height: 1.35;
  font-weight: 400;
}

.globe-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(-130px, -14vh, -90px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(8px);
  z-index: 1;
}

.globe {
  position: relative;
  width: clamp(980px, 76vw, 1320px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border: 0;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.globe-threejs {
  position: absolute;
  inset: 0;
  cursor: pointer;
  touch-action: none;
}

.globe-threejs canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.ground-strip {
  width: 100%;
  height: clamp(52px, 7vh, 76px);
  background: #000;
}

@media (max-width: 1600px) {
  .project-desc-copy {
    max-width: 44ch;
  }
}

@media (max-width: 1280px) {
  .page {
    max-width: 1180px;
    padding: clamp(12px, 2.4vh, 30px) clamp(14px, 2vw, 26px) 0;
  }

  .top-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
  }

  .profile-block {
    max-width: 280px;
  }

  .globe-wrap {
    left: 0;
    right: 0;
    padding: 0;
    transform: translateX(0);
  }

  .title-rule {
    width: min(300px, 54%);
  }
}

@media (max-width: 1024px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    padding: 20px 18px 0;
    overflow: visible;
    position: static;
  }

  .top-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-block {
    max-width: 420px;
    margin: 0 auto;
  }

  .profile-name,
  .profile-title {
    text-align: center;
  }

  .portrait-image {
    height: auto;
  }

  .project-card {
    width: 100%;
    max-width: none;
  }

  .project-head {
    align-items: center;
  }

  .project-meta {
    margin-top: 0;
  }

  .project-desc-copy {
    max-width: none;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
  }

  .globe-wrap {
    position: static;
    margin-top: 34px;
    padding-left: 0;
    left: auto;
    right: auto;
    bottom: auto;
    justify-content: center;
    align-items: stretch;
    transform: none;
  }

  .globe {
    width: min(100%, 920px);
    height: auto;
    max-width: 100%;
    max-height: none;
  }
}

@media (max-width: 1400px) and (min-width: 1025px) {
  .globe {
    width: clamp(820px, 66vw, 1060px);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px 12px 0;
  }

  .portrait-frame,
  .project-card {
    border-width: 6px;
  }

  .portrait-image {
    height: 420px;
  }

  .project-card {
    padding: 14px 14px 16px;
  }

  .project-head {
    align-items: flex-start;
    gap: 10px;
  }

  .project-title-wrap {
    gap: 10px;
  }

  .logo-image {
    width: 76px;
  }

  .title-rule {
    width: min(220px, 70%);
    height: 8px;
    margin-top: 12px;
  }

  .project-meta {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    margin-top: 6px;
  }

  .project-desc-copy {
    margin-top: 8px;
    font-size: clamp(1.05rem, 4.9vw, 1.3rem);
    line-height: 1.38;
  }

  .globe {
    border-width: 6px;
  }

  .ground-strip {
    height: 48px;
  }
}
