:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #8a8a8a;
  --dim: #555555;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #0f33ff;
  --blue-soft: #2a4dff;
  --blue-glow: rgba(15, 51, 255, 0.35);
  --price: #8ec0ff;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --app-height: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  height: 100%;
  height: -webkit-fill-available;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
  height: var(--app-height);
  max-height: var(--app-height);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}
img { border: 0; max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
::selection { background: #fff498; color: #000; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.perspective {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: var(--app-height);
  overflow: hidden;
}
.perspective--modalview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--app-height);
  max-height: var(--app-height);
  perspective: 1500px;
}
.container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  transform: translateZ(0) translateX(0) rotateY(0deg);
  outline: 28px solid var(--blue);
  transition: transform 0.4s var(--ease);
}
.modalview .container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.effect-rotate-left .container { transform-origin: 0% 50%; }
.effect-rotate-left--animate .container {
  transform: translateZ(-1800px) translateX(-50%) rotateY(45deg);
}

.outer-nav {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translateY(-50%);
  text-align: center;
  visibility: hidden;
  transition: visibility 0.2s;
  z-index: 12;
}
.outer-nav.is-vis { visibility: visible; }
.outer-nav > li {
  position: relative;
  font-size: clamp(34px, 5vw, 55px);
  font-weight: 900;
  opacity: 0;
  cursor: pointer;
  transform: translateX(350px) translateZ(-1000px);
  transition: transform 0.2s, opacity 0.2s;
}
.outer-nav > li.is-vis {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  transition: transform 0.4s, opacity 0.4s;
}
.outer-nav > li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -25%);
  width: 110%;
  height: 14px;
  opacity: 0;
  background: var(--blue);
}
.outer-nav > li.is-active::before { opacity: 1; }
.outer-nav li.is-vis:nth-child(2) { transition-delay: 0.04s; }
.outer-nav li.is-vis:nth-child(3) { transition-delay: 0.08s; }
.outer-nav li.is-vis:nth-child(4) { transition-delay: 0.12s; }
.outer-nav li.is-vis:nth-child(5) { transition-delay: 0.16s; }
.outer-nav--return {
  position: absolute;
  inset: 0;
  display: none;
  cursor: pointer;
  z-index: 11;
}
.outer-nav--return.is-vis { display: block; }

.l-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.l-wrapper {
  position: relative;
  width: 1440px;
  max-width: 90%;
  height: 100%;
  margin: 0 auto;
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(72px + var(--safe-top));
  padding-top: var(--safe-top);
}
.header--logo,
.device-notification--logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.logo-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.045em;
  user-select: none;
}
.logo-word b {
  font-weight: 900;
  color: #fff;
}
.logo-word i {
  font-style: normal;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.06em;
}
.header--cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 22px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--blue);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s, background 0.2s;
}
.header--cta.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.35s;
}
.header--cta:hover { background: var(--blue-soft); }
.header--nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}
.header--nav-toggle span,
.header--nav-toggle::before,
.header--nav-toggle::after {
  content: "";
  position: relative;
  width: 16px;
  height: 2px;
  background: #fff;
}
.header--nav-toggle::before { bottom: 5px; width: 23px; }
.header--nav-toggle::after { top: 5px; width: 23px; }

.l-side-nav {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  height: 100%;
  z-index: 10;
}
.l-side-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  max-height: 750px;
  background: rgba(255, 255, 255, 0.18);
}
.side-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100px;
  height: 70%;
  max-height: 750px;
  z-index: 10;
}
.side-nav > li {
  position: relative;
  top: -5px;
  color: #fff;
  font-size: 6px;
  cursor: pointer;
}
.side-nav > li span {
  position: relative;
  top: 3px;
  left: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0;
  visibility: hidden;
}
.side-nav > li::before {
  position: absolute;
  top: 3px;
  left: 12px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.side-nav li:nth-child(1)::before { content: "01"; }
.side-nav li:nth-child(2)::before { content: "02"; }
.side-nav li:nth-child(3)::before { content: "03"; }
.side-nav li:nth-child(4)::before { content: "04"; }
.side-nav li:nth-child(5)::before { content: "05"; }
.side-nav li.is-active {
  color: var(--blue);
  width: 150px;
  transition: color 0.35s var(--ease);
}
.side-nav li.is-active span {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s;
}
.side-nav li.is-active::before {
  left: -30px;
  color: #fff;
}
.side-nav li.is-active::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--blue);
}

