/* Home visual owner: cinematic composition, quiet controls. */
#home, #home * { all: revert; box-sizing: border-box; margin: 0; padding: 0; }
#home[hidden] { display: none !important; }
#home {
  --home-text: #edf0f5;
  --home-muted: #aab2c0;
  --home-accent: #abc5ec;
  --home-title-note: #d7b58e;
  --home-control: rgba(14, 19, 27, .82);
  --home-control-hover: rgba(28, 37, 50, .94);
  --home-control-line: rgba(237, 240, 245, .24);
  --home-control-radius: 11px;
  --home-gutter: clamp(14px, 4.1vw, 20px);
  position: relative;
  min-width: 0;
  min-height: 100svh;
  color-scheme: dark;
  color: var(--home-text);
  background: #0b0d0e url('intro-poster.jpg') center 18% / cover no-repeat;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: opacity 160ms ease;
}
#home #intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(.82) contrast(1.02) brightness(.92);
  opacity: 0;
  pointer-events: none;
}
#home #intro-video.is-playing { opacity: 1; }
#home .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,5,6,.02) 48%, rgba(3,5,6,.7) 100%),
    linear-gradient(90deg, rgba(2,4,5,.9) 0%, rgba(2,4,5,.58) 30%, rgba(2,4,5,.12) 58%, rgba(2,4,5,.02) 100%);
}
#home .site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  width: min(1280px, calc(100% - 96px));
  align-items: center;
  justify-content: flex-end;
  padding-top: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
}
#home .nav-toggle { display: none; }
#home .top-nav { display: flex; align-items: center; gap: 12px; }
#home .top-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--home-control-radius);
  color: var(--home-text);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(0,0,0,.85);
  transition: color 180ms ease, background-color 180ms ease;
}
#home .top-nav a:hover { background: rgba(14,19,27,.3); color: #fff; }
#home .top-nav a:active { background: rgba(14,19,27,.5); }
#home .top-agent-link span { color: var(--home-accent); }
#home a { cursor: pointer; touch-action: manipulation; }
#home a:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 3px;
}
#home .hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  pointer-events: none;
}
#home .intro {
  position: absolute;
  top: 51%;
  left: max(5%, calc((100% - 1280px) / 2));
  width: min(390px, 33%);
  transform: translateY(-50%);
  pointer-events: auto;
}
#home .eyebrow { color: var(--home-muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
#home .intro h1 { margin: 18px 0 24px; line-height: 1; }
#home .hero-brand { display: block; color: #fff; font-size: 66px; font-weight: 780; letter-spacing: -.055em; }
#home .site-descriptor { display: block; margin-top: 11px; color: var(--home-title-note); font-size: 29px; font-weight: 520; line-height: 1.15; }
#home .home-manifesto {
  max-width: 390px;
  margin: 2px 0 22px;
  padding-left: 15px;
  border-left: 2px solid rgba(171,197,236,.6);
  color: var(--home-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}
#home .home-manifesto-copy > span { display: inline; }
#home .lead { color: #d4d8d7; font-size: 16px; line-height: 1.75; }
#home .lead p { font-family: 'Songti SC', SimSun, Georgia, serif; }
#home .lead cite { display: block; margin-top: 8px; color: var(--home-muted); font-size: 11px; font-style: normal; }
#home .hero-agent-link {
  display: inline-flex;
  width: 240px;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 0 16px;
  border: 1px solid var(--home-control-line);
  border-radius: var(--home-control-radius);
  background: var(--home-control);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  color: var(--home-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}
#home .hero-agent-link span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  background: rgba(171,197,236,.09);
  color: var(--home-accent);
  font-size: 17px;
  line-height: 1;
}
#home .hero-agent-link:hover { background: var(--home-control-hover); border-color: rgba(171,197,236,.65); }
#home .hero-agent-link:active { background: #141c29; border-color: var(--home-accent); }
#home .home-footnote { position: absolute; bottom: 6.5%; left: max(7%, calc((100% - 1280px) / 2)); color: var(--home-muted); font-size: 9px; font-weight: 500; }
@media (max-width: 900px) and (min-width: 621px) {
  #home .site-header { width: calc(100% - 48px); }
  #home .top-nav { gap: 6px; }
  #home .top-nav a { font-size: 13px; padding-inline: 8px; }
  #home .intro { width: min(340px, 42%); }
  #home .hero-brand { font-size: 58px; }
}
@media (max-width: 620px) {
  #home { min-height: var(--viewport-height, 100svh); }
  #home #intro-video { filter: none; }
  #home .overlay {
    background: linear-gradient(180deg, rgba(10,16,20,.28) 0%, rgba(10,16,20,.02) 31%, rgba(8,13,18,.04) 55%, rgba(7,12,18,.7) 100%),
      linear-gradient(90deg, rgba(8,13,18,.12), transparent 72%);
  }
  #home .site-header {
    left: 0;
    width: 100%;
    justify-content: center;
    padding: calc(env(safe-area-inset-top) + 8px) var(--home-gutter) 0;
    transform: none;
  }
  #home .top-nav { width: 100%; justify-content: space-between; gap: 2px; }
  #home .top-nav a { min-width: 44px; min-height: 44px; gap: 4px; padding: 0 3px; font-size: 12px; }
  #home .top-agent-link span { display: none; }
  #home .hero {
    display: flex;
    align-items: flex-end;
    min-height: var(--viewport-height, 100svh);
    padding: 130px var(--home-gutter) calc(18px + env(safe-area-inset-bottom));
  }
  #home .intro { position: static; display: grid; width: 100%; transform: none; }
  #home .intro .eyebrow { margin-bottom: 8px; font-size: 8px; letter-spacing: .17em; }
  #home .intro h1 { margin: 0 0 12px; }
  #home .hero-brand { font-size: clamp(39px, 11.5vw, 48px); }
  #home .site-descriptor { margin-top: 3px; font-size: clamp(15px, 4.2vw, 18px); }
  #home .home-manifesto { max-width: 300px; margin: 2px 0 14px; padding-left: 10px; font-size: 12.5px; line-height: 1.55; }
  #home .home-manifesto-copy > span { display: block; }
  #home .lead { max-width: 300px; padding: 4px 0 4px 13px; border-left: 2px solid rgba(171,197,236,.4); font-size: 15px; line-height: 1.6; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
  #home .lead cite { margin-top: 4px; font-size: 10px; }
  #home .hero-agent-link { margin-top: 16px; font-size: 13px; }
  #home .home-footnote { display: none; }
}
@media (max-width: 350px) {
  #home .top-nav { gap: 0; }
  #home .top-nav a { padding: 0 2px; font-size: 11px; }
}
@media (max-height: 520px) and (min-width: 621px) {
  #home .hero { min-height: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  #home, #home *, #home *::before, #home *::after { transition: none; animation: none; scroll-behavior: auto; }
}
@media (forced-colors: active) {
  #home .top-nav a, #home .hero-agent-link { color: LinkText; }
  #home .hero-agent-link { background: Canvas; border-color: ButtonText; }
  #home a:focus-visible { outline-color: Highlight; }
}
