/* ============ kongjintao 作品集 ============ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1b1b26;
  --border: #262635;
  --border-light: #33334a;
  --accent-orange: #ff6b35;
  --accent-cyan: #00d9ff;
  --accent-green: #00ff88;
  --text-primary: #ececf2;
  --text-secondary: #9a9ab0;
  --text-muted: #62627a;
  --grad: linear-gradient(120deg, #ff6b35 0%, #ff9557 40%, #00d9ff 100%);
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 背景光球 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.16; }
.orb-1 { width: 560px; height: 560px; background: #ff6b35; top: -160px; right: -120px; animation: drift 22s ease-in-out infinite alternate; }
.orb-2 { width: 480px; height: 480px; background: #00d9ff; bottom: -140px; left: -140px; animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 360px; height: 360px; background: #7c5cff; top: 45%; left: 42%; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.15); }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4%;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-logo { font-weight: 700; font-size: 1.06rem; letter-spacing: 0.4px; display: flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #0a0a0f; font-size: 0.95rem; font-weight: 800;
}
.nav-logo .dot { color: var(--text-muted); font-weight: 400; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  padding: 7px 14px; border-radius: 9px; font-size: 0.9rem; color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.nav-accent { color: #ffb48f !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 92px; text-align: center; }
.hero-hello { color: var(--accent-cyan); font-size: 0.98rem; letter-spacing: 5px; }
.hero-name {
  font-size: clamp(3rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: 2px; line-height: 1.15;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0 10px;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-primary); font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { max-width: 640px; margin: 22px auto 0; color: var(--text-secondary); font-size: 1.02rem; }
.hero-desc b { color: var(--text-primary); }

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 44px 0 38px;
}
.stat {
  min-width: 150px; padding: 18px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028); border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--border-light); }
.stat-num {
  display: block; font-size: 2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
  padding: 13px 30px; border-radius: 11px; font-size: 0.95rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--grad); color: #0a0a0f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.35); }
.btn-ghost { border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }

/* ---------- 通用 Section ---------- */
.section { padding: 86px 0; }
.section-tag { color: var(--accent-orange); font-size: 0.82rem; letter-spacing: 4px; font-weight: 700; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin: 6px 0 8px; }
.project { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.project-alt { background: linear-gradient(180deg, rgba(0, 217, 255, 0.028), transparent 30%); }
.project-sub { color: var(--text-secondary); font-size: 1.02rem; }

/* ---------- 技能 ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 34px; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--border-light); background: var(--bg-card-hover); }
.skill-head { font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.skill-ico { font-size: 1.2rem; }

/* ---------- 徽章 / Chips ---------- */
.badge {
  display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-secondary);
}
.badge-orange { background: rgba(255, 107, 53, 0.13); border-color: rgba(255, 107, 53, 0.45); color: #ffb48f; }
.badge-cyan { background: rgba(0, 217, 255, 0.1); border-color: rgba(0, 217, 255, 0.4); color: #7ce4ff; }
.project-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 4px 12px; border-radius: 8px; font-size: 0.82rem; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text-primary); border-color: var(--border-light); }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }

