@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.body-root {
  background: #000;
  color: #fff;
  font-family: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===== ANNOUNCE BAR ===== */
.announce-bar {
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 16px;
  position: relative;
  z-index: 200;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: #000;
  border-bottom: 2px solid #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
}

.logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.04em;
  background: #fff;
  color: #000;
  padding: 2px 8px;
  display: inline-block;
}

/* ===== TOP NAV (nav > p > a) ===== */
.top-nav {
  overflow: hidden;
}

.top-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav p::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 10px 12px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus {
  background: #fff;
  color: #000;
  outline: none;
}

/* ===== HAMBURGER ===== */
.hamburger {
  background: none;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 8px;
  transition: background 0.18s;
}

.hamburger:hover {
  background: #fff;
}

.hamburger:hover .ham-line {
  background: #000;
}

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: background 0.18s;
}

/* ===== STICKY ANCHOR BAR ===== */
.sticky-anchor-bar {
  position: sticky;
  top: 60px;
  z-index: 140;
  background: #fff;
  border-bottom: 2px solid #000;
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-anchor-bar::-webkit-scrollbar {
  display: none;
}

.anchor-inner {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.anchor-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #000;
  padding: 8px 14px;
  white-space: nowrap;
  border-right: 1px solid #000;
  transition: background 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.anchor-link:first-child {
  border-left: none;
}

.anchor-link:hover,
.anchor-link:focus {
  background: #000;
  color: #fff;
  outline: none;
}

/* ===== FULLSCREEN MENU ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fullscreen-menu:not([hidden]) {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-menu[hidden] {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
}

.fs-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  transition: background 0.18s, color 0.18s;
}

.fs-close:hover {
  background: #fff;
  color: #000;
}

.fs-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.fs-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  padding: 8px 0;
  border-bottom: 1px solid #333;
  transition: color 0.18s, padding-left 0.18s;
  display: block;
}

.fs-nav-link:hover,
.fs-nav-link:focus {
  color: #fff;
  padding-left: 16px;
  outline: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #000;
  scroll-margin-top: 110px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  position: relative;
  z-index: 2;
  align-items: end;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

.aside-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  border-left: 2px solid #fff;
  padding-left: 8px;
  line-height: 1.2;
}

.hero-content {
  max-width: 900px;
}

.hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 32px;
  text-align: left;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  color: #ccc;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  background: #fff;
  color: #000;
  padding: 14px 36px;
  border: 2px solid #fff;
  transition: background 0.18s, color 0.18s;
  min-height: 48px;
  line-height: 1.2;
}

.hero-cta:hover,
.hero-cta:focus {
  background: #000;
  color: #fff;
  outline: none;
}

/* Diagonal slash divider */
.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: #fff;
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

/* ===== CONTENT BODY ===== */
.content-body {
  background: #fff;
  color: #000;
  position: relative;
  z-index: 2;
  scroll-margin-top: 110px;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  align-items: start;
}

/* ===== ASIDE ===== */
.content-aside {
  position: sticky;
  top: 110px;
  padding-right: 40px;
  border-right: 2px solid #000;
  margin-right: 40px;
}

.aside-block {
  margin-bottom: 32px;
}

.aside-block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #000;
}

.aside-block .subtitle {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #444;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 24px;
}

.aside-nav-item {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #000;
  padding: 8px 10px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-item:hover,
.aside-nav-item:focus {
  border-color: #000;
  background: #f0f0f0;
  outline: none;
}

/* ===== CONTENT MAIN ===== */
.content-main {
  min-width: 0;
  padding-left: 0;
}

/* Inject page.content styling */
.content-main div {
  padding: 60px 0;
  border-bottom: 2px solid #000;
  scroll-margin-top: 110px;
}

.content-main div:last-child {
  border-bottom: none;
}

.content-main h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: #000;
}

.content-main h2 + p,
.content-main h2 + .subtitle {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.7;
}

.content-main h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: -0.02em;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #000;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
  margin-bottom: 18px;
}

.content-main ul,
.content-main ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.content-main li {
  font-size: 1rem;
  line-height: 1.75;
  color: #111;
  margin-bottom: 6px;
}

.content-main strong {
  font-weight: 700;
  color: #000;
}

.content-main blockquote {
  border-left: 4px solid #000;
  padding: 16px 24px;
  margin: 28px 0;
  background: #f5f5f5;
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: #222;
}

.content-main a {
  color: #000;
  border-bottom: 2px solid #000;
  transition: background 0.15s;
}

.content-main a:hover {
  background: #000;
  color: #fff;
}

/* Drop cap */
.content-main div:first-child > p:first-of-type::first-letter {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 0.8;
  float: left;
  margin-right: 8px;
  margin-top: 6px;
  color: #000;
}

/* Pull quote */
.content-main .pull-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  padding: 20px 0;
  margin: 36px 0;
  color: #000;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #000;
  color: #fff;
  border-top: 4px solid #fff;
}

.footer-brand-section {
  padding: 48px 24px 24px;
  border-bottom: 1px solid #333;
  text-align: center;
}

.footer-brand-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 7rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}

.footer-copy-section {
  padding: 24px;
  text-align: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: #777;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .stagger-list > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .stagger-list.visible > *:nth-child(1) { transition-delay: 0s; }
  .stagger-list.visible > *:nth-child(2) { transition-delay: 0.08s; }
  .stagger-list.visible > *:nth-child(3) { transition-delay: 0.16s; }
  .stagger-list.visible > *:nth-child(4) { transition-delay: 0.24s; }
  .stagger-list.visible > *:nth-child(5) { transition-delay: 0.32s; }
  .stagger-list.visible > *:nth-child(6) { transition-delay: 0.40s; }
  .stagger-list.visible > *:nth-child(7) { transition-delay: 0.48s; }

  .stagger-list.visible > * {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .top-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 16px 100px;
  }

  .hero-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .aside-label {
    writing-mode: horizontal-tb;
    transform: none;
    border-left: none;
    border-bottom: 2px solid #fff;
    padding-left: 0;
    padding-bottom: 4px;
    font-size: 0.65rem;
  }

  .hero-h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .content-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px 48px;
  }

  .content-aside {
    position: static;
    border-right: none;
    border-bottom: 2px solid #000;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 28px;
    margin-bottom: 32px;
  }

  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-nav-item {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .content-main div {
    padding: 40px 0;
  }

  .sticky-anchor-bar {
    top: 62px;
  }

  .hero-section {
    scroll-margin-top: 104px;
  }

  .content-body div {
    scroll-margin-top: 104px;
  }

  .footer-brand-word {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .fs-nav-link {
    font-size: clamp(1.6rem, 8vw, 3rem);
  }

  .fullscreen-menu {
    padding: 80px 24px 40px;
  }
}

@media (max-width: 480px) {
  .announce-bar {
    font-size: 0.68rem;
    padding: 5px 8px;
  }

  .anchor-link {
    font-size: 0.65rem;
    padding: 6px 10px;
  }

  .content-main h2 {
    font-size: 1.5rem;
  }
}
