:root{
  --bg: #f6f6f4;
  --ink: #141414;
  --muted: rgba(20,20,20,.62);
  --muted2: rgba(20,20,20,.45);

  --card: rgba(255,255,255,.80);
  --stroke: rgba(20,20,20,.11);

  --radius: 14px;
  --shadow: 0 18px 45px rgba(0,0,0,.10);

  --max: 1240px;
  --gutter: 22px;

  --serif: "Instrument Serif", Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html, body{ height:100%; }

body{
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* Grain */
body::after{
  content:"";
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity:.14;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* Ambient background */
body::before{
  content:"";
  position: fixed;
  top:-15vh; right:-10vw; bottom:-15vh; left:-10vw;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 520px at 18% 14%, rgba(245, 212, 227, .55), transparent 60%),
    radial-gradient(900px 600px at 82% 20%, rgba(213, 230, 255, .60), transparent 62%),
    radial-gradient(900px 700px at 55% 85%, rgba(240, 235, 200, .55), transparent 64%);
  filter: blur(18px);
  opacity: .95;
  animation: floatBg 18s ease-in-out infinite;
}

@keyframes floatBg{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,10px,0) scale(1.02); }
}

/* Header */
.site-header{
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 92px var(--gutter) 54px;
}

.site-header::after{
  content:"";
  position:absolute;
  left:50%;
  top:44px;
  width:min(860px, 92vw);
  height:170px;
  transform:translateX(-50%);
  background:
    radial-gradient(closest-side at 22% 48%, rgba(230,230,250,.42), transparent 72%),
    radial-gradient(closest-side at 78% 58%, rgba(255,240,245,.38), transparent 72%),
    radial-gradient(closest-side at 56% 34%, rgba(245,245,220,.32), transparent 74%);
  filter: blur(12px);
  opacity:.95;
  pointer-events:none;
  z-index:-1;
}

.site-header h1{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  letter-spacing: .01em;
  text-transform: none;
  line-height: 1.02;
  margin-bottom: 14px;
}

.header-desc{
  margin: 0 auto;
  max-width: 980px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.55;
}
.header-desc.line1{ font-size: .92rem; color: var(--muted); }
.header-desc.line2{ margin-top: 9px; font-size: .80rem; color: var(--muted2); }

/* Gallery */
.gallery{
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter) 190px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-item{
  position: relative;
  overflow:hidden;
  cursor:pointer;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.2,.9,.2,1), box-shadow .45s ease, border-color .45s ease;
}

.gallery-item::before{
  content:"";
  position:absolute;
  top:0; right:0; bottom:0; left:0;
  background: linear-gradient(180deg, rgba(255,255,255,.0) 40%, rgba(0,0,0,.18) 110%);
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 1;
}

.gallery-item:hover{
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--shadow);
  border-color: rgba(20,20,20,.16);
}
.gallery-item:hover::before{ opacity: 1; }

.gallery-item img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .75s cubic-bezier(.2,.9,.2,1), filter .45s ease;
}
.gallery-item:hover img{
  transform: scale(1.07);
  filter: saturate(1.03) contrast(1.02);
}

.gallery-item.small{ grid-row: span 1; }
.gallery-item.medium{ grid-row: span 2; }
.gallery-item.large{ grid-row: span 3; }

/* Panels container (two cards) */
.panels{
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 26px auto 0;
}

/* Reusable panel */
.panel{
  border-radius: 20px;
  border: 1px solid rgba(20,20,20,.12);
  background: rgba(255,255,255,.56);
  box-shadow:
    0 28px 70px rgba(0,0,0,.12),
    0 1px 0 rgba(255,255,255,.55) inset;
  position: relative;
  overflow: hidden;
  transform: translateY(-8px);
  padding: 30px 26px;
  text-align: center;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.panel::before{
  content:"";
  position:absolute;
  top:-40%; right:-40%; bottom:-40%; left:-40%;
  background:
    radial-gradient(closest-side at 18% 55%, rgba(255, 90, 146, .26), transparent 66%),
    radial-gradient(closest-side at 62% 20%, rgba(66, 214, 245, .20), transparent 60%),
    radial-gradient(closest-side at 80% 72%, rgba(255, 214, 77, .20), transparent 60%);
  filter: blur(18px);
  opacity: .95;
  pointer-events:none;
}

.panel-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20,20,20,.12);
  background: rgba(255,255,255,.60);
  font-size: .82rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(20,20,20,.70);
  position: relative;
}

