@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --paper: #ffffff;
  --mist: #f5f5f5;
  --ink: #1f1f1f;
  --ink-70: rgba(31, 31, 31, 0.7);
  --ink-45: rgba(31, 31, 31, 0.45);
  --edge: rgba(31, 31, 31, 0.1);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-line: rgba(255, 255, 255, 0.88);
  --el-1: 0 1px 2px rgba(31, 31, 31, 0.07);
  --el-2: 0 4px 14px rgba(31, 31, 31, 0.09);
  --el-3: 0 12px 32px rgba(31, 31, 31, 0.13);
  --el-4: 0 26px 62px rgba(31, 31, 31, 0.2);
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

div[id] {
  scroll-margin-top: 128px;
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--edge);
  box-shadow: var(--el-2);
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
}

.mark-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(31, 31, 31, 0.12), 0 0 0 8px rgba(31, 31, 31, 0.05);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: var(--el-3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--el-4);
}

.masthead nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 14px 12px;
}

.masthead nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(245, 245, 245, 0.86);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--el-1);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  background: var(--paper);
  box-shadow: var(--el-2);
  transform: translate3d(0, -1px, 0);
}

/* ---------- hero ---------- */

main {
  display: block;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 30px 20px 32px;
  min-height: 45vh;
  overflow: hidden;
  background-color: var(--mist);
  background-image: radial-gradient(rgba(31, 31, 31, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  border-bottom: 1px solid var(--edge);
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: clamp(1.75rem, 6vw, 3.2rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 700;
}

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

.collage-i {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--el-4);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.collage-i img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-1 {
  z-index: 3;
}

.collage-2 {
  z-index: 5;
}

/* ---------- stage ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.stream {
  min-width: 0;
}

.stream > div {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  padding: 26px 22px;
  border-radius: 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--el-2);
  animation: rise 0.5s ease both;
}

.stream > div:hover {
  z-index: 3;
  box-shadow: var(--el-3);
}

.stream > div:nth-child(1) { animation-delay: 0.02s; }
.stream > div:nth-child(2) { animation-delay: 0.07s; }
.stream > div:nth-child(3) { animation-delay: 0.12s; }
.stream > div:nth-child(4) { animation-delay: 0.17s; }
.stream > div:nth-child(5) { animation-delay: 0.22s; }
.stream > div:nth-child(6) { animation-delay: 0.27s; }
.stream > div:nth-child(7) { animation-delay: 0.32s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.stream h2,
.stream h3 {
  margin: 0 0 14px;
  font-family: var(--mono);
  line-height: 1.32;
  letter-spacing: -0.005em;
}

.stream h2 {
  font-size: 1.4rem;
}

.stream h3 {
  font-size: 1.13rem;
}

.stream h2 > span,
.stream h3 > span {
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

.stream h2 > span::after,
.stream h3 > span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  opacity: 0.85;
}

.stream p {
  margin: 0 0 14px;
}

.stream p:last-child,
.stream ul:last-child,
.stream figure:last-child {
  margin-bottom: 0;
}

.stream ul,
.stream ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.stream li {
  margin-bottom: 8px;
}

.stream a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-45);
  padding-bottom: 1px;
}

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

.stream figure {
  margin: 18px 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--el-3);
  border: 1px solid var(--glass-line);
}

.stream figure img {
  display: block;
  width: 100%;
  height: auto;
}

.stream blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(245, 245, 245, 0.9);
  border-left: 3px solid var(--ink);
  box-shadow: var(--el-1);
}

.stream blockquote p:last-child {
  margin-bottom: 0;
}

.stream time {
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-45);
}

/* ---------- rail ---------- */

.rail {
  position: relative;
  z-index: 4;
  order: 2;
  align-self: start;
  padding: 20px 18px;
  border-radius: 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--el-3);
}

.rail-title {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 16px;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--paper);
  box-shadow: var(--el-1);
}

/* ---------- footer ---------- */

footer {
  position: relative;
  z-index: 6;
  margin-top: 10px;
  padding: 34px 20px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--el-4);
}

.foot-grid {
  display: grid;
  gap: 26px;
  max-width: 1220px;
  margin: 0 auto;
}

footer address {
  font-style: normal;
  display: grid;
  gap: 8px;
}

.foot-mega {
  font-family: var(--mono);
  font-size: clamp(2rem, 9vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  word-break: break-word;
}

.foot-note {
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.06em;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2px 12px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 16px;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--paper);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.foot-base {
  max-width: 1220px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- wide ---------- */

@media (min-width: 761px) {
  .hero {
    padding: 54px 46px;
    min-height: 45vh;
  }

  .hero-copy {
    max-width: 46%;
  }

  .collage-i {
    position: absolute;
    width: 25%;
    aspect-ratio: 4 / 5;
  }

  .collage-1 {
    top: 12%;
    right: 25%;
  }

  .collage-2 {
    bottom: 9%;
    right: 4%;
    width: 26%;
  }

  .stage {
    padding: 34px 24px 64px;
  }
}

@media (min-width: 981px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 30px;
  }

  .rail {
    position: sticky;
    top: 132px;
    order: 0;
  }

  .stream > div {
    padding: 30px 30px;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- narrow ---------- */

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-content: start;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .collage-i {
    aspect-ratio: 3 / 4;
  }

  .masthead nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .masthead nav p {
    flex-wrap: nowrap;
  }

  .masthead nav a {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16.5px;
  }

  .brandbar {
    padding: 10px 16px;
  }

  .stream > div {
    padding: 22px 18px;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

  .collage-i {
    transform: none !important;
  }
}

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