/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000;
  --white: #fff;
  --gray: #999;
  --red: #c00;
  --nav-size: 9px;
  --caption-size: 12px;
  --title-size: 13px;
}

html { font-size: 16px; }

body {
  font-family: "aktiv-grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gray); }
img { display: block; width: 100%; height: auto; }

/* ── LAYOUT ── */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 10px 60px;
}

/* ── HEADER & NAV ── */
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 10px;
  border-bottom: 0.5px solid var(--black);
  margin-bottom: 20px;
  position: relative;
}

.site-title {
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav a.active { color: var(--red); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 24px;
  line-height: 1;
  color: var(--black);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  background: var(--white);
  border: 0.5px solid var(--black);
  z-index: 100;
  min-width: 180px;
}

.mobile-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 0.5px solid #eee;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--red); }
.mobile-menu.open { display: block; }

/* ── CATEGORY GRID (square) ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 10px;
  row-gap: 7px;
  margin-bottom: 60px;
}

.grid-item { position: relative; }

.grid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.grid-item .caption {
  display: block;
  font-size: 9px;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 5px;
  color: var(--black);
}

.grid-item a:hover img { opacity: 0.85; }

/* placeholder tile */
.grid-placeholder {
  aspect-ratio: 1;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-placeholder span {
  font-size: var(--caption-size);
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
  padding: 12px;
}

/* ── DETAIL PAGE ── */
.project-back {
  display: block;
  font-size: var(--nav-size);
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.project-header {
  margin-bottom: 24px;
}

.project-header h1 {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
}

.project-header p {
  font-size: var(--caption-size);
  line-height: 1.5;
}

/* ── MASONRY GRID ── */
.masonry {
  columns: 3;
  column-gap: 10px;
  margin-bottom: 40px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 10px;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

.masonry-item .caption {
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 0 12px;
  color: var(--black);
}

.masonry-item .caption strong { font-weight: bold; }

/* ── DETAIL NAV ── */
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0 40px;
  border-top: 0.5px solid var(--black);
  margin-top: 8px;
}

.detail-nav a {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ── ABOUT ── */
.about-layout {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 40px;
  align-items: start;
}

.about-image {
  width: 100%;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── ABOUT TEXT ── */
.about-text {
  width: 100%;
}

.about-text p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 1em;
  color: #333;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.about-links {
  margin-top: 20px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  color: #333;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.about-links a { color: #333; }
.about-links a:hover { color: var(--gray); }
.about-links-sep { color: #888; font-weight: normal; padding: 0 1px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .site-wrapper { padding: 20px 10px 40px; }
  nav { display: none; }
  .hamburger { display: block; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-item .caption { display: none; }
  .masonry { columns: 2; }
  header { padding: 0 0 10px; }
  .detail-nav {
    border-top: none;
    margin-top: 8px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 1; }
}
.zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.zoom-overlay:target {
  display: flex;
}

.zoom-close {
  position: absolute;
  inset: 0;
  display: block;
}

.zoom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  max-width: 92vw;
}

.zoom-content img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.zoom-caption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  text-align: left;
  width: 100%;
}

.zoom-caption strong { font-weight: bold; }

.masonry-item--full {
  column-span: all;
  margin-bottom: 10px;
}

/* ── VIDEO EMBED (plain responsive iframe) ── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-thumb {
  display: block;
  position: relative;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-btn svg {
  display: block;
  margin-left: 4px; /* optical centre for triangle */
}

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

/* ── VIDEO ZOOM OVERLAY ── */
.zoom-video .zoom-content {
  width: 88vw;
  max-width: 1100px;
}

.zoom-video .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
}

.zoom-video .video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.about-links a { color: #333; }
.about-links a:hover { color: var(--gray); }
.about-links-sep { color: #888; font-weight: normal; padding: 0 1px; }