/* ---------- 项目双栏 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 42px; align-items: start; }
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-shots { order: 1; }
.col-text p { color: var(--text-secondary); }
.col-text p b { color: var(--text-primary); }

.feature-list { list-style: none; margin: 22px 0 6px; }
.feature-list li {
  padding: 11px 14px 11px 16px; border-left: 3px solid transparent; border-radius: 0 10px 10px 0;
  color: var(--text-secondary); font-size: 0.94rem; margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.025); transition: border-color 0.2s, background 0.2s;
}
.feature-list li b { color: var(--text-primary); }
.feature-list li:hover { border-left-color: var(--accent-orange); background: rgba(255, 107, 53, 0.06); }
#weibo .feature-list li:hover { border-left-color: var(--accent-cyan); background: rgba(0, 217, 255, 0.05); }

/* ---------- 架构流程图 ---------- */
.arch { margin-top: 26px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.arch-title { font-size: 0.85rem; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 14px; font-weight: 700; }
.arch-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.arch-node {
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 9px 14px; font-size: 0.85rem; font-weight: 600; text-align: center; line-height: 1.45;
}
.arch-node i { font-style: normal; color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }
.arch-arrow { color: var(--accent-orange); font-weight: 700; }
#weibo .arch-arrow { color: var(--accent-cyan); }

/* ---------- 截图 ---------- */
.col-shots { display: flex; flex-direction: column; gap: 16px; }
.shot {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; cursor: zoom-in;
}
.shot:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: var(--shadow); }
.shot img { border-radius: 9px; width: 100%; }
.shot figcaption { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding: 9px 4px 4px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot-pair .shot figcaption { font-size: 0.76rem; }

/* ---------- 真实产出 ---------- */
.results { margin-top: 52px; }
.results-title { font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.result-card {
  background: #fff; border-radius: var(--radius); padding: 12px; cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.result-card img { border-radius: 9px; }
.result-card figcaption { text-align: center; color: #444; font-size: 0.82rem; padding-top: 8px; font-weight: 600; }

/* ---------- 下载 ---------- */
.dl-note { color: var(--text-secondary); margin-bottom: 28px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.dl-card:hover { transform: translateY(-5px); border-color: var(--accent-orange); box-shadow: var(--shadow); }
.dl-ico { font-size: 2rem; }
.dl-name { font-weight: 800; font-size: 1.12rem; margin: 10px 0 4px; }
.dl-info { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.dl-btn {
  display: inline-block; padding: 9px 26px; border-radius: 9px; font-size: 0.88rem; font-weight: 700;
  background: var(--grad); color: #0a0a0f;
}

/* ---------- 联系 ---------- */
.contact-wrap { text-align: center; }
.contact-desc { color: var(--text-secondary); max-width: 520px; margin: 6px auto 30px; }
.contact-cards { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 220px; padding: 26px 30px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.c-ico { font-size: 1.6rem; }
.c-name { font-weight: 700; }
.c-val { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 30px 0 36px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.footer-sub { font-size: 0.78rem; margin-top: 4px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(5, 5, 9, 0.92); backdrop-filter: blur(6px); padding: 4%;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: var(--shadow); }
.lb-close {
  position: absolute; top: 18px; right: 26px; background: rgba(255, 255, 255, 0.08);
  border: none; color: #fff; font-size: 2rem; width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; line-height: 1;
}
.lb-close:hover { background: rgba(255, 107, 53, 0.6); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 首页作品卡片 ---------- */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.proj-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.proj-card:hover { transform: translateY(-6px); border-color: var(--border-light); box-shadow: var(--shadow); }
.proj-shot { overflow: hidden; border-bottom: 1px solid var(--border); background: #000; }
.proj-shot img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: top; transition: transform 0.4s; }
.proj-card:hover .proj-shot img { transform: scale(1.04); }
.proj-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.proj-no { color: var(--accent-orange); font-size: 0.75rem; letter-spacing: 3px; font-weight: 700; }
.proj-card:nth-child(2) .proj-no { color: var(--accent-cyan); }
.proj-title { font-size: 1.28rem; font-weight: 800; }
.proj-desc { color: var(--text-secondary); font-size: 0.92rem; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.proj-link { color: var(--accent-orange); font-weight: 700; font-size: 0.9rem; margin-top: 4px; }
.proj-card:nth-child(2) .proj-link { color: var(--accent-cyan); }
.proj-card:hover .proj-link { text-decoration: underline; }

/* ---------- 详情页 ---------- */
.detail { padding-top: 118px; }
.crumb { display: inline-block; color: var(--text-muted); font-size: 0.86rem; margin-bottom: 14px; transition: color 0.2s; }
.crumb:hover { color: var(--text-primary); }
.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- 模型下载表 ---------- */
.models-block { margin-top: 64px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; }
.models-title { font-size: 1.15rem; font-weight: 800; margin: 4px 0 18px; }
.model-table-wrap { overflow-x: auto; }
.model-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 760px; }
.model-table th {
  text-align: left; padding: 10px 12px; color: var(--text-muted); font-weight: 700;
  border-bottom: 1px solid var(--border-light); white-space: nowrap; letter-spacing: 1px;
}
.model-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; line-height: 1.65; }
.model-table td b { color: var(--text-primary); }
.model-table tr:last-child td { border-bottom: none; }
.model-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.muted { color: var(--text-muted); font-size: 0.78rem; font-weight: 400; }
.dl-mini {
  display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;
  background: var(--grad); color: #0a0a0f; white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s;
}
.dl-mini:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35); }
.model-note { margin-top: 14px; color: var(--text-muted); font-size: 0.8rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col .col-text, .two-col .col-shots { order: initial !important; }
  .col-shots { margin-top: 8px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: rgba(10, 10, 15, 0.97); border-bottom: 1px solid var(--border); padding: 12px 6%;
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 128px; }
  .proj-grid { grid-template-columns: 1fr; }
  .stat { min-width: 128px; padding: 14px 18px; }
  .shot-pair { grid-template-columns: 1fr; }
  .arch-flow { gap: 8px; }
  .arch-arrow { width: 100%; text-align: center; }
}

.footer-beian { margin-top: 6px; font-size: 0.78rem; }
.footer-beian a { color: var(--text-muted); transition: color 0.2s; }
.footer-beian a:hover { color: var(--text-secondary); }

/* ---------- 山水背景 / 项目内导航 ---------- */
:root { --accent-orange: #e6b880; --accent-cyan: #83ccca; --text-secondary: #b4bfca; --text-muted: #929dac; --border: #2a3945; --border-light: #527579; --grad: linear-gradient(120deg, #efc18b 0%, #e4d2b3 42%, #83ccca 100%); }
body { background: #0b151e; isolation: isolate; }
button { font: inherit; }
:focus-visible { outline: 2px solid #9ce1da; outline-offset: 5px; }
[id] { scroll-margin-top: 96px; }
.landscape { position: absolute; top: 0; left: 0; width: 100%; height: 900px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 18, 29, .18), rgba(7, 18, 29, .24) 46%, #0b151e 100%), url('../img/guofeng-night.webp') center top / cover no-repeat; }
.nav { background: rgba(10, 23, 33, .88); }
.nav-links a { padding: 7px 10px; }
.nav-links a[aria-current="page"] { color: #edcca2; background: rgba(231, 191, 140, .1); }
.hero { text-align: left; padding: 160px 0 100px; }
.hero .container { padding-right: 34%; }
.hero-desc { margin: 24px 0 0; color: #c7d0d8; }
.hero-hello { color: #b4e4dc; }
.hero-stats { justify-content: flex-start; gap: 12px; margin: 36px 0 32px; }
.stat { min-width: 0; flex: 1 1 125px; padding: 14px 12px; background: rgba(10, 26, 37, .67); }
.stat-num { font-size: 1.75rem; }
.stat-label { font-size: .74rem; }
.hero-cta { justify-content: flex-start; }
.section { padding-bottom: 72px; }
.skill-card, .proj-card, .dl-card, .contact-card, .models-block { background: rgba(17, 30, 41, .95); }
.proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proj-body { padding: 22px; }
.proj-title { font-size: 1.15rem; }
.proj-card:nth-child(3) .proj-no, .proj-card:nth-child(3) .proj-link { color: #c8b4ec; }
.project-sections { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; margin: 28px 0 38px; color: #c7d0d8; font-size: .9rem; }
.project-sections a:hover { color: #efc18b; }
.detail .two-col { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: rgba(11, 24, 35, .93); gap: 30px; }
.two-col > * { min-width: 0; }
.badge-jade { color: #a9ddd2; background: rgba(87, 158, 146, .12); border-color: #527579; }
.project-note { padding: 16px 18px; border-left: 2px solid #83ccca; background: rgba(131, 204, 202, .06); font-size: .9rem; }
.project-framework { margin-top: 56px; }
.framework-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 18px; }
.framework-image { position: relative; display: block; padding: 12px; border: 2px solid #566369; border-radius: 16px; background: #e9eceb; cursor: zoom-in; transition: transform .22s, border-color .22s, box-shadow .22s; }
.framework-image img { width: 100%; border-radius: 6px; }
.zoom-mark { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.8rem; line-height: 1; color: #d8efec; background: #182f3a; border-radius: 10px; opacity: .72; transition: opacity .22s, transform .22s; }
.framework-image:hover, .framework-image:focus-visible { transform: translateY(-4px); border-color: #9ce1da; box-shadow: 0 14px 40px rgba(100, 201, 190, .18); }
.framework-image:hover .zoom-mark, .framework-image:focus-visible .zoom-mark { opacity: 1; transform: scale(1.1); }
.voice-workflow { margin-top: 56px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.workflow-grid article { padding: 26px; background: #111e29; border: 1px solid var(--border); border-radius: 14px; }
.step-no { color: #9dbdbd; font-size: .78rem; letter-spacing: 3px; }
.workflow-grid h3 { margin: 12px 0 8px; font-size: 1.04rem; }
.workflow-grid p { color: var(--text-secondary); font-size: .92rem; }
.project-pagination { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); margin-top: 52px; padding-top: 24px; color: var(--accent-cyan); }

/* 原生图片查看器：适应窗口和可滚动原尺寸两种视图。 */
.viewer-open { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; width: 96vw; max-width: none; height: 94dvh; max-height: none; margin: auto; padding: 0; border: 1px solid #527579; border-radius: 14px; color: #ececf2; background: #0c1720; box-shadow: var(--shadow); }
.image-viewer::backdrop { background: rgba(3, 9, 15, .92); backdrop-filter: blur(8px); }
.image-viewer[open] { display: flex; flex-direction: column; }
.viewer-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.viewer-toolbar p { flex: 1; font-size: .9rem; line-height: 1.4; }
.viewer-toolbar button { flex-shrink: 0; min-height: 42px; padding: 6px 14px; border: 1px solid #527579; border-radius: 8px; color: #ececf2; background: #1a303b; cursor: pointer; }
#viewerClose { font-size: 1.8rem; padding: 0 14px; }
.viewer-stage { flex: 1; min-height: 0; overflow: auto; display: flex; padding: 16px; }
.viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; cursor: zoom-in; flex-shrink: 0; }
.viewer-stage.expanded { display: block; }
.viewer-stage.expanded img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
@media (max-width: 1040px) {
  .nav-logo .dot { display: none; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 8px; font-size: .85rem; }
  .hero .container { padding-right: 22%; }
  .proj-grid { gap: 14px; }
  .proj-body { padding: 18px; }
}
@media (max-width: 760px) {
  .landscape { height: 820px; background-position: 60% top; }
  .hero { padding: 130px 0 68px; }
  .hero .container { padding-right: 0; }
  .hero-desc { max-width: 32em; }
  .hero-stats { max-width: 460px; }
  .stat { flex: 1 1 40%; padding: 12px 16px; }
  .hero-name { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .nav-links { background: #0e1d29; padding: 14px 4%; gap: 2px; }
  .nav-links a { display: block; padding: 10px 14px; }
  .proj-grid, .workflow-grid { grid-template-columns: 1fr; }
  .detail .two-col { padding: 18px; }
  .detail-cta .btn { padding: 12px 19px; }
  .project-framework, .voice-workflow { margin-top: 38px; }
  .framework-image { padding: 6px; border-radius: 10px; }
  .zoom-mark { width: 30px; height: 30px; font-size: 1.5rem; top: 12px; right: 12px; opacity: 1; }
  .models-block { padding: 22px 18px; }
  .viewer-toolbar { padding: 10px; gap: 8px; }
  .viewer-toolbar p { font-size: .75rem; }
  .viewer-toolbar button { padding: 6px 10px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
