*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; background: #080808; color: #e0d8cc; font-family: 'Josefin Sans', sans-serif; }

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.45s, background 0.4s;
}
header.hidden  { transform: translateY(-110%); opacity: 0; pointer-events: none; }
header.on-home    { background: linear-gradient(to bottom, rgba(8,8,8,0.78) 0%, transparent 100%); }
header.on-gallery { background: rgba(8,8,8,0.95); border-bottom: 0.5px solid rgba(255,255,255,0.05); }

.header-left { display: flex; align-items: center; gap: 1rem; }

.profile-circle {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(220,210,190,0.2); overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color 0.3s;
}
.profile-circle:hover { border-color: rgba(220,210,190,0.5); }
.profile-circle svg { width: 22px; height: 22px; opacity: 0.28; }
.profile-circle img { width: 100%; height: 100%; object-fit: cover; }

a.profile-name {
  font-size: 0.6rem; font-weight: 300; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(200,190,175,0.55); text-decoration: none; transition: color 0.3s;
}
a.profile-name:hover { color: rgba(220,210,190,0.85); }

.header-right { display: flex; align-items: center; }
nav a {
  font-size: 0.78rem; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(160,150,135,0.55); text-decoration: none; transition: color 0.3s;
}
nav a:hover { color: rgba(220,210,190,0.9); }

/* ── HOME / TRIANGLES ── */
#homePage { width: 100vw; height: 100vh; overflow: hidden; position: relative; }
.triangle-wrap { position: relative; width: 100%; height: 100%; }

.tri-cell {
  position: absolute; inset: 0; cursor: pointer;
  transition: filter 0.4s ease;
}
.tri-life  { clip-path: polygon(0 0, 100% 0, 100% 37.8%, 0 50%); }
.tri-night { clip-path: polygon(0 50%, 100% 37.8%, 100% 62.2%, 0 50%); }
.tri-cat   { clip-path: polygon(0 50%, 100% 62.2%, 100% 100%, 0 100%); }

.tri-bg {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat;
  transition: transform 0.6s ease;
}
.tri-bg--life  { background-color: #1a1208; }
.tri-bg--night { background-color: #06060f; }
.tri-bg--cat   { background-color: #080e06; }

.tri-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
  transition: background 0.45s ease; pointer-events: none;
}
.tri-cell:hover .tri-overlay { background: rgba(0,0,0,0.15); }
.tri-cell:hover .tri-bg      { transform: scale(1.03); }
.tri-cell:hover               { filter: drop-shadow(0 0 20px rgba(0,0,0,0.5)); }

.tri-label {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; transition: opacity 0.4s;
}
.tri-life  .tri-label { top: 14%;  right: 16%; }
.tri-night .tri-label { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.tri-cat   .tri-label { bottom: 18%; right: 16%; }

.tri-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300; font-style: italic; letter-spacing: 0.05em; line-height: 1;
  color: rgba(225,215,200,0.78);
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  transition: color 0.4s;
}
.tri-sub {
  font-size: 0.52rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(180,170,155,0.35); margin-top: 0.45rem;
}
.tri-cell:hover .tri-name { color: rgba(245,235,215,1); }

.tri-svg-lines {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}

/* ── GALLERY SECTIONS ── */
.gallery-section { width: 100%; min-height: 100vh; border-top: 0.5px solid rgba(255,255,255,0.04); }

.gallery-hero {
  width: 100%; height: 36vh; min-height: 230px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 2.5rem;
}
.gallery-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300; font-style: italic; letter-spacing: 0.06em; line-height: 1;
}
.gallery-hero-sub {
  font-size: 0.56rem; letter-spacing: 0.46em; text-transform: uppercase;
  color: rgba(160,150,135,0.38); margin-top: 0.75rem;
}
.scroll-back-btn {
  margin-top: 1.2rem; font-family: 'Josefin Sans', sans-serif;
  font-size: 0.5rem; font-weight: 300; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(160,150,135,0.32); background: none;
  border: 0.5px solid rgba(160,150,135,0.14);
  padding: 0.45rem 1.1rem; cursor: pointer; transition: color 0.3s, border-color 0.3s;
}
.scroll-back-btn:hover { color: rgba(220,210,190,0.65); border-color: rgba(220,210,190,0.28); }

.gallery-divider { width: 100%; height: 0.5px; background: rgba(255,255,255,0.05); }

/* ── PHOTO GRID ── */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; padding: 3px; background: #030303;
}
.photo-slot {
  aspect-ratio: 3/4; background: #0d0d0d;
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.photo-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.88;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}
.photo-slot:hover img { transform: scale(1.04); opacity: 1; }
.photo-slot.empty { border: 0.5px solid rgba(255,255,255,0.04); }
.slot-label { font-size: 0.46rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.1); text-align: center; }

