:root {
  color-scheme: dark;
  --bg: #050607;
  --surface: #0d1012;
  --text: #fff;
  --muted: #b5babd;
  --line: rgba(255, 255, 255, .2);
  --accent: #8ed6dd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { position: absolute; z-index: 20; top: 0; left: 50%; width: min(1320px, calc(100% - 64px)); height: 88px; transform: translateX(-50%); display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.28); }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; font-size: 19px; font-weight: 700; }
.brand-mark { position: relative; width: 27px; height: 17px; border: 2px solid #fff; border-top: 0; transform: skewX(-20deg); }
.brand-mark::after { content: ""; position: absolute; right: -8px; top: -8px; width: 22px; border-top: 2px solid var(--accent); transform: rotate(-25deg); transform-origin: right; }
.nav-links { display: flex; align-items: center; gap: 36px; margin-left: auto; font-size: 13px; font-weight: 600; }
.nav-links a { position: relative; padding: 12px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 100%; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .24s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; color: #fff; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: currentColor; }

.scene { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background-color: #080a0b; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero { background-image: url("/assets/observatory.jpg"); background-position: center 58%; }
.quant-scene { background-image: url("/assets/quant-research.png"); }
.library-scene { background-image: url("/assets/library-interior.jpg"); background-position: center 54%; }
.video-scene { background-image: linear-gradient(115deg, rgba(5,17,33,.52), rgba(7,10,16,.18)), url("/assets/quant-research.png"); background-position: center 62%; }
.scene-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.25) 56%, rgba(0,0,0,.08) 100%), linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 46%, rgba(0,0,0,.28) 100%); }
.scene-content { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 120px 0 10vh; }
.hero-content { padding-bottom: 12vh; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.scene h1, .scene h2 { max-width: 920px; margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: 0; text-wrap: balance; }
.scene h1 { font-size: clamp(58px, 8vw, 112px); }
.scene h2 { font-size: clamp(38px, 5.4vw, 76px); }
.summary { max-width: 650px; margin: 18px 0 32px; color: rgba(255,255,255,.87); font-size: clamp(17px, 1.8vw, 23px); }
.outline-button { position: relative; display: inline-flex; min-width: 168px; min-height: 54px; align-items: center; justify-content: center; padding: 13px 22px; overflow: hidden; border: 2px solid rgba(255,255,255,.88); border-radius: 0; font-size: 14px; font-weight: 700; transition: color .25s ease; }
.outline-button::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #fff; transform: translateY(101%); transition: transform .25s ease; }
.outline-button:hover, .outline-button:focus-visible { color: #050607; }
.outline-button:hover::before, .outline-button:focus-visible::before { transform: translateY(0); }
.image-credit { position: absolute; right: 22px; bottom: 14px; margin: 0; font-size: 10px; color: rgba(255,255,255,.54); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 30px; height: 48px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 14px; top: 0; width: 1px; height: 30px; background: #fff; animation: scroll-pulse 1.7s ease-in-out infinite; }
.scroll-cue span::after { content: ""; position: absolute; left: -4px; bottom: 0; width: 8px; height: 8px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; transform: rotate(45deg); }

.capabilities { padding: 120px max(32px, calc((100% - 1320px) / 2)); background: var(--surface); }
.capability-heading { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 60px; align-items: start; padding-bottom: 70px; }
.capability-heading .eyebrow, .about .eyebrow { color: var(--accent); }
.capability-heading h2, .about h2 { max-width: 850px; margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.2; letter-spacing: 0; }
.capability-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.capability-list article { min-height: 260px; padding: 32px 38px 20px 0; border-right: 1px solid var(--line); }
.capability-list article + article { padding-left: 38px; }
.capability-list article:last-child { border-right: 0; }
.capability-list span { color: var(--accent); font: 12px ui-monospace, monospace; }
.capability-list h3 { margin: 54px 0 10px; font-size: 25px; }
.capability-list p { max-width: 340px; margin: 0; color: var(--muted); }
.about { padding: 130px max(32px, calc((100% - 1320px) / 2)); display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; background: #060708; border-top: 1px solid var(--line); }
.about > p { align-self: end; margin: 0; color: var(--muted); font-size: 16px; }
footer { min-height: 120px; padding: 30px max(32px, calc((100% - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #8d9599; font-size: 12px; border-top: 1px solid var(--line); }
footer div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
footer a:hover, footer a:focus-visible { color: #fff; }

@keyframes scroll-pulse { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(10px); } }

@media (max-width: 760px) {
  .site-header { width: calc(100% - 32px); height: 72px; }
  .brand { font-size: 17px; }
  .nav-toggle { display: block; margin-left: auto; cursor: pointer; }
  .nav-links { position: absolute; top: 72px; left: -16px; right: -16px; display: none; margin: 0; padding: 14px 24px 22px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(5,6,7,.98); border-top: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .scene { min-height: 92svh; }
  .hero { min-height: 100svh; background-position: 63% center; }
  .quant-scene { background-position: 64% center; }
  .library-scene { background-position: 57% center; }
  .scene-shade { background: linear-gradient(90deg, rgba(0,0,0,.73), rgba(0,0,0,.14)), linear-gradient(0deg, rgba(0,0,0,.82), transparent 60%); }
  .scene-content { width: calc(100% - 32px); padding: 100px 0 11vh; }
  .hero-content { padding-bottom: 14vh; }
  .scene h1 { font-size: clamp(52px, 17vw, 76px); }
  .scene h2 { font-size: clamp(35px, 11vw, 52px); }
  .summary { font-size: 17px; }
  .outline-button { min-width: 152px; min-height: 50px; }
  .scroll-cue { display: none; }
  .image-credit { right: 12px; bottom: 9px; font-size: 9px; }
  .capabilities, .about { padding: 82px 16px; }
  .capability-heading, .about { grid-template-columns: 1fr; gap: 28px; }
  .capability-heading { padding-bottom: 42px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list article, .capability-list article + article { min-height: 0; padding: 28px 0 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-list h3 { margin-top: 28px; }
  footer { padding: 30px 16px; align-items: flex-start; flex-direction: column; }
  footer div { justify-content: flex-start; gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
