/* =========================================================
   OPTION 3 — Dark Art-Gallery
   Black background. Photos glow. Minimal chrome.
   ========================================================= */

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

:root {
  --ink: #f2f0ed;
  --ink-soft: #c8c6c2;
  --muted: #7a7772;
  --line: #1e1e1e;
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --accent: #d4b88a;    /* subtle warm gold for highlights only */
  --display: "Playfair Display", Georgia, serif;
  --sans: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: opacity .25s; }
img { max-width: 100%; display: block; }

/* ---------- Minimal floating nav ---------- */
.topbar {
  position: sticky; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  z-index: 100;
  background: #0a0a0a;
  color: var(--ink);
  border-bottom: 1px solid #1e1e1e;
}
.brand {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
}
.menu-dots {
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: 0.5rem; background: none; border: 0;
}
.menu-dots span {
  display: block; width: 24px; height: 1px; background: #fff;
}
.menu-dots span:nth-child(2) { width: 18px; }
.menu-dots span:nth-child(3) { width: 12px; }

/* ---------- Fullscreen overlay menu ---------- */
.fs-menu {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s;
}
.fs-menu.open { display: flex; opacity: 1; }
.fs-menu .close {
  position: absolute; top: 1.6rem; right: 2rem;
  background: none; border: 0; color: var(--ink);
  font-size: 1.5rem; cursor: pointer; font-family: var(--display);
}
.fs-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.fs-menu ul li { margin: 1.75rem 0; }
.fs-menu ul a {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color .25s, letter-spacing .3s;
}
.fs-menu ul a:hover { color: var(--accent); letter-spacing: 0.06em; }

/* ---------- Homepage: 2x2 category grid, full viewport ---------- */
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: calc(100vh - 72px);
  min-height: 640px;
  width: 100%;
  gap: 2px;
  background: #000;
}
.mega-tile {
  position: relative;
  overflow: hidden;
  display: block;
  color: var(--ink);
}
.mega-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 2s cubic-bezier(.2,.8,.2,1), filter .5s;
  filter: brightness(0.72);
}
.mega-tile:hover img { transform: scale(1.05); filter: brightness(1); }
.mega-tile .label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  pointer-events: none;
}
.mega-tile .label h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  margin: 0;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), letter-spacing .6s;
}
.mega-tile:hover .label h2 { letter-spacing: 0.1em; }
.mega-tile .label .count {
  font-size: 0.66rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.75rem;
}

/* ---------- Intro strip (below mega grid on home) ---------- */
.intro-strip {
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.intro-strip .eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1.5rem;
}
.intro-strip h1 {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  margin: 0 auto;
  max-width: 18ch;
  line-height: 1.2;
}

/* ---------- Inner page head ---------- */
.inner-head {
  padding: 4.5rem 2rem 3rem;
  text-align: center;
}
.inner-head .eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1.25rem;
}
.inner-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.02em;
  margin: 0;
}
.inner-head h1 em { font-weight: 400; }

/* ---------- Dark gallery grid ---------- */
.dark-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 2rem 0 6rem;
}
.dark-gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
  cursor: zoom-in;
}
.dark-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .4s;
  filter: brightness(0.95);
}
.dark-gallery a:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}
.dark-gallery .counter {
  position: absolute; top: 1rem; left: 1rem;
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0; transition: opacity .3s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.dark-gallery a:hover .counter { opacity: 1; }

/* ---------- About ---------- */
.about-frame {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-frame img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: #000;
  filter: grayscale(15%);
}
.about-frame h1 {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}
.about-frame p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.25em;
  max-width: 48ch;
}
@media (max-width: 820px) {
  .about-frame { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-dark {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 2rem 8rem;
}
.contact-dark label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.75rem 0 0.5rem;
}
.contact-dark input,
.contact-dark textarea {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}
.contact-dark input:focus,
.contact-dark textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-dark textarea { min-height: 120px; resize: vertical; }
.contact-dark button {
  margin: 3rem auto 0;
  display: block;
  padding: 1rem 3.5rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.contact-dark button:hover {
  background: var(--ink);
  color: var(--bg);
}
.contact-foot {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact-foot a {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
footer {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
footer .row {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
footer a { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .mega-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 50vh); height: auto; min-height: 0; }
  .dark-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-frame { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem 3rem; }
  .topbar { padding: 1rem 1.25rem; }
}
@media (max-width: 480px) {
  .dark-gallery { grid-template-columns: 1fr; }
}

/* ---------- Inline nav in top bar (Option 3 refined) ---------- */
.topbar .nav-links {
  display: flex; gap: 2rem;
  list-style: none; margin: 0; padding: 0;
}
.topbar .nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.25rem 0;
  position: relative;
  color: #fff;
}
.topbar .nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor; opacity: 0.7;
}
.topbar .menu-dots { display: none; }
@media (max-width: 900px) {
  .topbar .nav-links { display: none; }
  .topbar .menu-dots { display: flex; }
}
