@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Noto+Sans+JP:wght@300;400;500;600&display=swap');

:root {
  --bg: #071018;
  --bg-deep: #03070b;
  --panel: rgba(10, 20, 29, .88);
  --panel-strong: #0d1822;
  --line: rgba(139, 196, 223, .20);
  --line-strong: rgba(139, 196, 223, .42);
  --text: #eef6f8;
  --muted: #9fb0b8;
  --ice: #9bd8f2;
  --gold: #f1ca67;
  --shadow: rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(43, 112, 143, .22), transparent 32rem),
    radial-gradient(circle at 84% 16%, rgba(241, 202, 103, .09), transparent 28rem),
    linear-gradient(180deg, #09141e 0%, var(--bg) 42%, var(--bg-deep) 100%);
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.75;
  letter-spacing: .025em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(132, 199, 229, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 199, 229, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.018) 47% 48%, transparent 48% 100%);
}

main {
  position: relative;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.page-header {
  position: relative;
  padding: 7.5rem 0 5rem;
  text-align: left;
}

.page-header::before {
  content: "BOUM / 2026";
  position: absolute;
  top: 2.2rem;
  right: 0;
  color: rgba(155, 216, 242, .34);
  font-size: .72rem;
  letter-spacing: .34em;
}

.sigil {
  max-width: 860px;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-header > .sigil:first-child {
  color: var(--ice);
  font-weight: 600;
}

h1 {
  margin: 0 0 1.6rem;
  font-family: "Cinzel", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 36px rgba(96, 187, 228, .18);
}

.divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 2.4rem 0 1.8rem;
  background: linear-gradient(90deg, var(--ice), rgba(155,216,242,.24), transparent 72%);
}

.divider span {
  position: absolute;
  left: 0;
  top: -3px;
  width: 76px;
  height: 7px;
  background: var(--ice);
  box-shadow: 0 0 18px rgba(155,216,242,.5);
}

.intro {
  max-width: 760px;
  margin: 0 0 1.7rem;
  color: #c4d0d5;
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.8;
}

.manifesto-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: .18rem;
  font-size: .9rem;
  transition: color .2s ease, border-color .2s ease;
}

.manifesto-link:hover,
.manifesto-link:focus-visible {
  color: var(--ice);
  border-color: var(--ice);
}

.gallery { padding: 1rem 0 7rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.work {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: linear-gradient(180deg, rgba(15, 28, 39, .96), rgba(7, 14, 21, .98));
  border: 1px solid var(--line);
  box-shadow: 0 22px 55px var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.work:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 70px rgba(0,0,0,.58);
}

.work-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #020508;
  cursor: zoom-in;
  overflow: hidden;
}

.work-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.work-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2,7,11,.38), transparent 45%);
}

.work-overlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: .45rem .72rem;
  color: var(--text);
  background: rgba(3, 9, 14, .76);
  border: 1px solid var(--line-strong);
  font-size: .75rem;
  letter-spacing: .12em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.work-button:hover img,
.work-button:focus-visible img {
  transform: scale(1.035);
  filter: contrast(1.06) saturate(1.05);
}

.work-button:hover .work-overlay,
.work-button:focus-visible .work-overlay {
  opacity: 1;
  transform: translateY(0);
}

.work-meta {
  min-height: 8.1rem;
  padding: 1.25rem 1.35rem 1.45rem;
  border-top: 1px solid rgba(139,196,223,.12);
}

.work-meta h2 {
  margin: 0 0 .4rem;
  color: var(--ice);
  font-family: "Cinzel", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
}

.work-meta p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.work-gold {
  border-color: rgba(241,202,103,.34);
}

.work-gold .work-meta h2 {
  color: var(--gold);
}

.work-gold:hover {
  border-color: rgba(241,202,103,.68);
  box-shadow: 0 28px 72px rgba(83,54,0,.28);
}

.work-lab .work-meta h2 { color: #dbe7ec; }

.lightbox {
  width: min(94vw, 1280px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: rgba(3, 8, 12, .98);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,.72);
}

.lightbox::backdrop {
  background: rgba(0, 4, 8, .9);
  backdrop-filter: blur(6px);
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 50vh;
  max-height: 78vh;
  padding: 1.2rem;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background: radial-gradient(circle at center, rgba(33,87,111,.22), transparent 60%), #020508;
}

.lightbox-stage:active { cursor: grabbing; }

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  transform-origin: center;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  will-change: transform;
  transition: transform .12s ease-out;
}

.lightbox-caption {
  padding: 1.1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--line);
}

.lightbox-caption h2 {
  margin: 0 0 .2rem;
  color: var(--ice);
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
}

.lightbox-caption p { margin: 0; color: var(--muted); font-size: .92rem; }

.lightbox-close {
  position: absolute;
  top: .65rem;
  right: .75rem;
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: rgba(2,8,12,.82);
  color: var(--ice);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-zoom-controls {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem;
  border: 1px solid var(--line-strong);
  background: rgba(2,8,12,.84);
  transform: translateX(-50%);
}

.lightbox-zoom-controls button {
  min-width: 2.5rem;
  height: 2.35rem;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  background: #102432;
  color: var(--ice);
  font: inherit;
  cursor: pointer;
}

.lightbox-zoom-controls button[data-zoom="reset"] { min-width: 4.8rem; font-size: .78rem; }

.arabesque {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(155,216,242,.12);
  border-radius: 50%;
  pointer-events: none;
}

.arabesque::before,
.arabesque::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(155,216,242,.10);
  border-radius: 50%;
}

.arabesque::after { inset: 36%; }
.arabesque-1 { top: -180px; left: -150px; }
.arabesque-2 { top: 18%; right: -210px; }
.arabesque-3 { bottom: 12%; left: -220px; }
.arabesque-4 { bottom: -200px; right: -140px; }

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.9;
  background: rgba(2,7,11,.55);
}

.site-footer a { color: var(--ice) !important; }

@media (max-width: 760px) {
  main { width: min(100% - 1.1rem, 1180px); }
  .page-header { padding: 5rem .15rem 3.4rem; }
  .page-header::before { top: 1.5rem; }
  .sigil { letter-spacing: .11em; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.4rem); }
  .gallery-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .gallery { padding-bottom: 4.5rem; }
  .work-meta { min-height: 0; }
  .lightbox { width: 96vw; }
  .lightbox-stage { min-height: 38vh; padding: .7rem; }
  .lightbox-zoom-controls { bottom: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work,
  .work-button img,
  .work-overlay { transition: none; }
}

@-moz-document url-prefix() {
  body::before,
  .arabesque { position: absolute; }
  .lightbox::backdrop { backdrop-filter: none; }
}