.panel h2{
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.95rem;
  margin: 14px 0 10px;
  letter-spacing: .01em;
}

.panel p{
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  color: rgba(20,20,20,.74);
  line-height: 1.65;
  font-size: 1.02rem;
}

.panel-actions{
  position: relative;
  display:flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  text-decoration:none;
  text-align:center;
  cursor: pointer;
  user-select:none;
  transition: transform .2s ease, filter .2s ease;
}

.btn.primary{
  color:#fff;
  background: linear-gradient(135deg, rgba(20,20,20,.94), rgba(20,20,20,.78));
  border: 1px solid rgba(20,20,20,.0);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.btn.primary:hover{ transform: translateY(-2px); filter: brightness(1.06); }

.btn.secondary{
  background: rgba(255,255,255,.66);
  color: rgba(20,20,20,.90);
  border: 1px solid rgba(20,20,20,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}
.btn.secondary:hover{ transform: translateY(-2px); filter: brightness(1.04); }

.panel-note{
  width: 100%;
  margin-top: 6px;
  font-size: .92rem;
  color: rgba(20,20,20,.56);
}

/* Lightbox */
.lightbox{
  display:none;
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  background: rgba(248,248,246,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  animation: fadeIn .22s ease;
}
.lightbox.active{ display:flex; }

@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }

.lightbox img{
  max-width: min(92vw, 1180px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.20);
  animation: zoomIn .22s ease;
}

@keyframes zoomIn{
  from{ transform: scale(.96); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

.close{
  position:absolute;
  top: 22px;
  right: 26px;
  font-size: 44px;
  color: rgba(20,20,20,.85);
  font-weight: 300;
  cursor:pointer;
  transition: transform .2s ease, color .2s ease;
  user-select:none;
}
.close:hover{ transform: scale(1.08); color: rgba(20,20,20,.55); }

.nav-buttons{
  position:absolute;
  width:100%;
  top:50%;
  transform: translateY(-50%);
  display:flex;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events:none;
}
.nav-buttons button{
  pointer-events:all;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(20,20,20,.12);
  color: rgba(20,20,20,.9);
  font-size: 22px;
  padding: 14px 18px;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}
.nav-buttons button:hover{
  transform: scale(1.05);
  background: rgba(20,20,20,.90);
  color: #fff;
  border-color: rgba(20,20,20,.0);
}

/* ===== Strong DIA-like glow ===== */
body .dia-footer-glow{
  position: fixed;
  left: -12vw;
  right: -12vw;
  bottom: -30vh;
  height: 75vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

body .dia-footer-glow::before{
  content:"";
  position:absolute;
  top:-18%;
  right:-12%;
  bottom:-18%;
  left:-12%;
  background:
    radial-gradient(72% 86% at 8% 82%, rgba(255, 30, 140, 1), transparent 56%),
    radial-gradient(76% 90% at 40% 108%, rgba(255, 190, 25, 1), transparent 62%),
    radial-gradient(72% 88% at 72% 84%, rgba(20, 235, 255, 1), transparent 62%),
    radial-gradient(72% 86% at 96% 108%, rgba(175, 95, 255, 1), transparent 60%);
  filter: blur(34px) saturate(1.8) contrast(1.45);
  opacity: 1;
  mix-blend-mode: screen;
  animation: chromaDrift 5.8s ease-in-out infinite;
}

body .dia-footer-glow::after{
  content:"";
  position:absolute;
  top:0; right:0; bottom:0; left:0;
  background: linear-gradient(
    180deg,
    rgba(246,246,244,0) 0%,
    rgba(246,246,244,.62) 54%,
    rgba(246,246,244,1) 100%
  );
  opacity: .92;
}

@keyframes chromaDrift{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-26px,0) scale(1.05); }
}

/* Responsive */
@media (max-width: 768px){
  .site-header{ padding: 60px 18px 28px; }
  .header-desc{ letter-spacing: .14em; }

  .gallery{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    padding: 10px 16px 190px;
  }

  .gallery-item.small,
  .gallery-item.medium,
  .gallery-item.large{ grid-row: span 1; }

  .panel{ padding: 22px 18px; transform: translateY(-6px); }

  .close{ top: 18px; right: 18px; font-size: 40px; }
  .nav-buttons button{ font-size: 18px; padding: 10px 14px; }

  body .dia-footer-glow{
    bottom: -32vh;
    height: 82vh;
  }
}

@media (max-width: 480px){
  .gallery{ grid-template-columns: 1fr; }
}
