/* Website v6 — single stylesheet, top-bar navigation only, artboard model. */

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

:root {
  --bg:      #262421;    /* warm near-black */
  --surface: #2e2b28;    /* slight elevation */
  --text:    #d8d5cf;    /* warm off-white */
  --muted:   #948f88;    /* secondary text */
  --accent:  #b85c45;    /* terracotta — hovers, active states */
  --line:    rgba(216,213,207,.14);  /* subtle borders */
}

html, body {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--text);
  color: var(--bg);
}

/* ── top bar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 200;
  transition: transform 0.3s ease;
}

.topbar-hidden {
  transform: translateY(-100%);
}

.topbar-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.topbar-nav {
  display: flex;
  gap: 1.5rem;
}

.topbar-nav a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.15s ease;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--accent);
}

/* ── artboard ────────────────────────────────────────────────────────────── */

.artboard-wrap {
  overflow: hidden;
  width: 100%;
  padding-top: 56px;
}

.artboard {
  position: relative;
  width: 1440px;
  overflow: hidden;
}

.artboard-el {
  position: absolute;
}

.artboard-el img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.artboard-el[data-lightbox]:hover img {
  opacity: 0.92;
  transition: opacity 0.15s;
}

.artboard-el video {
  display: block;
  width: 100%;
  height: auto;
}

/* ── artboard text ───────────────────────────────────────────────────────── */

.artboard-text {
  color: var(--text);
  white-space: pre-wrap;
}

.artboard-text-headline {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.artboard-text-headline strong {
  font-weight: 700;
}

.artboard-text-title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
}

.artboard-text-body {
  font-size: 0.9rem;
  line-height: 1.6;
}

.artboard-text-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Courier New", Courier, monospace;
  color: var(--muted);
}

/* ── direction capabilities line ────────────────────────────────────────── */

.capabilities-line {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 3rem 1.5rem;
  text-align: center;
}

/* ── photographs grid ───────────────────────────────────────────────────── */

.photographs-page {
  padding-top: 56px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
}

.photo-cell {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-cell:hover img {
  transform: scale(1.03);
}

/* ── lightbox ────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(240, 238, 234, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lb-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lightbox img {
  max-width: 78vw;
  max-height: 84vh;
  object-fit: contain;
}

.lb-info {
  margin-top: 0.6rem;
  max-width: 300px;
}

.lb-info-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #111110;
  text-decoration: none;
  border-bottom: 1px solid rgba(17,17,16,0.25);
  padding-bottom: 1px;
  transition: border-color 0.15s;
  font-family: inherit;
}

.lb-info-title:hover { border-color: #111110; }

.lb-info-intro {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #666;
  max-width: 34ch;
}

@media (max-width: 700px) {
  .lb-info-intro { display: none; }
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: #262421;
  cursor: pointer;
}

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: #262421;
}

.lb-arrows {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 1rem;
}

.lb-arrow {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #262421;
  cursor: pointer;
  padding: 0.5rem;
}

/* ── series page ─────────────────────────────────────────────────────────── */

.series-page {
  padding-top: 56px;
  max-width: 900px;
  margin: 0 auto;
}

.series-header {
  padding: 3rem 1.5rem 2rem;
}

.series-title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.series-meta {
  margin-top: 0.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.series-prose {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 60ch;
}

.series-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1.5rem;
}

.series-image img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.series-nav {
  display: flex;
  justify-content: space-between;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.series-nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.series-nav a:hover {
  color: var(--accent);
}

/* ── series page (artboard variant) ──────────────────────────────────────── */

.series-page-artboard {
  padding-top: 0;
  max-width: none;
  margin: 0;
}

.series-page-artboard .artboard {
  max-width: none;
}

.series-page-artboard .series-nav {
  max-width: 900px;
  margin: 0 auto;
}

/* ── about page ──────────────────────────────────────────────────────────── */

.about-page {
  padding-top: 56px;
  max-width: 50ch;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 4rem;
}

.about-line {
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-availability {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-capabilities {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.about-city {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.about-email a {
  color: var(--accent);
  font-size: 0.95rem;
}

/* ── writing index (conditional) ────────────────────────────────────────── */

.writing-index {
  padding-top: 56px;
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.writing-row {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.writing-year {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
}

/* ── footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent);
  font-size: 0.95rem;
}

.footer-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .topbar-name {
    text-align: center;
  }

  .topbar-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .photographs-page {
    padding-top: 96px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .series-page,
  .about-page,
  .writing-index {
    padding-top: 96px;
  }

  .series-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .artboard-wrap {
    padding-top: 96px;
  }

  .capabilities-line {
    padding: 2rem 1rem;
  }
}

/* ── reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
