@font-face {
  font-family: "GeoLightSans";
  src: url("/fonts/GeosansLight.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue-950: #10243a;
  --blue-700: #3f6689;
  --blue-600: #4e789d;
  --blue-100: #dceaf7;
  --blue-50: #edf5ff;
  --surface: #f7faff;
  --surface-high: #eef4fb;
  --surface-low: #ffffff;
  --on-surface: #17212b;
  --on-variant: #596673;
  --outline: #c3cfda;
  --scrim: rgba(8, 18, 31, .74);
  --shape: 18px;
  --shadow: 0 12px 36px rgba(62, 96, 127, .12);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --blue-950: #edf5ff;
    --blue-700: #add0f0;
    --blue-600: #86b2d6;
    --blue-100: #2b455e;
    --blue-50: #182633;
    --surface: #10171d;
    --surface-high: #1b2630;
    --surface-low: #202b34;
    --on-surface: #e6edf3;
    --on-variant: #b9c5cf;
    --outline: #3d4a54;
    --shadow: 0 14px 40px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--on-surface); }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.topbar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px); transition: border-color .2s, height .2s;
}
.topbar.scrolled { border-color: var(--outline); }
.brand { display: flex; align-items: center; gap: 12px; font-family: "GeoLightSans", "Microsoft YaHei", sans-serif; font-size: 22px; font-weight: 300; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); font-size: 14px; }
.desktop-nav a { transition: color .2s; }
.desktop-nav a:hover { color: var(--blue-600); }
.nav-action { padding: 11px 18px; border-radius: 999px; background: var(--blue-100); color: var(--blue-950); font-weight: 700; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-high); }
.menu-button span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: currentColor; }
.drawer, .drawer-scrim { display: none; }

