/* ═══════════════════════════════════════════════════════════
   LIFE Asset Management (Asia) — Landing
   Design: cinematic dark · spectral white · LIFE blue signature
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (labels)
   ═══════════════════════════════════════════════════════════ */

:root {
  --void:        #05070d;
  --surface:     #0a0e1a;
  --ink:         #f0f2fa;
  --ink-dim:     #9aa3b8;
  --ink-faint:   #5c657d;
  --life-blue:   #3b82f6;
  --life-deep:   #1e3a8a;
  --hairline:    rgba(240, 242, 250, 0.10);
  --hairline-2:  rgba(240, 242, 250, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;
  --container:   1200px;
  --header-h:    72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--void);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection { background: var(--life-blue); color: #fff; }

img { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── accessibility ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--life-blue); color: #fff;
  padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--life-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── type utilities ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--life-blue);
  margin-bottom: 28px;
}

/* ═══════════════ HEADER ═══════════════ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 28px; height: 28px; }
.brand-word {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.brand-word em {
  font-style: normal;
  font-weight: 300;
  color: var(--ink-dim);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}
.header-nav > a:not(.btn-client-login) {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}
.header-nav > a:not(.btn-client-login):hover { color: var(--ink); }

.btn-client-login {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink) !important;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: rgba(240, 242, 250, 0.04);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-client-login:hover {
  border-color: var(--life-blue);
  background: rgba(59, 130, 246, 0.12);
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: rgba(5, 7, 13, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  padding: 12px clamp(20px, 5vw, 48px) 28px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a.btn-client-login {
  margin-top: 18px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  text-align: center;
}

/* ═══════════════ HERO — planet-rise ═══════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--void);
}
/* rim glow on the horizon */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 42% at 50% 102%, rgba(59, 130, 246, 0.17), rgba(30, 58, 138, 0.06) 55%, transparent 72%);
}

#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease 0.3s;
}
#globe-canvas.ready { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--header-h) clamp(20px, 5vw, 48px) clamp(120px, 18vh, 200px);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 34px;
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 1.01;
  letter-spacing: -0.018em;
}
.hero-line { display: block; opacity: 0; animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.48s; }
.hero-line-accent {
  font-style: italic;
  color: transparent;
  background: linear-gradient(100deg, #7aa5f8, var(--life-blue) 45%, #cdd8f5);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 1s ease 0.75s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 2;
}
.scroll-cue span {
  width: 1px; height: 44px;
  background: linear-gradient(var(--ink-faint), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════ SECTIONS ═══════════════ */

.section { padding: clamp(110px, 15vw, 190px) 0; }

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* ── the firm ── */
.statement { text-align: center; }

.statement-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.3;
  max-width: 26ch;
  margin: 0 auto;
}

.statement-body {
  margin: 34px auto 0;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-dim);
  max-width: 52ch;
}

.cities {
  margin-top: clamp(48px, 6vw, 72px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.quiet-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 36px;
}
.quiet-links a {
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.quiet-links a:hover { color: var(--ink-dim); border-bottom-color: var(--hairline-2); }

/* ── contact ── */
.contact-center { text-align: center; }

.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-2);
  padding-bottom: 8px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-mail:hover { color: var(--life-blue); border-color: var(--life-blue); }

.contact-note {
  margin-top: 30px;
  font-size: 13px;
  line-height: 2;
  color: var(--ink-faint);
}
.contact-note a { color: var(--ink-dim); }

/* ═══════════════ FOOTER ═══════════════ */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 48px;
  background: var(--void);
}
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.footer-legal {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 78ch;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ═══════════════ REVEAL ═══════════════ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════ REDUCED MOTION ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-line, .hero-eyebrow, .hero-sub { opacity: 1; animation: none; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 860px) {
  .header-nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .hero-title { font-size: clamp(44px, 13vw, 60px); }
  .hero-sub { letter-spacing: 0.22em; }
}
