/* SEITO — i-D direction: white ground, black type, big images */
:root {
  --ink: #000;
  --ink-2: #333;
  --ink-3: #595959;
  --line: #000;
  --line-soft: #d4d4d4;
  --ground: #fff;
  --placeholder: #ededed;
  --gutter: 24px;
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Inter Tight", "Noto Sans TC", -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- labels ---------- */
.kicker {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.byline { display: block; font-size: 13px; color: var(--ink-3); }
.text-link {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease); padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; padding: 18px var(--gutter);
  transition: padding .3s var(--ease);
}
.header-left, .header-right {
  display: flex; gap: 20px; align-items: center;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.header-right { justify-content: flex-end; }
.header-left a, .header-right a, .site-nav a { position: relative; }
.header-left a::after, .header-right a::after, .site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.header-left a:hover::after, .header-right a:hover::after, .site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo img { height: 64px; width: auto; transition: height .3s var(--ease); }
.site-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 36px;
  padding: 12px var(--gutter); border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--ink); padding: 8px 12px;
  min-height: 40px; cursor: pointer; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.site-header.is-compact .header-top { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-compact .logo img { height: 36px; }

/* ---------- placeholders & media ---------- */
.img-placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: var(--placeholder); color: #b5b5b5; font-weight: 900; letter-spacing: -.04em;
  font-size: clamp(24px, 4vw, 48px);
}
.card-media, .lead-media { position: relative; overflow: hidden; background: var(--placeholder); }
.card-media { aspect-ratio: 4 / 5; }
.card-media.ratio-45 { aspect-ratio: 4 / 5; }
.card-media.ratio-32 { aspect-ratio: 3 / 2; }
.card-media img, .lead-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s ease;
}

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; }
.card-title { font-size: 24px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.card-dek { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.card:hover .card-media img { transform: scale(1.04); }
.card .card-title {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease); width: fit-content;
}
.card:hover .card-title { background-size: 100% 2px; }
.has-swap .swap { position: absolute; inset: 0; opacity: 0; }
.merch-card:hover .has-swap .swap, .project-card:hover .has-swap .swap { opacity: 1; }
.merch-card:hover .has-swap img, .project-card:hover .has-swap img { transform: none; }
.project-card .card-title { font-size: 28px; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 48px 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- home ---------- */
.lead-story {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 48px;
  align-items: center; padding: 32px 0 56px;
}
.lead-media { aspect-ratio: 4 / 5; }
.lead-story:hover .lead-media img { transform: scale(1.02); }
.lead-text { display: flex; flex-direction: column; gap: 18px; }
.lead-story h1 {
  margin: 0; font-size: clamp(34px, 4.4vw, 64px); font-weight: 900;
  line-height: 1.08; letter-spacing: -.03em;
}
.lead-story .dek { margin: 0; font-size: 19px; color: var(--ink-2); }
.lead-story .text-link { width: fit-content; }
.lead-story:hover .text-link { background-size: 100% 2px; }
.home-section { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.section-title { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -.02em; }

/* ---------- page heads ---------- */
.page-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 64px 0 40px;
}
.page-head h1 { margin: 0; font-size: clamp(56px, 9vw, 120px); font-weight: 900; letter-spacing: -.05em; line-height: .95; }
.page-head p { margin: 0; max-width: 560px; font-size: 18px; color: var(--ink-2); }
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  padding: 0 0 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
.filter {
  min-height: 44px; padding: 0 14px; background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); text-underline-offset: 6px;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.filter-item[hidden] { display: none; }
a.filter { display: inline-flex; align-items: center; text-decoration: none; }
a.filter.is-active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.article-body .m-clip { max-width: 420px; margin-left: auto; margin-right: auto; }
.article-body .m-clip video { background: #000; }
.article-body p strong:only-child { font-size: 20px; line-height: 1.6; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0 80px; }

/* ---------- article ---------- */
.article-head {
  max-width: 920px; margin: 0 auto; padding: 64px var(--gutter) 36px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.article-head h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; }
.article-head .dek { margin: 0; max-width: 680px; font-size: 20px; color: var(--ink-2); }
.article-meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; color: var(--ink-2); }
.article-meta strong { color: var(--ink); }
.article-hero { margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); }
.article-hero img { width: auto; max-width: 100%; height: auto; max-height: 86vh; object-fit: contain; margin: 0 auto; }
.article-hero figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.article-body { max-width: 700px; margin: 0 auto; padding: 48px var(--gutter) 72px; font-size: 18px; line-height: 1.9; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-size: 28px; font-weight: 900; line-height: 1.3; margin: 1.8em 0 .6em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s; }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body img { width: 100%; margin: 2em 0; cursor: zoom-in; }
.article-body blockquote { margin: 1.6em 0; padding: 0; font-size: 30px; font-weight: 900; line-height: 1.35; text-align: center; }
.read-next { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 72px; border-top: 1px solid var(--line); }
.read-next .section-title { margin-bottom: 28px; }

/* ---------- article media blocks ---------- */
.article-body figure { margin: 2.2em 0; }
.article-body figure img, .article-body figure video { width: 100%; margin: 0; display: block; }
.article-body .m-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-left: -12%; margin-right: -12%; }
.article-body .m-single { margin-left: -6%; margin-right: -6%; }
.article-body figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.article-body video { background: var(--placeholder); }
.hero-video { max-width: 720px; }
.hero-video video { width: 100%; display: block; }