.gallery-end { padding: 4.5rem 2.5rem; text-align: center; }
.gallery-end p { font-size: 0.5rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255,255,255,0.07); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,4,4,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img-wrap { max-width: 88vw; max-height: 88vh; }
.lightbox-img-wrap img { max-width: 88vw; max-height: 88vh; object-fit: contain; display: block; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; cursor: pointer;
  color: rgba(220,210,190,0.4); transition: color 0.25s; font-family: inherit; line-height: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: rgba(220,210,190,0.9); }
.lightbox-close { top: 1.5rem; right: 2rem;  font-size: 1rem; letter-spacing: 0.1em; }
.lightbox-prev  { left: 1.2rem;  top: 50%; transform: translateY(-50%); font-size: 3.5rem; }
.lightbox-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 3.5rem; }

/* ── FOOTER ── */
#siteFooter {
  width: 100%; padding: 2.8rem 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  background: #080808;
}
.social-links { display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap; justify-content: center; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  color: rgba(160,150,135,0.45); text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
}
.social-link svg { width: 26px; height: 26px; display: block; }
.social-link:hover { color: rgba(220,210,190,0.85); transform: translateY(-3px); }
.social-link--text {
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  width: auto; height: auto;
}
.footer-empty { font-size: 0.5rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.08); text-align: center; }

/* ── CONTACT PAGE ── */
.contact-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem 4rem;
}
.contact-inner { width: 100%; max-width: 520px; }
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; font-style: italic;
  color: rgba(225,215,200,0.85); letter-spacing: 0.05em; margin-bottom: 0.6rem;
}
.contact-sub {
  font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(160,150,135,0.38); margin-bottom: 3rem;
}
.form-group { margin-bottom: 1.6rem; }
.form-group label {
  display: block; font-size: 0.52rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(160,150,135,0.45); margin-bottom: 0.55rem;
}
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.1);
  color: rgba(225,215,200,0.85);
  font-family: 'Josefin Sans', sans-serif; font-size: 0.78rem; font-weight: 300;
  padding: 0.75rem 1rem; outline: none; resize: vertical;
  transition: border-color 0.3s; border-radius: 1px;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(160,150,135,0.2); }
.form-group input:focus, .form-group textarea:focus { border-color: rgba(220,210,190,0.3); }
.form-submit {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem; font-weight: 300; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(225,215,200,0.7); background: none;
  border: 0.5px solid rgba(220,210,190,0.2);
  padding: 0.75rem 2.5rem; cursor: pointer; transition: color 0.3s, border-color 0.3s;
  margin-top: 0.5rem;
}
.form-submit:hover { color: rgba(225,215,200,1); border-color: rgba(220,210,190,0.5); }
.form-submit:disabled { opacity: 0.4; cursor: wait; }
.form-feedback { margin-top: 1.2rem; font-size: 0.6rem; letter-spacing: 0.2em; min-height: 1.2em; }
.form-feedback--success { color: rgba(160,220,140,0.8); }
.form-feedback--error   { color: rgba(220,120,100,0.8); }
