:root{
  --bg:#0b0f14;
  --line:rgba(255,255,255,.08);
  --text:#f3f7fb;
  --muted:#97a2af;
  --shadow:0 24px 70px rgba(0,0,0,.32);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.06), transparent 32%),
    linear-gradient(180deg, #0b0f14 0%, #101720 100%);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
a{color:inherit;text-decoration:none}
button{font:inherit}

.hero{
  position:relative;
  min-height:44vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:64px 20px 44px;
  border-bottom:1px solid var(--line);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:1;
  max-width:760px;
}
.avatar{
  width:92px;
  height:92px;
  border-radius:999px;
  object-fit:cover;
  display:block;
  margin:0 auto 18px;
  border:3px solid rgba(255,255,255,.12);
  background:#1a2330;
  box-shadow:var(--shadow);
}
.eyebrow{
  margin:0 0 12px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.24em;
  text-transform:uppercase;
}
.hero h1{
  margin:0 0 12px;
  font-size:42px;
  line-height:1.06;
  letter-spacing:-.02em;
}
.bio{
  margin:0 auto 20px;
  max-width:680px;
  color:var(--muted);
  line-height:1.8;
}
.profile-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  transition:.2s ease;
}
.profile-link:hover{background:rgba(255,255,255,.11)}

.page{
  width:min(1400px, calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 56px;
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:18px;
}
.section-head h2{
  margin:0 0 6px;
  font-size:22px;
}
.section-head p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.gallery{
  column-count:4;
  column-gap:14px;
}
.photo-card{
  position:relative;
  break-inside:avoid;
  margin-bottom:14px;
  overflow:hidden;
  border-radius:22px;
  background:#10161e;
  border:1px solid var(--line);
  box-shadow:0 12px 30px rgba(0,0,0,.18);
  cursor:pointer;
}
.photo-card img{
  width:100%;
  display:block;
  object-fit:cover;
  transition:transform .35s ease, filter .25s ease;
}
.photo-card:hover img{
  transform:scale(1.02);
  filter:brightness(1.03);
}
.photo-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:14px 14px 12px;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}
.photo-title{font-size:13px;color:#fff}
.photo-sub{
  margin-top:4px;
  font-size:12px;
  color:rgba(255,255,255,.72);
}

.sentinel{height:1px}
.hidden{display:none}

.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(5,8,12,.88);
  backdrop-filter:blur(10px);
  padding:20px;
}
.lightbox-shell{
  width:min(1480px, 100%);
  height:100%;
  margin:0 auto;
  display:grid;
  grid-template-columns:70px 1fr 70px;
  gap:16px;
  align-items:center;
}
.lightbox-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:16px;
  align-items:start;
}
.preview-panel{
  overflow:hidden;
  border-radius:26px;
  border:1px solid var(--line);
  background:#0f151d;
}
#lightboxImg{
  width:100%;
  max-height:84vh;
  object-fit:contain;
  display:block;
}
.detail-panel{
  border-radius:24px;
  border:1px solid var(--line);
  background:rgba(18,24,31,.82);
  padding:18px;
  box-shadow:var(--shadow);
}
.detail-header{
  margin-bottom:16px;
}
.detail-label{
  margin:0 0 8px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.detail-header h3{
  margin:0 0 12px;
  font-size:20px;
  line-height:1.35;
  font-weight:600;
}
.action-link{
  color:var(--muted);
  font-size:14px;
  transition:.2s ease;
}
.action-link:hover{
  color:var(--text);
}
.meta-lines{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.meta-line{
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.meta-line:last-child{
  border-bottom:none;
  padding-bottom:0;
}
.meta-line .k{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:4px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.meta-line .v{
  display:block;
  font-size:14px;
  line-height:1.5;
}

.icon-btn,.nav-btn{
  border:none;
  cursor:pointer;
}
.close-btn{
  position:absolute;
  top:16px;
  right:18px;
  width:46px;
  height:46px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:28px;
  border:1px solid var(--line);
}
.nav-btn{
  width:56px;
  height:56px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:34px;
  border:1px solid var(--line);
  transition:.2s ease;
}
.nav-btn:hover,
.close-btn:hover{
  background:rgba(255,255,255,.14);
}

.site-footer{
  border-top:1px solid var(--line);
  padding:18px 20px 26px;
}
.footer-inner{
  width:min(1400px, calc(100% - 0px));
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  color:var(--muted);
  font-size:14px;
}
.footer-inner p{margin:0}

@media (max-width: 1180px){
  .gallery{column-count:3}
}
@media (max-width: 900px){
  .gallery{column-count:2}
  .lightbox{padding:10px}
  .lightbox-shell{grid-template-columns:1fr}
  .lightbox-main{
    grid-template-columns:1fr;
    gap:12px;
  }
  #lightboxImg{max-height:58vh}
  .nav-btn{
    position:fixed;
    bottom:16px;
    z-index:2;
    width:50px;
    height:50px;
  }
  .nav-left{left:12px}
  .nav-right{right:12px}
}
@media (max-width: 640px){
  .hero{
    min-height:38vh;
    padding:48px 16px 34px;
  }
  .hero h1{font-size:32px}
  .page{
    width:min(100% - 20px, 1400px);
    padding-top:22px;
  }
  .gallery{column-count:1}
  .photo-card,
  .preview-panel,
  .detail-panel{
    border-radius:20px;
  }
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}
