:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f5f5f5;
  --muted: #878787;
  --stroke: #202020;
  --blue-a: #89aacc;
  --blue-b: #4e85bf;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  transition: opacity 500ms ease, visibility 500ms ease;
}
.loader.is-complete { opacity: 0; visibility: hidden; }
.loader-label {
  position: absolute;
  top: 30px;
  left: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
}
.loader-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(245,245,245,0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 100px);
  font-style: italic;
  animation: role-in 450ms ease both;
}
.loader-count {
  position: absolute;
  right: 34px;
  bottom: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 10vw, 140px);
  font-variant-numeric: tabular-nums;
}
.loader-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(32,32,32,0.7); }
.loader-track span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue-a), var(--blue-b));
  box-shadow: 0 0 8px rgba(137,170,204,0.35);
}

.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 18px 14px;
  pointer-events: none;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(20,20,20,0.86);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: box-shadow 240ms ease;
}
.nav-wrap.is-scrolled .nav-pill { box-shadow: 0 12px 32px rgba(0,0,0,0.32); }
.nav-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  transition: transform 220ms ease, background 220ms ease;
}
.nav-logo span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}
.nav-logo:hover { transform: scale(1.1) rotate(12deg); background: linear-gradient(315deg, var(--blue-a), var(--blue-b)); }
.nav-divider { width: 1px; height: 20px; margin: 0 4px; background: var(--stroke); }
.nav-links { display: flex; }
.nav-links a, .say-hi {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease, background 180ms ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
.say-hi { color: var(--text); }
.say-hi::before, .pill-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-a), var(--blue-b));
  opacity: 0;
  transition: opacity 200ms ease;
}
.say-hi:hover::before, .pill-button:hover::before { opacity: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #07183b 0%, #030914 36%, #010205 72%, #000 100%);
}

.space-canvas,
.galaxy-glow,
.hero-overlay,
.hero-fade {
  position: absolute;
  inset: 0;
}

.space-canvas {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.galaxy-glow {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(74, 135, 255, 0.2) 0%, rgba(28, 81, 190, 0.1) 24%, transparent 56%),
    radial-gradient(ellipse at 22% 72%, rgba(29, 77, 172, 0.1), transparent 36%),
    radial-gradient(ellipse at 82% 24%, rgba(79, 152, 255, 0.08), transparent 30%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-overlay {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 44%, transparent 0%, rgba(0, 4, 12, 0.1) 36%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 2, 8, 0.38));
}
.hero-fade { top: auto; height: 230px; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 36px), 900px);
  padding-top: 82px;
  text-align: center;
}

.hero-glass {
  position: relative;
  padding: clamp(42px, 6vw, 72px) clamp(24px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid rgba(161, 195, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(12, 20, 38, 0.58), rgba(4, 8, 18, 0.38));
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.48),
    0 0 70px rgba(50, 111, 229, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.06), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(116, 166, 255, 0.12), transparent 42%);
}

