@font-face {
  font-family: "Fredoka";
  src: url("custom-font.ttf") format("truetype");
}

body {
  margin: 0;
  background-color: #171310;
  color: #F6EEE1;
  font-family: "Fredoka", Arial, sans-serif;
  line-height: 1.7;
}

h1, h2, p, figure {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #F6EEE1;
  text-decoration: none;
}

/* ---------- Top bar ---------- */

.p-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  border-bottom: 1px solid #2A231C;
}

.p-brand {
  font-size: 17px;
  font-weight: 900;
}

.p-links a {
  margin-left: 34px;
  font-size: 13px;
  font-weight: bold;
  color: #B7A98F;
}

.p-links a.on {
  color: #F6EEE1;
}

.p-contact {
  background-color: #F6EEE1;
  color: #171310;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.p-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 48px 60px 48px;
}

.p-labelrow {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: bold;
  color: #E8A15C;
  margin-bottom: 20px;
}

.p-titlerow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.p-titlerow h1 {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
}

.p-note {
  width: 300px;
  font-size: 13px;
  color: #B7A98F;
  text-align: right;
}

.p-sub {
  font-size: 22px;
  color: #B7A98F;
  margin-top: 8px;
}

/* ---------- Intro stats ---------- */

.p-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 48px 70px 48px;
}

.p-intro h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 44px;
}

.p-stats {
  display: flex;
  gap: 60px;
}

.p-stat {
  width: 33%;
}

.p-stat b {
  display: block;
  font-size: 54px;
  font-weight: 900;
  color: #E8A15C;
  line-height: 1.1;
}

.p-stat span {
  display: block;
  font-size: 15px;
  font-weight: bold;
  margin-top: 8px;
}

.p-stat p {
  font-size: 13px;
  color: #B7A98F;
  margin-top: 8px;
}

/* ---------- Banner ---------- */

.p-banner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 30px 48px;
}

.p-banner figure {
  position: relative;
  height: 470px;
  border-radius: 26px;
  overflow: hidden;
}

.p-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-banner figcaption {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 36px;
  color: #FFF7EA;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 1px 1px 10px rgba(20, 15, 10, 0.8);
}

/* ---------- Masonry album ---------- */

.p-album {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 100px 48px;
}

.p-grid {
  column-count: 3;
  column-gap: 28px;
}

/* ---------- Film card ---------- */

.p-card {
  break-inside: avoid;
  margin-bottom: 28px;
  background-color: #100C08;
  border: 1px solid #2A231C;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.film-frame {
  display: block;
  cursor: zoom-in;
}

.holes {
  display: block;
  height: 18px;
  background-image: radial-gradient(circle 4px at 50% 50%, #3E362C 3.6px, transparent 4.4px);
  background-size: 30px 18px;
  background-position: center;
  background-repeat: repeat-x;
  transition: background-image 0.35s ease;
}

.film-frame img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.p-card.h-s .film-frame img {
  height: 270px;
}

.p-card.h-m .film-frame img {
  height: 360px;
}

.p-card.h-l .film-frame img {
  height: 450px;
}

.p-card figcaption {
  padding: 16px 20px 18px 20px;
}

.p-card figcaption b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #FFF7EA;
}

.p-card figcaption span {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #E8A15C;
}

.p-card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  border-color: rgba(232, 161, 92, 0.55);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

.p-card:hover .film-frame img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.p-card:hover .holes {
  background-image: radial-gradient(circle 4px at 50% 50%, #E8A15C 3.6px, transparent 4.4px);
}

/* ---------- Lightbox (pure CSS) ---------- */

.lb-toggle {
  display: none;
}

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: rgba(10, 8, 6, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lb-overlay > label {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lb-overlay figure {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.lb-overlay img {
  max-width: 88vw;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.lb-overlay figcaption {
  margin-top: 16px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #B7A98F;
}

.lb-toggle:checked ~ .lb-overlay {
  opacity: 1;
  visibility: visible;
}

.lb-toggle:checked ~ .lb-overlay img {
  transform: scale(1);
}

/* ---------- Footer ---------- */

.p-footer {
  border-top: 1px solid #2A231C;
  padding: 70px 48px 40px 48px;
}

.p-foot-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.p-foot-name {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
}

.p-foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 30px;
  font-size: 13px;
  color: #B7A98F;
}

.p-foot-row a {
  color: #E8A15C;
  font-weight: bold;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .p-grid {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .p-topbar {
    padding: 16px 20px;
  }
  .p-brand {
    font-size: 15px;
  }
  .p-links {
    display: none;
  }
  .p-head {
    padding: 60px 20px 40px 20px;
  }
  .p-titlerow h1 {
    font-size: 52px;
  }
  .p-note {
    display: none;
  }
  .p-sub {
    font-size: 17px;
  }
  .p-intro {
    padding: 10px 20px 50px 20px;
  }
  .p-intro h2 {
    font-size: 28px;
  }
  .p-stats {
    flex-direction: column;
    gap: 26px;
  }
  .p-stat {
    width: 100%;
  }
  .p-stat b {
    font-size: 42px;
  }
  .p-banner {
    padding: 0 20px 20px 20px;
  }
  .p-banner figure {
    height: 300px;
  }
  .p-banner figcaption {
    left: 24px;
    right: 24px;
    bottom: 24px;
    font-size: 17px;
  }
  .p-album {
    padding: 30px 20px 70px 20px;
  }
  .p-grid {
    column-count: 1;
  }
  .p-card.h-s .film-frame img,
  .p-card.h-m .film-frame img,
  .p-card.h-l .film-frame img,
  .film-frame img {
    height: 320px;
  }
  .lb-overlay img {
    max-width: 94vw;
    max-height: 72vh;
  }
  .p-foot-name {
    font-size: 38px;
  }
  .p-foot-row {
    flex-direction: column;
    gap: 10px;
  }
  .p-footer {
    padding: 50px 20px 30px 20px;
  }
}

/* ---------- Animations ---------- */

@keyframes pFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.p-topbar {
  animation: pFadeUp 0.6s ease both;
}

.p-labelrow, .p-titlerow, .p-sub {
  animation: pFadeUp 0.9s ease 0.15s both;
}

.p-card {
  animation: pFadeUp 0.7s ease both;
}

.p-links a {
  transition: color 0.25s ease;
}

.p-links a:hover {
  color: #F6EEE1;
}

.p-contact {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.p-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.p-banner img {
  transition: transform 0.6s ease;
}

.p-banner figure:hover img {
  transform: scale(1.04);
}

.p-foot-row a {
  transition: color 0.25s ease;
}

.p-foot-row a:hover {
  color: #F6EEE1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
