:root {
  --bg: #060706;
  --ink: #fff8ec;
  --muted: #c6bba9;
  --paper: #f2eee3;
  --paper-ink: #181713;
  --paper-muted: #5d574d;
  --accent: #ffb545;
  --city-accent: #b8ff5c;
  --line-dark: rgba(255, 248, 236, 0.18);
  --line-light: rgba(24, 23, 19, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: var(--bg);
  color: var(--ink);
}

body::selection {
  background: var(--accent);
  color: var(--paper-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px 34px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(6, 7, 6, 0.76), rgba(6, 7, 6, 0));
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
}

.brand-mark span:first-child {
  font-size: 1.05rem;
}

.brand-mark span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 248, 236, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

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

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92svh;
  overflow: hidden;
  padding: 122px 34px 96px;
  isolation: isolate;
}

.hero::before,
.hero::after,
.hero__image {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background-image: url("assets/shenzhen-skyline-night.jpeg");
  background-position: 50% 55%;
  background-size: cover;
  transform: translate3d(0, calc(var(--scroll-progress, 0) * -64px), 0) scale(1.04);
  transition: transform 80ms linear;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 7, 6, 0.92) 0%, rgba(6, 7, 6, 0.76) 37%, rgba(6, 7, 6, 0.26) 72%),
    linear-gradient(0deg, rgba(6, 7, 6, 0.34), rgba(6, 7, 6, 0.1));
  content: "";
}

.hero::after {
  z-index: -1;
  background:
    radial-gradient(circle at 28% 68%, rgba(255, 181, 69, 0.34), transparent 18rem),
    linear-gradient(0deg, rgba(6, 7, 6, 0.78) 0%, transparent 34%);
  content: "";
  opacity: 0.86;
}

.hero__lights {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background-repeat: no-repeat;
  will-change: opacity;
}

.hero__lights--warm {
  background-image:
    radial-gradient(circle at 9% 52%, rgba(255, 196, 102, 1) 0, rgba(255, 196, 102, 0) 8px),
    radial-gradient(circle at 41% 33%, rgba(255, 211, 128, 1) 0, rgba(255, 211, 128, 0) 7px),
    radial-gradient(circle at 63% 58%, rgba(255, 188, 92, 1) 0, rgba(255, 188, 92, 0) 9px),
    radial-gradient(circle at 92% 41%, rgba(255, 184, 96, 1) 0, rgba(255, 184, 96, 0) 8px);
  animation: cityFlash 9s linear infinite;
}

.hero__lights--cool {
  background-image:
    radial-gradient(circle at 24% 67%, rgba(190, 222, 255, 1) 0, rgba(190, 222, 255, 0) 8px),
    radial-gradient(circle at 53% 49%, rgba(176, 214, 255, 1) 0, rgba(176, 214, 255, 0) 7px),
    radial-gradient(circle at 81% 36%, rgba(200, 226, 255, 1) 0, rgba(200, 226, 255, 0) 8px);
  animation: cityFlash 7s linear infinite;
  animation-delay: -2.4s;
}

.hero__lights--accent {
  background-image:
    radial-gradient(circle at 16% 31%, rgba(184, 255, 92, 1) 0, rgba(184, 255, 92, 0) 7px),
    radial-gradient(circle at 47% 62%, rgba(255, 240, 176, 1) 0, rgba(255, 240, 176, 0) 7px),
    radial-gradient(circle at 73% 28%, rgba(184, 255, 92, 1) 0, rgba(184, 255, 92, 0) 7px);
  animation: cityFlash 5.5s linear infinite;
  animation-delay: -3.7s;
}

@keyframes cityFlash {
  0%, 18%   { opacity: 0.55; }
  20%, 24%  { opacity: 1; }
  26%, 48%  { opacity: 0.55; }
  50%, 54%  { opacity: 1; }
  56%, 78%  { opacity: 0.55; }
  80%, 84%  { opacity: 1; }
  86%, 100% { opacity: 0.55; }
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding-top: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  max-width: 9ch;
  font-size: 7.4rem;
  line-height: 0.88;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero__city-word {
  color: var(--city-accent);
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 248, 236, 0.86);
  font-size: 1.27rem;
  line-height: 1.55;
}