.hero {
  min-height: 680px; height: 78vh; max-height: 840px;
  display: flex; align-items: flex-end;
  padding: 140px clamp(24px, 8vw, 120px) clamp(70px, 10vh, 110px);
  background:
    linear-gradient(90deg, rgba(8,18,31,.72) 0%, rgba(8,18,31,.30) 58%, rgba(8,18,31,.12) 100%),
    linear-gradient(0deg, rgba(8,18,31,.42), transparent 48%),
    url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=2200&q=88") center 42% / cover;
  color: #fff;
}
.hero-content { max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--blue-700); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #dceafa; }
.hero h1 { margin: 0; font-size: clamp(46px, 7vw, 88px); line-height: 1.04; letter-spacing: -.055em; }
.hero-subtitle { max-width: 660px; margin: 24px 0 32px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.7; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 800; border: 1px solid transparent; }
.button.filled { background: #fff; color: #18344f; }
.button.outlined { border-color: rgba(255,255,255,.68); color: #fff; backdrop-filter: blur(8px); }
.hero .button.outlined { background: rgba(20,40,60,.12); }

.section { padding: 96px clamp(20px, 6vw, 88px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { min-height: 40px; padding: 0 15px; border: 1px solid var(--outline); border-radius: 999px; background: transparent; cursor: pointer; }
.filter.active { background: var(--blue-100); border-color: var(--blue-100); color: var(--blue-950); font-weight: 700; }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 14px; }
.work-card { position: relative; grid-column: span 4; height: 380px; padding: 0; overflow: hidden; border: 0; border-radius: var(--shape); background: var(--surface-high); cursor: zoom-in; text-align: left; }
.work-card.wide { grid-column: span 8; }
.work-card.tall { height: 774px; grid-row: span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.work-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,18,31,.78)); }
.work-card:hover img { transform: scale(1.035); }
.work-meta { position: absolute; z-index: 2; left: 22px; bottom: 20px; color: #fff; }
.work-meta span { display: block; margin-bottom: 4px; font-size: 12px; opacity: .78; }
.work-meta strong { font-size: 20px; }
.signature { position: absolute; z-index: 2; top: 16px; right: 16px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.48); border-radius: 3px; color: #fff; font-family: Georgia, serif; font-size: 9px; letter-spacing: .16em; }
.work-card.hidden { display: none; }

.services { background: var(--blue-50); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 28px; border: 1px solid var(--outline); border-radius: 24px; background: var(--surface-low); box-shadow: var(--shadow); text-align: left; cursor: pointer; transition: transform .25s, background .25s; }
.service-card:hover { transform: translateY(-5px); background: var(--surface-high); }
.service-index { position: absolute; right: 24px; top: 20px; color: var(--on-variant); font-size: 12px; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-100); color: var(--blue-950); font-size: 22px; }
.service-card h3 { margin: 42px 0 12px; font-size: 21px; }
.service-card p { margin: 0; color: var(--on-variant); line-height: 1.75; }
.service-link { margin-top: auto; color: var(--blue-700); font-weight: 800; }

.about-strip { min-height: 240px; display: flex; align-items: center; justify-content: space-between; padding: 50px clamp(20px, 6vw, 88px); background: #1c3b58; color: #eef6ff; }
.about-strip > p { margin: 0; font-size: clamp(52px, 9vw, 120px); font-weight: 900; letter-spacing: -.06em; opacity: .92; }
.about-strip div { display: flex; gap: 22px; font-size: 13px; }
.about-strip span { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.5); }

footer { min-height: 180px; display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 40px; padding: 40px clamp(20px, 6vw, 88px); background: var(--surface-low); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand span { margin-top: 4px; color: var(--on-variant); font-size: 12px; }
footer p { margin: 0; color: var(--on-variant); font-size: 12px; line-height: 1.8; }
footer nav { display: flex; gap: 18px; font-size: 13px; font-weight: 700; }

.lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 5vh 5vw; background: var(--scrim); backdrop-filter: blur(12px); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 92vw; max-height: 86vh; margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 12px; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.38); }
.lightbox figcaption { margin-top: 12px; color: #fff; }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(12,20,28,.45); color: #fff; font-size: 28px; cursor: pointer; }

.club-dialog { width: min(560px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--outline); border-radius: 28px; background: var(--surface-low); color: var(--on-surface); box-shadow: var(--shadow); }
.club-dialog::backdrop { background: var(--scrim); backdrop-filter: blur(8px); }
.club-dialog h2 { margin: 12px 0 16px; font-size: 32px; }
.club-dialog > p { color: var(--on-variant); line-height: 1.8; }
.club-dialog .button { margin-top: 12px; background: var(--blue-700); color: #fff; }
.dialog-head { display: flex; justify-content: space-between; }
.dialog-head button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-high); font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .topbar { height: 64px; }
  .brand span { max-width: 220px; font-size: 13px; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .drawer { position: fixed; z-index: 40; display: block; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); padding: 18px; background: var(--surface-low); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .28s ease; }
  .drawer.open { transform: translateX(0); }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 8px 12px; border-bottom: 1px solid var(--outline); }
  .icon-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-high); font-size: 24px; }
  .drawer nav { display: flex; flex-direction: column; padding-top: 12px; }
  .drawer nav a { padding: 16px 12px; border-radius: 12px; }
  .drawer-action { margin-top: 8px; background: var(--blue-100); text-align: center; font-weight: 800; }
  .drawer-scrim { position: fixed; z-index: 35; display: block; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .drawer-scrim.open { opacity: 1; pointer-events: auto; }
  .hero { min-height: 620px; height: 82vh; padding: 120px 24px 64px; }
  .hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .section { padding: 72px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card, .work-card.wide { grid-column: span 1; height: 300px; }
  .work-card.tall { height: 614px; }
  .service-grid { grid-template-columns: 1fr; }
  .about-strip { align-items: flex-start; flex-direction: column; }
  .about-strip div { margin-top: 30px; flex-wrap: wrap; }
  footer { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .brand span { max-width: 190px; line-height: 1.35; }
  .brand img { width: 36px; height: 36px; }
  .hero { background-position: 58% center; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1; padding-inline: 12px; }
  .filters { width: 100%; }
  .filter { flex: 1 1 auto; }
  .work-grid { display: flex; flex-direction: column; }
  .work-card, .work-card.wide, .work-card.tall { width: 100%; height: 340px; }
  .work-card.tall { height: 430px; }
  .about-strip > p { font-size: 56px; }
  footer nav { flex-wrap: wrap; }
}
