:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --ink: #1b1a17;
  --muted: #6c675d;
  --line: #e4ddcf;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --accent-soft: #ffe3d9;
  --shadow: 0 1px 0 rgba(27, 26, 23, .04), 0 10px 30px -12px rgba(27, 26, 23, .18);
  --radius: 18px;
  --font: "Space Grotesk", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110f;
    --surface: #1b1a17;
    --ink: #f3efe6;
    --muted: #a39d90;
    --line: #2d2b26;
    --accent: #ff7a5c;
    --accent-ink: #1b1a17;
    --accent-soft: #3a211a;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #12110f; --surface: #1b1a17; --ink: #f3efe6; --muted: #a39d90; --line: #2d2b26;
  --accent: #ff7a5c; --accent-ink: #1b1a17; --accent-soft: #3a211a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, iframe { max-width: 100%; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1080px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; font-size: 18px; }
.ring { width: 20px; height: 20px; border-radius: 50%; border: 5px solid var(--accent); display: inline-block; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 15px; }
.top nav a:hover { color: var(--ink); background: var(--surface); }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero { padding: clamp(56px, 12vw, 140px) 0 clamp(40px, 8vw, 90px); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.hero h1 {
  margin: 0; font-weight: 900; letter-spacing: -.03em; line-height: 1.08;
  font-size: clamp(40px, 8.5vw, 92px);
}
.tagline { margin: 22px 0 0; max-width: 34em; font-size: clamp(18px, 2.4vw, 23px); color: var(--muted); }
.now {
  display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0;
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; color: var(--muted); box-shadow: var(--shadow);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }

.block { padding: 40px 0 64px; border-top: 1px solid var(--line); }
.block h2 {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px;
  margin: 0 0 28px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; font-weight: 800;
}
.block h2 span { font-size: 15px; color: var(--accent); font-weight: 700; font-family: "Space Grotesk", monospace; }
.block h2 small { font-size: 15px; font-weight: 500; color: var(--muted); }

.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-text p { margin: 0 0 16px; }
.chips, .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .icon { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); }
.card h3 { margin: 16px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; flex: 1; }
.tags li { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.work {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.work:hover { transform: translateY(-3px); border-color: var(--accent); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.thumb iframe {
  position: absolute; top: 0; left: 0; width: 400%; height: 400%; max-width: none; border: 0;
  transform: scale(.25); transform-origin: 0 0; pointer-events: none; background: #fff;
}
.meta { padding: 14px 18px 16px; }
.meta h3 { margin: 0; font-size: 17px; }
.meta p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.meta time { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.empty { padding: 40px 24px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 4px 0; font-size: 18px; }
.muted { color: var(--muted); font-size: 15px !important; }

.foot { max-width: 1080px; margin: 0 auto; padding: 32px 16px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.contact a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.contact a:hover { border-color: var(--accent); color: var(--accent); }
.foot p { margin: 0; }
.studio-link { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .top nav a { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
