:root {
  --bg: #E5E2DD;
  --ink: #111;
  --dim: #888;
  --gap: 3px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { background: var(--bg); }

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─────────────────────────────
   LANDING
───────────────────────────── */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10vh 5vw 5vh;
}

.name {
  font-size: clamp(3rem, 8.5vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.88;
  text-transform: uppercase;
}

.role {
  margin-top: 18px;
  font-size: clamp(0.55rem, 1vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--dim);
}

/* 5-card flex grid — 3 per row on desktop, centered last row */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6vh;
  justify-content: center;
}

.card {
  flex: 0 0 calc((100% - 20px) / 3);
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  min-height: 420px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
  transition: filter 0.5s ease;
}

.card:hover img { filter: grayscale(20%); }

.card-lbl {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

/* ─────────────────────────────
   SHARED FOOTER
───────────────────────────── */

.foot {
  padding-top: 28px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.foot a:hover { color: var(--ink); }

/* ─────────────────────────────
   CATEGORY PAGES
───────────────────────────── */

.pg-hd {
  padding: 30px 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.back {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
  transition: color 0.2s;
}
.back:hover { color: var(--ink); }

.pg-title {
  font-size: clamp(0.7rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.thumb {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.thumb:hover img { opacity: 0.78; }

.pg-foot {
  padding: 20px 18px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.pg-foot a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.pg-foot a:hover { color: var(--ink); }

/* ─────────────────────────────
   LIGHTBOX
───────────────────────────── */

.lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(229, 226, 221, 0.97);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lb.open { display: flex; }

.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lb-video {
  max-width: 90vw;
  max-height: 88vh;
  display: none;
  outline: none;
}
.lb-video.active { display: block; }

.lb-close {
  position: fixed;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 200;
  line-height: 1;
  color: var(--ink);
  padding: 6px 10px;
  z-index: 1000;
}

/* ─────────────────────────────
   VIDEO THUMBNAIL
───────────────────────────── */

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
  pointer-events: none;
}

.video-thumb:hover .play-overlay {
  background: rgba(0, 0, 0, 0.28);
}

.play-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
  margin-left: 4px;
}

/* ─────────────────────────────
   PASSWORD GATE
───────────────────────────── */

.pw-gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pw-label {
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--dim);
}

.pw-input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  font-family: inherit;
  font-size: 1.4rem;
  letter-spacing: 0.6em;
  text-align: center;
  color: var(--ink);
  padding: 8px 4px;
  width: 150px;
  outline: none;
  text-transform: uppercase;
}

.pw-error {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b03030;
  min-height: 1.2em;
  text-align: center;
}

@keyframes pw-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}
.pw-box.shake { animation: pw-shake 0.38s ease; }

/* ─────────────────────────────
   CONTACT
───────────────────────────── */

.contact-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-back {
  position: absolute;
  top: 30px;
  left: 18px;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s;
}
.contact-back:hover { color: var(--ink); }

.contact-mail {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  letter-spacing: 0.18em;
}
.contact-mail a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ─────────────────────────────
   MOBILE
───────────────────────────── */

@media (max-width: 680px) {

  .landing { padding: 8vh 6vw 6vh; }

  .cards {
    gap: 6px;
    margin-top: 4vh;
  }

  .card {
    flex: 0 0 100%;
    min-height: 240px;
  }
}
