*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

.page {
  display: flex;
  height: 100vh;
  background: #E8E4DC;
  overflow: hidden;
}

/* ── PAINTING ── */
.painting-panel {
  flex-shrink: 0;
  overflow: hidden;
}

.painting-panel img {
  display: block;
  height: 100vh;
  width: auto;
}

/* ── TEXT PANEL ── */
.text-panel {
  flex: 0 0 clamp(240px, 30vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-left: 3px solid #C47E28;
}

.name-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6B6058;
}

.name-block {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.name-first {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: #1C1917;
}

.name-last {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 0.9;
  color: #1C1917;
}

.footer-info {
  border-top: 1px solid #D2CBC1;
  padding-top: clamp(0.85rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.enquiry-line {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6B6058;
}

.contact-email {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #6B6058;
  text-decoration: none;
  border-bottom: 1px solid #D2CBC1;
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}

.contact-email:hover {
  color: #C47E28;
  border-color: #C47E28;
}

/* ── ENTRANCE ── */
@media (prefers-reduced-motion: no-preference) {
  .painting-panel img {
    animation: revealPainting 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .text-panel > * {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .text-panel > *:nth-child(1) { animation-delay: 0.4s; }
  .text-panel > *:nth-child(2) { animation-delay: 0.7s; }
}

@keyframes revealPainting {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .painting-panel {
    width: 100%;
    flex: none;
  }

  .painting-panel img {
    width: 100%;
    height: auto;
  }

  .text-panel {
    flex: 1 0 auto;
    border-left: none;
    border-top: 3px solid #C47E28;
    padding: 2rem 1.75rem 2.5rem;
    min-height: 40vh;
  }
}
