@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --muted: #5a5a5a;
  --r: 10px;
  --e1: 0 1px 2px rgba(31, 31, 31, .07), 0 4px 12px rgba(31, 31, 31, .06);
  --e2: 0 2px 6px rgba(31, 31, 31, .09), 0 12px 28px rgba(31, 31, 31, .10);
  --e3: 0 6px 16px rgba(31, 31, 31, .11), 0 26px 58px rgba(31, 31, 31, .14);
  --e4: 0 12px 32px rgba(31, 31, 31, .15), 0 46px 96px rgba(31, 31, 31, .18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  scroll-padding-bottom: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 110px;
  font-family: 'Exo 2', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 440px at 10% -8%, rgba(255, 255, 255, .98), rgba(255, 255, 255, 0) 70%),
    radial-gradient(560px 400px at 94% 6%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 72%),
    radial-gradient(680px 460px at 46% 106%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 74%);
}

img { max-width: 100%; height: auto; }

.stage { position: relative; z-index: 1; }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 12px;
  position: relative;
  z-index: 1;
}

div { min-width: 0; position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: calc(100svh - 130px);
  padding: 52px 0 34px;
  text-align: left;
}

.hero h1 {
  margin: 0;
  font-family: 'Orbitron', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.16;
  letter-spacing: .005em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-media {
  position: relative;
  margin-top: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--e4);
  background: var(--paper);
  transform: translateZ(0);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

/* ---------- content cards ---------- */
div > section:not(.hero) {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--e2);
  padding: 26px 22px;
  margin-top: 22px;
  scroll-margin-top: 24px;
}

div > section:not(.hero) + section:not(.hero) { margin-top: -10px; }

div > section:not(.hero):nth-of-type(3) { z-index: 2; }
div > section:not(.hero):nth-of-type(4) { z-index: 3; }
div > section:not(.hero):nth-of-type(5) { z-index: 2; }

div h2 {
  margin: 0 0 10px;
  font-family: 'Orbitron', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.28;
  letter-spacing: .005em;
}

div h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  line-height: 1.4;
}

div p { margin: 0 0 14px; }
div p:last-child { margin-bottom: 0; }

div ul, div ol { margin: 0 0 14px; padding-left: 1.3em; }
div li { margin: .35em 0; }

div a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
div a:hover { background: var(--mist); }

div blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--ink);
  background: var(--mist);
  border-radius: 0 var(--r) var(--r) 0;
}

p.subtitle {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- rail ---------- */
.rail {
  position: relative;
  z-index: 4;
  margin-top: 26px;
}

.rail-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--e3);
  padding: 20px 18px;
}

.rail h2 {
  margin: 0;
  font-family: 'Orbitron', 'Noto Sans SC', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.3;
}

.rail .subtitle { margin: 2px 0 14px; font-size: 16px; }

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}

.rail-nav a::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--mist);
}

.rail-nav a:hover { background: var(--mist); box-shadow: var(--e1); }

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 78px auto 0;
  padding: 0 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 20px;
}

.foot-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 24px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--e3);
}

.foot-cta .big {
  margin: 0;
  font-family: 'Orbitron', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
}

.foot-go {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  box-shadow: var(--e2);
}

.foot-go:hover { box-shadow: var(--e3); }

.foot-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: 'Orbitron', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  justify-self: center;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-nav a:hover { border-bottom-color: var(--ink); }

.foot-note { justify-self: end; text-align: right; }
.foot-note .copy { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- fixed bar ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--ink);
  box-shadow: 0 -12px 34px rgba(31, 31, 31, .12);
}

.bar .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Orbitron', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.bar .brand img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.bar .contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  box-shadow: var(--e1);
}

.bar .contact:hover { box-shadow: var(--e2); }

.menu-box { position: relative; }

.bar summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--e2);
}

.bar summary::-webkit-details-marker { display: none; }

.bar summary::before {
  content: "";
  width: 14px;
  height: 11px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 100% 1.5px no-repeat;
}

.menu-box[open] summary { background: var(--paper); color: var(--ink); box-shadow: var(--e3); }
.menu-box[open] summary::before {
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1.5px no-repeat;
}

.bar menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(78vw, 320px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--e4);
  max-height: 62vh;
  overflow: auto;
}

.bar menu li { margin: 0; }

.bar menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}

.bar menu a::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--mist);
}

.bar menu a:hover { background: var(--mist); box-shadow: var(--e1); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
    padding: 0 24px 16px;
  }

  .rail {
    position: sticky;
    top: 26px;
    align-self: start;
    margin-top: 40px;
  }

  div > section:not(.hero) { padding: 34px 32px; }
  div > section:nth-of-type(odd) { margin-left: -14px; }
  div > section:nth-of-type(even) { margin-left: 14px; }

  .hero { padding-top: 64px; }
  footer { padding: 0 24px 28px; }
}

/* ---------- small screens ---------- */
@media (max-width: 719px) {
  body { font-size: 17px; padding-bottom: 104px; }
  .hero { min-height: auto; padding: 34px 0 26px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  div > section:not(.hero) { padding: 22px 18px; }
  .rail { order: 2; }
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
    margin-top: 56px;
  }
  .foot-nav { justify-self: center; justify-content: center; }
  .foot-note { justify-self: center; text-align: center; }
  .foot-cta { flex-direction: column; align-items: flex-start; text-align: left; }
  .bar .brand { font-size: 16px; }
  .bar .contact { padding: 0 13px; }
}

@media (max-width: 359px) {
  .bar .brand .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
