:root {
  --ink: #090b0b;
  --ink-soft: #111414;
  --paper: #f0f0eb;
  --paper-muted: #b9bbb5;
  --line: rgba(240, 240, 235, 0.15);
  --acid: #d8ff45;
  --ice: #bcd8ff;
  --coral: #ff735c;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 86px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s ease, height .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 66px;
  background: rgba(9, 11, 11, .82);
  border-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; position: relative; }
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.brand-mark::before { width: 25px; height: 10px; transform: rotate(-28deg); }
.brand-mark::after { width: 10px; height: 25px; transform: rotate(28deg); }
.brand-mark i { width: 5px; height: 5px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 15px var(--acid); }
.brand-name { font-size: 15px; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); font-size: 13px; }
.site-nav a { position: relative; color: rgba(255,255,255,.7); transition: color .25s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a:not(.nav-contact)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--acid); transition: right .25s ease;
}
.site-nav a:hover::after { right: 0; }
.nav-contact { padding: 11px 18px; border: 1px solid rgba(255,255,255,.35); }
.menu-toggle { display: none; }

.hero { min-height: 100svh; position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
#starfield, #contact-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 35%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--ink)); pointer-events: none;
}
.hero-content { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding-top: 70px; position: relative; z-index: 2; }
.eyebrow, .kicker { margin: 0 0 22px; font-size: 11px; letter-spacing: .22em; color: var(--acid); }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 184px);
  line-height: .86;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 12px 60px rgba(0,0,0,.45);
}
.hero-lead { margin: 34px 0 0; font-family: var(--serif); font-size: clamp(23px, 2.5vw, 38px); color: #dfe5dc; }
.hero-copy { margin: 26px 0 0; color: rgba(240,240,235,.58); font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { height: 48px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 36px; font-size: 13px; transition: all .25s ease; }
.button-primary { color: var(--ink); background: var(--acid); }
.button-primary:hover { background: #ebff9a; transform: translateY(-2px); }
.button-quiet { border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); }
.button-quiet:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.orbit { position: absolute; right: 3vw; top: 15%; width: min(56vw, 720px); aspect-ratio: 1; z-index: -2; opacity: .82; transform: translate3d(var(--orbit-x, 0), var(--orbit-y, 0), 0); transition: transform .2s linear; }
.orbit-core { position: absolute; width: 24%; aspect-ratio: 1; left: 38%; top: 38%; border-radius: 50%; background: #cbd0cb; box-shadow: inset -30px -22px 48px #333a38, inset 16px 12px 30px #fff, 0 0 80px rgba(190,216,255,.2); }
.orbit-core::after { content: ""; position: absolute; inset: 28% 18%; border-radius: 50%; border: 1px solid rgba(20,25,24,.25); transform: rotate(-20deg); }
.orbit-ring { position: absolute; left: 9%; top: 36%; width: 82%; height: 28%; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; transform: rotate(-18deg); }
.orbit-ring-a { border-left-color: transparent; border-bottom-color: rgba(216,255,69,.8); box-shadow: 0 4px 18px rgba(216,255,69,.12); }
.orbit-ring-b { left: 1%; top: 31%; width: 98%; height: 39%; transform: rotate(14deg); border-color: rgba(188,216,255,.12); }
.orbit-satellite { position: absolute; left: 12%; top: 37%; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 22px var(--acid); }
.hero-index { position: absolute; right: clamp(24px, 5vw, 78px); bottom: 54px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.35); font-size: 10px; }
.hero-index i { width: 65px; height: 1px; background: rgba(255,255,255,.2); position: relative; }
.hero-index i::before { content: ""; position: absolute; width: 25%; height: 1px; background: var(--acid); }
.scroll-cue { position: absolute; left: clamp(24px, 5vw, 78px); bottom: 46px; display: flex; align-items: center; gap: 14px; font-size: 9px; letter-spacing: .18em; color: rgba(255,255,255,.38); }
.scroll-cue span { width: 1px; height: 38px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: -100% 0 auto; height: 100%; background: var(--acid); animation: scrollLine 2s ease-in-out infinite; }

.section { padding: 150px max(24px, calc((100vw - 1240px) / 2)); }
.intro { display: grid; grid-template-columns: 220px 1fr; gap: 7vw; }
.section-label { display: flex; align-items: flex-start; gap: 14px; font-size: 10px; letter-spacing: .17em; color: #656a66; }
.section-label span { color: var(--acid); }
.section-label p { margin: 0; }
.intro h2, .section-heading h2, .contact h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.intro h2 { font-size: clamp(38px, 5.1vw, 72px); line-height: 1.34; max-width: 920px; }
.intro-detail { max-width: 720px; margin: 72px 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.intro-detail p { margin: 0; font-size: 14px; line-height: 2; color: #8e938f; }

.manifesto { padding: 22px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto-track { width: max-content; display: flex; gap: 34px; align-items: center; font-size: clamp(32px, 4vw, 62px); font-weight: 700; color: transparent; -webkit-text-stroke: 1px #343a36; animation: marquee 22s linear infinite; }
.manifesto-track i { color: var(--acid); -webkit-text-stroke: 0; font-size: 20px; }

.section-heading { display: grid; grid-template-columns: 220px 1fr; gap: 7vw; align-items: start; margin-bottom: 82px; }
.section-heading h2 { font-size: clamp(40px, 5vw, 70px); line-height: 1.17; }
.work { min-height: 680px; display: grid; grid-template-columns: .78fr 1.3fr; margin-bottom: 52px; background: #171a19; overflow: hidden; }
.work-copy { padding: clamp(42px, 5vw, 76px); display: flex; flex-direction: column; align-items: flex-start; }
.work-number { font-size: 10px; letter-spacing: .2em; color: #727873; }
.work h3 { margin: auto 0 22px; font-family: var(--serif); font-size: clamp(46px, 5vw, 72px); font-weight: 400; line-height: 1; }
.work h3 small { display: block; margin-top: 15px; color: #6e746f; font-family: var(--sans); font-size: 10px; letter-spacing: .26em; }
.work-copy > p { max-width: 380px; margin: 0; color: #929792; font-size: 14px; line-height: 1.9; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 34px 0 0; padding: 0; }
.tags li { padding: 8px 10px; border: 1px solid #373c39; font-size: 8px; letter-spacing: .12em; color: #949a95; }
.work-visual { position: relative; min-width: 0; overflow: hidden; }
.app-visual { background: #d3dcce; min-height: 680px; }
.app-visual::before { content: "TRACE / 01"; position: absolute; right: 25px; top: 28px; color: rgba(20,25,23,.45); font-size: 9px; letter-spacing: .18em; }
.app-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(15,20,18,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(15,20,18,.07) 1px, transparent 1px); background-size: 80px 80px; }
.phone { position: absolute; width: min(38%, 260px); aspect-ratio: .49; padding: 7px; border-radius: 36px; background: #151817; box-shadow: 0 35px 70px rgba(20,28,24,.28); z-index: 2; }
.phone-screen { height: 100%; overflow: hidden; position: relative; border-radius: 30px; padding: 38px 18px 18px; }
.phone-screen::before { content: ""; position: absolute; width: 32%; height: 18px; border-radius: 0 0 12px 12px; top: 0; left: 34%; background: #151817; z-index: 3; }
.phone-back { top: 10%; left: 17%; transform: rotate(-8deg); }
.phone-front { right: 12%; bottom: -7%; transform: rotate(7deg); }
.memory-screen { color: white; background: #242b29; }
.phone-time { position: absolute; top: 14px; left: 18px; font-size: 8px; }
.memory-orb { width: 180px; height: 180px; border-radius: 50%; margin: 45px auto 50px; background: radial-gradient(circle at 60% 33%, #f5ffc8 0 3%, #9cb465 4%, #465238 33%, #242b29 72%); box-shadow: 0 0 40px rgba(216,255,69,.14); }
.memory-screen > p, .note-screen > p { margin: 0 0 10px; font-size: 7px; letter-spacing: .18em; opacity: .48; }
.memory-screen strong { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.45; }
.memory-lines { margin-top: 35px; display: grid; gap: 8px; }
.memory-lines i { display: block; width: 100%; height: 1px; background: rgba(255,255,255,.15); }
.note-screen { color: #141714; background: #f1f0e8; }
.note-screen h4 { margin: 44px 0 35px; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.note-card { padding: 16px; margin-bottom: 10px; background: white; border: 1px solid #dcddd5; }
.note-card span { font-size: 7px; letter-spacing: .12em; color: #6d736c; }
.note-card p { font-family: var(--serif); font-size: 12px; line-height: 1.6; }
.note-card-main { background: #dbef9a; }
.note-screen button { position: absolute; right: 18px; bottom: 18px; border: 0; border-radius: 50%; width: 40px; height: 40px; background: #151817; color: white; }

.work-game { grid-template-columns: 1.3fr .78fr; }
.work-game .work-copy { order: 2; }
.game-visual { min-height: 680px; background: #10161d; }
.game-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 35% 45%, rgba(59,104,136,.24), transparent 30%), radial-gradient(circle at 80% 30%, rgba(255,115,92,.11), transparent 22%); }
.game-planet { position: absolute; width: 72%; aspect-ratio: 1; left: -26%; bottom: -25%; border-radius: 50%; background: radial-gradient(circle at 65% 22%, #dd9781 0 2%, #72453d 3%, #26333c 43%, #0b1016 74%); box-shadow: inset -20px -10px 60px #050708, 0 0 100px rgba(255,115,92,.1); }
.game-ship { position: absolute; left: 52%; top: 39%; width: 90px; height: 20px; border-bottom: 7px solid #cbd3d5; transform: rotate(-14deg); filter: drop-shadow(0 0 12px rgba(188,216,255,.5)); }
.game-ship::before { content: ""; position: absolute; left: 25px; bottom: 0; border-left: 24px solid transparent; border-right: 18px solid transparent; border-bottom: 30px solid #778386; }
.game-ship i { position: absolute; right: 83px; top: 14px; width: 70px; height: 2px; background: linear-gradient(to left, var(--ice), transparent); }
.game-route { position: absolute; right: 9%; top: 20%; height: 50%; width: 30%; border-right: 1px dashed rgba(188,216,255,.28); border-radius: 50%; transform: rotate(-18deg); }
.game-route i { position: absolute; right: -3px; width: 6px; height: 6px; border: 1px solid var(--ice); border-radius: 50%; background: #10161d; }
.game-route i:nth-child(1) { top: 12%; }.game-route i:nth-child(2) { top: 53%; }.game-route i:nth-child(3) { top: 88%; background: var(--coral); border-color: var(--coral); box-shadow: 0 0 14px var(--coral); }
.game-hud { position: absolute; z-index: 2; left: 24px; right: 24px; display: flex; justify-content: space-between; color: rgba(220,231,238,.45); font-size: 8px; letter-spacing: .14em; }
.game-hud-top { top: 24px; }.game-hud-bottom { bottom: 24px; }
.game-message { position: absolute; right: 10%; bottom: 17%; padding: 15px 18px; border-left: 2px solid var(--coral); background: rgba(9,14,19,.7); backdrop-filter: blur(12px); }
.game-message span { display: block; color: var(--coral); font-size: 7px; letter-spacing: .16em; margin-bottom: 8px; }
.game-message strong { font-family: var(--serif); font-size: 15px; font-weight: 400; }

.capability { background: var(--paper); color: var(--ink); }
.capability .section-label { color: #8c908c; }
.capability .section-label span, .capability .kicker { color: #667700; }
.capability-list { border-top: 1px solid #cfd0ca; }
.capability-item { min-height: 146px; display: grid; grid-template-columns: 70px 1fr .8fr 1.3fr; align-items: center; gap: 20px; border-bottom: 1px solid #cfd0ca; transition: padding .3s ease, background .3s ease; }
.capability-item:hover { padding: 0 18px; background: #e5e6df; }
.capability-item > span, .capability-item > p { font-size: 9px; color: #868b86; letter-spacing: .13em; }
.capability-item h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 29px; }
.capability-item > b { font-weight: 400; font-size: 13px; line-height: 1.8; color: #666b67; }
.metrics { margin-top: 130px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cfd0ca; }
.metric { padding: 40px 0; display: flex; align-items: baseline; gap: 15px; border-right: 1px solid #cfd0ca; }
.metric:last-child { border: 0; padding-left: 40px; }
.metric:nth-child(2) { padding-left: 40px; }
.metric strong { font-size: clamp(55px, 6vw, 88px); line-height: 1; font-weight: 400; }
.metric span { font-size: 11px; color: #787d79; }

.contact { min-height: 82vh; display: grid; place-items: center; position: relative; overflow: hidden; text-align: center; }
.contact::before { content: ""; position: absolute; width: min(55vw, 700px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.015), 0 0 0 160px rgba(255,255,255,.01); }
.contact-inner { position: relative; z-index: 2; width: min(850px, 100%); }
.contact h2 { font-size: clamp(56px, 8vw, 112px); line-height: 1.02; }
.contact h2 em { color: var(--acid); font-style: normal; }
.contact-link { width: min(530px, 100%); margin: 65px auto 0; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 20px; transition: border-color .25s ease; }
.contact-link:hover { border-color: var(--acid); }
.contact-link i { font-style: normal; color: var(--acid); }
.contact-address { margin: 30px 0 0; color: #646965; font-size: 9px; letter-spacing: .2em; }
.site-footer { min-height: 110px; padding: 0 clamp(24px, 5vw, 78px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #696e6a; font-size: 10px; letter-spacing: .08em; }
.footer-brand { color: var(--paper); letter-spacing: 0; }
.site-footer > a:last-child { transition: color .2s ease; }.site-footer > a:last-child:hover { color: var(--acid); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes scrollLine { 0% { transform: translateY(0); } 100% { transform: translateY(200%); } }
@keyframes marquee { to { transform: translateX(-34%); } }

@media (max-width: 900px) {
  .site-header { height: 70px; }
  .menu-toggle { position: relative; z-index: 2; display: block; width: 36px; height: 36px; padding: 0; background: none; border: 0; color: white; }
  .menu-toggle span { position: absolute; left: 7px; width: 22px; height: 1px; background: currentColor; transition: transform .25s ease, top .25s ease; }
  .menu-toggle span:first-child { top: 13px; }.menu-toggle span:last-child { top: 22px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; padding: 120px 28px 50px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 28px; background: rgba(9,11,11,.97); transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); }
  .site-nav.open { transform: none; }
  .site-nav a { font-family: var(--serif); font-size: 31px; color: white; }
  .nav-contact { border: 0; padding: 0; color: var(--acid) !important; }
  .hero-content { padding-top: 35px; }
  .hero h1 { font-size: clamp(70px, 20vw, 112px); }
  .orbit { width: 95vw; right: -36vw; top: 26%; opacity: .62; }
  .hero-lead { margin-top: 28px; }
  .hero-copy { font-size: 13px; }
  .hero-index { display: none; }
  .scroll-cue { bottom: 25px; }
  .section { padding-top: 105px; padding-bottom: 105px; }
  .intro, .section-heading { grid-template-columns: 1fr; gap: 55px; }
  .intro-detail { margin-top: 50px; }
  .work, .work-game { grid-template-columns: 1fr; }
  .work-copy, .work-game .work-copy { order: 0; min-height: 440px; }
  .app-visual, .game-visual { min-height: 620px; }
  .capability-item { grid-template-columns: 45px 1fr 1fr; padding: 30px 0; }
  .capability-item > b { grid-column: 2 / -1; }
  .metrics { margin-top: 90px; }
}

@media (max-width: 600px) {
  .brand-name { font-size: 14px; }
  .hero { min-height: calc(100svh - 56px); }
  .hero h1 { max-width: 4em; line-height: .94; }
  .hero-lead { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .button { min-width: 156px; }
  .orbit { width: 120vw; right: -65vw; top: 36%; }
  .scroll-cue { display: none; }
  .section { padding-left: 20px; padding-right: 20px; }
  .intro { padding-top: 64px; }
  .intro h2, .section-heading h2 { font-size: 38px; }
  .intro-detail { grid-template-columns: 1fr; gap: 24px; }
  .manifesto-track { font-size: 34px; }
  .section-heading { margin-bottom: 55px; }
  .work { margin-left: -20px; margin-right: -20px; margin-bottom: 26px; }
  .work-copy { padding: 38px 24px; min-height: 400px; }
  .work h3 { font-size: 46px; }
  .app-visual, .game-visual { min-height: 500px; }
  .phone { width: 47%; border-radius: 27px; padding: 5px; }
  .phone-screen { border-radius: 23px; padding-left: 13px; padding-right: 13px; }
  .phone-back { left: 6%; }.phone-front { right: 5%; }
  .memory-orb { width: 130px; height: 130px; margin: 38px auto 42px; }
  .game-ship { transform: rotate(-14deg) scale(.7); }
  .capability-item { grid-template-columns: 35px 1fr; gap: 12px; }
  .capability-item > p { grid-column: 2; }.capability-item > b { grid-column: 2; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric:nth-child(2), .metric:last-child { padding: 26px 0; border-right: 0; border-bottom: 1px solid #cfd0ca; }
  .contact { min-height: 680px; }
  .contact h2 { font-size: 52px; }
  .contact-link { margin-top: 45px; font-size: 15px; }
  .site-footer { min-height: 150px; flex-wrap: wrap; gap: 14px; padding-top: 26px; padding-bottom: 26px; }
  .site-footer p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
