/* ====================================================
   KYLE BLATZ — Photography & Cinematography
   ==================================================== */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-elev: #161616;
  --text: #f4f4f4;
  --text-dim: #a8a8a8;
  --text-muted: #6b6b6b;
  --accent: #f4f4f4;
  --border: #1f1f1f;
  --border-bright: #2a2a2a;
  --maxw: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 88px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }

h1, h2, h3, h4 {
  font-family: Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  font-weight: 400;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  height: var(--header-h);
  pointer-events: none; /* allow underlying content to receive events outside the inner row */
}
.site-header .container { pointer-events: auto; }
/* Subtle gradient ensures the header text/logo remain legible over any imagery */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand img { height: 54px; width: auto; }
.brand-name { display: none; } /* logo image now contains the wordmark */

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.socials a {
  width: 22px; height: 22px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.socials a:hover { color: var(--text); opacity: 1; }
.socials svg { width: 100%; height: 100%; }

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav a { position: relative; padding: 0.25rem 0; }
.nav a.active::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--text);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown > a::after {
  /* override default underline indicator to make room for caret */
  content: none;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-dropdown > a::before {
  content: '';
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.5rem;
  order: 2;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover > a::before,
.nav-dropdown:focus-within > a::before { transform: rotate(225deg) translateY(-2px); }
.nav-dropdown > a.active { border-bottom: 1px solid var(--text); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 200px;
  padding: 1.25rem 1.5rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-bright);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .header-right .socials { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: var(--bg);
    padding: 2rem var(--gutter);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .nav.open { transform: translateY(0); }
  /* Inline the dropdown on mobile */
  .nav-dropdown { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-dropdown > a::before { display: none; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0 0 0 1.25rem;
    border-left: 1px solid var(--border-bright);
    min-width: 0;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.7) 100%);
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 8vh, 7rem);
  z-index: 2;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  margin-bottom: 0.5rem;
  font-weight: 300;
}
.hero .tagline {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--text-dim);
  margin: 0.75rem auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(4rem, 10vh, 8rem) 0;
}
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
  max-width: 720px;
}
.section-head .eyebrow { color: var(--text-dim); }
.section-head h2 { font-size: clamp(2rem, 5vw, 4rem); }
.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ===== DISCIPLINE PROMO (Homepage) ===== */
.disciplines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.discipline {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.discipline img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease, filter 0.6s ease;
  filter: brightness(0.65);
}
.discipline:hover img { transform: scale(1.05); filter: brightness(0.85); }
.discipline-overlay {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4rem);
  width: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.discipline h3 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}
.discipline-overlay p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 38ch;
  margin-bottom: 1.25rem;
}
.discipline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.25rem;
}
.discipline-cta::after { content: '→'; }
@media (max-width: 720px) {
  .disciplines { grid-template-columns: 1fr; }
  .discipline { aspect-ratio: 3 / 4; }
}

/* ===== IMAGE GRID ===== */
.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  aspect-ratio: 4 / 3;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile.tall { aspect-ratio: 3 / 4; }
.tile.wide { aspect-ratio: 16 / 9; }
.tile.square { aspect-ratio: 1 / 1; }

.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tile:hover .tile-caption { opacity: 1; }
.tile-caption strong { display: block; font-weight: 500; font-size: 1rem; }
.tile-caption span { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.15em; }

/* ===== PROJECT GRID (CINEMATOGRAPHY) ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-elev);
}
.project-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent 50%);
}
.project-card .meta {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}
.project-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.project-card .type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  display: block;
  text-align: center;
}

/* Force 4-up photo grid on the portfolio page */
.project-grid.photo-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .project-grid.photo-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .project-grid.photo-grid-4 { grid-template-columns: 1fr; }
}

/* ===== PHOTO PLACEHOLDER ===== */
.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      #161616 0,
      #161616 14px,
      #1d1d1d 14px,
      #1d1d1d 28px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border: 1px dashed var(--border-bright);
}
.placeholder svg { width: 28px; height: 28px; opacity: 0.4; }

/* ===== CONTACT FORM ===== */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .form-wrap { grid-template-columns: 1fr; } }

.form {
  display: grid;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.field label .req { color: #c8a36c; margin-left: 4px; }
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-bright);
  color: var(--text);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  transition: border-color var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}
