/* ============================================================
   YULU — Photographer Portfolio
   Design tokens, layout, components.
   ============================================================ */

:root {
  /* Colors */
  --bg-paper:        #F9F8F5;
  --bg-paper-2:      #F4F2EC;
  --bg-dark:         #0F0F12;
  --bg-dark-2:       #1B1B1F;
  --bg-dark-3:       #25252A;

  --ink-primary:     #141414;
  --ink-secondary:   #4A4A4D;
  --ink-muted:       #999999;
  --ink-on-dark:     #F5F2EC;
  --ink-on-dark-mut: #A8A39C;
  --ink-on-dark-dim: #666666;

  --accent:          #D66B45;
  --accent-soft:     #E8B89A;

  --border-light:    #E5E2DA;
  --border-dark:     #2A2A2E;

  /* Type scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'Times New Roman', serif;

  /* Layout */
  --max-w:           1440px;
  --pad-x:           64px;
  --pad-x-sm:        28px;
  --section-y:       120px;

  /* Motion */
  --ease:            cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

sup { font-size: 0.6em; vertical-align: super; font-weight: 300; }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 3px;
  margin-bottom: 24px;
}
.eyebrow-light { color: var(--ink-on-dark-mut); }

/* ============= NAV ============= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 248, 245, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 4px;
}
.nav-logo-mark {
  display: inline-block;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink-primary);
}
.nav-logo-text { font-size: 18px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-menu a {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: 1px;
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a.is-active::after { transform: scaleX(1); }
.nav-sep { color: var(--ink-muted); margin: 0 4px; font-weight: 300; }

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1px;
}
.lang-btn {
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 1px;
  padding: 4px 6px;
  transition: color .2s var(--ease);
}
.lang-btn.is-active { color: var(--ink-primary); }
.lang-sep { color: var(--ink-muted); font-weight: 400; }

/* ============= HERO ============= */
.hero {
  background: var(--bg-paper);
  padding: 80px var(--pad-x) 120px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  min-height: 720px;
}
.hero-top { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: 3px;
}
.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1px;
  max-width: 560px;
}
.hero-title-zh {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 4px;
  font-family: var(--font-serif);
}
.hero-bottom { display: flex; flex-direction: column; gap: 32px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.meta-block { display: flex; flex-direction: column; gap: 8px; }
.meta-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 2px;
}
.meta-value {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--ink-primary);
  color: var(--ink-on-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  padding: 16px 4px;
  color: var(--ink-primary);
  letter-spacing: 1px;
  transition: color .2s var(--ease);
}
.btn-ghost:hover { color: var(--accent); }

/* Hero right */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-portrait {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-paper-2);
  box-shadow: 0 30px 80px -20px rgba(20, 20, 20, 0.15);
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-portrait-caption {
  display: flex;
  justify-content: space-between;
  width: 480px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 1px;
}
.hero-contact-card {
  width: 480px;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cc-head span:last-child {
  font-size: 11px;
  color: var(--ink-on-dark-mut);
  letter-spacing: 2px;
}
.cc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.cc-row > span:first-child {
  color: var(--ink-on-dark-mut);
  letter-spacing: 1px;
}
.cc-row > span:last-child {
  font-weight: 500;
}

/* ============= MARQUEE ============= */
.marquee {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  padding-left: 48px;
}
.marquee-track span:nth-child(even) { color: var(--ink-on-dark-mut); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============= ABOUT ============= */
.about {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: var(--section-y) var(--pad-x);
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
}
.about-left { display: flex; flex-direction: column; gap: 16px; }
.display-name {
  font-size: 96px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -3px;
  font-family: var(--font-sans);
}
.display-name-zh {
  font-size: 36px;
  font-weight: 400;
  color: var(--accent-soft);
  letter-spacing: 8px;
  font-family: var(--font-serif);
}
.about-right { display: flex; flex-direction: column; gap: 32px; }
.bio { font-size: 20px; font-weight: 400; line-height: 1.6; }
.bio-zh { font-size: 16px; color: var(--ink-on-dark-mut); line-height: 1.8; letter-spacing: 0.5px; font-family: var(--font-serif); }
.stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-on-dark-mut);
  letter-spacing: 2px;
}
.divider {
  height: 1px;
  background: rgba(245, 242, 236, 0.12);
  margin: 8px 0;
}
.cred {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cred-col { display: flex; flex-direction: column; gap: 6px; }
.cred-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-on-dark-dim);
  letter-spacing: 2px;
}
.cred-value { font-size: 13px; font-weight: 500; line-height: 1.6; }

/* ============= SERVICES ============= */
.services {
  background: var(--bg-paper);
  padding: var(--section-y) var(--pad-x);
}
.section-head {
  max-width: var(--max-w);
  margin: 0 auto 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.section-title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-zh {
  font-size: 16px;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  letter-spacing: 1px;
}
.section-side {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
  text-align: right;
  max-width: 360px;
}
.section-side .zh {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-family: var(--font-serif);
}

.services-list {
  max-width: var(--max-w);
  margin: 0 auto;
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1.6fr 200px 40px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--border-light);
  transition: background .2s var(--ease), padding .2s var(--ease);
  cursor: pointer;
}
.service-row:last-child { border-bottom: 1px solid var(--border-light); }
.service-row:hover { background: rgba(214, 107, 69, 0.03); padding-left: 16px; }
.service-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 2px;
}
.service-main { display: flex; flex-direction: column; gap: 12px; }
.service-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-title .zh {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 400;
  font-family: var(--font-serif);
}
.service-desc { font-size: 14px; color: var(--ink-secondary); line-height: 1.6; }
.service-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.price { font-size: 14px; font-weight: 600; }
.price-label { font-size: 12px; color: var(--ink-muted); }
.service-arrow { color: var(--ink-primary); transition: transform .2s var(--ease); }
.service-arrow svg { width: 32px; height: 32px; }
.service-row:hover .service-arrow { transform: translate(4px, -4px); }

