:root {
  --bg: #07090c;
  --panel: #0d1116;
  --ink: #f4f2ec;
  --muted: #92989e;
  --line: rgba(255, 255, 255, .13);
  --acid: #d9ff43;
  --blue: #6ce5ff;
  --pad: clamp(22px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }
::selection { color: #080a0d; background: var(--acid); }

.noise { position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .045; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 5px; height: 5px; background: var(--acid); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(217,255,67,.55); transition: width .2s, height .2s, border-color .2s, background .2s; }
.cursor-ring.hovering { width: 58px; height: 58px; border-color: var(--acid); background: rgba(217,255,67,.08); }

.topbar { position: fixed; z-index: 80; inset: 0 0 auto; height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); background: linear-gradient(180deg, rgba(7,9,12,.92), rgba(7,9,12,0)); transition: background .3s, height .3s, box-shadow .3s; }
.topbar.scrolled { height: 68px; background: rgba(7,9,12,.74); backdrop-filter: blur(18px) saturate(1.15); border-bottom: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--acid); color: #090b0d; font-weight: 900; font-size: 13px; letter-spacing: -.06em; }
.brand-name { font-size: 11px; letter-spacing: .16em; font-weight: 650; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.nav-link { position: relative; padding: 10px 0; color: #a9aeb3; font-size: 13px; transition: color .2s; }
.nav-link span { margin-right: 7px; color: #545a61; font-size: 9px; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 0; height: 1px; background: var(--acid); transition: width .25s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle { display: none; padding: 8px; border: 0; background: none; }
.menu-toggle span { display: block; width: 26px; height: 1px; margin: 6px 0; background: #fff; }

.hero { --mouse-x: 50%; --mouse-y: 50%; position: relative; min-height: 100svh; padding: clamp(130px, 17vh, 190px) var(--pad) 88px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: clamp(45px, 6vw, 100px); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: -20%; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(217,255,67,.12), transparent 17%), radial-gradient(circle at 82% 38%, rgba(108,229,255,.13), transparent 28%); transition: opacity .5s ease; }
.hero:hover::before { opacity: 1; }
.hero-grid { position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(130px); pointer-events: none; }
.glow-one { width: 38vw; height: 38vw; right: -8%; top: 5%; background: rgba(45, 128, 255, .18); }
.glow-two { width: 26vw; height: 26vw; right: 22%; bottom: -10%; background: rgba(217, 255, 67, .11); }
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.availability { width: max-content; display: flex; align-items: center; gap: 9px; margin-bottom: clamp(26px, 5vh, 48px); padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; color: #aeb4b9; background: rgba(255,255,255,.025); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); font-size: 9px; letter-spacing: .14em; }
.availability i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(217,255,67,.09); animation: pulse 2s infinite; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: #a5abb0; font-size: clamp(10px, .9vw, 12px); letter-spacing: .19em; }
.eyebrow span { color: var(--acid); padding: 0 5px; }
h1 { margin: 0; font-size: clamp(48px, 6.45vw, 104px); line-height: .95; letter-spacing: -.07em; font-weight: 750; }
h1 span { display: inline-block; white-space: nowrap; }
h1 em, h2 em { color: var(--acid); font-family: Georgia, "Songti SC", serif; font-weight: 400; }
.hero-intro { max-width: 620px; margin: 32px 0 0; color: #a6acb1; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.9; }
.hero-intro strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.button { display: flex; align-items: center; justify-content: space-between; min-width: 154px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; transition: color .25s, background .25s, border-color .25s, transform .25s; }
.button-primary { color: #0b0d0f; background: var(--acid); border-color: var(--acid); }
.button-ghost { background: rgba(255,255,255,.025); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.button-ghost:hover { color: #0b0d0f; background: #fff; border-color: #fff; box-shadow: 0 14px 34px rgba(255,255,255,.12); }
.button span { font-size: 18px; }

.hero-visual { height: min(64vh, 650px); min-height: 480px; perspective: 1000px; }
.visual-card { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 30px 90px rgba(0,0,0,.38); will-change: transform; transition: transform .15s ease-out; }
.visual-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, transparent 35%, rgba(255,255,255,.22), transparent 65%); transform: translateX(-130%); animation: sheen 6s 2s infinite; }
.visual-main { width: min(72%, 430px); height: 83%; right: 8%; top: 5%; transform: rotate(3deg); }
.visual-main img { height: 100%; object-fit: cover; }
.visual-float { width: min(35%, 195px); height: 43%; left: 2%; bottom: 5%; transform: rotate(-7deg); }
.visual-float img { height: 100%; object-fit: cover; }
.image-index { position: absolute; right: 10px; top: 10px; padding: 6px 8px; color: #111; background: var(--acid); font-size: 8px; letter-spacing: .1em; }
.coordinate { position: absolute; right: -5px; bottom: 0; color: #757c82; font-size: 9px; letter-spacing: .16em; line-height: 1.7; }
.orbit { position: absolute; border: 1px solid rgba(108,229,255,.18); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px var(--blue); }
.orbit-a { width: 370px; height: 370px; left: 4%; top: 12%; }
.orbit-a::before { left: 36px; top: 44px; }
.orbit-b { width: 510px; height: 510px; right: -13%; top: -2%; animation-direction: reverse; animation-duration: 28s; }
.orbit-b::before { right: 72px; bottom: 42px; }
.hero-meta { position: absolute; z-index: 3; left: var(--pad); bottom: 30px; display: flex; gap: clamp(20px, 4vw, 56px); }
.hero-meta div { display: grid; gap: 5px; }
.hero-meta span { color: #5e656b; font-size: 9px; letter-spacing: .1em; }
.hero-meta strong { font-size: 10px; font-weight: 450; letter-spacing: .06em; }
.scroll-hint { position: absolute; z-index: 3; right: var(--pad); bottom: 27px; display: flex; align-items: center; gap: 12px; color: #777e84; font-size: 8px; letter-spacing: .18em; }
.scroll-hint span { display: block; width: 36px; height: 1px; background: var(--acid); animation: scrollLine 1.8s infinite; transform-origin: right; }

.section { padding: clamp(100px, 14vw, 190px) var(--pad); }
.works { position: relative; background: #f0eee8; color: #111318; }
.works .section-kicker { color: #777b7d; }
.section-head { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 60px; margin-bottom: 64px; }
.section-head h2, .about h2, .contact h2 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: 1.03; letter-spacing: -.065em; }
.works h2 em { color: #3449e6; }
.section-note { max-width: 420px; margin: 0 0 8px; color: #6e7376; font-size: 13px; line-height: 1.85; }
.filters { display: flex; gap: 7px; margin-bottom: 32px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.16); overflow-x: auto; }
.filter { flex: none; padding: 10px 14px; border: 1px solid rgba(0,0,0,.18); border-radius: 100px; background: transparent; cursor: pointer; font-size: 11px; transition: .25s; }
.filter span { margin-left: 8px; color: #96999b; font-size: 8px; }
.filter:hover, .filter.active { color: #fff; background: #111318; border-color: #111318; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.project-card { position: relative; cursor: pointer; transition: opacity .32s, transform .42s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.project-card.featured { grid-column: span 2; }
.project-card.hidden { display: none; }
.project-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #d8d6d0; }
.project-card.featured .project-media { aspect-ratio: 16 / 10; }
.project-card[data-category="detail"] .project-media img { object-position: top center; }
.project-media img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s; }
.project-card:hover .project-media img { transform: scale(1.07); filter: saturate(1.08); }
.project-card:focus-visible { outline: 2px solid #3449e6; outline-offset: 7px; }
.project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.22) 46%, transparent 62%); transform: translateX(-130%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-media::after { transform: translateX(130%); }
.project-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; background: rgba(11,13,15,.18); transition: opacity .3s; }
.project-card:hover .project-overlay { opacity: 1; }
.view-circle { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: #111; background: var(--acid); font-size: 10px; letter-spacing: .06em; transform: scale(.7); transition: transform .35s; }
.project-card:hover .view-circle { transform: scale(1); }
.project-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 15px 2px 30px; border-bottom: 1px solid rgba(0,0,0,.16); }
.project-category { display: inline-block; margin-bottom: 8px; color: #3449e6; font-size: 9px; letter-spacing: .12em; }
.project-info h3 { margin: 0 0 7px; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.03em; }
.project-info p { margin: 0; color: #777b7d; font-size: 10px; letter-spacing: .08em; }
.project-num { color: #8a8d8f; font-size: 9px; letter-spacing: .12em; }

.about { background: var(--bg); }
.about-statement { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8vw; }
.about-statement .section-kicker { grid-column: 1 / -1; }
.about-statement p:last-child { align-self: end; max-width: 530px; margin: 0 0 8px; color: #9aa0a5; font-size: clamp(14px, 1.15vw, 17px); line-height: 2; }
.capability-list { margin: 110px 0 80px; border-top: 1px solid var(--line); }
.capability-list article { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 20px; padding: 28px 4px; border-bottom: 1px solid var(--line); transition: padding .3s, color .3s, background .3s; }
.capability-list article:hover { padding-left: 22px; padding-right: 22px; color: #111; background: var(--acid); }
.capability-list article > span { color: #666d73; font-size: 10px; }
.capability-list h3 { margin: 0 0 6px; font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.04em; }
.capability-list p { margin: 0; color: #777e84; font-size: 10px; letter-spacing: .09em; }
.capability-list article:hover p, .capability-list article:hover > span { color: #343a32; }
.capability-list b { font-size: 24px; font-weight: 400; }
.tools { overflow: hidden; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tools > p { margin: 0 0 18px; color: #646b70; font-size: 9px; letter-spacing: .18em; }
.tool-track { display: flex; align-items: center; width: max-content; color: #cdd0d2; font-size: clamp(18px, 2vw, 30px); letter-spacing: -.03em; animation: marquee 28s linear infinite alternate; }
.tool-track i { width: 5px; height: 5px; margin: 0 28px; border-radius: 50%; background: var(--acid); }
.experience { margin-top: 100px; }
.experience-title { display: flex; justify-content: space-between; padding-bottom: 18px; color: #6d7479; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .14em; }
.experience-title strong { color: var(--acid); font-weight: 500; }
.experience-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding-top: 32px; }
.experience-main h3 { margin: 0 0 8px; font-size: clamp(23px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.04em; }
.experience-main p { margin: 0; color: #8f969b; font-size: 13px; line-height: 1.9; }

.contact { position: relative; min-height: 88vh; padding: clamp(100px, 13vw, 180px) var(--pad) 42px; display: flex; flex-direction: column; justify-content: center; color: #101215; background: var(--acid); overflow: hidden; }
.contact .section-kicker { color: #505637; }
.contact h2 { position: relative; z-index: 2; max-width: 1050px; font-size: clamp(52px, 8vw, 120px); }
.contact h2 em { color: #3449e6; }
.contact-orb { position: absolute; width: 42vw; height: 42vw; right: -8vw; top: 0; border: 1px solid rgba(16,18,21,.18); border-radius: 50%; box-shadow: inset 0 0 0 5vw rgba(255,255,255,.08), inset 0 0 0 10vw rgba(255,255,255,.06); animation: float 8s ease-in-out infinite; }
.contact-links { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 70px 0 100px; }
.contact-link { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 22px 0; border-bottom: 1px solid rgba(16,18,21,.32); }
.contact-link span { grid-column: 1 / -1; margin-bottom: 12px; color: #555c3a; font-size: 9px; letter-spacing: .15em; }
.contact-link strong { font-size: clamp(17px, 2vw, 28px); font-weight: 550; letter-spacing: -.03em; }
.contact-link b { font-size: 25px; font-weight: 400; transition: transform .25s; }
.contact-link:hover b { transform: translate(5px,-5px); }
.footer-bottom { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(16,18,21,.28); }
.footer-bottom .brand-mark { color: var(--acid); background: #111; }
.footer-bottom p { margin: 0; font-size: 9px; line-height: 1.7; letter-spacing: .1em; }
.back-top { padding: 10px 0; border: 0; border-bottom: 1px solid #111; background: none; cursor: pointer; font-size: 9px; letter-spacing: .14em; }

.modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; opacity: 0; transition: visibility .4s, opacity .4s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(10px); }
.modal-panel { position: absolute; inset: 20px; display: grid; grid-template-columns: minmax(260px, .38fr) minmax(0, .62fr); overflow: hidden; color: var(--ink); background: #0b0e12; transform: translateY(35px) scale(.985); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.modal.open .modal-panel { transform: none; }
.modal-close { position: absolute; z-index: 5; right: 22px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(8,10,13,.65); cursor: pointer; font-size: 25px; }
.modal-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 78px); border-right: 1px solid var(--line); }
.modal-type { color: var(--acid); font-size: 9px; letter-spacing: .16em; }
.modal-info h2 { margin: 15px 0 22px; font-size: clamp(32px, 4vw, 62px); line-height: 1.05; letter-spacing: -.055em; }
.modal-info > p:not(.modal-type) { color: #91989e; font-size: 13px; line-height: 1.9; }
.modal-count { margin-top: 50px; color: #5e666c; font-size: 9px; letter-spacing: .14em; }
.modal-gallery { overflow-y: auto; padding: clamp(50px, 6vw, 90px) clamp(20px, 4vw, 60px); scroll-behavior: smooth; }
.modal-gallery img { margin-bottom: 24px; background: #171b20; }
.modal-gallery img.tall { max-width: 790px; margin-left: auto; margin-right: auto; }

.reveal { opacity: 0; transform: translateY(35px) scale(.985); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(217,255,67,0); } }
@keyframes sheen { 0%,55% { transform: translateX(-130%); } 75%,100% { transform: translateX(130%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollLine { 50% { transform: scaleX(.35); } }
@keyframes marquee { to { transform: translateX(-20%); } }
@keyframes float { 50% { transform: translateY(30px) rotate(8deg); } }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr .75fr; }
  .hero-visual { min-height: 420px; height: 52vh; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card.featured { grid-column: span 2; }
  .about-statement { grid-template-columns: 1fr; row-gap: 40px; }
  .experience-main { grid-template-columns: .8fr 1.2fr; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .cursor-dot, .cursor-ring { display: none; }
  .topbar { height: 70px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 80px var(--pad); background: rgba(7,9,12,.97); transform: translateY(-100%); transition: transform .4s ease; }
  .nav.open { transform: none; }
  .nav-link { width: 100%; padding: 14px 0; font-size: 28px; border-bottom: 1px solid var(--line); }
  .hero { min-height: auto; display: block; padding-top: 125px; padding-bottom: 120px; }
  .availability { margin-bottom: 30px; }
  h1 { font-size: clamp(47px, 15vw, 72px); }
  .hero-intro { margin-top: 25px; }
  .hero-visual { height: 510px; margin-top: 55px; }
  .visual-main { right: 0; width: 78%; }
  .visual-float { width: 38%; left: 0; }
  .orbit-b { display: none; }
  .hero-meta { position: static; margin-top: 45px; flex-wrap: wrap; }
  .scroll-hint { display: none; }
  .section { padding-top: 105px; padding-bottom: 105px; }
  .section-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 45px; }
  .section-head h2, .about h2 { font-size: 48px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.featured { grid-column: 1 / -1; }
  .project-card .project-media, .project-card.featured .project-media { aspect-ratio: 4 / 3; }
  .project-card:nth-child(even) .project-media { aspect-ratio: 3 / 4; }
  .project-info { padding-bottom: 26px; }
  .capability-list { margin-top: 75px; }
  .capability-list article { grid-template-columns: 38px 1fr auto; }
  .experience-main { grid-template-columns: 1fr; gap: 30px; }
  .contact { min-height: 100svh; }
  .contact h2 { font-size: 55px; }
  .contact-links { grid-template-columns: 1fr; margin: 55px 0 80px; }
  .footer-bottom { grid-template-columns: auto 1fr; }
  .back-top { grid-column: 1 / -1; justify-self: start; }
  .modal-panel { inset: 8px; display: block; overflow-y: auto; }
  .modal-info { min-height: 55vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-gallery { overflow: visible; }
}

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