* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #000000;
}

/* =========================
   NAV (HIGH-END MINIMAL)
========================= */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 80px;
  z-index: 1000;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 40px;
}

.logo {
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* nav links */
.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;

  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: #111;
  opacity: 0.7;

  transition: 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* =========================
   HERO (EDITORIAL STYLE)
========================= */
#hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;

  background: url("../images/hero/home-hero.webp") center/cover no-repeat;

  transition: height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              padding 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.7s ease;

  overflow: hidden;
  will-change: height;
}

/* =========================
   DARK CINEMATIC OVERLAY
========================= */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.15), rgba(0,0,0,0.78));
  z-index: 1;
}

/* =========================
   GRAIN (IF YOU HAVE IT)
========================= */
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* =========================
   HERO CONTENT
========================= */
.hero-content {
  position: relative;
  z-index: 3;

  max-width: 800px;
  padding: 0 20px;

  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 110px);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  letter-spacing: 6px;
  font-weight: 500;
  line-height: 1.05;
}

.hero-subtitle {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 1px;
}

/* =========================
   CTA BUTTON
========================= */
.hero-actions {
  margin-top: 30px;
}

.hero-btn {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  color: white;

  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;

  cursor: pointer;
  transition: 0.25s ease;
}

.hero-btn:hover {
  background: white;
  color: black;
}

/* =========================
   SCROLL INDICATOR
========================= */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  font-size: 14px;
  opacity: 0.7;

  cursor: pointer;
  animation: float 1.8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* =========================
   SHRINK STATE (THE MAGIC)
========================= */
#hero.shrink {
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px;

  background: rgba(10,10,10,0.95);
}

/* fade out big hero content */
#hero.shrink .hero-content {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* hide scroll indicator when shrunk */
#hero.shrink .scroll-indicator {
  opacity: 0;
}

/* =========================
   COMPACT HERO TITLE (ADD THIS DIV IN HTML)
========================= */
.hero-compact {
  display: none;
  position: relative;
  z-index: 4;

  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 600;
  opacity: 0.85;
}

#hero.shrink .hero-compact {
  display: block;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.logo {
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
}

.grain-overlay {
  position: absolute;
  inset: 0;

  pointer-events: none;
  z-index: 2;

  opacity: 0.05; /* 🔥 key: keep it subtle */
  
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");

  mix-blend-mode: soft-light;

  animation: grainMove 0.6s steps(2) infinite;
}

@keyframes grainMove {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(-1%, -1%);
  }
  100% {
    transform: translate(1%, 1%);
  }
}

/* GRID */
#grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px;
}

@media (max-width: 900px) {
  #grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  #grid { grid-template-columns: 1fr; }
}

/* tile becomes fixed ratio container */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;

  aspect-ratio: 4 / 3;

  background: #eee;
}

/* IMAGE: force consistent focal crop */
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.tile:hover img {
  transform: scale(1.08);
}

/* caption overlay */
.tile-title {
  position: absolute;
  bottom: 12px;
  left: 12px;

  color: white;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;

  opacity: 0;
  transition: opacity 0.2s ease;
}

.tile:hover .tile-title {
  opacity: 1;
}

.tile img {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tile img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* MODAL */
#modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 40px 20px;
  background: rgba(255,255,255,.92);
  z-index: 99999;
}

#modal.open {
  display: flex;
}

/* container */
#modalBox {
  width: min(1000px, 95vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: auto;
}

/* IMAGE WRAP (CENTER PIECE) */
.modal-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.modal-image {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 75vh;

  margin: 0;

  border-radius: 6px;

  box-shadow:
    0 20px 50px rgba(0,0,0,.18),
    0 6px 18px rgba(0,0,0,.12);

  transition: transform .3s ease, box-shadow .3s ease;
}

/* subtle lift on hover (optional but nice) */
.modal-image:hover {
  transform: scale(1.01);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.22),
    0 10px 25px rgba(0, 0, 0, 0.15);
}

/* TEXT */
.modal-meta {
  max-width: 700px;
  text-align: center;
}

.modal-meta h2 {
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 6px;
}

.modal-body {
  max-width: 700px;
  width: 100%;
  text-align: left;
  line-height: 1.9;
  margin-top: 10px;
}

.modal-body p {
  margin-bottom: 16px;
}

/* CLOSE BUTTON */
#close {
  position: fixed;
  top: 20px;
  right: 20px;

  font-size: 30px;

  background: none;
  border: none;

  color: BLACK;

  cursor: pointer;

  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#close:hover {
  opacity: 1;
}

/* SENTINEL */
#sentinel {
  height: 1px;
}

.work-wrap {
  position: relative;
}
#work {
  scroll-margin-top: 80px; /* height of your nav */
}

/* dropdown container */
#menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;

  min-width: 220px;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;

  box-shadow: 0 25px 60px rgba(0,0,0,0.12);

  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;

  transition: all 0.2s ease;
  overflow: hidden;
}

#menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* menu items */
#menu a {
  padding: 12px 14px;

  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: #111;
  text-decoration: none;

  border-bottom: 1px solid rgba(0,0,0,0.05);

  cursor: pointer;

  transition: background 0.15s ease;
}

#menu a:hover {
  background: rgba(0,0,0,0.04);
}

/* header */
.post-header {
  text-align: center;
  margin-bottom: 25px;
}

.post-header h2 {
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 500;
}

.post-date {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 6px;
}

/* IMAGE GRID CENTERED */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;

  margin: 25px auto;

  justify-content: center;
  align-items: center;
}

/* make images feel like curated prints */
.post-gallery img {
  width: 100%;
  height: 100%;

  border-radius: 10px;

  object-fit: cover;

  cursor: pointer;

  transition: transform 0.25s ease, filter 0.25s ease;
}

.post-gallery img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* BODY TEXT — editorial feel */
.post-body {
  margin-top: 30px;

  max-width: 700px;
  margin-left: auto;
  margin-right: auto;

  font-size: 14px;
  line-height: 1.8;

  opacity: 0.85;
}

/* optional subtle divider */
.post-body::before {
  content: "";
  display: block;

  width: 60px;
  height: 1px;

  background: rgba(255,255,255,0.2);

  margin: 0 auto 20px auto;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
}

.lightbox-inner {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;

  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.spacer {
  height: 18px;
}

.image-caption {
  text-align: center;
  font-size: 1.7em;
  letter-spacing: 3px;
  text-transform: uppercase;

  margin-bottom: 4px;
}

.image-meta {
  text-align: center;
  font-size: 1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 16px;
}