/* === JaZoN Frings — Systems Art Portfolio === */

:root {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --text: #111;
  --text-muted: #666;
  --text-light: #999;
  --accent: #111;
  --border: #e0e0e0;
  --max-w: 1400px;
  --gap: clamp(1rem, 3vw, 3rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* === Header === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 28px; width: auto; }
.main-nav {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text);
}
.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
}

/* === Overlay Menu (Mobile) === */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.overlay-menu.open {
  opacity: 1;
  visibility: visible;
}
.overlay-inner { text-align: center; }
.menu-close {
  position: absolute;
  top: 20px;
  right: var(--gap);
  width: 36px;
  height: 36px;
}
.menu-close span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--text);
  position: absolute;
  top: 50%;
  left: 50%;
}
.menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.overlay-nav a {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s;
}
.overlay-nav a:hover { opacity: 0.5; }

/* === Main Content === */
main {
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}
#app {
  opacity: 1;
  transition: opacity 0.2s var(--ease);
}
#app.loading { opacity: 0; }

/* === Page Containers === */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap);
}
.page-wide {
  max-width: 100%;
  padding: 0;
}

/* === Hero / Home === */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  text-align: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.hero-link {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: opacity 0.3s var(--ease);
  position: relative;
  display: block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
}
.hero-link:hover {
  border-color: var(--text);
}
.hero-link .arrow {
  font-size: 0.5em;
  vertical-align: middle;
  margin-left: 0.3em;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-8px);
  display: inline-block;
}
.hero-link:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* === Section Headers === */
.section-header {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(1.5rem, 4vw, 3rem);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-subtitle {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}
.section-description {
  max-width: 640px;
  margin-top: 1.5rem;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* === Grid Layouts === */
.grid {
  display: grid;
  gap: 2px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Art Entry List === */
.art-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.art-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.art-entry:first-child { border-top: 1px solid var(--border); }
.art-entry:hover { background: var(--bg-alt); }
.art-entry-img {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.art-entry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.art-entry:hover .art-entry-img img {
  transform: scale(1.02);
}
.art-entry-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem var(--gap);
}
.art-entry-info h2 {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.art-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.art-entry-info p {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 2rem;
}
.detail-info h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.detail-info .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.detail-info p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* === Gallery Grid (masonry-like) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.02);
}
.gallery-item .item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 12px;
  font-family: var(--mono);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .item-caption {
  opacity: 1;
  transform: translateY(0);
}

/* === Filter Bar === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0 2rem;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  background: transparent;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* === Two Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.two-col:last-child { border-bottom: none; }
.two-col-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-top: 0.2rem;
}
.two-col-content h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.two-col-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* === Work Page Sections === */
.work-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.work-section:last-child { border-bottom: none; }
.work-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 2rem;
}
.work-section-header h2 {
  font-size: 1.5rem;
  font-weight: 400;
}
.work-section-header p {
  color: var(--text-muted);
  line-height: 1.8;
}
.work-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
.work-img {
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-alt);
}
.work-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-img:hover img { transform: scale(1.02); }

/* === About Page === */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: calc(var(--gap) * 2);
  padding: 4rem 0;
  align-items: start;
}
.about-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.about-title .subtitle {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}
.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: var(--text-muted);
}
.about-text h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.about-text h3:first-child { margin-top: 0; }
.about-section {
  max-width: 720px;
  margin-left: auto;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.about-section-title {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* === Contact Page === */
.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  text-align: center;
  padding: 4rem var(--gap);
}
.contact-layout h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
}
.contact-layout .subtitle {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
  margin: 1rem 0 2rem;
}
.contact-layout a.email {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.contact-layout a.email:hover {
  border-color: var(--text);
}

/* === Lists (Expo, Press, CV) === */
.list-page {
  max-width: 900px;
}
.list-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.list-section:last-child { border-bottom: none; }
.list-section h2 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 12px;
}
.list-section ul { padding: 0; }
.list-section li {
  padding: 0.4rem 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.list-section li strong {
  color: var(--text);
  font-weight: 500;
}
.list-section li em {
  font-style: italic;
}
.list-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
  display: inline-block;
  min-width: 3rem;
}

/* === CV Specific === */
.cv-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cv-section:last-child { border-bottom: none; }
.cv-section h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.cv-section p, .cv-section li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}
.cv-motivation {
  max-width: 640px;
  line-height: 1.9;
}

/* === Low Tech Paris === */
.ltp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}
.ltp-item {
  font-family: var(--mono);
  font-size: 13px;
  padding: 1rem;
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.ltp-item:hover { background: var(--bg-alt); }
.ltp-location { font-weight: 600; }
.ltp-theme { font-style: italic; color: var(--text-muted); }

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox.visible {
  opacity: 1;
}
.lightbox[hidden] { display: none; }
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
}
.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  width: 44px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-col a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

/* === Utility === */
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.link-arrow::after {
  content: ' \2192';
  transition: transform 0.2s;
  display: inline-block;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* === Responsive === */
@media (max-width: 1024px) {
  .main-nav { gap: 1.2rem; }
  .main-nav a { font-size: 12px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-title { position: static; }
  .detail-header { grid-template-columns: 1fr; }
  .work-section-header { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-content {
    gap: 1.5rem;
  }
  .art-entry {
    grid-template-columns: 1fr;
  }
  .art-entry-img {
    aspect-ratio: 16/9;
  }
  .art-entry-info {
    padding: 1.2rem var(--gap);
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .work-images { grid-template-columns: 1fr 1fr; }
}