.hero__actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.updates-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.updates-form button:hover {
  transform: translateY(-2px);
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.button[disabled]:hover,
.button[aria-disabled="true"]:hover {
  transform: none;
}

.button--primary,
.updates-form button {
  background: var(--accent);
  color: var(--paper-ink);
}

.button--ghost {
  border-color: rgba(255, 248, 236, 0.34);
  color: var(--ink);
  background: rgba(255, 248, 236, 0.06);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(255, 248, 236, 0.72);
}

.hero__lower {
  position: absolute;
  right: 34px;
  bottom: 26px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 248, 236, 0.76);
}

.hero__lower p {
  margin: 0;
  padding: 18px 20px 0 0;
}

.hero__lower strong {
  display: block;
  color: rgba(255, 248, 236, 0.9);
  font-weight: 900;
}

.hero__lower span {
  display: block;
  max-width: 24ch;
  margin-top: 6px;
  color: rgba(255, 248, 236, 0.58);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero__lower p + p {
  border-left: 1px solid var(--line-dark);
  padding-left: 20px;
}

section {
  position: relative;
  padding: 96px 34px;
}

.section-dark {
  background: var(--bg);
  color: var(--ink);
}

.section-light {
  background: var(--paper);
  color: var(--paper-ink);
}

.city-copy h2,
.updates-copy h2 {
  margin-bottom: 0;
  font-size: 4.3rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.city-copy p {
  color: rgba(255, 248, 236, 0.74);
  font-size: 1.18rem;
  line-height: 1.75;
}

.updates-copy h2 {
  color: var(--paper-muted);
}

.section-image {
  display: grid;
  min-height: 640px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(6, 7, 6, 0.9) 0%, rgba(6, 7, 6, 0.68) 46%, rgba(6, 7, 6, 0.2) 100%),
    url("assets/shenzhen-skyline-night.jpeg") center / cover;
  color: var(--ink);
  overflow: hidden;
}

.section-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(6, 7, 6, 0.84), transparent);
  content: "";
  pointer-events: none;
}

.city-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin-left: max(0px, calc((100% - var(--max)) / 2));
}

.city-facts {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(var(--max), 100%);
  margin: 74px auto 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.city-facts p {
  margin: 0;
  padding: 22px 22px 0 0;
  color: rgba(255, 248, 236, 0.76);
  line-height: 1.5;
}

.city-facts p + p {
  border-left: 1px solid var(--line-dark);
  padding-left: 22px;
}

.city-facts strong {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
}

.updates-inner {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 68px;
  align-items: end;
}

.updates-form {
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(460px, 100%);
}

.updates-form label {
  color: var(--paper-muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.updates-form input {
  flex: 1 1 230px;
  min-height: 50px;
  min-width: 0;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 0 15px;
  color: var(--paper-ink);
  background: rgba(255, 255, 255, 0.58);
  font: inherit;
}

.updates-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(255, 181, 69, 0.24);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--paper-muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 34px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 248, 236, 0.64);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 181, 69, 0.76);
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
  }

  h1 {
    font-size: 5.4rem;
  }

  .updates-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .city-copy h2,
  .updates-copy h2 {
    font-size: 3.35rem;
  }

  .updates-form {
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    min-height: 64px;
    padding: 18px 18px;
  }

  .brand-mark {
    display: grid;
    gap: 2px;
  }

  .brand-mark span:last-child {
    font-size: 0.8rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 100svh;
    align-content: start;
    padding: 104px 18px 28px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 7, 6, 0.93) 0%, rgba(6, 7, 6, 0.72) 72%, rgba(6, 7, 6, 0.44) 100%),
      linear-gradient(0deg, rgba(6, 7, 6, 0.38), rgba(6, 7, 6, 0.08));
  }

  h1 {
    max-width: 8ch;
    font-size: 3.35rem;
    line-height: 0.95;
  }

  .hero__lead {
    font-size: 1.04rem;
  }

  .hero__actions,
  .form-row {
    display: grid;
  }

  .button,
  .updates-form button {
    width: 100%;
  }

  .hero__lower {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .hero__lower p {
    padding: 10px 0 2px;
  }

  .hero__lower p + p {
    border-left: 0;
    padding-left: 0;
  }

  section {
    padding: 72px 18px;
  }

  .city-copy h2,
  .updates-copy h2 {
    font-size: 2.45rem;
  }

  .city-copy p {
    font-size: 1rem;
  }

  .section-image {
    min-height: 700px;
  }

  .city-facts {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .city-facts p {
    padding: 16px 0;
  }

  .city-facts p + p {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding-left: 0;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero__image,
  .reveal {
    transform: none !important;
  }

  .hero__lights {
    opacity: 0.65 !important;
  }
}