.hero-glass > * {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  margin: 0 0 30px;
  color: rgba(245,245,245,0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
}
.hero h1 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(74px, 10vw, 154px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.86;
  text-shadow:
    0 4px 28px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(98, 151, 255, 0.12);
}
.role-line { margin: 0 0 18px; color: var(--muted); font-size: clamp(18px, 2vw, 28px); }
.role-line span {
  display: inline-block;
  color: var(--text);
  font-family: Georgia, serif;
  font-style: italic;
  animation: role-in 450ms ease both;
}
.hero-description {
  max-width: 550px;
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pill-button {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform 200ms ease;
}
.pill-button:hover { transform: scale(1.05); }
.pill-button span { position: relative; z-index: 1; }
.pill-solid { background: var(--text); color: var(--bg); }
.pill-solid:hover { background: var(--bg); color: var(--text); }
.pill-outline { border: 2px solid var(--stroke); background: var(--bg); color: var(--text); }
.pill-outline:hover { border-color: transparent; }

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.scroll-cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: var(--stroke); }
.scroll-cue b {
  position: absolute;
  left: 0;
  width: 1px;
  height: 18px;
  background: var(--text);
  animation: scroll-down 1.5s ease-in-out infinite;
}

.section { padding: 110px 0; background: var(--bg); }
.container { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
}
.section-eyebrow i { width: 32px; height: 1px; background: var(--stroke); }
.section-head h2, .explore-center h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 1;
  font-weight: 500;
}
.section-copy { margin: 16px 0 0; color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; gap: 20px; align-items: center; padding: 12px 18px; border: 1px solid var(--stroke); border-radius: 999px; font-size: 12px; }
.text-link:hover { border-color: var(--blue-a); }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: var(--surface);
  cursor: pointer;
}
.project-7 { grid-column: span 7; }
.project-5 { grid-column: span 5; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms ease; }
.project-card:hover img { transform: scale(1.06); }
.halftone {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}
.project-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  background: rgba(10,10,10,0.66);
  backdrop-filter: blur(12px);
  transition: opacity 260ms ease;
}
.project-card:hover .project-hover { opacity: 1; }
.project-hover span {
  padding: 13px 19px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#f5f5f5, #f5f5f5) padding-box,
    linear-gradient(90deg, var(--blue-a), var(--blue-b)) border-box;
  color: var(--bg);
  font-size: 13px;
}

.journal { padding-top: 70px; }
.journal-list { display: grid; gap: 12px; }
.journal-row {
  display: grid;
  grid-template-columns: 92px 1fr auto 32px;
  align-items: center;
  gap: 24px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(20,20,20,0.45);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.journal-row:hover { transform: translateX(5px); border-color: #363636; background: var(--surface); }
.journal-row img { width: 92px; height: 62px; border-radius: 999px; object-fit: cover; }
.journal-row span { color: var(--muted); font-size: 10px; }
.journal-row h3 { margin: 6px 0 0; font-size: 16px; font-weight: 500; }
.journal-row time { color: var(--muted); font-size: 10px; }
.journal-row b { color: var(--blue-a); font-size: 20px; }

.explorations {
  position: relative;
  min-height: 300vh;
  background: var(--bg);
}
.explore-center {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.explore-center p:not(.section-eyebrow) { max-width: 500px; margin: 18px 0 30px; color: var(--muted); line-height: 1.7; }
.parallax-gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(calc(100% - 36px), 1400px);
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(70px, 15vw, 220px);
  pointer-events: none;
}
.gallery-column { display: flex; flex-direction: column; justify-content: space-around; align-items: center; padding: 35vh 0; will-change: transform; }
.gallery-right { padding-top: 70vh; padding-bottom: 10vh; }
.gallery-column figure {
  width: min(32vw, 310px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0,0,0,0.38);
}
.gallery-left figure:nth-child(1) { transform: rotate(-6deg); }
.gallery-left figure:nth-child(2) { transform: rotate(4deg); }
.gallery-left figure:nth-child(3) { transform: rotate(-3deg); }
.gallery-right figure:nth-child(1) { transform: rotate(5deg); }
.gallery-right figure:nth-child(2) { transform: rotate(-5deg); }
.gallery-right figure:nth-child(3) { transform: rotate(3deg); }
.gallery-column img { width: 100%; height: 100%; object-fit: cover; }

.stats { padding: 100px 0; border-top: 1px solid var(--stroke); background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-grid div { padding: 24px 34px; border-right: 1px solid var(--stroke); text-align: center; }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { display: block; font-family: Georgia, serif; font-size: clamp(60px, 8vw, 110px); font-style: italic; font-weight: 400; }
.stats-grid sup { color: var(--blue-a); font-size: 0.45em; }
.stats-grid span { color: var(--muted); font-size: 12px; }

.contact {
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--bg);
}
.contact-bg, .contact-bg img, .contact-overlay { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; transform: scaleY(-1); filter: saturate(0.7); }
.contact-overlay { background: rgba(0,0,0,0.72); }
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,0.12); white-space: nowrap; }
.marquee div { width: max-content; font-family: Georgia, serif; font-size: clamp(42px, 7vw, 100px); font-style: italic; animation: marquee 35s linear infinite; }
.contact-content { position: relative; z-index: 2; width: min(calc(100% - 36px), 900px); margin: auto; padding: 80px 0; text-align: center; }
.contact-content > p { color: var(--muted); font-size: 10px; letter-spacing: 0.3em; }
.contact-content h2 { margin: 24px 0 42px; font-size: clamp(46px, 7vw, 98px); line-height: 0.98; font-weight: 500; }
.contact-content h2 em { color: var(--blue-a); }
.footer-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 11px;
}
.footer-bar > div:first-child { display: flex; gap: 24px; }
.footer-bar a:hover { color: var(--text); }
.available { color: var(--text); }
.available i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #69dc85; box-shadow: 0 0 0 5px rgba(105,220,133,0.12); animation: pulse 1.6s ease infinite; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; }
.lightbox.is-open { display: block; }
.lightbox-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.84); }
.lightbox-panel {
  position: absolute;
  inset: clamp(12px, 3vw, 42px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--surface);
}
.lightbox-close { position: absolute; top: 18px; right: 18px; z-index: 2; padding: 10px 15px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--bg); font-size: 11px; cursor: pointer; }
.lightbox-panel header { padding: 28px 32px; border-bottom: 1px solid var(--stroke); }
.lightbox-panel header p { margin: 0 0 8px; color: var(--muted); font-size: 10px; letter-spacing: 0.25em; }
.lightbox-panel header h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 70px); font-style: italic; font-weight: 400; }
.lightbox-images { display: grid; grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr); gap: 1px; overflow: auto; background: var(--stroke); }
.lightbox-images img { width: 100%; min-height: 100%; object-fit: cover; background: var(--bg); }
.lightbox-images img:last-child { height: auto; min-height: 100%; object-fit: contain; align-self: start; }