.field textarea { resize: vertical; min-height: 120px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
  width: fit-content;
}
.btn:hover { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-bright);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }

.form-status {
  font-size: 0.85rem;
  color: var(--text-dim);
  min-height: 1.2em;
}
.form-status.ok { color: #8fc880; }
.form-status.err { color: #d27474; }

/* ===== PROJECT PAGE ===== */
.project-hero {
  margin-top: 0;
  height: 90vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.project-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}
.project-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(3rem, 6vh, 5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.project-hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin-bottom: 0.5rem; }
.project-hero .type { color: var(--text-dim); letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.8rem; }

.project-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vh, 6rem) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 820px) { .project-body { grid-template-columns: 1fr; } }
.project-body p { font-size: 1.1rem; color: #d8d8d8; margin-bottom: 1.25rem; }
.project-credits { font-size: 0.95rem; color: var(--text-dim); }
.project-credits dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 1rem;
}
.project-credits dd { color: var(--text); margin-bottom: 0.25rem; }

.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-elev);
  margin: 2rem auto;
  max-width: var(--maxw);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.project-stills {
  padding: 0 var(--gutter) clamp(4rem, 8vh, 7rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2rem;
}
.back-link::before { content: '←'; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  aspect-ratio: 4/5;
  background: var(--bg-elev);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: #d4d4d4;
}
.about-text a:not(.btn):not(.btn-ghost) { color: var(--text); border-bottom: 1px solid var(--border-bright); }
.about-text a:not(.btn):not(.btn-ghost):hover { border-bottom-color: var(--text); }
/* Ensure primary button stays legible inside about-text */
.about-text .btn { color: var(--bg); border-bottom: none; }
.about-text .btn:hover { color: var(--text); }
.about-text .btn-ghost { color: var(--text); border-bottom: none; }
.about-text .btn-ghost:hover { color: var(--bg); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand img { height: 56px; }
.footer-name {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--text); font-size: 0.95rem; }

.footer-socials {
  display: flex; gap: 1rem;
  margin-top: 0.5rem;
}
.footer-socials a {
  width: 24px; height: 24px;
  color: var(--text-dim);
}
.footer-socials a:hover { color: var(--text); opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
@media (max-width: 560px) { .footer-bottom { flex-direction: column; gap: 0.5rem; } }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.divider {
  height: 1px;
  background: var(--border);
  margin: clamp(3rem, 6vh, 5rem) 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LIGHTBOX (Photography page) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3vmin;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
  user-select: none;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.05); }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  z-index: 2;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* Make Photography tiles clickable as a visual cue */
body.photography-page .tile:not(.placeholder) { cursor: zoom-in; }
body.photography-page .tile:not(.placeholder)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}
body.photography-page .tile:not(.placeholder):hover::after {
  background: rgba(0,0,0,0.18);
}

/* ===== PHOTOGRAPHY CATEGORY HERO (4 in viewport) ===== */
.cat-hero {
  margin-top: 0;
  height: 70vh;
  min-height: 420px;
  max-height: 720px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}
.cat-hero a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg-elev);
  transition: flex-basis 0.4s ease;
}
.cat-hero .cat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.6s ease, transform 1.2s ease;
  z-index: 0;
}
.cat-hero a:hover .cat-bg { filter: brightness(0.9); transform: scale(1.04); }
.cat-hero .cat-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent 70%);
}
.cat-hero h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 0.25rem;
  font-weight: 800;
}
.cat-hero .cat-content p {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 28ch;
  margin-bottom: 0.75rem;
}
.cat-hero .cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.2rem;
}
.cat-hero .cat-cta::after { content: '→'; }

/* Keep 4-up at narrower widths but tighten typography so all 4 still fit */
@media (max-width: 1100px) {
  .cat-hero h3 { font-size: clamp(1.25rem, 2.4vw, 2rem); }
  .cat-hero .cat-content p { display: none; }
  .cat-hero .cat-content { padding: clamp(1rem, 2vw, 1.75rem); }
}
@media (max-width: 560px) {
  .cat-hero { grid-template-columns: repeat(2, 1fr); height: auto; min-height: 0; max-height: none; }
  .cat-hero a { aspect-ratio: 3/4; }
}
