:root {
  color-scheme: dark;
  --ink: #060708;
  --paper: #f3f3f2;
  --muted: #939598;
  --line: rgba(243, 243, 242, .18);
  --accent: #ff4a1f;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

.footprint-slide {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background-image:
    url("./assets/route-baked/footprint-route-desktop-v2.png"),
    linear-gradient(90deg, rgba(0, 0, 0, .34), transparent 28%),
    radial-gradient(circle at 60% 55%, rgba(243, 243, 242, .055), transparent 34%),
    linear-gradient(180deg, #050607, #090a0b 58%, #050607);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ambient-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.title-block {
  position: absolute;
  z-index: 4;
  left: clamp(46px, 5.4vw, 92px);
  top: clamp(74px, 13.5vh, 134px);
  width: 330px;
}

.title-block h1,
.title-block h2,
.title-block p { margin: 0; }

.title-block h1 {
  font-size: clamp(44px, 3.2vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .18em;
  white-space: nowrap;
}

.title-en {
  margin-top: 13px !important;
  color: #b8b9bb;
  font: 400 20px/1.2 Arial, sans-serif;
  letter-spacing: .18em;
}

.title-block h2 {
  margin-top: 54px !important;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .13em;
}

.title-note {
  margin-top: 10px !important;
  color: var(--muted);
  font: 400 12px/1.55 Arial, sans-serif;
  letter-spacing: .08em;
}

.data-note {
  position: absolute;
  z-index: 4;
  right: clamp(38px, 4vw, 74px);
  top: 16.5%;
  display: grid;
  gap: 18px;
  width: 175px;
}

.data-note p {
  position: relative;
  margin: 0;
  padding-left: 46px;
  color: #c5c6c7;
  font-size: 12px;
  letter-spacing: .11em;
}

.data-note p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--line);
}

.data-note span {
  position: absolute;
  left: -30px;
  color: var(--accent);
  font: 400 9px/1 Arial, sans-serif;
}

.map-stage {
  position: absolute;
  z-index: 2;
  inset: 7.5% 4.5% 4.5% 17%;
}

.map-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.continuity-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.continuity-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.continuity-line circle {
  fill: var(--accent);
  stroke: rgba(243, 243, 242, .75);
  stroke-width: .7;
}

.slide-footer {
  position: absolute;
  z-index: 4;
  left: clamp(46px, 5.4vw, 92px);
  bottom: 46px;
  display: grid;
  gap: 9px;
}

.slide-footer p,
.slide-footer span { margin: 0; }

.slide-footer p {
  color: #c8c9ca;
  font-size: 12px;
  letter-spacing: .12em;
}

.slide-footer p::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 12px;
  background: var(--accent);
  vertical-align: middle;
}

.slide-footer span {
  padding-left: 36px;
  color: #63666a;
  font: 400 9px/1 Arial, sans-serif;
  letter-spacing: .14em;
}

@media (max-width: 900px) {
  .footprint-slide {
    background-image:
      url("./assets/route-baked/footprint-route-mobile-v2.png"),
      linear-gradient(180deg, #050607, #090a0b 58%, #050607);
  }
  body { overflow: auto; }
  .footprint-slide { min-height: 100dvh; }
  .title-block { top: 58px; width: calc(100% - 80px); }
  .title-block h1 { font-size: 40px; }
  .title-en { font-size: 15px; }
  .title-block h2 { margin-top: 30px !important; font-size: 18px; }
  .data-note { display: none; }
  .map-stage { inset: 280px 16px 66px; }
  .continuity-line { display: block; }
  .slide-footer { left: 32px; bottom: 24px; }
}

@media (max-width: 760px) {
  .map-stage { bottom: max(118px, calc(104px + env(safe-area-inset-bottom))); }
  .slide-footer { bottom: max(78px, calc(64px + env(safe-area-inset-bottom))); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
