/* Homepage editorial layout. Loaded after styles.css on index.html only; sub-pages keep styles.css alone. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --night: #0a1426; --night-2: #111f3a; --night-line: #ffffff1c; --night-muted: #94a3b8; --night-soft: #cbd5e1;
  --sky: #8ec5ff; --paper: #f3f5f9; --warm: #f4efe6; --warm-line: #e4dccd;
  --serif: 'Instrument Serif', 'Songti SC', Georgia, serif;
  --gutter: clamp(20px, 6vw, 96px); --wide: 1240px;
}
body.home { background: var(--night); }
.home .page-shell { background: #fff; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--gutter); background: #0a1426e0; color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--night-line); }
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.topbar .brand-mark { background: var(--sky); color: var(--night); height: 34px; width: 34px; }
.topbar .brand-word { font-weight: 700; letter-spacing: -.02em; }
.topbar-nav { display: flex; gap: 6px; }
.topbar-nav a { padding: 8px 14px; border-radius: 999px; color: var(--night-soft); font-size: 13px; font-weight: 600; transition: color 160ms ease, background-color 160ms ease; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar .language-switch { min-height: 36px; border-color: var(--night-line); background: transparent; color: var(--night-soft); font-size: 11px; }
.topbar-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--night); font-size: 13px; font-weight: 700; transition: background-color 160ms ease; }

/* Cover */
.cover { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; background: var(--night); color: #fff; }
.cover-glow { position: absolute; width: 820px; height: 820px; right: -220px; top: -320px; border-radius: 50%; background: radial-gradient(circle, #2563eb66 0%, #2563eb1f 40%, transparent 70%); pointer-events: none; }
.cover-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); opacity: .55; }
.cover-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 96px); align-items: center; max-width: var(--wide); margin: 0 auto; }
.cover-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--sky); font: 500 12px/1.5 var(--mono); letter-spacing: .14em; }
.cover h1 { margin: 0 0 30px; letter-spacing: 0; line-height: 1; }
.cover-hello { display: block; margin-bottom: 6px; font: italic 400 clamp(34px, 3.6vw, 52px)/1.1 var(--serif); color: var(--night-soft); letter-spacing: 0; }
.cover-name { position: relative; display: inline-block; font-size: clamp(60px, 8.6vw, 132px); font-weight: 800; letter-spacing: -.06em; line-height: .95; white-space: nowrap; }
.cover .name-spark { position: absolute; right: -.5em; top: -.05em; font-size: .3em; color: var(--sky); }
.cover-slogan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 22px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; color: #e2e8f0; }
.cover-slogan strong { position: relative; isolation: isolate; color: var(--sky); font-weight: 800; }
.cover-slogan strong::after { content: ''; position: absolute; z-index: -1; left: -3px; right: -3px; bottom: 2px; height: 22%; background: #2563eb8c; border-radius: 4px; transform: rotate(-1.5deg); }
.cover-intro { max-width: 560px; margin: 0 0 36px; color: var(--night-muted); font-size: 15px; line-height: 1.95; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cover-actions .booking-button { min-height: 54px; }
.ghost-button { display: inline-flex; align-items: center; gap: 22px; min-height: 54px; padding: 14px 22px; border: 1px solid #ffffff3d; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 650; transition: background-color 160ms ease, border-color 160ms ease; }
.ghost-button span:last-child { color: var(--sky); font-size: 18px; line-height: 1; }

.cover-portrait { position: relative; max-width: 440px; justify-self: end; width: 100%; padding: 18px 10px 0; }
.cover .portrait-frame { padding: 10px 10px 54px; box-shadow: 0 40px 80px #00000066, 0 2px 4px #0003; }
.cover .portrait-note { right: 20px; display: flex; justify-content: space-between; color: var(--night); }
.cover .portrait-note b { font-weight: 500; color: var(--blue); }
.cover .photo-sticker { right: -14px; top: -6px; }

.cover-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--wide); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0; border-top: 1px solid var(--night-line); }
.cover-stats .stat-item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 28px 24px 40px; }
.cover-stats .stat-item:first-child { padding-left: 0; }
.cover-stats .stat-item + .stat-item { padding-left: 24px; border-left: 1px solid var(--night-line); }
.cover-stats dd { margin: 0; font-size: clamp(38px, 4vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1.1; color: #fff; }
.cover-stats .stat-unit { color: var(--sky); font-size: .45em; margin-left: 4px; letter-spacing: 0; }
.cover-stats dt { color: var(--night-muted); font-size: 12px; line-height: 1.5; }

/* Shared section heads */
.home .section-kicker { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--blue); }
.issue-no { font: italic 400 26px/1 var(--serif); letter-spacing: 0; color: currentColor; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: var(--wide); margin: 0 auto clamp(36px, 4vw, 56px); }
.section-head h2 { margin: 0; font-size: clamp(38px, 5.2vw, 76px); font-weight: 800; letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
.section-head > p { max-width: 360px; margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* Brands */
.brands-band { padding: clamp(56px, 6vw, 80px) 0; background: #fff; }
.band-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px 28px; max-width: var(--wide); margin: 0 auto 32px; padding: 0 var(--gutter); box-sizing: content-box; }
.band-heading .section-kicker { margin: 0; }
.band-heading h2 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 750; letter-spacing: -.04em; }
.band-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.brands-band .logo-item { background: #f6f7f9; border-color: #eceef2; height: 116px; }
.brands-band .logo-item.logo-dark { background: var(--night); border-color: var(--night); }

/* Selected work */
.work-section { padding: clamp(72px, 9vw, 128px) var(--gutter); background: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 18px; max-width: var(--wide); margin: 0 auto; }
.work-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 28px; border: 1px solid #e1e6ee; border-radius: 22px; background: #fff; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-tag { padding: 5px 10px; border-radius: 999px; background: #eff6ff; color: var(--blue); font-size: 11px; font-weight: 700; white-space: nowrap; }
.work-eyebrow { overflow: hidden; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.work-figures { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 10px; }
.work-figure { display: flex; flex-direction: column; gap: 4px; }
.work-figure strong { font-size: clamp(44px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.work-figure span { max-width: 26ch; color: var(--muted); font-size: 12px; line-height: 1.5; }
.work-title { margin-top: auto; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.5; }
.work-summary { max-width: 52ch; color: #dbeafe; font-size: 14px; line-height: 1.8; }
.work-link { color: var(--blue); font-size: 12px; font-weight: 700; }
.work-feature { grid-column: span 2; grid-row: span 2; padding: clamp(28px, 3.4vw, 48px); border: 0; background: linear-gradient(140deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%); color: #fff; overflow: hidden; }
.work-feature::after { content: '✳'; position: absolute; right: -40px; bottom: -110px; font-size: 380px; line-height: 1; color: #ffffff14; pointer-events: none; }
.work-feature .work-tag { background: #ffffff26; color: #fff; }
.work-feature .work-eyebrow, .work-feature .work-figure span { color: #bfdbfe; }
.work-feature .work-figure strong { font-size: clamp(64px, 8vw, 120px); }
.work-feature .work-title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; }
.work-feature .work-link { color: #fff; }
.work-geo .work-figure strong { color: var(--ink); }

/* Services: dark editorial index */
.services-section { padding: clamp(72px, 9vw, 128px) var(--gutter); background: var(--night); color: #fff; }
.services-section .section-kicker { color: var(--sky); }
.services-section .section-head > p { color: var(--night-muted); }
.service-list { max-width: var(--wide); margin: 0 auto; border-top: 1px solid var(--night-line); }
.service-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 52px; align-items: center; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--night-line); transition: background-color 200ms ease; }
.service-index { font: italic 400 64px/1 var(--serif); color: var(--sky); }
.service-body { display: flex; flex-direction: column; gap: 8px; }
.service-code { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--night-muted); }
.service-title { font-size: clamp(26px, 3vw, 42px); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; transition: color 200ms ease; }
.service-subtitle { max-width: 54ch; color: var(--night-muted); font-size: 14px; line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.service-tags span { padding: 4px 12px; border: 1px solid #ffffff26; border-radius: 999px; color: var(--night-soft); font-size: 12px; }
.service-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.service-count { font: 500 11px var(--mono); letter-spacing: .08em; color: var(--night-muted); }
.service-action { font-size: 13px; font-weight: 700; }
.service-arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #ffffff33; border-radius: 50%; font-size: 22px; transition: transform 220ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }

/* Life: warm paper */
.home .life-section { background: var(--warm); }
.home .life-heading { display: flex; }
.home .life-heading h2 { max-width: none; }
.home .life-heading > p { color: #6b6253; }
.home .life-carousel-footer { border-top-color: var(--warm-line); }
.home .life-carousel-viewport .life-photo::after { background: #f4efe60d; }

/* Closing */
.closing { position: relative; overflow: hidden; padding: clamp(88px, 11vw, 150px) var(--gutter) 0; background: radial-gradient(ellipse at 85% 0%, #2563eb59, transparent 55%), var(--night); color: #fff; }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(40px, 6vw, 96px); max-width: var(--wide); margin: 0 auto; }
.wechat-card { width: 280px; margin: 0; padding: 14px 14px 20px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px #00000059; transform: rotate(2deg); }
.wechat-card img { display: block; width: 100%; height: auto; border-radius: 12px; }
.wechat-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 6px 0; text-align: center; }
.wechat-card strong { font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.wechat-card span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.closing .section-kicker { color: var(--sky); }
.closing h2 { margin: 0; }
.closing h2 > span { display: block; margin-bottom: 18px; color: var(--sky); font-size: clamp(16px, 1.6vw, 20px); font-weight: 650; letter-spacing: -.01em; }
.closing h2 em { display: block; max-width: 15em; font-style: normal; font-size: clamp(38px, 5.8vw, 88px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
.closing .booking-action { align-items: flex-start; }
.closing .booking-button { min-height: 60px; padding-inline: 28px; font-size: 15px; }
.closing .booking-action small { color: var(--night-muted); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; max-width: var(--wide); margin: clamp(80px, 10vw, 140px) auto 0; padding: 28px 0 40px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 13px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { transition: color 160ms ease; }

@media (hover: hover) and (pointer: fine) {
  .topbar-nav a:hover { color: #fff; background: #ffffff14; }
  .topbar-cta:hover { background: var(--sky); }
  .ghost-button:hover { background: #ffffff12; border-color: #ffffff66; }
  .work-card:hover { transform: translateY(-4px); border-color: #c7d6ea; box-shadow: 0 18px 40px #0b1b3314; }
  .service-row:hover .service-title { color: var(--sky); }
  .service-row:hover .service-arrow { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); }
  .site-footer a:hover { color: #fff; }
}
@media (max-width: 1050px) {
  .cover-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .cover-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-stats .stat-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .cover-stats .stat-item:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-feature { grid-row: span 1; }
  .band-heading { grid-template-columns: 1fr; }
  .wechat-card { width: 240px; }
}
@media (max-width: 820px) {
  .topbar-nav { display: none; }
  .cover-inner { grid-template-columns: 1fr; }
  .cover-portrait { justify-self: center; max-width: 340px; order: -1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head > p { max-width: none; }
  .home .life-heading { display: flex; }
  .service-row { grid-template-columns: 64px minmax(0, 1fr) 44px; }
  .service-index { font-size: 46px; }
  .service-meta { grid-column: 2; grid-row: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 14px; }
  .service-arrow { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar { padding-block: 10px; gap: 10px; }
  .topbar .brand-word { display: none; }
  .cover { padding-top: 40px; }
  .cover-portrait { max-width: 280px; }
  .cover .photo-sticker { width: 76px; height: 76px; right: -8px; }
  .cover .photo-sticker span { font-size: 24px; }
  .cover-name { font-size: clamp(52px, 15vw, 72px); }
  .cover .name-spark { display: none; }
  .cover-actions > * { flex: 1 1 100%; justify-content: space-between; }
  .cover-stats .stat-item { padding: 22px 14px 28px; }
  .cover-stats .stat-item:nth-child(odd) { padding-left: 0; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .work-feature { grid-column: auto; }
  .work-card { padding: 24px; min-height: 220px; }
  .work-feature::after { font-size: 260px; bottom: -80px; }
  .home .life-section { padding-inline: 16px; }
  .home .life-heading { display: block; }
  .service-row { grid-template-columns: 1fr 44px; gap: 16px 12px; padding: 28px 0; }
  .service-index { grid-column: 1; font-size: 36px; }
  .service-body { grid-column: 1 / -1; grid-row: 2; }
  .service-meta { grid-column: 1 / -1; grid-row: 3; }
  .service-arrow { grid-column: 2; grid-row: 1; justify-self: end; }
  .closing-inner { grid-template-columns: 1fr; }
  .wechat-card { justify-self: center; width: min(280px, 100%); transform: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .work-card:hover, .service-row:hover .service-arrow { transform: none; }
}
