@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,750&family=Noto+Sans+SC:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;600;700&display=swap');

:root {
  --bg: #fff5f0;
  --surface: #ffffff;
  --surface-purple: #f6eaf4;
  --surface-pink: #f9dfe0;
  --surface-blue: #dff1ef;
  --surface-mint: #e8f3dc;
  --border: #ebceca;
  --border-strong: #cf8587;
  --text: #403740;
  --muted: #71646b;
  --light: #978a91;
  --purple: #a05278;
  --purple-dark: #7d4661;
  --pink: #e77d80;
  --blue: #519390;
  --mint: #6f9562;
  --coral: #e77d80;
  --coral-dark: #ce666b;
  --sky: #c6e8e6;
  --cream: #fff5f0;
  --shadow: 0 18px 50px rgba(94, 59, 73, .11);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 6% 3%, rgba(248, 201, 199, .34), transparent 25rem),
    radial-gradient(circle at 94% 14%, rgba(198, 232, 230, .4), transparent 25rem),
    var(--bg);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(231, 125, 128, .34); outline-offset: 3px; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  padding-top: 12px;
  background: transparent;
}
.nav { min-height: 74px; display: flex; align-items: center; gap: 22px; padding: 10px 14px 10px 18px; border-radius: 28px; background: var(--coral); box-shadow: 0 12px 30px rgba(139, 70, 78, .14); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 150px; height: 48px; overflow: hidden; }
.brand-logo img { display: block; width: 150px; height: 150px; margin-top: -51px; object-fit: cover; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a, .lang-toggle {
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .92);
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}
.nav-links a:hover, .nav-links a[aria-current="page"], .lang-toggle:hover { color: var(--text); background: var(--sky); }
.lang-toggle { margin-left: 3px; border: 1px solid rgba(255,255,255,.68); background: rgba(255,255,255,.14); }

