:root {
  --bg: #0d0c0a;
  --bg-2: #161310;
  --paper: #efe6d6;
  --muted: #b7aa96;
  --line: rgba(239, 230, 214, 0.14);
  --accent: #e35b2a;
  --gold: #d6b07a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: "Syne", "Noto Serif SC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 90;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 42px; height: 42px;
  border: 1px solid rgba(239, 230, 214, 0.45);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor.on-link {
  width: 64px; height: 64px;
  background: rgba(227, 91, 42, 0.16);
  border-color: var(--accent);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--paper);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #090807;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.loader-name {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 600;
  letter-spacing: 0.18em;
}
.loader-bar {
  width: 160px;
  height: 1px;
  margin: 8px auto 0;
  background: var(--line);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: load 1.15s var(--ease) forwards;
}
@keyframes load { to { width: 100%; } }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  mix-blend-mode: difference;
}
.nav-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 13px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.nav-cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  border: 1px solid currentColor;
  padding: 8px 14px;
}
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 60;
}

.hero {
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(227, 91, 42, 0.22), transparent 55%),
    radial-gradient(700px 420px at 8% 110%, rgba(214, 176, 122, 0.12), transparent 50%);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero-title {
  display: grid;
  gap: 6px;
}
.hero-cn {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(64px, 14vw, 168px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0.08em;
}
.hero-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 4vw, 42px);
  color: var(--gold);
  letter-spacing: 0.08em;
}
.hero-lead {
  max-width: 520px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--muted);
  font-weight: 500;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  border: 1px solid var(--paper);
  transition: transform .35s var(--ease), background .35s, color .35s;
}
.btn-solid { background: var(--paper); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost:hover { background: var(--paper); color: var(--bg); }
.hero-index {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 48px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-index strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}
.hero-index span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: slide 28s linear infinite;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
}
.marquee i { font-style: normal; color: var(--accent); font-size: 16px; }
@keyframes slide { to { transform: translateX(-50%); } }

section { padding: 110px 40px; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2,
.contact h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.2;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(160deg, #1b1712, #2a2118 55%, #12100d);
}
.portrait-orb {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0c38a, #e35b2a 55%, transparent 70%);
  top: 18%; left: 12%;
  filter: blur(2px);
  opacity: 0.9;
}
.portrait-orb.second {
  width: 120px; height: 120px;
  top: auto; bottom: 12%; left: auto; right: 10%;
  background: radial-gradient(circle at 40% 40%, #efe6d6, #7a6a52 70%, transparent 72%);
  opacity: 0.55;
}
.portrait-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 92px;
  font-weight: 600;
  mix-blend-mode: overlay;
}
.portrait-cap {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.about-copy p {
  font-size: 18px;
  color: #d8cfbf;
  margin-bottom: 18px;
  max-width: 58ch;
}
.facts {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.facts li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 4px;
}

.work { padding-top: 40px; }
.case {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.case-lg { padding-top: 8px; border-top: 0; }
.case-visual {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #14110e;
}
.case-lg .case-visual { min-height: 420px; }
.case-no {
  position: absolute;
  top: 18px; left: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  z-index: 2;
}
.v1 { background: radial-gradient(circle at 70% 40%, rgba(227,91,42,.35), transparent 42%), #151210; }
.orbit {
  position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(239,230,214,.25);
  border-radius: 50%;
  right: 12%; top: 18%;
  animation: spin 22s linear infinite;
}
.orbit::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  top: -7px; left: 50%;
}
.v2 { background: linear-gradient(180deg, #1a1612, #0f0d0b); }
.bars {
  position: absolute;
  inset: 48px 40px 36px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  transform-origin: bottom;
  animation: rise 2.8s var(--ease) infinite alternate;
}
.bars i:nth-child(1) { height: 42%; animation-delay: 0s; }
.bars i:nth-child(2) { height: 78%; animation-delay: .2s; }
.bars i:nth-child(3) { height: 55%; animation-delay: .4s; }
.bars i:nth-child(4) { height: 92%; animation-delay: .1s; }
.bars i:nth-child(5) { height: 36%; animation-delay: .3s; }
.v3 { background: #12100e; }
.grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(239,230,214,.42) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 60% 50%, #000 20%, transparent 72%);
}
.v4 { background: radial-gradient(circle at 50% 50%, #2a2018, #0d0c0a 68%); }
.ring {
  position: absolute;
  inset: 18%;
  border: 40px solid rgba(227, 91, 42, 0.55);
  border-radius: 50%;
  filter: blur(0.2px);
}
.case-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}
.case-body h3 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  margin-bottom: 14px;
}
.case-body p { color: #d2c8b6; max-width: 46ch; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.case-meta span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.skill-grid article {
  padding: 28px 24px 32px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  min-height: 220px;
}
.skill-grid h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  margin-bottom: 14px;
}
.skill-grid p { color: var(--muted); font-size: 15px; }

.now-list {
  list-style: none;
  max-width: 820px;
}
.now-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.now-list time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 4px;
}
.now-list p { font-size: 18px; color: #ddd4c4; }

.contact {
  text-align: center;
  padding-bottom: 80px;
}
.contact-lead {
  margin: 18px auto 36px;
  max-width: 460px;
  color: var(--muted);
}
.mail {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(32px, 6vw, 64px);
  color: var(--paper);
  border-bottom: 1px solid var(--accent);
  line-height: 1.2;
}
.social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.social a:hover { color: var(--paper); }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px 40px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}
@media (max-width: 980px) {
  .nav { padding: 18px 20px; }
  .nav-links { display: none; }
  .hero, section, .footer { padding-left: 20px; padding-right: 20px; }
  .hero-index { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .about-grid, .case, .now-list, .skill-grid {
    grid-template-columns: 1fr;
  }
  .portrait { max-width: 240px; }
  .case-visual, .case-lg .case-visual { min-height: 240px; }
}