/* ============= CATEGORY SECTIONS ============= */
.cat {
  padding: var(--section-y) var(--pad-x);
  position: relative;
}
.cat-light { background: var(--bg-paper); }
.cat-dark  { background: var(--bg-dark); color: var(--ink-on-dark); }

.cat-head {
  max-width: var(--max-w);
  margin: 0 auto 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.cat-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.cat-title {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 12px;
}
.cat-dark .cat-title { color: var(--ink-on-dark); }
.cat-zh {
  font-size: 16px;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  letter-spacing: 1px;
}
.cat-dark .cat-zh { color: var(--ink-on-dark-mut); }

.cat-side {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  text-align: right;
  max-width: 320px;
}
.cat-dark .cat-side { color: var(--ink-on-dark-mut); }
.cat-side .zh {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-family: var(--font-serif);
}
.cat-dark .cat-side .zh { color: var(--ink-on-dark-dim); }

.cat-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-dark-2);
  position: relative;
}
.cat-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.cat-photo:hover img { transform: scale(1.04); filter: brightness(0.95); }
.cat-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0);
  border-radius: 4px;
  pointer-events: none;
  transition: border-color .3s var(--ease);
}
.cat-photo:hover::after { border-color: rgba(255,255,255,0.1); }

.cat-thanks {
  max-width: var(--max-w);
  margin: 80px auto 0;
  padding-top: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.thanks {
  font-size: 96px;
  font-weight: 200;
  letter-spacing: -3px;
  color: var(--ink-primary);
}
.thanks-zh {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 4px;
  font-family: var(--font-serif);
}

/* ============= CONTACT ============= */
.contact {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: var(--section-y) var(--pad-x);
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 96px;
}
.contact-left { display: flex; flex-direction: column; gap: 32px; }
.contact-title {
  font-size: 88px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -2px;
}
.contact-zh {
  font-size: 24px;
  color: var(--ink-on-dark-mut);
  font-family: var(--font-serif);
  letter-spacing: 4px;
}
.contact-desc { font-size: 16px; color: var(--ink-on-dark-mut); line-height: 1.7; }

.contact-email {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg-dark-2);
  border-radius: 8px;
  margin-top: 16px;
  transition: background .2s var(--ease);
}
.contact-email:hover { background: var(--bg-dark-3); }
.cc-label { display: block; font-size: 11px; color: var(--ink-on-dark-mut); letter-spacing: 2px; margin-bottom: 4px; }
.cc-value { display: block; font-size: 22px; font-weight: 500; }
.cc-arrow { display: inline-flex; }
.cc-arrow svg { width: 24px; height: 24px; }

.contact-right { display: flex; flex-direction: column; gap: 24px; }
.contact-info {
  background: var(--bg-dark-2);
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ci-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.ci-row > span:first-child {
  color: var(--ink-on-dark-mut);
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 600;
}
.ci-row > span:last-child {
  font-weight: 500;
  text-align: right;
  line-height: 1.5;
}
.ci-divider { height: 1px; background: rgba(245, 242, 236, 0.1); }

.contact-cta { display: flex; flex-direction: column; gap: 12px; }
.contact-cta h4 { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.contact-cta p { font-size: 13px; color: var(--ink-on-dark-mut); line-height: 1.6; }
.contact-cta .zh { color: var(--ink-on-dark-dim); font-family: var(--font-serif); }
.btn-light {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--ink-on-dark);
  color: var(--ink-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 8px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-light:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-light svg { width: 18px; height: 18px; }

/* ============= FOOTER ============= */
.footer {
  background: #07070A;
  color: var(--ink-on-dark);
  padding: 64px var(--pad-x) 32px;
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 4px;
}
.footer-brand p { font-size: 14px; color: var(--ink-on-dark-mut); line-height: 1.6; max-width: 380px; }
.footer-brand p.zh { font-size: 13px; color: var(--ink-on-dark-dim); font-family: var(--font-serif); }

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h5 { font-size: 11px; font-weight: 600; color: var(--ink-on-dark-dim); letter-spacing: 2px; }
.footer-col a { font-size: 14px; font-weight: 500; color: var(--ink-on-dark); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent-soft); }

.footer-divider { height: 1px; background: rgba(245, 242, 236, 0.1); max-width: var(--max-w); margin: 0 auto; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: var(--ink-on-dark-dim);
  flex-wrap: wrap;
  gap: 16px;
}
.fb-left { display: flex; gap: 24px; }
.fb-left .zh { color: var(--ink-on-dark-dim); font-family: var(--font-serif); }
.fb-right { display: flex; gap: 24px; }
.fb-right a { color: var(--ink-on-dark-mut); transition: color .2s var(--ease); }
.fb-right a:last-child { color: var(--ink-on-dark); font-weight: 600; }
.fb-right a:hover { color: var(--accent-soft); }

/* ============= REVEAL ANIMATION ============= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; --section-y: 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-left { min-height: auto; }
  .hero-portrait, .hero-portrait-caption, .hero-contact-card { width: 100%; max-width: 480px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .section-head, .cat-head { flex-direction: column; align-items: flex-start; }
  .section-side, .cat-side { text-align: left; max-width: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .hero-title { font-size: 40px; }
  .contact-title { font-size: 56px; }
  .display-name { font-size: 64px; }
  .cat-title { font-size: 40px; }
  .thanks { font-size: 64px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .stats, .cred { grid-template-columns: 1fr; gap: 24px; }
  .hero-meta { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .service-arrow { display: none; }
}
