/* ==========================================================================
   shotbyhdn — design tokens
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --bg-hover: #1a1a1a;
  --border: #262626;
  --text: #f5f5f2;
  --text-dim: #a3a3a0;
  --text-faint: #6b6b68;
  --accent: #e8e4d8;
  --accent-line: #3a3a36;

  --font-display: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  --nav-h: 76px;
}

/* Fallback display font stack when Bebas Neue isn't loaded locally:
   letter-spacing + weight compensate so headings still read as "brand" type. */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand span {
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span {
  top: 11px;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(60, 56, 48, 0.35), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media .placeholder-img {
  height: 100%;
  border-radius: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 5%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fd67f;
  box-shadow: 0 0 8px #7fd67f;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-title em {
  font-style: normal;
  color: var(--text-dim);
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--text);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

.btn-ghost {
  border-color: var(--accent-line);
  color: var(--text-dim);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ==========================================================================
   Sections
   ========================================================================== */

section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  flex-wrap: wrap;
}

.section-head p {
  color: var(--text-dim);
  max-width: 40ch;
}

/* ==========================================================================
   Placeholder image block
   (swap for a real <img> once you have footage — see README)
   ========================================================================== */

.placeholder-img {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 5);
  background:
    repeating-linear-gradient(135deg, #171715, #171715 2px, #131311 2px, #131311 14px);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--text-faint);
}

.placeholder-img::before {
  content: attr(data-label);
  position: relative;
  z-index: 1;
  padding: 0.9rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  width: 100%;
}

.placeholder-img.square {
  --ar: 1 / 1;
}

.placeholder-img.wide {
  --ar: 16 / 10;
}

.placeholder-img.tall {
  --ar: 3 / 4;
}

/* A real photo dropped into a grid card: crop to fill the shape above
   instead of stretching/squishing. Centered by default; override with
   an item's `focus` field (e.g. "50% 20%" or "top") if centering cuts
   off the subject.
   Triggered automatically by :has(img) — just put an <img> inside a
   .placeholder-img div and the stripe/label placeholder styling gets
   out of the way on its own, no extra class needed. */
.placeholder-img:has(img) {
  background: none;
}

.placeholder-img:has(img)::before {
  content: none;
}

.placeholder-img:has(img) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

/* ==========================================================================
   Work grid
   ========================================================================== */

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

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
}

.work-card .placeholder-img {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card:hover .placeholder-img {
  transform: scale(1.04);
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.work-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.work-card-cat {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.work-card-play {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.work-card-play svg {
  width: 12px;
  height: 12px;
  fill: var(--text);
  margin-left: 2px;
}

/* row spans for a varied editorial layout on the home strip */
.work-card.span-2 {
  grid-column: span 2;
}

@media (max-width: 560px) {
  .work-card.span-2 {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Filters (work page)
   ========================================================================== */

.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.filter-bar-sub {
  margin-top: 0.75rem;
}

.filter-btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  border-color: transparent;
  color: var(--text-faint);
}

.filter-btn-sm:hover {
  color: var(--text-dim);
}

.filter-btn-sm.is-active {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

/* Marks a filter button (category or tag) that has no published items
   yet — a dashed border signals "not populated" without extra copy. */
.filter-btn.is-upcoming {
  border-style: dashed;
}

/* Empty-state shown in place of the grid for a filtered view with no
   items — reuses the diagonal-stripe placeholder motif so it reads as
   part of the same visual system, not a broken/empty page. */
.coming-soon {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(135deg, #171715, #171715 2px, #131311 2px, #131311 14px);
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.coming-soon-sub {
  max-width: 40ch;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-copy p {
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  max-width: 58ch;
}

.about-copy p:first-of-type {
  color: var(--text);
  font-size: 1.15rem;
}

.stat-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
}

.stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   Socials strip
   ========================================================================== */

.social-strip {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.social-card {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.social-card:hover {
  border-color: var(--text-dim);
  background: var(--bg-hover);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.social-card-text .handle {
  font-weight: 700;
  font-size: 0.95rem;
}

.social-card-text .desc {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text-dim);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-direct a.big-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-direct a.big-link:hover {
  color: var(--text-dim);
  border-color: var(--text);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 6, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  max-width: 1000px;
  width: 100%;
}

.lightbox-inner .placeholder-img {
  --ar: 16 / 10;
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real photos in the lightbox are never cropped — shown at their
   natural aspect ratio, just capped so tall shots fit the viewport. */
.lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.lightbox-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.lb-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.lb-category {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lb-location {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.lb-camera {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.lightbox-close {
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.2rem;
  z-index: 201;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  z-index: 201;
}

.lightbox-nav.prev {
  left: 1.75rem;
}

.lightbox-nav.next {
  right: 1.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-transform: uppercase;
  line-height: 1;
}

.footer-cols {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 54ch;
  margin-top: 1rem;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.mt-lg { margin-top: clamp(2rem, 5vw, 3.5rem); }
.text-center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
