/* Sigmund Pro font faces */
@font-face {
  font-family: 'Sigmund';
  src: url('./assets/fonts/SigmundPRO/SigmundPRO-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sigmund';
  src: url('./assets/fonts/SigmundPRO/SigmundPRO-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sigmund';
  src: url('./assets/fonts/SigmundPRO/SigmundPRO-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sigmund';
  src: url('./assets/fonts/SigmundPRO/SigmundPRO-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Sigmund', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  background: #fff;
  color: #2B3CE6;
  overflow-x: hidden;
}

/* Fixed pages: no scroll on main site */
body.fixed-page {
  overflow: hidden;
  height: 100vh;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: inherit;
  padding: 0 40px;
}

.site-title {
  font-weight: 500;
  font-size: 100px;
  line-height: 0.92;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transform-origin: top left;
  padding-top: 20px;
  padding-bottom: 8px;
  display: block;
  margin-right: -0.05em;
  will-change: font-size;
}

/* --- NAV --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding: 10px 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; }

.nav-links a.active::before {
  content: '■ ';
  font-size: 8px;
  vertical-align: middle;
}


/* --- PROJECTS GRID --- */
.projects-section {
  padding: 24px 40px 40px;
  flex: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  height: 100%;
}

.project-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  margin-bottom: 16px;
}

.project-card-name {
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 300;
}

.project-card-year {
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 300;
  opacity: 0.45;
}

.project-card-num {
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 300;
  opacity: 0.35;
}

.project-card-img {
  flex: 1;
  aspect-ratio: 1;
  background: #e8e8e8;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s ease;
}

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

/* --- ABOUT (fixed content) --- */
.fixed-content {
  padding: 24px 40px;
}

.about-content {
  display: flex;
  gap: 60px;
  height: calc(100vh - 140px);
}

.about-text {
  flex: 3;
  max-width: 720px;
}

.about-image {
  flex: 2;
  max-height: 70vh;
  overflow: hidden;
}

.about-image picture,
.about-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.about-content-text {
  max-width: 720px;
}

.about-content-text p {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 20px;
}

.about-content-text a {
  color: inherit;
}

/* --- CONTACT (fixed content) --- */
.contact-content {
  max-width: 720px;
}

.contact-content p {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 20px;
}

.contact-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.contact-content a:hover {
  opacity: 0.6;
}

/* --- PROJECT PAGE (scrollable) --- */
.project-page {
  padding: 24px 40px 80px;
}

.project-header {
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
}

.project-cover-img {
  flex: 1;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-cover-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.project-info {
  flex: 0 0 340px;
  font-size: 14px;
}

.project-info h2 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 24px;
}

.project-info table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.project-info td {
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  vertical-align: top;
}

.project-info td:last-child {
  text-align: right;
  opacity: 1;
  font-weight: 300;
}

.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}

.project-desc {
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.65;
  font-weight: 300;
  columns: 2;
  column-gap: 30px;
  margin-bottom: 60px;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-gallery--mobile { display: none; }

.project-gallery-row {
  display: grid;
  gap: 24px;
}

.project-gallery-item {
  overflow: hidden;
}

.project-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- LQIP blur-up --- */
img.lqip {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lqip.loaded {
  opacity: 1;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
  .site-header { padding: 0 24px; }
  .projects-section { padding: 16px 24px 40px; }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .project-page { padding: 24px 24px 60px; }
  .project-header { gap: 32px; }
  .project-info { flex: 0 0 280px; }
  .project-desc { columns: 1; }
  .fixed-content { padding: 24px 24px; }
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    height: auto;
    gap: 32px;
  }
  .about-image { max-height: 50vh; }
  .project-gallery--desktop { display: none; }
  .project-gallery--mobile { display: flex; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .site-title {
    padding-top: 14px;
    padding-bottom: 6px;
  }
  .nav { padding: 8px 0; }
  .nav-links {
    gap: 16px;
    font-size: 11px;
  }
  .projects-section { padding: 12px 16px 32px; }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .project-card-name { font-size: 11px; }
  .project-card-year { font-size: 10px; }
  .project-card-num { font-size: 10px; }
  .project-card-meta { padding: 6px 0; margin-bottom: 8px; }
  .project-page { padding: 16px 16px 48px; }
  .project-header {
    flex-direction: column;
    gap: 24px;
  }
  .project-info {
    flex: none;
    width: 100%;
  }
  .project-info h2 { font-size: 18px; }
  .project-desc {
    columns: 1;
    font-size: 13px;
  }
  .project-gallery--mobile {
    gap: 16px;
  }
  .fixed-content { padding: 16px 16px; }
}

@media (max-width: 375px) {
  .site-header { padding: 0 12px; }
  .projects-section { padding: 8px 12px 24px; }
  .projects-grid { gap: 10px; }
  .nav-links { gap: 12px; font-size: 10px; }
  .project-page { padding: 12px 12px 40px; }
  .fixed-content { padding: 12px 12px; }
}
