@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #050505;
  --panel: #080808;
  --text: #e8e8e3;
  --muted: #8c8c86;
  --line: #343432;
  --line-bright: #555550;
  --max: 1500px;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.035), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  line-height: 1.55;
}

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

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 10;
  background-image: radial-gradient(#fff .55px, transparent .55px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

.site-header,
.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 700; letter-spacing: .08em; }

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 18px; letter-spacing: .08em; }
nav a:hover { color: var(--text); }

main {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.section-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: transparent;
  border: 0;
}

.project-card {
  background: var(--panel);
  padding: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  transition: background .2s ease;
}

.project-card:hover { background: #0d0d0d; }

.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  
  border: 1px solid var(--line);
  transition: filter .35s ease, transform .35s ease;
}

.project-card:hover .project-image {
 
  transform: scale(.985);
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 2px 4px;
}

.project-title { font-size: 16px; font-weight: 500; }
.project-type { color: var(--muted); font-size: 10px; margin-top: 3px; }
.project-arrow { font-size: 16px; align-self: center; }

.page {
  padding: 34px 0 100px;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 34px 0 46px;
  border-bottom: 1px solid var(--line);
}

.project-description {
  padding-top: 4px;
}

.project-description p {
  margin-top: 0;
}

/* Prominent project video */
.project-video {
  padding: 24px 0 12px;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.video-note {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #000;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  border: 1px dashed var(--line-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.video-placeholder span {
  color: var(--text);
  font-size: 11px;
  letter-spacing: .08em;
}

.video-placeholder small {
  max-width: 520px;
  padding: 0 20px;
  font-size: 9px;
}

.video-placeholder code {
  color: var(--text);
}

.case-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 10px;
  padding: 10px 0 0;
}

.collage-item {
  margin: 0;
  min-width: 0;
  position: relative;
  background: #080808;
  border: 1px solid var(--line);
  overflow: hidden;
}

.collage-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;

  cursor: zoom-in;
  transition: transform .45s ease, filter .45s ease;
}

.collage-item:hover img {
  transform: scale(1.025);

}

.collage-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 3px 6px;
  background: rgba(0,0,0,.78);
  color: #aaa;
  font-size: 9px;
  letter-spacing: .06em;
}

.item-1 { grid-column: span 8; grid-row: span 2; }
.item-2 { grid-column: span 4; }
.item-3 { grid-column: span 4; }
.item-4 { grid-column: span 6; }
.item-5 { grid-column: span 6; }
.item-6 { grid-column: span 4; }
.item-7 { grid-column: span 4; }
.item-8 { grid-column: span 4; }
.item-9 { grid-column: span 6; }
.item-10 { grid-column: span 6; }

.copy-block {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.back {
  display: inline-block;
  margin-top: 32px;
  color: var(--muted);
}
.back:hover { color: var(--text); }

.prose-page {
  max-width: 900px;
  padding: 80px 0 140px;
}

.about-page {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-page h1 {
  margin-bottom: 34px;
}

.about-copy {
  max-width: 620px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
}

.contact-page .contact-copy {
  max-width: 760px;
}

.contact-specs {
  margin-top: 34px;
}

.site-footer {
  padding: 20px 0 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 42px 90px;
  background: rgba(0,0,0,.96);
}

.lightbox-stage {
  margin: 0;
  width: min(88vw, 1500px);
  height: min(88vh, 900px);
  display: grid;
  place-items: center;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
 
}

.lightbox-count {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
}

.lightbox button {
  position: fixed;
  border: 1px solid var(--line);
  background: rgba(5,5,5,.9);
  color: var(--text);
  width: 46px;
  height: 46px;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.lightbox button:hover {
  border-color: var(--line-bright);
  background: #111;
}

.lightbox-close {
  top: 24px;
  right: 28px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox button:disabled,
.lightbox button[hidden] {
  display: none;
}

@media (max-width: 800px) {
  .site-header, .site-footer, main { width: min(calc(100% - 28px), var(--max)); }
  nav { gap: 13px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-intro, .copy-block { grid-template-columns: 1fr; gap: 28px; }
.case-collage { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .collage-item,
  .item-1, .item-2, .item-3, .item-4, .item-5,
  .item-6, .item-7, .item-8, .item-9, .item-10 {
    grid-column: span 1;
    grid-row: auto;
  }
  .item-1 { grid-column: span 2; }
  .collage-item img { min-height: 180px; }
  .video-header { align-items: flex-start; gap: 12px; flex-direction: column; }
  .about-copy { font-size: 13px; }
  h1 { font-size: 48px; }
  .lightbox { padding: 70px 50px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }
}

/* Profile image / personal intro */
.home-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.profile-photo-wrap {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;

 
}

.profile-photo-wrap--home {
  width: 118px;
  aspect-ratio: 1;
}

.profile-photo-wrap--about {
  width: 150px;
  aspect-ratio: 1;
  margin: 0 auto 30px;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .1em;
  text-align: center;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%),
    var(--panel);
}

.home-intro-copy {
  max-width: 700px;
}

.home-intro-copy h1 {
  margin: 8px 0 8px;
}

.home-intro-copy p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .home-intro {
    grid-template-columns: 86px 1fr;
    gap: 18px;
    padding: 26px 0;
  }

  .profile-photo-wrap--home {
    width: 86px;
  }

  .profile-photo-wrap--about {
    width: 128px;
    margin-bottom: 24px;
  }
}

/* Profile image: circular treatment */
.profile-image,
.about-profile-image,
.profile-photo,
.about-photo {
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}


a:hover {
  text-decoration: underline;
}