:root {
  color-scheme: dark;
  --bg: #0b0c16;
  --text: #f4f1fd;
  --muted: #aaa9bd;
  --line: #29263d;
  --violet: #c5b2ff;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: radial-gradient(ellipse 880px 520px at 79% 10%, #17132f, transparent), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #cbb6ff; outline-offset: 4px; }
.skip { position: fixed; left: 18px; top: 10px; z-index: 8; transform: translateY(-160%); background: #27203f; padding: 10px; }
.skip:focus { transform: none; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 4; background: #0c0d17e8; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav, .brand, nav { display: flex; align-items: center; }
.nav { height: 72px; justify-content: space-between; }
.brand { gap: 10px; font-size: 15px; font-weight: 750; }
.brand img { object-fit: contain; }
.brand small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; font-weight: 500; letter-spacing: .13em; }
nav { gap: 26px; color: var(--muted); font-size: 14px; }
nav a:hover, footer a:hover { color: var(--violet); }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 44px; padding: 70px 0 72px; }
.kicker { margin: 0; color: var(--violet); font: 600 11px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .18em; }
.kicker span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #b699ff; box-shadow: 0 0 12px #a16dff; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 19px 0 19px; font-size: clamp(43px, 5.4vw, 79px); line-height: 1.12; letter-spacing: -.065em; }
h1 em { color: #d2c1ff; font-style: normal; }
.lede { max-width: 29rem; color: var(--muted); font-size: clamp(15px, 1.48vw, 18px); line-height: 1.85; margin-bottom: 25px; }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 8px; padding: 12px 16px; color: #171021; background: #cfbaff; font-size: 14px; font-weight: 750; }
.primary:hover { background: #e1d3ff; }
.hero-stage { position: relative; height: clamp(305px, 30vw, 430px); min-width: 0; isolation: isolate; overflow: hidden; border: 1px solid #3b3056; border-radius: 20px; background: radial-gradient(ellipse at 65% 44%, #39275a, #1a1730 60%, #151326); }
.hero-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#bda6ff10 1px, transparent 1px), linear-gradient(90deg, #bda6ff10 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000, #0005); z-index: -1; }
#particles { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.stage-top, .stage-bottom { position: absolute; inset-inline: 20px; display: flex; justify-content: space-between; gap: 8px; color: #d7c8f9; font: 10px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .10em; }
.stage-top { top: 17px; }
.stage-bottom { bottom: 17px; }
.hero-shot { position: absolute; overflow: hidden; border: 1px solid #6e5f91; border-radius: 9px; background: #171629; box-shadow: 0 15px 35px #08061399; }
.hero-shot div { padding: 7px 9px; color: #e0d9fa; font-size: 9px; font-weight: 650; letter-spacing: .09em; }
.hero-shot i { display: inline-block; margin-right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #b59afd; }
.hero-shot img { display: block; width: 100%; height: calc(100% - 24px); object-fit: cover; object-position: top; }
.main-shot { left: 7%; top: 14%; width: 74%; height: 65%; }
.sub-shot { right: 6%; bottom: 12%; width: 49%; height: 49%; transform: rotate(3deg); }
.catalog { border-top: 1px solid var(--line); padding: 36px 0 0; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; }
h2 { font-size: clamp(28px, 3.7vw, 45px); letter-spacing: -.035em; line-height: 1.14; margin: 10px 0 0; }
.project-count { color: var(--muted); padding-bottom: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 19px 0 21px; }
.filters button { border: 1px solid #39344d; background: #171625; color: #c0bed1; border-radius: 7px; padding: 7px 13px; font-size: 13px; }
.filters button:hover { border-color: #a78adc; }
.filters button[aria-pressed="true"] { background: #28213e; border-color: #9a7fe2; color: #eee5ff; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #121321; transition: border-color .18s, transform .18s; }
.card:hover { border-color: #7663a2; transform: translateY(-2px); }
.preview { --preview-bg: #292045; position: relative; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; padding: 15px 15px 25px; aspect-ratio: 1.8; overflow: hidden; background: radial-gradient(ellipse at 45% 5%, #ffffff15, transparent), var(--preview-bg); }
.sand { --preview-bg: #514434; } .mint { --preview-bg: #1a4340; } .teal { --preview-bg: #17383f; } .rose { --preview-bg: #512b44; } .blue { --preview-bg: #23344e; }
.preview img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 5px 9px #0907106e); border-radius: 5px; }
.image-label { position: absolute; bottom: 7px; right: 11px; font-size: 9px; letter-spacing: .05em; color: #fff; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: #aaa7bf; font-size: 10px; letter-spacing: .04em; }
.card-meta span:first-child { color: #dfd2ff; padding: 3px 6px; border-radius: 4px; background: #26213b; }
.card h3 { font-size: 20px; line-height: 1.25; margin: 10px 0 7px; }
.card p { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0 0 15px; }
.detail-button { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 12px 0 1px; border: 0; border-top: 1px solid var(--line); background: none; color: #d9caff; text-align: left; font-size: 13px; font-weight: 650; }
.detail-button:hover { color: #fff; }
.about { display: flex; align-items: center; gap: 18px; padding: 23px; margin-block: 40px; border: 1px solid var(--line); border-radius: 13px; background: #131220; }
.about img { object-fit: contain; }
.about h2 { font-size: 23px; margin: 5px 0 7px; }
.about p:last-child { color: var(--muted); font-size: 13px; margin-bottom: 0; line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 10px; padding: 19px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
dialog { width: min(760px, calc(100% - 28px)); max-height: min(87vh, 850px); padding: 0; color: var(--text); background: #151524; border: 1px solid #51446d; border-radius: 15px; }
dialog::backdrop { background: #06060ed0; backdrop-filter: blur(4px); }
dialog form { position: sticky; top: 0; height: 0; z-index: 1; display: flex; justify-content: end; }
.close { border: 1px solid #5c5074; border-radius: 7px; background: #1d1a30; width: 32px; height: 32px; margin: 13px; font-size: 21px; line-height: 1; }
.detail-copy { padding: 22px 50px 18px 22px; }
.detail-copy h2 { font-size: clamp(23px, 4vw, 36px); }
.detail-copy p:not(.kicker), .detail-copy li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.detail-copy p:not(.kicker) { margin: 8px 0 0; }
.detail-preview { aspect-ratio: 1.85; }
.detail-copy h3 { margin: 0 0 9px; }
.detail-copy ul { margin: 0 0 16px; padding-left: 19px; }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 52px); }
  .hero { gap: 22px; padding-block: 55px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  html { scroll-padding-top: 74px; }
  .wrap { width: calc(100% - 32px); }
  .nav { height: 61px; }
  nav { gap: 14px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 34px; gap: 22px; }
  h1 { margin-block: 12px; font-size: clamp(36px, 11vw, 62px); }
  .lede { margin-bottom: 16px; }
  .hero-stage { height: clamp(240px, 66vw, 340px); }
  .catalog { padding-top: 24px; }
  .grid { grid-template-columns: 1fr; gap: 13px; }
  .card h3 { font-size: 19px; }
  .about { padding: 14px; margin-block: 28px; }
  .about img { width: 45px; height: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
