@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:wght@400;500;600&display=swap');

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

html {
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: "Libre Baskerville", Georgia, serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

/* ── Section 1: Fullscreen video hero ── */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
  background-color: #F1F1EC;
}

.hero-media {
  position: absolute;
  width: min(100%, 177.78vh);
  height: clamp(55%, 56.25vw, 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: 38% 50%;
}

/* ── Scroll hint arrow ── */

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
  text-decoration: none;
  cursor: pointer;
}

.scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background-color: #d36b5f;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(211, 107, 95, 0.4);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ── Section 2: Polyformer ── */

.polyformer {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  background-color: #f3f6ec;
  color: #1a1a1a;
  padding: 4rem 2rem 6rem;
  display: flex;
  justify-content: center;
}

.polyformer-content {
  width: 100%;
  max-width: 1100px;
}

.polyformer-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 0.6rem;
  color: #1a1a1a;
}

.polyformer-tagline {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: #3a3a3a;
  margin-bottom: 2.5rem;
}

.polyformer-body {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.7;
  color: #3a3a3a;
  margin-bottom: 1rem;
}

.polyformer-disclaimer {
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: #3a3a3a;
  margin-bottom: 3rem;
}

.polyformer-viewers {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.viewer-card {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
}

.viewer-card figcaption {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #3a3a3a;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.fc-line {
  display: block;
}

.fc-out {
  color: #6b6b6b;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  padding-left: 0.8rem;
}

.viewer {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  border: 1px solid #d9d5cc;
  border-radius: 4px;
  background-color: #f2f5eb;
  margin-bottom: 3.5rem;
}

.mono {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ── Email button (lives inside polyformer section) ── */

.contact-btn {
  display: inline-block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  color: #6b7cff;
  text-decoration: none;
  border: 2px solid #6b7cff;
  padding: 1.25rem 3rem;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.contact-btn:hover {
  background-color: #6b7cff;
  color: #ffffff;
}

/* ── Logo ── */

.logo {
  position: fixed;
  bottom: 0.8rem;
  right: 1rem;
  padding: 0.5rem;
  z-index: 10;
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .polyformer { padding: 3rem 1.25rem 4rem; }
}
