:root {
  --color-dark: #1c1d20;
  --color-dark-dark: #141517;
  --color-gray: #999d9e;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --container-padding: clamp(1.15em, 3.5vw, 2.5em);
  --gap-padding: 1.35em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--color-dark-dark);
  color: #fff;
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

body.is-loading,
html.is-waiting,
html.is-waiting body {
  overflow: hidden;
}

html.is-waiting {
  cursor: wait;
}

html.is-ready .loading-container {
  visibility: hidden;
  pointer-events: none;
}

html.is-ready .loading-screen {
  transform: translate3d(0, -100%, 0);
}

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

h4 {
  font-size: clamp(1.35em, 2vw, 2.1em);
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
}

/* Loader — identical to portfolio */

.loading-container {
  position: fixed;
  inset: 0;
  z-index: 800;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.loading-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark-dark);
  overflow: visible;
  will-change: transform;
}

.loading-container.is-away .loading-screen {
  pointer-events: none;
}

.rounded-div-wrap {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 2;
}

.rounded-div-wrap.top {
  top: 0;
  transform: translateY(-99%) scaleY(-1);
}

.rounded-div-wrap.bottom {
  bottom: 0;
  top: auto;
  transform: translateY(99%);
}

.rounded-div {
  position: relative;
  width: 150%;
  margin-left: -25%;
  height: 770%;
  background: var(--color-dark-dark);
  border-radius: 50%;
}

.loading-words {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.loading-words h2 {
  margin: 0;
  color: #fff;
  position: relative;
  display: none;
  padding-left: 0.75em;
  padding-right: 0.2em;
  white-space: nowrap;
  font-size: calc(clamp(3.25em, 5vw, 4.5em) * 0.75);
  line-height: 1.065;
  font-weight: 500;
}

.loading-words h2.jap {
  font-size: calc(clamp(3.25em, 5vw, 4.5em) * 0.65);
}

.loading-words h2.is-show {
  display: block;
}

.loading-words .dot {
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.28em;
  height: 0.28em;
  margin-top: -0.14em;
  border-radius: 50%;
  background: #fff;
}

.once-in {
  will-change: transform;
}

/* First page — copied from portfolio home-header, dark */

.home-header {
  position: relative;
  height: 100vh;
  min-height: 44em;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-dark-dark);
  color: #fff;
}

.home-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 21, 23, 0.2) 0%, rgba(20, 21, 23, 0.62) 100%),
    linear-gradient(180deg, rgba(20, 21, 23, 0.25) 0%, rgba(20, 21, 23, 0.45) 55%, rgba(20, 21, 23, 0.7) 100%),
    url("../img/bg-blur.jpg") center / cover no-repeat;
  pointer-events: none;
}

.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5em var(--container-padding) 0;
  color: #fff;
}

.brand-logo {
  display: block;
  height: clamp(2.8em, 5vw, 3.8em);
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2em;
  font-size: 0.95em;
  opacity: 0.85;
}

.hanger {
  position: absolute;
  left: 0;
  top: 42%;
  margin-top: -3em;
  z-index: 4;
  color: var(--color-dark);
  line-height: 0;
}

.hanger-shape {
  display: block;
  height: 6em;
  width: auto;
}

.hanger p {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin: 0;
  padding-left: var(--gap-padding);
  padding-right: 5em;
  color: #fff;
  line-height: 1.2;
  font-size: 0.92em;
  font-weight: 500;
}

.hanger p span {
  display: block;
}

.hanger-globe {
  position: absolute;
  top: 0.9em;
  right: 0.9em;
  width: 4.2em;
  height: 4.2em;
}

.globe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5em;
  height: 2.5em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
}

.globe-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.125em #fff;
  animation: globe-tilt 5.4s cubic-bezier(0.35, 0, 0.65, 1) infinite;
}

.globe-spin i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0.11em 0 0 0.08em #fff;
  animation: globe-meridian 2.7s linear infinite;
}

.globe-spin i:nth-child(1) {
  animation-delay: -1.8s;
}

.globe-spin i:nth-child(2) {
  animation-delay: -0.9s;
}

.globe-spin .lat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 55%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.13em #fff;
}

.globe-spin .eq {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 0.13em;
  transform: translate(-50%, -50%);
  background: #fff;
}

@keyframes globe-tilt {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(18deg);
  }
}

@keyframes globe-meridian {
  to {
    transform: translate(-50%, -50%) rotateY(360deg);
  }
}

.role {
  position: absolute;
  right: var(--container-padding);
  top: 34%;
  width: auto;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 4;
}

.role h4 span {
  display: block;
}

.role .arrow {
  position: absolute;
  top: -1.6em;
  left: 0;
  font-size: 1.05em;
}

.big-name {
  position: absolute;
  bottom: 28%;
  left: 0;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  color: #fff;
}

.big-name__track {
  width: max-content;
}

.big-name h1 {
  display: flex;
  align-items: baseline;
  width: max-content;
  margin: 0;
  font-size: 13.5vw;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: nowrap;
  will-change: transform;
}

.big-name .dash {
  padding: 0 0.18em;
}

@media (max-width: 720px) {
  .hanger {
    left: auto;
    right: 0;
    top: auto;
    bottom: 32%;
    margin-top: 0;
    width: 6em;
    height: 6em;
  }

  .hanger-shape,
  .hanger p {
    display: none;
  }

  .globe {
    width: 3em;
    height: 3em;
  }

  .home-header {
    min-height: 36em;
  }

  .role {
    top: auto;
    bottom: 48%;
  }

  .big-name {
    bottom: 32%;
  }

  .big-name h1 {
    font-size: 19vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .big-name h1 {
    transform: none;
  }

  .globe-spin,
  .globe-spin i {
    animation: none;
  }
}
