:root {
  --ink: #101214;
  --muted: #68717b;
  --line: #dfe3e7;
  --soft: #f5f6f4;
  --paper: #fbfbfa;
  --accent: #6d5cff;
  --accent-soft: #eeecff;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-header { height: 76px; max-width: var(--max); padding: 0 28px; margin: 0 auto; display:flex; align-items:center; justify-content:space-between; border-bottom: 1px solid var(--line); }
.brand { display:flex; gap:11px; align-items:center; letter-spacing:.03em; }
.brand-mark { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background: var(--ink); color:#fff; font-size:13px; font-weight:700; }
.brand strong,.brand small { display:block; line-height:1.2; }
.brand strong { font-size:12px; letter-spacing:.16em; }
.brand small { margin-top:3px; color:var(--muted); font-size:10px; letter-spacing:.04em; }
.top-nav { display:flex; gap:26px; color:var(--muted); font-size:13px; }
.top-nav a:hover { color:var(--ink); }
.section-shell { max-width:var(--max); margin:0 auto; padding-left:28px; padding-right:28px; }
.hero { min-height: 520px; display:grid; grid-template-columns: 1.25fr .75fr; gap:68px; align-items:center; padding-top:86px; padding-bottom:82px; }
.eyebrow { margin:0 0 16px; color:var(--muted); font-size:11px; line-height:1.2; letter-spacing:.18em; font-weight:700; }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:24px; font-size:clamp(42px, 6vw, 72px); letter-spacing:-.06em; line-height:1.08; font-weight:720; }
h1 span { color:var(--accent); }
.hero-lede { max-width:590px; margin-bottom:30px; color:var(--muted); font-size:16px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; }
.button { display:inline-flex; align-items:center; gap:18px; min-height:44px; padding:0 17px; border:1px solid var(--ink); font-size:13px; font-weight:650; transition:.2s ease; }
.button-dark { background:var(--ink); color:#fff; }
.button-light { background:transparent; }
.button:hover { transform:translateY(-2px); }
.button span { font-size:16px; line-height:1; }
.hero-aside { align-self:stretch; display:flex; flex-direction:column; justify-content:flex-end; padding-bottom:6px; }
.hero-rule { width:100%; height:1px; margin-bottom:24px; background:var(--ink); }
.aside-label { color:var(--muted); font-size:11px; letter-spacing:.18em; font-weight:700; }
.stat-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:15px; margin:5px 0 30px; }
.stat-grid div { border-top:1px solid var(--line); padding-top:10px; }
.stat-grid strong { display:block; font-size:34px; letter-spacing:-.06em; line-height:1; }
.stat-grid span { display:block; color:var(--muted); margin-top:5px; font-size:12px; }
.aside-note { max-width:230px; margin:0; color:var(--muted); font-size:13px; }
.works-section,.projects-section { padding-top:80px; padding-bottom:84px; }
.projects-section { border-top:1px solid var(--line); }
.section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:30px; }
h2 { margin-bottom:0; font-size:36px; letter-spacing:-.05em; line-height:1.1; }
.section-intro { max-width:390px; margin:0; color:var(--muted); font-size:14px; text-align:right; align-self:flex-end; }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:25px; }
.filter { border:1px solid var(--line); background:transparent; color:var(--muted); padding:8px 12px; cursor:pointer; font-size:12px; }
.filter span { margin-left:7px; color:inherit; opacity:.7; }
.filter:hover,.filter.is-active { border-color:var(--ink); color:var(--ink); background:#fff; }
.filter.is-active { box-shadow:inset 0 -2px var(--accent); }
.works-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.work-card { min-height:280px; display:flex; flex-direction:column; border:1px solid var(--line); background:#fff; transition:.22s ease; }
.work-card:hover { border-color:#a9aeb4; transform:translateY(-3px); box-shadow:0 12px 30px rgba(16,18,20,.06); }
.work-card[hidden] { display:none; }
.card-visual { height:132px; border-bottom:1px solid var(--line); overflow:hidden; background:var(--soft); }
.card-visual img { width:100%; height:100%; display:block; object-fit:cover; }
.card-visual.pdf-visual,.card-visual.file-visual { display:flex; align-items:flex-end; justify-content:space-between; padding:17px; background:linear-gradient(140deg, #f0efff, #fbfbfa 65%); }
.file-glyph { font-size:40px; line-height:1; letter-spacing:-.08em; font-weight:750; color:var(--accent); }
.file-meta { color:var(--muted); font-size:11px; }
.card-content { display:flex; flex-direction:column; flex:1; padding:17px; }
.card-topline { display:flex; justify-content:space-between; gap:12px; align-items:center; color:var(--muted); font-size:11px; }
.card-kind { color:var(--accent); font-weight:700; letter-spacing:.08em; }
.work-card h3 { margin:15px 0 8px; font-size:18px; line-height:1.28; letter-spacing:-.03em; }
.card-description { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:18px; }
.card-tags { display:flex; flex-wrap:wrap; gap:5px; }
.card-actions { display:flex; align-items:center; gap:12px; }
.tag { display:inline-flex; padding:4px 7px; background:var(--soft); color:var(--muted); font-size:10px; }
.text-link { border:0; padding:0; background:none; color:var(--ink); cursor:pointer; font-size:12px; font-weight:700; white-space:nowrap; }
.text-link:hover { color:var(--accent); }
.format-note { display:flex; align-items:center; gap:9px; margin-top:18px; color:var(--muted); font-size:12px; }
.note-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); }
.projects-list { display:grid; gap:12px; }
.project-card { display:grid; grid-template-columns: minmax(210px,.7fr) minmax(0,1.3fr); gap:26px; padding:25px; border:1px solid var(--line); background:#fff; }
.project-card + .project-card { margin-top:0; }
.project-index { color:var(--accent); font-size:11px; letter-spacing:.16em; font-weight:700; }
.project-card h3 { margin:13px 0 8px; font-size:25px; letter-spacing:-.04em; line-height:1.2; }
.project-summary { max-width:340px; margin:0; color:var(--muted); font-size:13px; }
.project-main { display:flex; flex-direction:column; justify-content:space-between; gap:22px; }
.project-details { margin:0; color:var(--muted); font-size:13px; }
.project-files { display:flex; flex-wrap:wrap; gap:7px; }
.file-chip { display:inline-flex; align-items:center; gap:8px; padding:9px 11px; border:1px solid var(--line); background:var(--paper); font-size:12px; }
.file-chip:hover { border-color:var(--ink); background:#fff; }
.file-chip strong { color:var(--accent); font-size:10px; letter-spacing:.06em; }
.prototype-strip { display:flex; gap:7px; overflow:auto; padding-top:3px; }
.prototype-thumb { width:76px; height:60px; flex:0 0 auto; border:1px solid var(--line); object-fit:cover; cursor:pointer; }
.prototype-thumb:hover { border-color:var(--accent); }
.about-section { display:grid; grid-template-columns:1fr .9fr 1.2fr; gap:32px; padding-top:30px; padding-bottom:90px; align-items:start; }
.about-line { width:100%; height:1px; margin-top:7px; background:var(--ink); }
.about-section h2 { font-size:28px; }
.about-copy { max-width:420px; color:var(--muted); font-size:13px; margin:0; }
.site-footer { border-top:1px solid var(--line); }
.footer-inner { min-height:76px; display:flex; justify-content:space-between; align-items:center; gap:20px; color:var(--muted); font-size:11px; }
.modal { position:fixed; inset:0; display:none; z-index:20; }
.modal.is-open { display:block; }
.modal-backdrop { position:absolute; inset:0; background:rgba(16,18,20,.55); backdrop-filter:blur(3px); }
.modal-dialog { position:relative; width:min(920px, calc(100% - 28px)); height:min(86vh, 760px); margin:7vh auto 0; display:flex; flex-direction:column; background:var(--paper); box-shadow:0 22px 80px rgba(0,0,0,.24); }
.modal-header { min-height:76px; display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--line); }
.modal-header h3 { margin:0; font-size:20px; letter-spacing:-.03em; }
.icon-button { width:34px; height:34px; border:1px solid var(--line); background:#fff; cursor:pointer; font-size:24px; line-height:1; }
.icon-button:hover { border-color:var(--ink); }
.modal-body { flex:1; min-height:0; padding:16px; overflow:auto; }
.modal-body iframe { width:100%; height:100%; min-height:480px; border:1px solid var(--line); background:#fff; }
.modal-body img { display:block; max-width:100%; max-height:62vh; margin:0 auto; object-fit:contain; }
.modal-caption { margin:12px 0 0; color:var(--muted); font-size:12px; text-align:center; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.gallery-grid img { width:100%; aspect-ratio:4/3; max-height:none; object-fit:cover; border:1px solid var(--line); cursor:pointer; }
.gallery-grid img:hover { border-color:var(--accent); }
.download-panel { display:flex; min-height:100%; align-items:center; justify-content:center; text-align:center; padding:32px; }
.download-panel p { color:var(--muted); font-size:14px; }
@media (max-width: 860px) {
  .hero { grid-template-columns:1fr; gap:46px; padding-top:64px; }
  .hero-aside { max-width:500px; }
  .works-grid { grid-template-columns:repeat(2,1fr); }
  .about-section { grid-template-columns:1fr 1fr; }
  .about-line { grid-column:1/-1; }
  .about-copy { grid-column:1/-1; }
}
@media (max-width: 620px) {
  .site-header { height:68px; padding:0 18px; }
  .section-shell { padding-left:18px; padding-right:18px; }
  .top-nav { gap:13px; font-size:12px; }
  .brand strong { font-size:10px; }
  .brand small { font-size:9px; }
  .hero { min-height:0; padding-top:56px; padding-bottom:66px; }
  h1 { font-size:43px; }
  .hero-lede { font-size:14px; }
  .section-heading { display:block; }
  .section-intro { margin-top:15px; }
  .works-section,.projects-section { padding-top:62px; padding-bottom:66px; }
  .works-grid { grid-template-columns:1fr; }
  .project-card { grid-template-columns:1fr; padding:18px; gap:18px; }
  .project-card h3 { font-size:22px; }
  .about-section { grid-template-columns:1fr; gap:20px; padding-bottom:70px; }
  .about-line,.about-copy { grid-column:auto; }
  .footer-inner { min-height:90px; display:block; padding-top:20px; padding-bottom:20px; }
  .footer-inner span { display:block; }
  .footer-inner span + span { margin-top:7px; }
  .modal-dialog { height:88vh; margin-top:6vh; }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
}

.hero-only { min-height: 250px; display:flex; align-items:center; }
.hero-only .hero-lede { max-width:none; margin:0; color:var(--ink); font-size:clamp(24px,4vw,42px); letter-spacing:-.045em; }
@media (max-width: 620px) { .hero-only { min-height:210px; } .hero-only .hero-lede { font-size:28px; } }

