@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-border: #e5e5e5;
  --color-accent: #111111;
  --max-width: 1300px;
  --gutter: 24px;
  --nav-height: 72px;
  --font-body: "Inter", Helvetica, Arial, sans-serif;
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  padding-top: var(--nav-height);  
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
a:hover { opacity: 0.6; }

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  transform: translateY(0);
  transition: transform 0.3s var(--ease);
}

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

.site-nav .wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-nav .nav-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.site-nav .nav-name img {
  height: clamp(20px, 8vw, 50px);
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.site-nav ul li a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* underline draws in on hover, from the center out */
.site-nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}

.site-nav ul li a:hover::after,
.site-nav ul li a.active::after {
  left: 0;
  right: 0;
}

.site-nav ul li a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .site-nav ul {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .site-nav ul.open { transform: translateY(0); }
  .site-nav ul li { border-top: 1px solid var(--color-border); }
  .site-nav ul li a { display: block; padding: 16px var(--gutter); }
  .nav-toggle { display: block; }
}

/* ---------- Hero (home / work landing) — full-bleed image with overlaid text ---------- */
.hero {
  position: relative;
  height: 82vh;
  min-height: 480px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color:var(--color-accent);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 239, 239, 0.75);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3; 
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 780px;
  margin: 0 auto 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero .subtext {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
  margin-bottom: 0;
}

/* ---------- Project grid (work / art pages) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
  padding: 40px 0 96px;
}

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

.project-card {
  display: block;
}

.project-card .thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #f2f2f2;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  margin-bottom: 16px;
  overflow: hidden;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .thumb img { transform: scale(1.05); }

/* hover overlay + reveal title, directly over the image */
.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.project-card:hover .thumb-overlay { opacity: 1; }

.thumb-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 20px;
  transform: translateY(6px);
  transition: transform 0.3s var(--ease);
}

.project-card:hover .thumb-title { transform: translateY(0); }

.project-card .title {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
/* full-width header image, out of the .wrapper max-width */
.project-header-image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.project-header-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* Project detail page */
.project-header {
  padding: 72px 20px 40px 20px;
}

.project-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}

.project-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.project-header .dek {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0 0 36px;
  max-width: 46ch;
}

/* left column: project meta list */
.project-meta {
  margin: 0;
  padding: 0;
}

.project-meta .meta-row {
  padding: 8px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-meta .meta-label {
  font-weight: 600;
  margin-right: 6px;
}

/* right column: longer description */
.project-description {
  margin-top: 4px;
}

.project-description p {
  font-size: 1.02rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin: 0 0 22px;
}

.project-description p:last-child { margin-bottom: 0; }

.project-embed {
  margin: 32px 0;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.project-embed iframe { max-width: 100%; width: 100%; height: 100%; min-width: 0; border: 0; }

.embed-with-caption {
  margin: 32px 0;
}

.embed-with-caption .project-embed {
  margin: 0 0 12px;
}

.embed-caption {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-muted);
  text-align: center;
}

.embed-caption a {
  text-decoration: underline;
}

.project-body {
  max-width: 780px;
  padding-bottom: 24px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  padding: 24px 0 64px;
}

.project-gallery .gallery-item {
  /* 
  background: #f2f2f2;
  border: 1px dashed var(--color-border); 
  */

  min-width: 0;
  display: flex;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.85rem;
}
.project-gallery .gallery-item img {
  min-width: 0;
  width: 100%;
  height: auto;
  display: block;
}

.project-gallery .gallery-item .gallery-link {
  flex: 1;
  min-width: 0;
  display: flex;
}

/* gallery item with image + caption text stacked underneath */
.gallery-item-caption {
  flex-direction: column;
  height: auto;
  background: none;
  border: none;
  align-items: stretch;
  padding: 0;
}

.gallery-item-caption .gallery-link {
  flex: none;
  height: clamp(160px, 40vw, 340px);
}

.gallery-item-caption .gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  margin: 0 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-muted);
  text-align: center;
}

.gallery-caption a {
  text-decoration: underline;
  color:#A9A9A9;
}

