:root {
  --bg: #0f0f10;
  --bg-elevated: #17171a;
  --text: #f5f5f3;
  --text-muted: #a3a3a0;
  --accent: #ff5a36;
  --border: #2a2a2d;
  --max-width: 1200px;
  --radius: 10px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 15, 16, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 0.75rem;
}

.hero-subhead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero-bio {
  color: var(--text-muted);
  max-width: 620px;
}

/* Tile grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  display: block;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tile:hover img {
  transform: scale(1.05);
}

.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tile-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.tile-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tile-photography {
  outline: 1px solid var(--accent);
}

/* Project pages */
.project-header {
  padding: 3.5rem 0 1rem;
  max-width: 760px;
}

.project-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

.project-summary {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.project-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.section-body p {
  color: var(--text-muted);
  max-width: 720px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.media-item img,
.media-item video {
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.media-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0;
}

.pill-link {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.9rem;
}

.pill-link:hover {
  background: var(--accent);
  color: #111;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.site-footer h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.contact-email {
  color: var(--accent);
  font-size: 1.05rem;
}

.follow h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.social-list a:hover {
  color: var(--accent);
}

.footer-note {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
