/* ================================
   RESET & BASE
================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nav-h: 54px;
  --gap: 7px;
  --text: #2b2b2b;
  --side: clamp(24px, 15vw, 215px);
}

html { font-size: 16px; }

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

/* ================================
   HEADER / NAV
================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 var(--side);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.logo {
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--text);
  white-space: nowrap;
  margin-right: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-sep {
  width: 1px;
  height: 13px;
  background: #ccc;
  margin: 0 22px;
  flex-shrink: 0;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-icon {
  display: flex;
  align-items: center;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav-icon:hover {
  opacity: 1;
}

/* Page body offset */
.page {
  padding-top: var(--nav-h);
}

/* ================================
   HOME
================================ */
.home-stage {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-image {
  width: 22vw;
  max-width: 320px;
  min-width: 160px;
}

.home-image img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
}

/* ================================
   PORTFOLIO
================================ */
.portfolio-stage {
  padding-top: var(--nav-h);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px var(--side) 40px;
}

.pg-item {
  cursor: pointer;
  overflow: hidden;
}

.pg-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}

.pg-item:hover img {
  opacity: 0.82;
}

/* ================================
   LIGHTBOX
================================ */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
}

.lb-overlay.active {
  display: flex;
}

.lb-img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lb-close {
  position: absolute;
  top: 26px;
  right: 34px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  line-height: 0;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 16px;
  line-height: 0;
}

.lb-prev { left: 28px; }
.lb-next { right: 28px; }

/* ================================
   CONTACT
================================ */
.contact-stage {
  height: calc(100vh - var(--nav-h));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: var(--side);
  width: calc(100% - 2 * var(--side));
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-links a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #cc0000;
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* ================================
   ABOUT
================================ */
.about-stage {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: calc(100vh - var(--nav-h));
  padding: 0 var(--side);
  gap: 24px;
}

.about-left {
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.about-bio p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: left;
  color: #3a3a3a;
  margin-bottom: 0.2em;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-right {
  display: flex;
  align-items: center;
  overflow: visible;
}

.about-right img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
}

/* ================================
   MODAL
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 460px;
  padding: 50px 48px 44px;
  position: relative;
  transform: translateY(18px);
  transition: transform 0.28s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.modal-close:hover { color: #333; }

.modal-title {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 36px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 7px 0;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #d0d0d0;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--text);
}

.modal-submit {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: 1px solid var(--text);
  padding: 12px 30px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.25s, color 0.25s;
}

.modal-submit:hover {
  background: var(--text);
  color: #fff;
}

.modal-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #888;
  margin-top: 14px;
  min-height: 1.4em;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1200px) {
  .masonry { columns: 5; }
}

@media (max-width: 900px) {
  .masonry { columns: 4; }

  .about-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 24px;
    gap: 30px;
  }
  .about-right {
    width: 160px;
    padding-top: 0;
  }
  .about-left {
    order: 2;
    padding: 0 0 60px;
  }
  .about-right { order: 1; }
}

@media (max-width: 640px) {
  .masonry { columns: 2; }
  .home-image { width: 68vw; }

  .nav-links { gap: 18px; }
  .nav-sep { margin: 0 14px; }
  .site-header { padding: 0 24px; }

  .logo {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

}

@media (max-width: 440px) {
  .nav-links { display: none; }
  .nav-sep { display: none; }
}