/* gallery-style article: swipeable cards */
.slider { max-width: var(--max); margin: 0 auto; padding: 8px 0 64px; }
.slider-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(420px, 78vw); margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; cursor: zoom-in; display: block; }
.slide figcaption { margin-top: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.slider-nav button {
  width: 44px; height: 44px; border: 1px solid var(--ink); background: none; cursor: pointer; font-size: 18px;
  transition: background .2s, color .2s;
}
.slider-nav button:hover { background: var(--ink); color: var(--ground); }
.slider-count { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.style-gallery .article-body { padding-bottom: 32px; }

/* event: text beside poster, then photo essay */
.event-intro {
  max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px; align-items: start; padding: 0 var(--gutter);
}
.event-intro .article-body { padding-left: 0; padding-right: 0; margin: 0; }
.event-poster { position: sticky; top: 140px; padding-top: 48px; }
.event-poster img { width: 100%; cursor: zoom-in; }
.event-video { max-width: 420px; margin: 0 auto 48px; padding: 0 var(--gutter); }
.event-video video { width: 100%; display: block; background: #000; }
.essay {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 80px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.essay-item { margin: 0; overflow: hidden; background: var(--placeholder); }
.essay-item.is-wide { grid-column: 1 / -1; }
.essay-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .8s var(--ease); }
.essay-item:hover img { transform: scale(1.02); }

/* ---------- merch detail ---------- */
.merch-detail {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 80px;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px;
}
.merch-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.merch-gallery figure { margin: 0; overflow: hidden; background: var(--placeholder); }
.merch-gallery figure.is-lead { grid-column: 1 / -1; }
.merch-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .8s var(--ease); }
.merch-gallery figure:hover img { transform: scale(1.03); }
.merch-info-inner { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 20px; }
.merch-info h1 { margin: 0; font-size: clamp(32px, 3.5vw, 48px); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; }
.spec { margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 8px 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.spec:empty { display: none; }
.spec dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding-top: 2px; }
.spec dd { margin: 0; }
.merch-story { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.merch-story p { margin: 0 0 1em; }

/* ---------- creative project ---------- */
.project-body { padding-bottom: 24px; }
.project-gallery {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 24px;
  columns: 2; column-gap: 16px;
}
.project-gallery figure { margin: 0 0 16px; break-inside: avoid; overflow: hidden; background: var(--placeholder); }
.project-gallery img { width: 100%; cursor: zoom-in; transition: transform .8s var(--ease); }
.project-gallery figure:hover img { transform: scale(1.03); }
.project-reels { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter); }
.project-reels .section-title { margin-bottom: 20px; }
.reels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.reels-grid .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.project-credits { max-width: 700px; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.project-credits .kicker { margin: 0 0 12px; }
.project-credits .spec { grid-template-columns: 160px 1fr; }

/* buy box (merch that is on sale) */
.buy-box { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 4px; }
.buy-price { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.buy-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 0 24px; background: #88271d; color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  transition: background .2s, transform .2s;
}
.buy-button:hover { background: #000; color: #fff; text-decoration: none; }
.buy-button span { transition: transform .25s var(--ease); }
.buy-button:hover span { transform: translateX(4px); }
.buy-note { font-size: 13px; color: var(--ink-3); }
.badge {
  display: inline-block; width: fit-content; padding: 3px 8px; background: #88271d; color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- about ---------- */
.about-body { max-width: 760px; margin: 0 auto; padding-bottom: 96px; font-size: 19px; line-height: 1.8; }
.about-lead { font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.about-tag { font-size: 44px; font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin: 1.2em 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 48px; width: auto; align-self: flex-start; }
.footer-brand p { margin: 0; font-size: 15px; color: var(--ink-2); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { max-width: var(--max); margin: 40px auto 0; font-size: 13px; color: var(--ink-3); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: center; padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer;
  font-size: 28px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { opacity: .6; }
.lightbox-close { top: 8px; right: 8px; font-size: 36px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 16px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; }

/* ---------- fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .event-intro { grid-template-columns: 1fr; gap: 0; }
  .event-poster { position: static; padding-top: 0; max-width: 420px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merch-detail { grid-template-columns: 1fr; }
  .merch-info-inner { position: static; }
  .merch-info { order: -1; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .project-gallery { columns: 1; }
  .lead-story { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .article-body .m-pair, .article-body .m-single { margin-left: 0; margin-right: 0; }
  .article-body .m-pair { gap: 8px; }
  .essay { grid-template-columns: 1fr; gap: 8px; }
  .project-credits .spec { grid-template-columns: 120px 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .header-left { display: none; }
  .header-top { grid-template-columns: auto 1fr; }
  .logo img { height: 40px; }
  .header-right a { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 var(--gutter); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .site-nav a::after { display: none; }
  .card-title { font-size: 22px; }
  .section-title { font-size: 28px; }
  .article-body { font-size: 17px; }
  .lightbox { padding: 56px 8px; }
  .merch-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* portrait covers on project pages: show whole image */
.project .article-hero img { width: auto; max-width: 100%; height: auto; max-height: 88vh; object-fit: contain; margin: 0 auto; }
