:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --text: #f5f5f5;
  --text-dim: #9a9a9a;
  --accent: #2B00D9;
  --border: rgba(255, 255, 255, 0.1);
  --maxw: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.site-nav a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 720px) {
  /* The desktop row-nav is simply hidden on mobile; .mobile-nav (below)
     takes over, since it's not inside the sticky header. */
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Mobile menu overlay ---------- */
/* Deliberately placed OUTSIDE <header> in the HTML (as a sibling, not a
   child): a position:fixed element nested inside a position:sticky
   ancestor renders incorrectly in real browsers (a well-known CSS footgun),
   so this panel lives on its own at the body level instead. */

.mobile-nav {
  display: none;
}

@media (max-width: 720px) {
  .mobile-nav.open {
    display: flex;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    padding: 32px;
    gap: 4px;
    font-size: 20px;
    z-index: 60;
  }
  .mobile-nav a {
    color: var(--text);
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav a.active {
    color: var(--accent);
    font-weight: 700;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 32px 56px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 820px;
}

.hero p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 18px;
  max-width: 560px;
}

/* ---------- Project list (stacked, like the reference site) ---------- */

.project-list {
  max-width: var(--maxw);
  margin: 0 auto;
}

.project-block {
  display: block;
  padding: 56px 32px;
  border-top: 1px solid var(--border);
}

.project-block:first-child {
  border-top: none;
}

.project-block-media {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-block-media img,
.project-block-media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.project-block-text {
  max-width: 720px;
  margin-top: 24px;
}

.project-block-text .title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-block-text .meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.project-block-text p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}

.project-block-text .see-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.project-block:hover .see-more {
  color: var(--accent);
}

/* ---------- Video embed (home featured spot + project detail pages) ---------- */

.featured-video {
  padding: 0 32px 64px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer / signup ---------- */

.signup {
  padding: 96px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.signup h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
}

.signup p {
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 480px;
}

.signup form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 15px;
}

.signup button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

.signup button:hover {
  opacity: 0.85;
}

.signup .status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  max-width: var(--maxw);
  margin: 0 auto;
}

.site-footer .links {
  display: flex;
  gap: 20px;
}

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

/* ---------- About page photo layout ---------- */

.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-photo {
  width: 260px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
  min-width: 240px;
}

/* ---------- Generic page (about / contact / project detail) ---------- */

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}

.page h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.page p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 16px;
  max-width: 640px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--text-dim);
  font-size: 14px;
}

.back-link:hover {
  color: var(--text);
}

/* ---------- Project detail ---------- */

.detail-hero {
  aspect-ratio: 16 / 7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}

.detail-hero img,
.detail-hero .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  gap: 24px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-meta span strong {
  color: var(--text);
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.external-link {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.external-link:hover {
  border-color: var(--text-dim);
}

.contact-list a {
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0;
}

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

/* ---------- Photos page ---------- */

.photos-intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px 40px;
}

.photos-intro h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.photos-intro p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: var(--maxw);
  margin: 0 auto 96px;
  padding: 0 32px;
}

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

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

.photo-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  display: block;
}

.photo-item img,
.photo-item .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img,
.photo-item:hover .placeholder {
  transform: scale(1.04);
}

.photo-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.photo-item:hover .caption {
  opacity: 1;
}

/* Folder tiles on the Photography landing page (e.g. "Portraits") */

.folder-caption {
  opacity: 1 !important;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
}

.folder-item:hover .folder-caption {
  color: var(--accent);
}