.name-reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.blur-in { opacity: 0; filter: blur(10px); transform: translateY(20px); transition: opacity 1s ease, filter 1s ease, transform 1s ease; }
body.is-ready .name-reveal, body.is-ready .blur-in { opacity: 1; filter: blur(0); transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 900ms ease, transform 900ms cubic-bezier(.25,.1,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes scroll-down { 0% { transform: translateY(-100%); } 100% { transform: translateY(220%); } }
@keyframes role-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.42; } }

@media (max-width: 820px) {
  .project-7, .project-5 { grid-column: span 12; }
  .project-card { min-height: 520px; }
  .journal-row { grid-template-columns: 74px 1fr 26px; border-radius: 34px; }
  .journal-row img { width: 74px; height: 74px; border-radius: 28px; }
  .journal-row time { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid div { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .stats-grid div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .nav-divider { display: none; }
  .nav-links a { padding-inline: 11px; font-size: 12px; }
  .say-hi { padding-inline: 12px; font-size: 12px; }
  .hero h1 { font-size: clamp(68px, 23vw, 98px); }
  .hero-glass { padding: 42px 20px; border-radius: 24px; }
  .role-line { font-size: 18px; }
  .section { padding: 82px 0; }
  .section-head { display: block; }
  .text-link { display: none; }
  .project-card { min-height: 440px; border-radius: 18px; }
  .journal-row { gap: 14px; padding-right: 13px; }
  .journal-row h3 { font-size: 14px; line-height: 1.35; }
  .journal-row span { font-size: 9px; }
  .gallery-column figure { width: min(38vw, 190px); border-radius: 15px; }
  .parallax-gallery { gap: 50px; }
  .footer-bar { display: grid; }
  .footer-bar > div:first-child { flex-wrap: wrap; }
  .lightbox-panel { inset: 0; border-radius: 0; }
  .lightbox-panel header { padding: 24px 18px; }
  .lightbox-images { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
