/* ------- Reset / base ------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  background: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: #000; color: #fff; }

/* ------- Scrollbar ------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #fafafa; }
::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

/* ------- Header ------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  z-index: 50;
}
.logo {
  font-family: 'Cormorant', serif;
  text-transform: uppercase;
  letter-spacing: 0.072em;
  font-size: 2.1em;
  font-weight: 700;
  transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.7; }

.nav-desktop { display: flex; gap: 40px; align-items: center; }
.nav-link {
  position: relative;
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 300;
  color: #404040;
  transition: color 0.3s ease;
  padding: 4px 0;
}
.nav-link:hover { color: #737373; }
.nav-link.active { color: #000; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: rgba(0,0,0,0.7);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px; height: 32px;
  gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 1px; background: #000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  gap: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: none;
}
.nav-mobile.open { display: flex; }

@media (max-width: 768px) {
  .site-header { padding: 22px 24px; }
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ------- Page title ------- */
.page-title {
  text-align: center;
  margin: 32px 0 56px;
}
.page-title h1 {
  font-family: 'Cormorant', serif;
  font-size: 1.7rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  margin: 0;
}
.stars {
  margin-top: 14px;
  font-family: 'Cormorant', serif;
  letter-spacing: 0.6em;
  color: #737373;
  font-size: 12px;
}
@media (max-width: 768px) { .page-title { margin: 24px 0 40px; } }

main { flex: 1; }
.page-fade { animation: pageFadeUp 0.6s ease-out; }
@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------- Masonry gallery ------- */
.masonry {
  column-count: 3;
  column-gap: 12px;
  padding: 0 12px;
}
@media (max-width: 1024px) { .masonry { column-count: 2; column-gap: 8px; padding: 0 8px; } }
@media (max-width: 640px)  { .masonry { column-count: 1; padding: 0 4px; } }

.tile {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.tile-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease-out, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.5s ease;
  pointer-events: none;
}
.tile:hover::after { background: rgba(0,0,0,0.08); }

/* ------- Reveal on scroll ------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------- Lightbox ------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.25s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-content { max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; padding: 8px; }
.lb-content img {
  max-width: 100%; max-height: 88vh; object-fit: contain;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.lb-btn {
  position: absolute;
  font-family: 'Cormorant', serif;
  color: #000;
  transition: color 0.3s ease, transform 0.3s ease;
}
.lb-btn:hover { color: #737373; }
.lb-close { top: 24px; right: 28px; font-size: 26px; font-weight: 300; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 56px; font-weight: 200; line-height: 1; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
.lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'Cormorant', serif;
  letter-spacing: 0.3em;
  color: #737373;
  font-size: 12px;
}
@media (max-width: 640px) {
  .lb-prev, .lb-next { font-size: 42px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ------- Footer ------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  margin-top: 64px;
  border-top: 1px solid #f5f5f5;
  flex-wrap: wrap;
  gap: 16px;
}
.copyright {
  font-family: 'Cormorant', serif;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: #737373;
}
.footer-tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #a3a3a3;
}
@media (max-width: 768px) {
  .site-footer { padding: 32px 24px; justify-content: center; text-align: center; }
}

/* ------- About page ------- */
.about-wrap { display: flex; flex-direction: column; }
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.about-section .about-text {
  display: flex;
 /* align-items: center; */
  justify-content: center;
  padding: 96px 64px;
}
.about-section .about-text-inner { max-width: 460px; }
.about-section h2 {
  font-family: 'Cormorant', serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0 0 24px;
}
.about-section p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: #404040;
  margin: 0;
}
.about-section .about-image {
  width: 60%; height: auto;
  background: #f5f5f5;
  overflow: hidden;
}
.about-section .about-image img {
  width: 70%; height: auto; object-fit: content;
  transition: transform 1200ms ease-out;
}
.about-section .about-image:hover img { transform: scale(1.05); }
.about-section.reverse .about-text { order: 2; }
@media (max-width: 768px) {
  .about-section { grid-template-columns: 1fr; }
  .about-section.reverse .about-text { order: 0; }
  .about-section .about-text { padding: 48px 24px; text-align: center; }
  .about-section .about-text-inner { margin: 0 auto; }
  .about-section .about-image { height: 60vh; }
}

/* ------- Contact page ------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.contact-info {
  display: flex; flex-direction: column;
  /*justify-content: center;*/

  padding: 200px 80px;
  align-items: center;
}
.info-stack { margin-bottom: 40px; max-width: 420px; }
.info-stack > * { margin-bottom: 14px; }
.info-line { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1f1f1f; transition: color 0.3s ease; }
.info-line:hover { color: #000; }
.info-line.small { font-size: 14px; color: #525252; }
.info-line.small span { color: #1f1f1f; }
.info-name { font-family: 'Cormorant', serif; letter-spacing: 0.06em; font-size: 1.2rem; margin: 8px 0; }
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d4d4d4;
  outline: none;
  padding: 8px 0;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.02em;
  color: #000;
  resize: none;
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: #000; }
.field input::placeholder, .field textarea::placeholder { color: #a3a3a3; }
.btn-send {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin-top: 12px;
  padding: 12px 30px;
  border: 1px solid #000;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: transparent;
  color: #000;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.btn-send:hover { background: #000; color: #fff; }
.btn-send:disabled { opacity: 0.7; cursor: default; }

.contact-image {
  width: 100%; min-height: 80vh;
  background: #f5f5f5;
  overflow: hidden;
}
.contact-image img { width: 100%; height: 100%; object-fit: cover; min-height: 80vh; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 48px 24px; align-items: center; text-align: center; }
  .info-stack, .contact-form { width: 100%; }
  .info-line, .info-line.small { justify-content: center; }
  .contact-image { order: -1; min-height: 50vh; }
  .contact-image img { min-height: 50vh; }
  .btn-send { align-self: center; }
}

/* ------- Toast ------- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 300; pointer-events: none;
}
.toast {
  background: #000; color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  min-width: 240px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .t-title { font-weight: 500; margin-bottom: 4px; }
.toast .t-desc { color: #d4d4d4; font-weight: 300; }
@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: none; }
}