.l-main-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.l-section {
  position: absolute;
  width: 100%;
  height: 100%;
}
.section {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.section--is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 0.4s 0.3s;
}
.section--next { transform: translateY(-40px); transition: transform 0.4s var(--ease); }
.section--prev { transform: translateY(40px); transition: transform 0.4s var(--ease); }

.device-notification {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 20;
}
.device-notification--message {
  width: 70%;
  margin: 28px 0 0;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}

/* intro */
.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 980px;
  max-width: 78%;
  height: 100%;
  margin: 0 auto;
}
.intro--banner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.intro--copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--blue);
}
.intro--banner h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 12px 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--blue);
  box-shadow: 0 10px 30px var(--blue-glow);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.intro-cta:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px var(--blue-glow);
}
.intro-cta svg {
  width: 15px;
  height: 12px;
}
.intro--banner img {
  position: absolute;
  bottom: 48px;
  right: -24px;
  width: min(500px, 46vw);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* about / rates */
.about {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 760px;
  max-width: 78%;
  height: 100%;
  margin: 0 auto;
  padding-top: 8vh;
}
.about--copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
}
.about--copy h2 {
  margin: 0 0 14px;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.about--copy > p {
  margin: 0 0 26px;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.geo {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blue);
  pointer-events: none;
}
.geo-tri {
  top: -8px;
  left: 168px;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: rotate(-18deg);
}
.geo-sq {
  right: 12%;
  bottom: -18px;
  transform: rotate(45deg);
}
.rate-list {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
}
.rate-list li {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  grid-template-areas:
    "label value"
    "note note";
  gap: 6px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rate-list b {
  grid-area: label;
  align-self: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.rate-list em {
  grid-area: value;
  justify-self: end;
  font-style: normal;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  color: var(--price);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rate-list span {
  grid-area: note;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* work slider */
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 960px;
  max-width: 82%;
  height: 100%;
  margin: 0 auto;
}
.work h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 48px);
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.work--lockup { position: relative; }
.slider {
  position: relative;
  display: flex;
  width: 82%;
  margin: 0 auto;
  min-height: 430px;
}
.slider--item {
  position: absolute;
  display: none;
  text-align: center;
  color: var(--muted);
}
.slider--item-title {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.slider--item-description {
  display: none;
  max-width: 280px;
  margin: 10px auto 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.slider--item-image {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s;
}
.slider--item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider--item-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: block;
}
.slider--item-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: block;
}
.slider--item-center {
  position: relative;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  color: #fff;
}
.slider--item-center .slider--item-title {
  margin-top: 22px;
  font-size: 17px;
  letter-spacing: 0.14em;
}
.slider--item-center .slider--item-description { display: block; }
.slider--item-center .slider--item-image {
  width: 300px;
  height: 300px;
  box-shadow: 0 0 0 1px rgba(142, 192, 255, 0.25), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.slider--next,
.slider--prev {
  position: absolute;
  top: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.slider--next:hover,
.slider--prev:hover {
  background: #242424;
  border-color: rgba(255, 255, 255, 0.18);
}
.slider--next { right: 0; }
.slider--prev { left: 0; }
.slider--next svg,
.slider--prev svg { width: 18px; height: 18px; }

.scroll-hint {
  display: none;
}

/* hire / contact */
.hire {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 760px;
  max-width: 78%;
  height: 100%;
  margin: 0 auto;
  padding-top: 8vh;
}
.hire--copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
}
.hire--copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.company-lead {
  margin: 0 0 8px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.esports-line {
  margin: 0 0 14px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--blue);
  color: var(--price);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.company-contact {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.company-contact a {
  display: grid;
  grid-template-columns: minmax(5.5em, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
}
.company-contact a:hover {
  padding-left: 6px;
}
.company-contact a:hover b { color: #fff; }
.company-contact span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.company-contact b {
  justify-self: start;
  font-size: 15px;
  font-weight: 800;
  color: var(--price);
  letter-spacing: -0.02em;
}


@media (max-width: 1180px) {
  .l-side-nav { display: none; }
  .intro,
  .about,
  .work,
  .hire { max-width: 100%; }
  .header--cta { display: none; }
}

@media (max-width: 900px) {
  .intro--banner { min-height: 420px; }
  .intro--banner img { width: 340px; right: -8px; }
  .slider--item-image { width: 120px; height: 120px; }
  .slider--item-center .slider--item-image { width: 220px; height: 220px; }
  .slider--next,
  .slider--prev { top: 118px; }
}

@media (max-width: 767px) {
  .container { outline-width: 0; }
  .l-wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }
  .header {
    height: calc(64px + var(--safe-top));
    padding-top: var(--safe-top);
  }
  .header--logo { margin-left: 10px; }
  .header--nav-toggle {
    margin-right: 2px;
    min-width: 44px;
    min-height: 44px;
  }
  .logo-word { font-size: 18px; }
  .intro,
  .about,
  .work,
  .hire {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .intro {
    padding-bottom: calc(48px + var(--safe-bottom));
  }
  .intro--banner {
    min-height: 0;
    display: grid;
    gap: 10px;
    padding-top: calc(78px + var(--safe-top));
    align-items: start;
  }
  .eyebrow { margin-bottom: 10px; }
  .intro--banner h1 { font-size: clamp(30px, 9vw, 38px); }
  .intro-cta { display: none; }
  .intro--banner img {
    position: static;
    width: min(100%, 320px);
    max-height: min(38vh, calc(var(--app-height) * 0.38));
    margin: 8px auto 0;
    object-fit: contain;
  }

  .about {
    justify-content: center;
    padding: calc(72px + var(--safe-top)) 0 calc(56px + var(--safe-bottom));
    overflow: auto;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .geo { display: none; }
  .about--copy h2 {
    margin-bottom: 8px;
    font-size: clamp(34px, 10vw, 40px);
  }
  .about--copy > p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.65;
  }
  .rate-list {
    padding: 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .rate-list li {
    grid-template-columns: 3.6em minmax(0, 1fr);
    gap: 4px 10px;
    padding: 14px 0;
  }
  .rate-list b { font-size: 14px; }
  .rate-list em {
    font-size: 17px;
    text-align: right;
  }
  .rate-list span { font-size: 12px; }

  .work {
    justify-content: center;
    padding: calc(72px + var(--safe-top)) 0 calc(56px + var(--safe-bottom));
  }
  .work h2 {
    margin-bottom: 14px;
    font-size: 30px;
  }
  .slider {
    width: auto;
    min-height: min(280px, calc(var(--app-height) * 0.42));
  }
  .slider--item-left,
  .slider--item-right { display: none; }
  .slider--item-center { top: 0; }
  .slider--item-center .slider--item-image {
    width: min(56vw, 220px);
    height: min(56vw, 220px);
  }
  .slider--item-center .slider--item-title { font-size: 15px; }
  .slider--item-center .slider--item-description {
    max-width: 90%;
    font-size: 12px;
  }
  .slider--next,
  .slider--prev {
    top: 50%;
    transform: translateY(-120%);
    width: 40px;
    height: 40px;
  }

  .hire {
    justify-content: center;
    padding: calc(72px + var(--safe-top)) 0 calc(28px + var(--safe-bottom));
    overflow: auto;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .hire--copy h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 34px);
  }
  .esports-line {
    margin-bottom: 12px;
    padding-left: 12px;
    font-size: 13px;
  }
  .company-lead { font-size: 13px; }
  .company-contact { margin-top: 14px; }
  .company-contact a {
    grid-template-columns: 5.2em minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    min-height: 44px;
  }
  .company-contact span { font-size: 12px; }
  .company-contact b {
    justify-self: start;
    font-size: 14px;
  }

  .scroll-hint {
    position: absolute;
    left: 50%;
    bottom: calc(14px + var(--safe-bottom));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.42);
    pointer-events: none;
  }
  .scroll-hint i {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg);
    animation: scroll-hint-bounce 1.6s ease-in-out infinite;
  }

  .outer-nav {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .outer-nav > li { font-size: 30px; }
}

/* 仅在横屏矮屏时提示；避免底部工具栏压缩高度后误挡竖屏 */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 480px) {
  .device-notification { display: flex; }
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
