:root {
  color-scheme: dark;
  --bg: #030914;
  --bg-deep: #01040a;
  --text: #edf7ff;
  --muted: #7f91a8;
  --line: rgba(180, 220, 255, 0.14);
  --line-strong: rgba(121, 233, 255, 0.42);
  --accent: #45e7ff;
  --accent-soft: rgba(69, 231, 255, 0.12);
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(69, 231, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: 0;
}

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

#market-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #030914;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 9, 20, 0.96) 0%, rgba(3, 9, 20, 0.55) 48%, rgba(3, 9, 20, 0.76) 100%),
    linear-gradient(180deg, rgba(1, 4, 10, 0.18), rgba(1, 4, 10, 0.9));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  color: rgba(237, 247, 255, 0.92);
  mix-blend-mode: screen;
}

.brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}

.site-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(237, 247, 255, 0.68);
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 96svh;
  align-items: flex-start;
  padding: clamp(220px, 28vh, 290px) var(--gutter) 64px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: -12% -14% -10%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(52% 72% at 31% 47%, rgba(245, 250, 255, 0.88), rgba(195, 214, 229, 0.52) 34%, transparent 69%),
    radial-gradient(46% 64% at 73% 48%, rgba(78, 119, 154, 0.76), rgba(47, 82, 118, 0.48) 47%, transparent 76%),
    radial-gradient(28% 38% at 51% 22%, rgba(255, 255, 255, 0.42), transparent 72%);
  filter: blur(14px);
  opacity: 0.88;
  transform: translate3d(-6%, 0, 0) scale(1.1);
  animation: hero-wash 18s ease-in-out infinite alternate;
}

.hero__inner {
  width: min(100%, 1560px);
  margin: 0 auto;
}

.hero__eyebrow,
.section__label {
  margin: 0;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.hero-title {
  display: flex;
  width: min(100%, 1180px);
  max-width: none;
  flex-direction: column;
  gap: clamp(18px, 2vw, 34px);
  margin: 0 auto;
  font-size: clamp(54px, 7.4vw, 112px);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  width: max-content;
  max-width: calc(100vw - var(--gutter) * 2);
  color: transparent;
  background:
    linear-gradient(100deg, #03060a 0%, #03060a 34%, #9d8764 51%, #b59a70 68%, #05070a 100%);
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  transform: translate3d(0, 0, 0);
  white-space: nowrap;
  word-spacing: clamp(0.22em, 1vw, 0.48em);
  animation: type-sheen 12s ease-in-out infinite alternate;
}

.hero-title span:nth-child(2) {
  align-self: center;
  margin-left: clamp(16px, 3vw, 42px);
  animation-delay: -2s;
}

.hero-title span:nth-child(3) {
  align-self: flex-end;
  margin-right: clamp(8px, 2vw, 30px);
  animation-delay: -4s;
}

.hero__lead {
  margin: 30px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero__copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(237, 247, 255, 0.78);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero__copy span {
  display: inline;
}

.section {
  display: grid;
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 110px);
  margin: 0 auto;
  padding: clamp(88px, 12vw, 170px) 0;
  border-top: 1px solid var(--line);
}

.section__content h2 {
  margin: -0.12em 0 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

#service-title {
  white-space: nowrap;
  font-size: clamp(28px, 3.7vw, 48px);
}

.section__content p {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(237, 247, 255, 0.76);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.9;
}

.section--service {
  padding-top: clamp(72px, 10vw, 136px);
}

.service {
  min-height: 180px;
}

.service h2 {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
}

.service h2::after {
  display: inline-block;
  width: clamp(58px, 11vw, 140px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
}

.company-list {
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.company-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.company-list dd {
  min-width: 0;
  margin: 0;
  color: rgba(237, 247, 255, 0.84);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.8;
}

.company-list a,
.contact-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
}

.contact-link {
  display: inline-block;
  margin-top: 20px;
  color: rgba(237, 247, 255, 0.68);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  font-weight: 600;
  word-break: break-word;
  text-decoration-thickness: 1px;
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 22px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero {
    min-height: 80svh;
    padding-top: clamp(210px, 28vh, 246px);
    padding-bottom: 36px;
  }

  .hero-title {
    width: 100%;
    gap: 14px;
    font-size: clamp(38px, 10.5vw, 56px);
    line-height: 0.9;
  }

  .hero-title span {
    width: max-content;
    max-width: calc(100vw - var(--gutter) * 2);
    word-spacing: clamp(0.18em, 1.8vw, 0.34em);
  }

  .hero-title span:nth-child(2) {
    align-self: flex-start;
    margin-left: clamp(22px, 7vw, 42px);
  }

  .hero-title span:nth-child(3) {
    align-self: flex-start;
    margin-right: 0;
    margin-left: clamp(44px, 13vw, 82px);
  }

  .hero__lead {
    margin-top: 28px;
    white-space: normal;
  }

  .hero__copy {
    max-width: 28rem;
    line-height: 1.75;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 82px 0;
  }

  .section__content h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  #service-title {
    font-size: clamp(24px, 6.2vw, 32px);
  }

  .service {
    min-height: 180px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

}

main {
  position: relative;
  z-index: 2;
}

@media (min-width: 761px) and (max-height: 760px) {
  .hero {
    min-height: 88svh;
    padding-top: 158px;
    padding-bottom: 36px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(48px, 6.2vw, 82px);
    line-height: 0.9;
  }

  .hero__lead {
    margin-top: 24px;
    font-size: clamp(28px, 3vw, 36px);
  }

  .hero__copy {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
  }

  .section--service {
    padding-top: 56px;
  }
}

@media (max-width: 520px) {
  .site-nav {
    display: none;
  }

  .hero__lead {
    max-width: 100%;
    font-size: clamp(27px, 7.6vw, 36px);
    overflow-wrap: anywhere;
  }

  .hero__copy span {
    display: block;
  }

  .contact-link {
    font-size: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes hero-wash {
  0% {
    transform: translate3d(-5%, -1%, 0) scale(1.06);
    opacity: 0.72;
  }

  55% {
    transform: translate3d(4%, 2%, 0) scale(1.12);
    opacity: 0.92;
  }

  100% {
    transform: translate3d(8%, -2%, 0) scale(1.08);
    opacity: 0.78;
  }
}

@keyframes type-sheen {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}
