@import url('https://fonts.googleapis.com/css2?family=Calistoga:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #fff;
  color: #000;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ===== SCROLL MARGIN FOR ANCHORS ===== */
section[id] {
  scroll-margin-top: 110px;
}

/* ===== SITE WRAPPER ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== TOP BRAND BAR ===== */
.top-brand-bar {
  background: #000;
  color: #fff;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-brand-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Calistoga', serif;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.02em;
}

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

.nav-toggle {
  position: absolute;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 200ms, opacity 200ms;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== ASIDE — 粘性锚点导航条（aside > nav > ul > li > a） ===== */
.site-aside {
  background: #000;
  border-bottom: 2px solid #000;
  position: sticky;
  top: 60px;
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-aside::-webkit-scrollbar {
  display: none;
}

.anchor-nav {
  max-width: 1200px;
  margin: 0 auto;
}

.anchor-nav ul {
  display: flex;
  padding: 0 1.5rem;
  gap: 0;
  white-space: nowrap;
}

.anchor-nav ul li a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  min-height: 40px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: color 200ms, border-color 200ms;
}

.anchor-nav ul li a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ===== FULLSCREEN MENU ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.fullscreen-menu nav ul li a {
  font-family: 'Calistoga', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  transition: opacity 200ms;
  min-height: 44px;
  text-align: center;
}

.fullscreen-menu nav ul li a:hover {
  opacity: 0.5;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms;
}

.menu-close:hover {
  opacity: 0.5;
}

.menu-brand {
  position: absolute;
  bottom: 2rem;
  font-family: 'Calistoga', serif;
  font-size: 0.85rem;
  color: #444;
  letter-spacing: 0.1em;
}

/* ===== HERO ===== */
.hero-section {
  background: #fff;
  min-height: 70vh;
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid #000;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  gap: 3rem;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-h1 {
  font-family: 'Calistoga', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 1.25rem;
  word-break: break-all;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 400;
  color: #444;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border: 2px solid #000;
  letter-spacing: 0.04em;
  transition: background 200ms, color 200ms;
  min-height: 44px;
}

.hero-cta:hover {
  background: #fff;
  color: #000;
}

/* Hero 媒体拼贴 */
.hero-media-col {
  position: relative;
}

.hero-collage {
  position: relative;
  width: 100%;
  height: 400px;
}

.hero-img,
.hero-placeholder {
  position: absolute;
  border: 2px solid #000;
  object-fit: cover;
}

.hero-img--1,
.hero-placeholder--1 {
  width: 62%;
  height: 70%;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-img--2,
.hero-placeholder--2 {
  width: 55%;
  height: 65%;
  bottom: 0;
  right: 0;
  z-index: 3;
}

.hero-placeholder--1 {
  background: #f0f0f0;
}

.hero-placeholder--2 {
  background: #e0e0e0;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.07;
  pointer-events: none;
}

/* ===== MAIN CONTENT ===== */
.site-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.content-article {
  width: 100%;
}

.content-section {
  width: 100%;
}

/* ===== CONTENT STYLES ===== */
.content-section h2,
.content-article h2 {
  font-family: 'Calistoga', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
  color: #000;
}

.content-section h2 > span,
.content-article h2 > span {
  display: inline;
}

.content-section h3,
.content-article h3 {
  font-family: 'Calistoga', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #000;
}

.content-section h3 > span,
.content-article h3 > span {
  display: inline;
}

.content-section p,
.content-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
  margin-bottom: 1.2rem;
  max-width: 72ch;
}

.content-section ul,
.content-article ul,
.content-section ol,
.content-article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.content-section ol,
.content-article ol {
  list-style: decimal;
}

.content-section li,
.content-article li {
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
  margin-bottom: 0.4rem;
}

.content-section a,
.content-article a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms;
}

.content-section a:hover,
.content-article a:hover {
  opacity: 0.5;
}

.content-section strong,
.content-article strong {
  font-weight: 700;
}

/* Section 分区视觉分隔 */
.content-section > section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.content-section > section:last-child {
  border-bottom: none;
}

/* 卡片通用 */
.card {
  border: 2px solid #000;
  border-radius: 28px;
  padding: 1.5rem;
  transition: background 200ms;
}

.card:hover {
  background: #f8f8f8;
}

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

.footer-cta-block {
  border-bottom: 1px solid #333;
  padding: 4rem 1.5rem;
  text-align: center;
  background: #000;
  position: relative;
  overflow: hidden;
}

.footer-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.04;
  pointer-events: none;
}

.footer-cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-cta-title {
  font-family: 'Calistoga', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.footer-cta-desc {
  font-size: 0.95rem;
  color: #aaa;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #222;
}

.footer-dl {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid #222;
}

.footer-dl:last-child {
  border-right: none;
}

.footer-dl dt {
  font-family: 'Calistoga', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-dl dd {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-dl dd a {
  color: #888;
  text-decoration: none;
  transition: color 200ms;
  display: flex;
  align-items: center;
  padding: 0.15rem 0;
  min-height: 32px;
}

.footer-dl dd a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  color: #555;
  letter-spacing: 0.03em;
}

/* ===== STAGGER ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .content-section > section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 400ms ease, transform 400ms ease;
  }

  .content-section > section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-text-col {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 500ms ease 100ms, transform 500ms ease 100ms;
  }

  .hero-text-col.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .hero-media-col {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 500ms ease 200ms, transform 500ms ease 200ms;
  }

  .hero-media-col.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-text-col {
    align-items: flex-start;
    text-align: left;
    order: 1;
  }

  .hero-media-col {
    order: 2;
  }

  .hero-collage {
    height: 300px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-dl {
    border-right: none;
    border-bottom: 1px solid #222;
  }

  .footer-dl:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .anchor-nav ul {
    padding: 0 0.75rem;
  }

  .anchor-nav ul li a {
    padding: 0 0.6rem;
    font-size: 0.72rem;
  }

  .site-main {
    padding: 2.5rem 1rem;
  }

  .footer-cta-block {
    padding: 3rem 1rem;
  }

  .footer-dl {
    padding: 2rem 1rem;
  }

  .hero-grid {
    padding: 2.5rem 1rem;
  }

  .hero-collage {
    height: 240px;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 375px) {
  .hero-h1 {
    font-size: 1.6rem;
  }

  .top-brand-bar__inner {
    padding: 0 1rem;
  }

  .anchor-nav ul li a {
    padding: 0 0.5rem;
    font-size: 0.68rem;
  }
}

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