:root {
  --bg: #0e0d0c;
  --surface: #181614;
  --line: #2c2925;
  --text: #f1ece4;
  --muted: #9b948a;
  --accent: #e8b04b;
  --radius: 14px;
  --max: 1100px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(14, 13, 12, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 2px solid var(--accent); border-radius: 6px; color: var(--accent);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

/* Layout */
main > section { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding-top: 110px !important; }
.section-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 36px; display: flex; gap: 14px; align-items: baseline; }
.section-title span { color: var(--accent); font-size: 14px; font-family: ui-monospace, monospace; }

/* Hero */
.hero { padding-top: 120px !important; }
.eyebrow { color: var(--accent); letter-spacing: .3em; font-size: 12px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 8vw, 88px); line-height: 1.1; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); max-width: 560px; margin: 24px 0 34px; font-size: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--accent); cursor: pointer; font: inherit; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #1a1408; }
.btn.ghost { background: transparent; color: var(--accent); }

.filmstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 70px; }
.filmstrip span {
  aspect-ratio: 3 / 4; border-radius: 6px; background: var(--surface); border: 1px solid var(--line);
  animation: flicker 7s infinite;
}
.filmstrip span:nth-child(n) { animation-delay: calc(var(--i, 0) * 1s); }
@keyframes flicker {
  0%, 12% { background: var(--accent); }
  15%, 100% { background: var(--surface); }
}

/* Frames */
.frames { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; transition: border-color .2s; }
.frame:hover { border-color: var(--accent); }
.frame b { color: var(--accent); font-size: 12px; letter-spacing: .15em; font-family: ui-monospace, monospace; }
.frame h3 { font-size: 22px; margin: 8px 0 6px; }
.frame p { color: var(--muted); font-size: 15px; }

/* Work */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; cursor: pointer; font: inherit; }
.chip.active { color: #1a1408; background: var(--accent); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { cursor: pointer; }
.card.hidden { display: none; }
.thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); margin-bottom: 12px; transition: transform .3s; }
.card:hover .thumb { transform: scale(1.02); }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 14px; }
.t1 { background: linear-gradient(135deg, #1f3b4d, #0b1218 60%, #e8b04b33); }
.t2 { background: linear-gradient(160deg, #f4d3a1, #6aa1b5 70%, #213a4a); }
.t3 { background: linear-gradient(120deg, #3b2a1d, #8a5a35 55%, #d9b98c); }
.t4 { background: linear-gradient(180deg, #111, #2a1f3d 60%, #c74b4b); }
.t5 { background: linear-gradient(200deg, #e86f4b, #3a2a3f 65%, #0e0d0c); }
.t6 { background: linear-gradient(90deg, #2f3e2a, #a5b58a 60%, #efe7d4); }

/* About */
.about-body > p { font-size: 20px; max-width: 720px; color: var(--muted); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 40px; }
.stats li { border-top: 2px solid var(--accent); padding-top: 14px; }
.stats strong { font-size: 48px; display: block; line-height: 1.1; }
.stats span { color: var(--muted); }

/* Contact */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
.contact-form input, .contact-form textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.form-status { min-height: 1.7em; color: var(--accent); }

.footer { text-align: center; color: var(--muted); padding: 80px 16px 40px; font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .contact-form { grid-template-columns: 1fr; }
  .filmstrip { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
