/*
 * Brand fonts, self-hosted.
 *
 * Previously this page pulled Space Grotesk from fonts.googleapis.com, which
 * is blocked in mainland China - the splash page's entire audience. Every
 * visitor was waiting on a request that could never resolve before falling
 * back to a system face. Self-hosting fixes that as well as matching the brand.
 *
 * Spec from METHOD brand guideline p.14: Druk Text Wide Heavy, capitals only,
 * -8% tracking for headlines; Golos Text regular/semibold at -5% for the rest.
 */
@font-face {
  font-family: 'Druk Text Wide';
  src: url('../fonts/DrukTextWide-Heavy.woff2') format('woff2'),
       url('../fonts/DrukTextWide-Heavy.woff')  format('woff');
  font-style: normal;
  font-weight: 100 900;   /* one Heavy cut answers every weight; no faux-bold */
  font-display: swap;
  /* Druk carries no CJK glyphs - keep it off Chinese text entirely. */
  unicode-range: U+0020-007E, U+00A0-024F, U+0400-04FF, U+2000-206F, U+20A0-20BF;
}

@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/GolosText-VF.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Golos Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.05em;
}

body {
  background: #000;
  display: flex;
  flex-direction: column;
}

.logo {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  transition: transform 0.4s ease;
}

.logo img:hover {
  transform: scale(1.08);
}

.panels {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 0;
}

.panel-jingan::before {
  background-image: url('../images/jingan.jpg');
}

.panel-pudong::before {
  background-image: url('../images/pudong.jpg');
}

.panel:hover::before {
  transform: scale(1.08);
}

.panel-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.panel:hover .overlay {
  opacity: 0;
}

.label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Druk Text Wide", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.panel:hover .label {
  opacity: 0.85;
}

.site-footer {
  background: #000;
  color: #888;
  text-align: center;
  padding: 16px 12px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
  z-index: 10;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .label {
    font-size: 1.9rem;
  }

  .logo img {
    height: 80px;
  }
}

@media (min-width: 1024px) {
  .panels {
    flex-direction: row;
  }

  .label {
    font-size: 2.2rem;
  }

  .logo img {
    height: 110px;
  }

  .site-footer {
    font-size: 0.85rem;
  }
}
