/* ============================================================
   Duner — shared stylesheet
   Keeps the same visual language as index.html (dark, Geist,
   transparent fixed nav/footer) and adds page + work-card
   + QR modal styles for the sub-pages.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: #fff;
  background: #0b0b0b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- site navbar (fixed top, transparent overlay) ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0));
}
.site-nav .logo {
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
}
.site-nav .nav-links {
  display: flex; gap: 22px;
  font-size: 14px; font-weight: 400;
}
.site-nav .nav-links a {
  opacity: 0.92;
  transition: opacity 200ms ease;
}
.site-nav .nav-links a:hover { opacity: 1; }
.site-nav .nav-links a.active { opacity: 1; }

/* ---------- site footer (fixed bottom, slim, filing + links) ---------- */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px;
  padding: 12px 24px;
  font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.7);
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.site-footer .filing { color: rgba(255,255,255,0.7); }
.site-footer .sep { color: rgba(255,255,255,0.3); margin: 0 2px; }
.site-footer .links { display: flex; gap: 14px; }
.site-footer .links a { transition: color 200ms ease; }
.site-footer .links a:hover { color: #fff; }

/* ---------- page shell ---------- */
.page {
  min-height: 100vh;
  padding: 108px 24px 104px;
}

/* ---------- page hero ---------- */
.page-hero {
  max-width: 1000px;
  margin: 0 auto 56px;
  padding-top: 16px;
}
.page-hero .kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.page-hero h1 .zh {
  margin-left: 14px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  vertical-align: middle;
}
.page-hero .sub {
  margin-top: 18px;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

/* ---------- works layout ---------- */
.works { max-width: 1000px; margin: 0 auto 72px; }
.section-title {
  display: flex; align-items: center; gap: 16px;
  font-size: 1.15rem; font-weight: 500;
  margin-bottom: 24px;
}
.section-title .count {
  font-size: 0.8rem; font-weight: 400;
  color: rgba(255,255,255,0.5);
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.15);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ---------- work card ---------- */
.card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
}
a.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
.card .cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #181818, #242424);
  color: rgba(255,255,255,0.35);
}
.card .cover video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.card .cover.pdf-cover {
  height: 420px;
  aspect-ratio: auto;
  background: #fff;
}
.card .cover.pdf-cover iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.card .cover .icon {
  font-size: 34px;
  line-height: 1;
  opacity: 0.85;
}
.card .cover .play {
  width: 58px; height: 58px; border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: background 200ms ease;
}
a.card:hover .cover .play { background: rgba(255,255,255,0.22); }
.card .cover .placeholder-label {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.card-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-info .tag {
  align-self: flex-start;
  font-size: 11px; letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}
.card-info h3 { font-size: 1rem; font-weight: 500; color: #fff; }
.card-info p { font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,0.55); }

/* ---------- prose (privacy / terms / contact) ---------- */
.prose { max-width: 640px; margin: 0 auto; padding-top: 16px; }
.prose h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; margin-bottom: 10px; }
.prose .updated { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 40px; }
.prose h2 { font-size: 1.1rem; font-weight: 500; margin: 30px 0 12px; }
.prose p { font-size: 0.92rem; line-height: 1.85; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 18px; }
.prose li { font-size: 0.92rem; line-height: 1.8; color: rgba(255,255,255,0.75); }

/* ---------- contact-specific ---------- */
.contact-line {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-line .label { width: 88px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.contact-line .value { font-size: 1rem; }
.contact-line .value a { text-decoration: underline; text-underline-offset: 4px; }
.contact-line .value a:hover { color: rgba(255,255,255,0.7); }
.contact-line .value button.link-btn { text-decoration: underline; text-underline-offset: 4px; }
.contact-line .value button.link-btn:hover { color: rgba(255,255,255,0.7); }

/* ---------- QR modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
}
.modal-card {
  position: relative;
  width: 100%; max-width: 320px;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 30px 28px 26px;
  text-align: center;
}
.modal-card .qr-img {
  width: 200px; height: 200px;
  margin: 0 auto 18px;
  border-radius: 10px;
  background: #fff;
}
.modal-card .phone { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; }
.modal-card .hint { margin-top: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.modal-close {
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  transition: color 200ms ease, border-color 200ms ease;
}
.modal-close:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .site-nav { padding: 18px 40px; }
  .site-footer { padding: 14px 40px; font-size: 13px; }
  .page { padding: 128px 40px 112px; }
  .page-hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .page { padding-left: 64px; padding-right: 64px; }
  .page-hero h1 { font-size: 3.5rem; }
}
