:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a3a3a3;
  --border: #2a2a2a;
  --panel: #000000;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Entry gate — plain and minimal: black field, one line of type, nothing else. */

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

.entry-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.entry-gate-btn {
  background: none;
  border: none;
  padding: 40px;
  cursor: pointer;
}

.entry-gate-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.entry-gate-line {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: normal;
  color: #ffffff;
}

.entry-gate-line--cta {
  font-size: clamp(13px, 1.3vw, 16px);
  color: var(--muted);
}

.entry-gate.is-powering-off .entry-gate-copy {
  opacity: 0;
}

/* Header */

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header nav a {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--fg);
}

.site-header nav a.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* smallest phones (iPhone SE and similar ~320-360px): tighten up so the
   logo and nav don't crowd each other */
@media (max-width: 400px) {
  .site-header {
    padding: 24px 20px;
  }

  .logo {
    font-size: 17px;
  }

  .site-header nav {
    gap: 14px;
  }
}

/* Hero slideshow */

.hero-slideshow {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(40px + 5vh) 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-frame-wrap {
  position: relative;
  top: -2.5vh;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}

.carousel-tray-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin-top: 32px;
}

.carousel-tray {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.25s ease;
}

/* the tray splits down the middle: left half steps back, right half steps forward */

.tray-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.tray-half-prev {
  left: 0;
}

.tray-half-next {
  right: 0;
}

.carousel-tray-wrap:hover .carousel-tray {
  filter: brightness(1.5);
}

.tray-half:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.tray-half:disabled {
  cursor: default;
}

.carousel-tray.flashing {
  animation: tray-flash 420ms ease-out;
}

@keyframes tray-flash {
  0% {
    filter: brightness(1);
  }
  10% {
    filter: brightness(3.5);
  }
  100% {
    filter: brightness(1);
  }
}

.slide-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 3;
}

.slide-photo-window {
  position: absolute;
  left: 16.11%;
  top: 26.37%;
  width: 68.36%;
  height: 46.48%;
  overflow: hidden;
  background: #000;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flash-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.flash-overlay.flashing {
  animation: carousel-flash 420ms ease-out;
}

@keyframes carousel-flash {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* dark + translucent so it reads on both the black page and the cream card
   underneath it (mobile pulls these on top of the card, desktop sits beside it) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background: rgba(0, 0, 0, 0.55);
}

.hero-prev {
  left: -60px;
}

.hero-next {
  right: -60px;
}

@media (max-width: 640px) {
  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }
}

/* Eyebrow */

.eyebrow {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px 40px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Project grid */

.project-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.project-tile {
  display: block;
}

.project-tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: var(--panel);
  transition: opacity 0.3s ease;
}

.project-tile:hover img {
  opacity: 0.85;
}

.project-title {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  margin-top: 14px;
}

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

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

/* Single project page */

.project-page {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.project-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--panel);
  display: block;
}

.project-meta {
  padding-top: 24px;
}

.project-meta h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 8px;
}

.project-meta p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0;
}

.photo-counter {
  font-size: 13px !important;
  color: var(--muted);
  margin-top: 16px !important;
}

.project-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.project-nav a,
.project-nav button {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.project-nav a:hover,
.project-nav button:hover {
  color: var(--fg);
}

/* About page */

.about-page {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(40px + 5vh) 24px 100px;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.about-portrait {
  width: clamp(180px, 26vw, 280px);
  height: auto;
  display: block;
  flex-shrink: 0;
  margin: 0;
}

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

.about-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 24px;
}

@media (max-width: 640px) {
  .about-content {
    flex-direction: column;
    gap: 0;
  }

  .about-portrait {
    width: clamp(160px, 50vw, 240px);
    margin: 0 0 32px;
  }
}

.about-page h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin: 56px 0 16px;
}

.about-page p {
  font-size: 18px;
  font-weight: 300;
  margin: 0 0 8px;
}

.email-link {
  display: inline-block;
  font-size: 20px;
  font-weight: 300;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  margin-top: 8px;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 60px;
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