main { overflow: hidden; }
.hero { position: relative; padding: 78px 0 64px; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero::before { width: 170px; height: 170px; right: 8%; top: 55px; background: rgba(225, 206, 255, .42); filter: blur(1px); }
.hero::after { width: 76px; height: 76px; right: 24%; bottom: 45px; background: rgba(255, 208, 222, .52); }
.hero-inner { position: relative; z-index: 1; max-width: none; }
.eyebrow { margin: 0 0 13px; color: var(--purple); font-size: .77rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Noto Serif SC", Fraunces, Georgia, serif; }
h1 { margin-bottom: 22px; font-size: clamp(2.65rem, 6.5vw, 5rem); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; }
.gradient-text { color: var(--coral); background: none; -webkit-text-fill-color: currentColor; }
.hero-copy { max-width: 720px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1.03rem, 2vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--surface);
  color: var(--purple-dark);
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button.primary { border-color: var(--purple-dark); background: var(--purple-dark); color: white; }
.button:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: 0 10px 24px rgba(73, 52, 93, .12); }

.section { padding: 72px 0; }
.section.soft { border-block: 1px solid var(--border); background: rgba(248, 244, 255, .58); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head > div { max-width: 700px; }
h2 { margin-bottom: 10px; font-size: clamp(1.75rem, 4vw, 2.55rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; line-height: 1.35; letter-spacing: -.015em; }
.section-copy, .card p, .case-intro, .meta, .education p { color: var(--muted); }
.text-link { color: var(--purple-dark); font-weight: 750; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.stat { padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.stat:nth-child(2) { background: var(--surface-pink); }
.stat:nth-child(3) { background: var(--surface-blue); }
.stat:nth-child(4) { background: var(--surface-mint); }
.stat strong { display: block; margin-bottom: 4px; font-size: 1.35rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .88rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 100%; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card.tint-purple { background: var(--surface-purple); }
.card.tint-pink { background: var(--surface-pink); }
.card.tint-blue { background: var(--surface-blue); }
.card.tint-mint { background: var(--surface-mint); }
.icon-box { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 14px; background: white; color: var(--purple); font-weight: 800; box-shadow: 0 8px 20px rgba(73,52,93,.08); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { padding: 5px 10px; border: 1px solid rgba(118,87,214,.18); border-radius: 999px; background: rgba(255,255,255,.68); color: var(--muted); font-size: .76rem; font-weight: 650; }

.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 165px 1fr; gap: 24px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.timeline-date { color: var(--purple); font-size: .83rem; font-weight: 750; }
.timeline-item p:last-child { margin-bottom: 0; }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.education { padding: 24px; border-left: 4px solid #c7a9e8; border-radius: 0 18px 18px 0; background: var(--surface); }
.education p { margin-bottom: 0; }

.page-hero { padding: 78px 0 45px; }
.page-hero .hero-copy { margin-bottom: 0; }
.case-list { display: grid; gap: 28px; }
.case {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(73,52,93,.055);
}
.case-aside { padding: 32px; background: var(--surface-purple); }
.case:nth-child(2) .case-aside { background: var(--surface-blue); }
.case:nth-child(3) .case-aside { background: var(--surface-pink); }
.case-number { margin: 0 0 34px; color: var(--purple); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.case-aside h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.case-body { padding: 34px; }
.case-body h3 { margin-top: 26px; }
.case-body h3:first-child { margin-top: 0; }
.clean-list { display: grid; gap: 10px; padding: 0; margin: 12px 0 0; list-style: none; }
.clean-list li { position: relative; padding-left: 20px; color: var(--muted); }
.clean-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: #b897dc; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.metric { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #fffdfb; }
.metric strong { display: block; font-size: 1.22rem; color: var(--purple-dark); }
.metric span { color: var(--muted); font-size: .8rem; }
.note { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--surface-mint); color: #43695d; font-size: .9rem; }

.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { min-height: 42px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 650; }
.filter-button:hover, .filter-button.active { border-color: var(--border-strong); background: var(--surface-purple); color: var(--purple-dark); }
.search { position: relative; min-width: min(100%, 280px); margin-left: auto; }
.search input { width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { display: flex; flex-direction: column; min-height: 290px; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.blog-card[hidden] { display: none; }
.blog-category { margin-bottom: 18px; color: var(--pink); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.blog-card h2 { margin-bottom: 10px; font-size: 1.12rem; letter-spacing: -.01em; }
.blog-card p { margin-bottom: 18px; font-size: .9rem; }
.blog-card .text-link { margin-top: auto; }
.result-count { width: 100%; margin: 4px 0 0; color: var(--light); font-size: .84rem; }
.empty-state { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--border-strong); border-radius: 20px; text-align: center; color: var(--muted); }

.cta { margin: 50px auto 80px; padding: 34px; border: 1px solid var(--border); border-radius: 28px; background: linear-gradient(135deg, var(--surface-purple), var(--surface-pink)); text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { max-width: 640px; margin: 0 auto 20px; color: var(--muted); }
.site-footer { padding: 34px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--purple); }

/* Editorial portfolio layout, inspired by warm independent creative studios. */
.hero-split {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
}
.hero-main { position: relative; z-index: 2; }
.hero-main h1 { max-width: 760px; }
.hero-main .hero-copy { max-width: 680px; }
.hero-art {
  position: relative;
  min-height: 490px;
  border-radius: 48% 48% 28px 28px;
  background: var(--surface-pink);
  overflow: hidden;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -55px;
  top: -45px;
  border-radius: 50%;
  background: var(--sky);
  z-index: -1;
}
.hero-art::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: -40px;
  bottom: 22px;
  border-radius: 50%;
  background: var(--surface-purple);
  z-index: -1;
}
.art-note {
  position: absolute;
  width: min(78%, 320px);
  padding: 25px;
  border: 1px solid rgba(125, 70, 97, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.art-note strong { display: block; margin-bottom: 8px; font-family: Fraunces, "Noto Serif SC", serif; font-size: 1.45rem; line-height: 1.25; color: var(--purple-dark); }
.art-note span { color: var(--muted); font-size: .86rem; }
.art-note.one { top: 94px; left: 34px; transform: rotate(-3deg); }
.art-note.two { right: 30px; bottom: 82px; transform: rotate(3deg); }
.art-chip { position: absolute; padding: 9px 14px; border-radius: 999px; color: var(--text); font-size: .78rem; font-weight: 750; }
.art-chip.keyword { left: 48px; bottom: 54px; background: var(--sky); }
.art-chip.question { right: 38px; top: 55px; background: var(--surface-mint); }
.art-star { position: absolute; left: 51%; top: 48%; color: var(--coral); font-family: Fraunces, serif; font-size: 4.5rem; line-height: 1; transform: rotate(12deg); }

.about-band { background: var(--sky); }
.about-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 7vw, 90px); align-items: start; }
.about-grid h2 { max-width: 430px; color: var(--purple-dark); }
.about-copy { max-width: 700px; font-size: 1.05rem; }
.about-copy p { color: #4e5556; }
.about-copy p:last-child { margin-bottom: 0; }
.about-signoff { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--purple-dark); font-weight: 750; }
.about-signoff::before { content: ""; width: 34px; height: 2px; background: var(--coral); }

.section.soft { border-block-color: var(--border); background: rgba(249, 223, 224, .42); }
.stats { margin-top: 38px; }
.stat { border-color: rgba(125, 70, 97, .14); }
.stat:first-child { background: var(--surface-mint); }
.stat:nth-child(2) { background: var(--surface-pink); }
.stat:nth-child(3) { background: var(--surface-blue); }
.stat:nth-child(4) { background: var(--surface-purple); }
.card { border-color: rgba(125, 70, 97, .15); }
.icon-box { border-radius: 50%; background: var(--surface); color: var(--coral-dark); box-shadow: none; }
.tag { border-color: rgba(125, 70, 97, .18); }
.timeline-item { border-color: rgba(125, 70, 97, .16); }
.timeline-item:nth-child(odd) { background: var(--surface-pink); }
.timeline-item:nth-child(even) { background: var(--surface-blue); }
.timeline-date { color: var(--purple-dark); }
.education-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.education { border-left-color: var(--coral); background: rgba(255,255,255,.78); }

.page-hero { padding: 76px 0 48px; }
.page-hero .hero-inner { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 40px; }
.page-hero .eyebrow { grid-column: 1; margin-bottom: -26px; }
.page-hero h1 { grid-column: 1; grid-row: 2; }
.page-hero .hero-copy { grid-column: 2; grid-row: 2; font-size: 1.08rem; }
.case { border-color: rgba(125, 70, 97, .15); box-shadow: none; }
.case-aside { background: var(--surface-pink); }
.case:nth-child(2) .case-aside { background: var(--surface-blue); }
.case:nth-child(3) .case-aside { background: var(--surface-mint); }
.case:nth-child(4) .case-aside { background: var(--surface-purple); }
.case-number { color: var(--coral-dark); }
.clean-list li::before { background: var(--coral); }
.metric { background: var(--cream); }
.metric strong { color: var(--purple-dark); }
.note { color: #4e6650; }

.filter-button:hover, .filter-button.active { background: var(--sky); color: var(--purple-dark); }
.blog-grid { grid-template-columns: repeat(12, 1fr); }
.blog-card { grid-column: span 4; border-color: rgba(125, 70, 97, .16); }
.blog-card:nth-of-type(1), .blog-card:nth-of-type(8) { grid-column: span 8; background: var(--surface-pink); }
.blog-card:nth-of-type(4), .blog-card:nth-of-type(11) { background: var(--surface-blue); }
.blog-card:nth-of-type(6), .blog-card:nth-of-type(13) { background: var(--surface-mint); }
.blog-category { color: var(--coral-dark); }
.cta { background: var(--coral); border-color: var(--coral); }
.cta h2, .cta p { color: var(--surface); }
.cta .button.primary { border-color: var(--sky); background: var(--sky); color: var(--text); }
.site-footer { background: var(--purple-dark); color: rgba(255,255,255,.82); border-top: 0; }
.site-footer a:hover { color: var(--sky); }

.lang-en { display: none; }
html[data-lang="en"] .lang-zh { display: none; }
html[data-lang="en"] .lang-en { display: revert; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .48s ease, transform .48s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .nav { gap: 10px; }
  .nav-links a { padding-inline: 9px; font-size: .82rem; }
  .stats, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-art { min-height: 390px; width: min(100%, 560px); }
  .about-grid { grid-template-columns: 1fr; }
  .page-hero .hero-inner { grid-template-columns: 1fr; }
  .page-hero .eyebrow, .page-hero h1, .page-hero .hero-copy { grid-column: auto; grid-row: auto; }
  .page-hero .eyebrow { margin-bottom: 0; }
  .blog-card { grid-column: span 6; }
  .blog-card:nth-of-type(1), .blog-card:nth-of-type(8) { grid-column: span 12; }
  .case { grid-template-columns: 1fr; }
  .case-aside { padding-bottom: 26px; }
  .case-number { margin-bottom: 18px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { position: static; padding-top: 8px; }
  .nav { min-height: auto; padding: 13px; flex-wrap: wrap; border-radius: 22px; }
  .brand { width: 100%; }
  .brand-logo { width: 138px; height: 44px; }
  .brand-logo img { width: 138px; height: 138px; margin-top: -47px; }
  .nav-links { width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .nav-links a { white-space: nowrap; }
  .lang-toggle { margin-left: auto; }
  .hero { padding: 65px 0 48px; }
  .hero::before { width: 110px; height: 110px; right: -20px; }
  .hero::after { display: none; }
  .section { padding: 54px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .stats, .grid-3, .education-grid, .metric-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 350px; border-radius: 42% 42% 24px 24px; }
  .art-note { padding: 19px; }
  .art-note.one { top: 75px; left: 20px; }
  .art-note.two { right: 20px; bottom: 75px; }
  .art-chip.keyword { left: 24px; bottom: 35px; }
  .art-chip.question { right: 22px; top: 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card, .blog-card:nth-of-type(1), .blog-card:nth-of-type(8) { grid-column: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .case-aside, .case-body { padding: 24px; }
  .blog-toolbar { align-items: stretch; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-button { white-space: nowrap; }
  .search { width: 100%; margin-left: 0; }
  .footer-inner { flex-direction: column; }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
