:root {
  --bg: #070707;
  --panel: #111111;
  --panel-2: #161616;
  --text: #f4f1ea;
  --muted: #9b9b95;
  --line: rgba(255,255,255,.12);
  --acid: #d8ff3e;
  --orange: #ff6a2a;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section, [id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 3%, rgba(216,255,62,.08), transparent 21rem),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { color: var(--acid); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; color: #d8d8d2; font-size: 13px; background: rgba(255,255,255,.035); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 24px; border-radius: 99px; border: 1px solid var(--line); font-weight: 800; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.btn.primary { background: var(--text); color: #0a0a0a; }
.btn.acid { background: var(--acid); color: #090a05; border-color: var(--acid); }

.site-header { position: fixed; z-index: 30; inset: 18px 0 auto; }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(7,7,7,.78); backdrop-filter: blur(18px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #0a0a0a; font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 26px; color: #c7c7c0; font-size: 13px; }
.nav-links a:hover { color: var(--acid); }
.menu-btn { display: none; border: 0; background: transparent; color: var(--text); font-size: 24px; }

.hero { min-height: 920px; display: grid; align-items: center; padding: 136px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 68px; }
.hero h1 { margin: 14px 0 58px; font-size: clamp(76px, 10vw, 148px); line-height: .95; letter-spacing: -.065em; }
.hero h2 { margin: 0; max-width: 620px; font-size: clamp(28px, 3.3vw, 48px); line-height: 1.16; letter-spacing: -.035em; }
.hero-copy > p { max-width: 570px; margin: 26px 0; font-size: 17px; line-height: 1.8; color: #aaa9a3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; height: 650px; }
.hero-card { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: 0 28px 80px rgba(0,0,0,.55); background: #151515; }
.hero-card img { height: 100%; object-fit: cover; }
.hero-card.one { width: 68%; height: 61%; top: 7%; left: 5%; transform: rotate(-3deg); }
.hero-card.two { width: 54%; height: 40%; top: 39%; right: 0; transform: rotate(5deg); }
.hero-card.three { width: 48%; height: 35%; bottom: 0; left: 10%; transform: rotate(2deg); }
.hero-badge { position: absolute; z-index: 4; right: 8%; top: 9%; width: 130px; height: 130px; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--acid); color: #0a0a0a; font-size: 13px; font-weight: 900; line-height: 1.25; transform: rotate(9deg); }

section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-head h2 { margin: 12px 0 0; max-width: 800px; font-size: clamp(42px, 6vw, 78px); line-height: 1.08; letter-spacing: -.045em; }
.section-head p { max-width: 430px; margin: 0; line-height: 1.75; color: var(--muted); }

.profile-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 14px; }
.stat-card { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #171717, #0f0f0f); display: flex; flex-direction: column; justify-content: space-between; }
.stat-card.main { background: linear-gradient(145deg, rgba(216,255,62,.12), #101010 55%); }
.stat-card strong { font-size: clamp(42px,5vw,70px); line-height: 1; letter-spacing: -.04em; }
.stat-card h3 { margin: 0 0 10px; font-size: 24px; }
.stat-card p { margin: 0; line-height: 1.6; color: var(--muted); }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.capability { min-height: 220px; padding: 28px; border-right: 1px solid var(--line); background: #0d0d0d; }
.capability:last-child { border-right: 0; }
.capability h3 { margin: 16px 0 20px; font-size: 25px; }

.statement { border-radius: 34px; padding: clamp(34px,6vw,80px); background: var(--acid); color: #0a0a0a; border: 0; }
.statement-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.statement h2 { margin: 0; font-size: clamp(48px,7vw,90px); letter-spacing: -.05em; line-height: 1.06; }
.statement p { margin: 0; font-size: 18px; line-height: 1.7; }

.featured-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.work-card { position: relative; min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--panel); }
.work-card:nth-child(1), .work-card:nth-child(4) { grid-column: span 7; }
.work-card:nth-child(2), .work-card:nth-child(3) { grid-column: span 5; }
.work-card img { height: 100%; object-fit: cover; transition: .6s cubic-bezier(.2,.8,.2,1); }
.work-card:hover img { transform: scale(1.035); }
.work-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.work-copy { position: absolute; z-index: 2; inset: auto 28px 28px; }
.work-copy small { color: var(--acid); font-weight: 800; letter-spacing: .1em; }
.work-copy h3 { margin: 10px 0; font-size: clamp(26px,3vw,40px); line-height: 1.15; letter-spacing: -.035em; }
.work-copy p { max-width: 600px; margin: 0; color: #c3c3bd; line-height: 1.55; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { grid-column: span 4; margin: 0; overflow: hidden; border-radius: 20px; background: #111; border: 1px solid var(--line); }
.gallery figure.wide { grid-column: span 8; }
.gallery img { aspect-ratio: 4/3; height: 100%; object-fit: cover; transition: .35s ease; }
.gallery figure:hover img { transform: scale(1.025); }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.contact-grid h2 { margin: 14px 0 28px; font-size: clamp(54px,8vw,102px); line-height: 1.04; letter-spacing: -.055em; }
.contact-grid > div > p { max-width: 660px; color: var(--muted); line-height: 1.7; }
.contact-card { border: 1px solid var(--line); background: var(--panel); border-radius: 26px; padding: 12px 28px; }
.contact-row { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row span { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.contact-row strong { text-align: right; }
footer { padding: 35px 0 50px; border-top: 1px solid var(--line); color: #777; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

/* Works index */
.sub-hero { padding: 180px 0 100px; }
.sub-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.sub-hero h1 { margin: 16px 0 30px; font-size: clamp(64px,9vw,126px); line-height: 1; letter-spacing: -.055em; }
.sub-hero p { max-width: 620px; font-size: 18px; line-height: 1.8; color: var(--muted); }
.sub-collage { position: relative; min-height: 620px; }
.sub-collage img { position: absolute; width: 72%; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 25px 60px rgba(0,0,0,.45); }
.sub-collage img:nth-child(1){top:0;right:0;transform:rotate(3deg)}
.sub-collage img:nth-child(2){top:29%;left:0;transform:rotate(-4deg)}
.sub-collage img:nth-child(3){bottom:0;right:5%;transform:rotate(2deg)}
.project-list { display: grid; gap: 16px; }
.project-row { display: grid; grid-template-columns: 90px 1.1fr 1fr auto; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 22px; transition: .25s ease; }
.project-row:hover { background: #111; border-color: rgba(216,255,62,.45); }
.project-row img { width: 90px; height: 70px; object-fit: cover; border-radius: 12px; }
.project-row h3 { margin: 0; font-size: 25px; }
.project-row p { margin: 0; color: var(--muted); line-height: 1.55; }
.project-row b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: #000; }

/* Project detail */
.project-hero { padding: 170px 0 70px; }
.project-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--line); color: var(--muted); }
.project-hero h1 { margin: 40px 0 36px; max-width: 1050px; font-size: clamp(54px,8.5vw,118px); letter-spacing: -.05em; line-height: 1.04; }
.project-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.project-intro p { margin: 0; font-size: 18px; line-height: 1.8; color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; }
.project-cover { margin-top: 70px; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); }
.project-cover img { max-height: 820px; object-fit: cover; }
.project-gallery { padding-top: 30px; }
.project-gallery figure { margin: 0 0 20px; overflow: hidden; border-radius: 22px; background: #111; }
.project-gallery img { height: auto; }
.project-end { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 80px 0; }
.project-end h2 { margin: 0; font-size: clamp(38px,5vw,68px); line-height: 1.1; letter-spacing: -.04em; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 20px; right: 20px; padding: 24px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 20px; background: #0c0c0c; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .sub-hero-grid, .statement-grid, .contact-grid, .project-intro { grid-template-columns: 1fr; }
  .hero-art { height: 520px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .capabilities { grid-template-columns: 1fr; }
  .capability { border-right: 0; border-bottom: 1px solid var(--line); }
  .capability:last-child { border-bottom: 0; }
  .section-head { align-items: start; flex-direction: column; }
  .work-card, .work-card:nth-child(n) { grid-column: span 12; min-height: 450px; }
  .gallery figure, .gallery figure.wide { grid-column: span 6; }
  .project-row { grid-template-columns: 90px 1fr auto; }
  .project-row p { display: none; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .hero-grid { grid-template-columns: .95fr 1.05fr; gap: 38px; }
  .hero-art { height: 590px; }
  .hero-card.one { width: 66%; left: 3%; }
  .hero-card.two { width: 51%; right: 2%; }
  .hero-card.three { width: 46%; left: 7%; }
  .hero-badge { right: 10%; width: 108px; height: 108px; font-size: 11px; }
}

@media (max-width: 580px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  section { padding: 82px 0; }
  .site-header { inset: 10px 0 auto; }
  .hero { padding: 118px 0 72px; }
  .hero-grid { gap: 25px; }
  .hero h1 { margin-bottom: 34px; font-size: 68px; line-height: 1; }
  .hero h2 { font-size: 29px; line-height: 1.2; }
  .hero-copy > p { margin: 22px 0; font-size: 16px; line-height: 1.75; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { min-width: 0; padding-inline: 12px; white-space: nowrap; }
  .hero-art { height: 430px; margin-top: 10px; }
  .hero-card { border-radius: 18px; }
  .hero-card.one { width: 72%; height: 58%; left: 2%; }
  .hero-card.two { width: 57%; height: 39%; right: 1%; }
  .hero-card.three { width: 51%; height: 34%; left: 7%; bottom: 3%; }
  .hero-badge { width: 96px; height: 96px; font-size: 11px; }
  .profile-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 190px; }
  .featured-grid { display: block; }
  .work-card { margin-bottom: 14px; min-height: 400px !important; }
  .gallery figure, .gallery figure.wide { grid-column: span 12; }
  .contact-grid { gap: 35px; }
  .footer-row, .project-end, .project-meta { align-items: start; flex-direction: column; }
  .sub-hero { padding-top: 140px; }
  .sub-collage { min-height: 430px; }
  .project-row { grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px; }
  .project-row img { width: 72px; height: 60px; }
  .project-row h3 { font-size: 18px; }
  .project-hero { padding-top: 135px; }
  .project-meta { gap: 12px; font-size: 12px; line-height: 1.5; }
  .project-cover { margin-top: 42px; border-radius: 18px; }
  .project-gallery figure { border-radius: 14px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 60px; }
  .hero h2 { font-size: 25px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-art { height: 390px; }
  .pill { padding: 8px 11px; font-size: 12px; }
  .contact-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-row strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
