:root {
  --bg: #0a0d14;
  --panel: #111622;
  --panel-2: #161c2b;
  --line: #222a3b;
  --text: #e9edf4;
  --muted: #8d97ab;
  --accent: #5bd0e6;
  --accent-2: #8f80ff;
  --radius: 14px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2 { letter-spacing: -0.02em; line-height: 1.15; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { color: var(--text); font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--panel-2); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-size: 15px; font-weight: 550;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { text-decoration: none; border-color: #36405a; transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04121a; }
.btn-primary:hover { background: #7adcee; border-color: #7adcee; }
.btn-small { padding: 7px 14px; font-size: 14px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
  padding-top: 64px; padding-bottom: 40px;
}
.photo {
  width: 200px; height: 260px; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.eyebrow {
  margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 0; }
.hero .title { font-size: clamp(18px, 2.2vw, 22px); color: var(--text); opacity: .9; margin: 8px 0 16px; }
.lead { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.stats {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-top: 16px;
}
.stats div { background: var(--panel); padding: 20px 22px; }
.stats b {
  display: block; font-size: 30px; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { color: var(--muted); font-size: 14px; }

/* projects */
.project { padding: 72px 0 8px; border-top: 1px solid var(--line); margin-top: 48px; }
.project:first-child { margin-top: 24px; }
.project-head { display: grid; grid-template-columns: 360px 1fr; gap: 40px; margin-bottom: 32px; }
.project-title { display: flex; gap: 16px; align-items: flex-start; }
.logos { display: flex; flex-shrink: 0; }
.logo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 2px solid var(--bg);
}
.logo + .logo { margin-left: -14px; }
.project h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 6px; }
.project h2 a { color: var(--text); }
.role { margin: 0; color: var(--text); font-size: 15px; }
.role span { color: var(--muted); }
.about { margin: 0 0 12px; font-size: 17px; }
.project-body ul { margin: 0 0 16px; padding-left: 20px; color: #c6cddb; }
.project-body li { margin-bottom: 6px; }
.project-body li::marker { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 13px; padding: 4px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.note::before { content: "🔒 "; }

/* galleries */
.gallery { display: grid; gap: 24px; align-items: start; }
.gallery-wide { grid-template-columns: repeat(2, 1fr); }
.gallery-wide .shot-full { grid-column: 1 / -1; }
.gallery-tall { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gallery-phone { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
.gallery-phone .shot-video { position: sticky; top: 84px; }
.shot-stack { display: grid; gap: 24px; }

.shot { margin: 0; }
.shot-open {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.shot-open:hover, .shot-open:focus-visible {
  transform: translateY(-3px); border-color: #3a4560; outline: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.shot-open::after {
  content: "⤢"; position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(10, 13, 20, .75); color: var(--text); font-size: 18px;
  opacity: 0; transition: opacity .2s;
}
.shot-open:hover::after, .shot-open:focus-visible::after { opacity: 1; }
.shot-open img, .shot-open video { width: 100%; }
.play-badge {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--accent); color: #04121a;
}
.shot figcaption { padding: 12px 4px 0; font-size: 14px; color: var(--muted); }
.shot figcaption b { display: block; color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 2px; }

/* earlier */
.earlier { padding: 72px 0 0; border-top: 1px solid var(--line); margin-top: 48px; }
.earlier h2 { font-size: 28px; margin: 0 0 20px; }
.earlier ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.earlier li {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.logo-sm { width: 32px; height: 32px; border: 0; }
.earlier b { display: block; font-size: 15px; }
.earlier span { font-size: 13px; color: var(--muted); }

.footer { padding-top: 64px; padding-bottom: 48px; margin-top: 72px; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 8px; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 7, 11, .97);
  display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
}
.lb[hidden] { display: none; }
.lb-stage {
  position: relative; overflow: auto; display: flex; align-items: center; justify-content: center;
  padding: 56px 72px 12px; overscroll-behavior: contain;
}
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto;
  border-radius: 10px; cursor: zoom-in; user-select: none;
}
.lb.zoom .lb-stage { display: block; padding: 56px 24px 12px; }
.lb.zoom .lb-stage img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.lb-bar {
  display: flex; gap: 24px; align-items: flex-start; justify-content: space-between;
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 14px 24px 22px;
}
.lb-caption b { display: block; font-size: 17px; margin-bottom: 2px; }
.lb-caption span { color: var(--muted); font-size: 15px; }
.lb-count { color: var(--muted); font-size: 14px; white-space: nowrap; padding-top: 3px; }
.lb-btn {
  position: absolute; border: 1px solid var(--line); background: rgba(22, 28, 43, .85); color: var(--text);
  width: 46px; height: 46px; border-radius: 12px; font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.lb-btn:hover { background: #222a3d; }
.lb-close { top: 12px; right: 12px; font-size: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* responsive */
@media (max-width: 980px) {
  .project-head { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar-in { gap: 12px; }
  .brand { display: none; }
  .nav { margin-left: 0; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .photo { width: 120px; height: 156px; border-radius: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats b { font-size: 24px; }
  .project { padding-top: 48px; }
  .gallery { gap: 18px; }
  .gallery-wide, .gallery-phone { grid-template-columns: 1fr; }
  .gallery-phone .shot-video { position: static; width: 72%; margin: 0 auto; }
  .gallery-tall {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  }
  .gallery-tall .shot { scroll-snap-align: center; }
  .lb-stage { padding: 56px 8px 8px; }
  .lb-prev, .lb-next { display: none; }
  .lb-bar { padding: 10px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