.project-gallery .gallery-item-fit {
  min-height: 0;
  height: 120px;
}

.project-gallery .gallery-item-fit img {
  height: 100%;
  min-width: 0;
  flex: 1 1 auto;
  object-fit: contain;
}

.gallery-text {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  gap: 20px;
  text-align: left;
  padding: 0;
  max-width: 80ch;
  margin: 0 auto;
}

.gallery-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.005em;
  margin: 10px;
  text-align: center;
  align-self: stretch;
  color:var(--color-accent);
}

.gallery-text p {
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 80ch;
  margin: 10px;
}

@media (max-width: 800px) {
  .project-header-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 500px) {
  .project-gallery {
    padding-left: 0px;
    padding-right: 8px;
  }
  
  .project-header {
    padding: 72px 0 40px;
  }
}

@media (max-width: 300px) {
  .project-gallery .gallery-item {
    flex-direction: column;
    height: auto;
  }

  .project-gallery .gallery-item img {
    width: 100%;
    height: auto;
    flex: none;
    object-fit: initial;
  }

  .project-gallery .gallery-item-fit {
    height: auto;
  }

  .project-gallery .gallery-item-fit img {
    height: auto;
  }

  .project-header {
    padding: 72px 0 40px;
  }
}

/* ---------- Related / "You may also like" ---------- */
.related {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 80px;
}

.related h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 28px;
}

/* ---------- About page ---------- */
.about {
  padding: 64px 0 80px;
  max-width: 1000px;
  margin: 0 auto; 
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: center;
}

.about-grid .about-avatar {
  width: 100%;
  max-width: 300px; 
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #f2f2f2;
  overflow: hidden;
  margin: 0;
  margin: 0 0 0 auto; 
}

.about-grid .about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-grid .about-avatar {
    width: 160px;
    margin: 36px 0;
    order: -1;
  }
}

.about h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}

.about p {
  font-size: 1.02rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  margin-bottom: 20px;
}

.about .contact-email {
  font-weight: 600;
  border-bottom: 1px solid var(--color-text);
}

.about .avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #f2f2f2;
  margin: 36px 0;
  overflow: hidden;
}

.about .social-links {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.about .social-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-grid.art-grid .thumb {
  aspect-ratio: 1 / 1;
}

/* ---------- Art preview cards (button, open the lightbox) ---------- */
button.project-card {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* ---------- Art fullscreen lightbox ---------- */
.art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 96px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.art-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.art-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 72vh;
}

.art-lightbox-stage img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.art-lightbox-caption {
  text-align: center;
  margin-top: 32px;
}

.art-lightbox-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.art-lightbox-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.art-lightbox-close,
.art-lightbox-prev,
.art-lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.art-lightbox-close:hover,
.art-lightbox-prev:hover,
.art-lightbox-next:hover { opacity: 1; }

.art-lightbox-close {
  top: 32px;
  right: 32px;
  font-size: 2rem;
  line-height: 1;
}

.art-lightbox-prev,
.art-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
}

.art-lightbox-prev { left: 32px; }
.art-lightbox-next { right: 32px; }

@media (max-width: 700px) {
  .art-lightbox { padding: 32px 20px; }
  .art-lightbox-close { top: 16px; right: 16px; font-size: 1.6rem; }
  .art-lightbox-prev { left: 12px; }
  .art-lightbox-next { right: 12px; }
  .art-lightbox-prev, .art-lightbox-next { font-size: 1.8rem; }
}

/* fullscreen lightbox, click the art image */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: zoom-out;
}


.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.back-to-top {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

/* mobile-only notice banner */
.mobile-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 10px 40px 10px 16px;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.mobile-banner p {
  margin: 0;
}

.mobile-banner-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.mobile-banner-close:hover { 
  opacity: 1; 
}

@media (max-width: 640px) {
  .mobile-banner { display: flex; align-items: center; justify-content: center; }

  body.has-mobile-banner {
    padding-top: calc(var(--nav-height) + 40px);
  }

  body.has-mobile-banner .site-nav {
    top: 40px;
  }
}
