@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Space+Grotesk:wght@500&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #eae7e2;
  --text: #111111;
  --placeholder: #d4d0ca;
  --header-h: 60px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
}

nav a.active {
  border-bottom: 1.5px solid var(--text);
}

.social {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-self: end;
}

.social a {
  color: var(--text);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.social svg {
  width: 20px;
  height: 20px;
}

/* ── Main ───────────────────────────────────────────── */

main {
  padding-top: var(--header-h);
}

/* ── Still — masonry grid ───────────────────────────── */

.masonry {
  columns: 3;
  column-gap: 0;
}

.masonry-item {
  break-inside: avoid;
  display: block;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
}

/* placeholder box shown until real image is uploaded */
.masonry-item .ph {
  width: 100%;
  display: block;
  background: var(--placeholder);
}

/* ── Animation grid ─────────────────────────────────── */

.anim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 24px 36px 80px;
  gap: 0;
}

.anim-item {
  padding: 0 12px 40px;
  cursor: pointer;
}

.anim-item a {
  display: block;
}

.anim-item a:hover img {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.anim-item .ph,
.anim-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--placeholder);
  transition: opacity 0.2s;
}

.anim-item .title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
}

/* ── About ──────────────────────────────────────────── */

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 72px 48px 80px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-heading {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.about-contact p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.about-contact a {
  color: var(--text);
}

.about-social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.about-social a {
  color: var(--text);
  display: flex;
  align-items: center;
}

.about-social svg {
  width: 20px;
  height: 20px;
}

/* ── Contact form ───────────────────────────────────── */

.contact-form {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 400;
}

.field label .req {
  font-weight: 300;
  color: #888;
  margin-left: 4px;
  font-size: 12px;
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #aaa;
  padding: 6px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  width: 100%;
  resize: none;
  transition: border-color 0.15s;
}

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

.field textarea {
  min-height: 100px;
}

.btn-submit {
  align-self: flex-start;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-submit:hover {
  opacity: 0.75;
}

/* ── Lightbox ───────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* ── Scroll reveal ──────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 900px) {
  .masonry { columns: 2; }
  .about-wrap { grid-template-columns: 1fr; padding: 40px 28px 60px; }
}

@media (max-width: 600px) {
  header { padding: 0 16px; }
  .logo { font-size: 15px; }
  nav { gap: 18px; }
  nav a { font-size: 14px; }
  .masonry { columns: 1; }
  .anim-grid { grid-template-columns: 1fr; padding: 16px 20px 40px; }
  .form-row { grid-template-columns: 1fr; }
  .about-wrap { padding: 32px 20px 60px; }
}
