:root {
  --background: #101111;
  --surface: #1a1c1c;
  --text: #f1f0eb;
  --muted: #a5a7a2;
  --line: #343636;
  --accent: #f17078;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.65 Arial, "Noto Sans TC", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote { margin: 0; }
.shell { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: 16px; z-index: 5; background: var(--surface); padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { min-height: 72px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 12px; }
.top nav, .brand, .links { display: flex; align-items: center; gap: 24px; }
.brand { gap: 6px; font-weight: 800; letter-spacing: .12em; }
.brand img { object-fit: contain; flex: none; width: 46.5px; height: 46.5px; }
.top nav a, .links a { font-size: .85rem; font-weight: 700; }
.contact, .links a { border: 1px solid var(--line); padding: 8px 15px; border-radius: 2px; }
.hero { margin-top: 33px; margin-bottom: 105px; }
.intro { margin-bottom: 21px; }
.intro p, .kicker { font: 700 .7rem/1.55 "Courier New", monospace; letter-spacing: .1em; color: var(--muted); }
.showreel { width: 100%; aspect-ratio: 16 / 9; background: #090909; overflow: hidden; }
.showreel iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
h2 { font-size: clamp(34px, 5vw, 66px); line-height: 1.15; letter-spacing: -.065em; }
.categories { display: flex; flex-wrap: wrap; gap: 10px 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; margin-top: 20px; }
.categories a { color: var(--muted); font-weight: 700; font-size: .9rem; }
.categories a:hover { color: var(--accent); }
.collection { margin: 42px 0 66px; scroll-margin-top: 20px; }
.collection + .collection { border-top: 1px solid var(--line); padding-top: 25px; }
.collection h3 { font-size: 1.15rem; margin-bottom: 15px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card { display: block; width: 100%; border: 0; background: none; padding: 0; text-align: left; }
.thumb { display: grid; place-items: center; position: relative; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(155deg, #292b2c, #151616); overflow: hidden; color: var(--text); }
.thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .3s, filter .3s; }
.card:hover img, .card:focus-visible img { transform: scale(1.035); filter: brightness(.8); }
.thumbnail-fallback { padding: 12px 26px; text-align: center; color: var(--muted); font-size: .85rem; }
.grid.social { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 850px; margin-inline: auto; gap: clamp(8px, 2vw, 24px); }
.social .thumb { aspect-ratio: 9 / 16; }
.social .thumbnail-fallback { padding-inline: 10px; }
main { container-type: inline-size; }
.portrait-viewport {
  position: relative;
  left: 50%;
  width: 100cqw;
  transform: translateX(-50%);
  overflow-x: hidden;
}
.portrait-track { display: flex; width: max-content; animation: portrait-scroll 60s linear infinite; }
.portrait-viewport .grid { display: flex; flex: none; gap: 10px; padding-inline-end: 10px; }
.portrait-viewport .card { flex: 0 0 auto; width: max(13cqw, clamp(188.5px, 28.6vw, 364px)); }
.portrait-viewport:focus-within .portrait-track { animation-play-state: paused; }
@media (hover: hover) {
  .portrait-viewport:hover .portrait-track { animation-play-state: paused; }
}
.portrait-viewport:has(.card:focus-visible) { overflow-x: auto; }
.portrait-viewport:has(.card:focus-visible) .portrait-track { animation: none; }
.portrait-viewport:has(.card:focus-visible) .portrait-repeat { display: none; }
@keyframes portrait-scroll {
  to { transform: translateX(-50%); }
}
.portraits .thumb { aspect-ratio: 4 / 5; }
.events .thumb { aspect-ratio: 3 / 2; }
.play { position: absolute; right: 10px; bottom: 10px; background: #101111d9; border: 1px solid #ffffff50; color: #fff; border-radius: 50%; width: 24.5px; height: 24.5px; display: grid; place-items: center; font-size: .539rem; }
.card:hover .play, .card:focus-visible .play { background: var(--text); color: var(--background); }
.about {
  display: grid;
  grid-template-columns: minmax(0, 61fr) minmax(0, 39fr);
  min-height: clamp(310px, 26.6vw, 560px);
}
.about-copy {
  display: grid;
  place-items: center;
  padding: 55px 44px;
  background: linear-gradient(#2c2522bd, #2c2522bd), url("media/photo-29.webp") center / cover no-repeat var(--surface);
}
.about-content h2 { font-size: clamp(32px, 3.8vw, 54px); letter-spacing: -.025em; margin: 0 0 clamp(34px, 3.2vw, 48px); }
.about-quote {
  text-align: center;
  position: relative;
  color: #f7e5c5;
  font-size: clamp(16px, 1.4vw, 26px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.75;
}
.about-quote-open, .about-quote-close {
  position: absolute;
  color: var(--accent);
  font: 700 4.5rem/.75 Georgia, serif;
}
.about-quote-open { top: -.35em; right: calc(100% + .42em); }
.about-quote-close { bottom: -.6em; left: calc(100% + .12em); }
.about-media { position: relative; }
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.kicker { color: var(--accent); margin-bottom: 8px; }
footer { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 62px 0 20px; flex-wrap: wrap; }
.end { border-top: 1px solid var(--line); width: 100%; padding-top: 14px; margin-top: 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.section-dots { position: fixed; z-index: 2; right: max(12px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; background: #101111b8; border-radius: 20px; }
.section-dots a { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.section-dots a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--text); }
.section-dots a:hover::before, .section-dots a[aria-current]::before { background: var(--accent); border-color: var(--accent); }
.section-dots a:focus-visible { outline-offset: -2px; }
dialog { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0; width: min(950px, 94vw); max-height: 92vh; }
#viewer[data-media="video"] { width: min(950px, 94vw, calc((92dvh - 72px) * 16 / 9)); }
#viewer[data-media="portrait-video"] { width: min(94vw, calc((92dvh - 2px) * 9 / 16)); }
#viewer[data-media="portrait-video"] .viewer-bar { display: none; }
#display iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
#viewer[data-media="portrait-video"] iframe { aspect-ratio: 9 / 16; }
dialog::backdrop { background: #000c; }
.close { position: absolute; top: 8px; right: 8px; z-index: 1; border: 0; border-radius: 50%; width: 42px; height: 42px; background: var(--background); font-size: 1.4rem; }
#display { background: #090909; }
#display img { display: block; margin: auto; max-height: 72vh; max-width: 100%; object-fit: contain; }
.viewer-bar { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
#paging button { background: transparent; border: 1px solid var(--line); padding: 5px 12px; margin-left: 5px; }
#paging { white-space: nowrap; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .hero { margin-bottom: 75px; }
  .top nav { gap: 15px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .section-dots { right: env(safe-area-inset-right, 0px); }
  .top { min-height: 62px; }
  .top nav { gap: 10px; }
  .top nav a { font-size: .75rem; }
  .brand { font-size: .75rem; gap: 4px; }
  .brand img { width: 34.5px; height: 34.5px; }
  .contact { padding: 6px 8px; }
  .hero { margin-top: 23px; margin-bottom: 62px; }
  .intro { margin-bottom: 13px; }
  .intro p { font-size: .59rem; }
  .categories { column-gap: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .play { width: 18.9px; height: 18.9px; right: 6px; bottom: 6px; }
  .collection { margin-bottom: 43px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-copy { padding: 66px 28px; }
  .about-quote-open, .about-quote-close { font-size: 3.2rem; }
  .about-quote-open { right: auto; left: -.15em; top: -.55em; }
  .about-quote-close { left: auto; right: -.15em; bottom: -.72em; }
  .about-media { aspect-ratio: 1400 / 1037; }
  .links { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait-viewport { overflow-x: auto; }
  .portrait-track { animation: none; }
  .portrait-viewport .portrait-repeat { display: none; }
  .showreel { background: #090909 url("https://i.ytimg.com/vi/co4TJjrm0Lo/maxresdefault.jpg") center / cover no-repeat; }
  .showreel iframe { display: none; }
  *, *::before, *::after { transition: none !important; }
}
