:root {
  --night: #071423;
  --paper: #f4f8fd;
  --muted: #9babbc;
  --line: rgba(185, 207, 228, 0.17);
  --aqua: #2fdcc5;
  --display: "Manrope", "Noto Sans TC", sans-serif;
  --body: "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--paper); background: var(--night); font-family: var(--body); }
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
.photo-nav {
  position: absolute; z-index: 4; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 25px clamp(22px, 5vw, 70px); color: white;
}
.photo-brand { display: inline-flex; gap: 12px; align-items: center; font: 800 12px var(--display); letter-spacing: .16em; }
.photo-brand span { display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; color: var(--aqua); background: rgba(4,15,27,.25); backdrop-filter: blur(10px); }
.back-link { border-bottom: 1px solid rgba(255,255,255,.36); padding-bottom: 5px; font-size: 12px; }
.album-hero {
  position: relative; display: flex; min-height: 86vh; overflow: hidden; flex-direction: column; justify-content: end;
  padding: 150px clamp(22px, 8vw, 120px) clamp(70px, 9vw, 110px);
  background:
    linear-gradient(110deg, rgba(4,13,25,.96), rgba(4,13,25,.74) 45%, rgba(4,13,25,.15)),
    var(--hero-image, linear-gradient(135deg,#132b45,#18384c));
  background-position: center; background-size: cover;
}
.hero-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.17) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.17) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg,black,transparent); }
.album-index { position: relative; margin: 0 0 18px; color: var(--aqua); font: 800 10px var(--display); letter-spacing: .25em; }
.album-hero h1 { position: relative; max-width: 980px; margin: 0; font: 800 clamp(58px, 11vw, 150px)/.95 var(--display); letter-spacing: -.075em; }
.hero-meta { position: relative; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 31px; color: rgba(255,255,255,.72); font: 700 10px var(--display); letter-spacing: .17em; text-transform: uppercase; }
.hero-meta span:not(:empty)::before { display: inline-block; width: 5px; height: 5px; margin: 0 10px 1px 0; border-radius: 50%; content: ""; background: var(--aqua); }
.album-summary { position: relative; max-width: 600px; margin: 28px 0 0; color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.9; }
.scroll-cue { position: absolute; right: clamp(22px,6vw,90px); bottom: 70px; display: grid; gap: 8px; justify-items: center; color: rgba(255,255,255,.7); font: 700 9px var(--display); letter-spacing: .18em; }
.scroll-cue span { font-size: 20px; animation: cue 1.5s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px); } }
.frames-section { width: min(1420px, calc(100% - 44px)); margin: 0 auto; padding: 100px 0 120px; }
.frames-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 42px; }
.frames-heading p { margin: 0 0 10px; color: var(--aqua); font: 800 9px var(--display); letter-spacing: .24em; }
.frames-heading h2 { margin: 0; font: 800 clamp(38px, 6vw, 72px) var(--display); letter-spacing: -.06em; }
.frames-heading > span { color: var(--muted); font: 700 10px var(--display); letter-spacing: .18em; }
.masonry { columns: 3 320px; column-gap: 16px; }
.frame { position: relative; display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; overflow: hidden; border: 0; border-radius: 4px; padding: 0; background: #102236; }
.frame img { display: block; width: 100%; height: auto; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s; }
.frame:hover img { transform: scale(1.025); filter: brightness(.78); }
.frame span { position: absolute; right: 17px; bottom: 15px; left: 17px; opacity: 0; color: white; text-align: left; transform: translateY(8px); transition: .25s; }
.frame:hover span { opacity: 1; transform: none; }
.load-state { border: 1px dashed var(--line); border-radius: 18px; padding: 34px; color: var(--muted); text-align: center; }
footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 35px clamp(22px,5vw,70px); color: var(--muted); font: 600 10px var(--display); letter-spacing: .12em; }
.lightbox { position: fixed; z-index: 40; inset: 0; display: grid; grid-template-columns: 80px 1fr 80px; place-items: center; padding: 32px; background: rgba(2,8,15,.96); }
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; max-width: min(1300px, calc(100vw - 180px)); max-height: calc(100vh - 64px); margin: 0; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox figcaption { display: flex; width: 100%; justify-content: space-between; gap: 30px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.lightbox figcaption strong { color: white; }
.lightbox-close { position: absolute; top: 20px; right: 24px; border: 0; background: transparent; font-size: 34px; }
.lightbox-nav { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); font-size: 20px; }
.lightbox-nav:hover { border-color: var(--aqua); color: var(--aqua); }
@media (max-width: 700px) {
  .photo-nav { padding-inline: 17px; }
  .photo-brand strong { display: none; }
  .album-hero { min-height: 78vh; padding-inline: 20px; }
  .album-hero h1 { font-size: clamp(54px, 18vw, 86px); }
  .scroll-cue { display: none; }
  .frames-section { width: calc(100% - 24px); padding-top: 65px; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .frame { margin-bottom: 8px; border-radius: 3px; }
  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lightbox figure { max-width: 100%; }
  .lightbox-nav { position: absolute; bottom: 20px; }
  .lightbox-nav.previous { left: 18px; }
  .lightbox-nav.next { right: 18px; }
  .lightbox figcaption { padding-bottom: 64px; }
  footer { align-items: start; flex-direction: column; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
