/* Paloma homepage: closely modeled on the palomaevents.co reference.
   Used by index.html only; plan.html and brand.html keep css/paloma.css. */

:root {
  --cream: #FFFCF0;      /* page + collage background */
  --beige: #F7F1DF;      /* first split panel */
  --blue:  #BCCCCD;      /* vision panel + footer */
  --ink:   #2A3230;      /* text + dark fields */
  --panel-grey: #949790; /* ink at half strength over cream */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }

/* ---------- intro wash ---------- */
.intro {
  position: fixed; inset: 0; z-index: 60;
  background: #141817;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4vh;
  animation: intro-out 0.9s ease 1.5s forwards;
  pointer-events: none;
}
.intro .intro-word {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(80px, 16vw, 300px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.intro .intro-script {
  font-family: var(--script);
  font-size: clamp(20px, 2.4vw, 34px);
  color: var(--cream);
  opacity: 0.9;
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- fixed nav (appears past the hero) ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--cream);
  padding: 22px 56px;
  transform: translateY(-110%);
  transition: transform 0.45s ease;
}
.topnav.show { transform: translateY(0); }
.nav-side { display: flex; gap: 56px; }
.nav-side.right { justify-content: flex-end; }
.topnav a {
  font-size: 12.4px; letter-spacing: 0.62px; text-transform: uppercase;
  text-decoration: none; font-weight: 500;
}
.topnav a:hover { opacity: 0.6; }
.nav-logo {
  font-family: var(--serif); font-size: 27px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
  background: var(--ink);
}
.hero-rotator { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: -6%;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 2.4s ease;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
.hero-slide.s1 { background-image: url("../assets/photos/rooftop-dinner.jpg"); }
.hero-slide.s2 { background-image: url("../assets/photos/birthday-dinner.jpg"); }
.hero-slide.s3 { background-image: url("../assets/photos/calla-table.jpg"); }
.hero-slide.s4 { background-image: url("../assets/photos/candlelit-table.jpg"); }
@keyframes drift {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.5%, -2%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(42,50,48,0.30), rgba(42,50,48,0.18) 55%, rgba(42,50,48,0.36));
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  width: 100%; padding-top: 2vh;
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
}
.wordmark {
  font-family: var(--serif); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(90px, 17.5vw, 330px);
  line-height: 1;
  letter-spacing: 0.015em;
  color: var(--cream);
  user-select: none;
}
.hero-script {
  font-family: var(--script);
  font-size: clamp(22px, 2.6vw, 36px);
  color: var(--cream);
  margin-top: auto; margin-bottom: 7vh;
}

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 125vh; }
.split-panel {
  padding: 16vh 8% 12vh;
  display: flex; flex-direction: column;
}
.split-panel.beige { background: var(--beige); }
.split-panel.blue  { background: var(--blue); }
.split-panel.grey  { background: var(--panel-grey); }

.lockup { font-family: var(--serif); font-weight: 500; color: var(--ink); }
.lockup .line {
  display: block;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: 2px; text-transform: uppercase;
  line-height: 1.6;
}
.lockup .line.shift { padding-left: 26%; }
.lockup .and {
  font-family: var(--script); font-size: clamp(24px, 2.6vw, 36px);
  text-transform: none; letter-spacing: 0; margin-right: 26px;
}

.split-copy { max-width: 452px; margin: auto 0; padding-top: 12vh; }
.split-copy p {
  text-align: justify; text-indent: 50px;
  margin-bottom: 26px;
}
.std-link {
  font-size: 12.4px; letter-spacing: 0.62px; text-transform: uppercase;
  font-weight: 500; text-decoration: none;
}
.std-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- collage sides ---------- */
.collage { position: relative; background: var(--cream); min-height: 125vh; }
.ph { position: absolute; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img.bw { filter: grayscale(1); }
.ph img.crop-top { object-position: 50% 12%; }
.script-note {
  position: absolute; z-index: 3;
  font-family: var(--script);
  font-size: clamp(20px, 2.1vw, 30px);
  color: var(--ink); white-space: nowrap;
}

/* collage A (beside the beige panel) */
.ca-1 { top: 6%;  left: 6%;  width: 24%; aspect-ratio: 7/6; }
.ca-2 { top: 12%; left: 31%; width: 40%; aspect-ratio: 3/4; z-index: 2; }
.ca-3 { top: 6%;  right: 4%; width: 26%; aspect-ratio: 6/5; }
.ca-4 { bottom: 7%; left: 18%; width: 22%; aspect-ratio: 3/4; border-radius: 50% / 50%; }
.note-a1 { top: 7%; left: 27%; }
.note-a2 { bottom: 11%; right: 6%; }

/* stacked media (beside the blue panel) */
.stack { display: flex; flex-direction: column; min-height: 125vh; }
.stack .ph { position: relative; flex: 1; }

/* collage B (beside the grey panel) */
.cb-1 { top: 8%;  left: 6%;  width: 21%; aspect-ratio: 3/4; }
.cb-2 { top: 11%; right: 18%; width: 26%; aspect-ratio: 5/6; }
.cb-3 { top: 26%; left: 30%; width: 40%; aspect-ratio: 3/4; z-index: 2; }
.cb-4 { bottom: 7%; left: 9%; width: 28%; aspect-ratio: 5/4; }
.cb-5 { bottom: 7%; right: 3%; width: 21%; aspect-ratio: 3/4; }
.note-b1 { top: 16%; left: 26%; }
.note-b2 { bottom: 22%; right: 21%; }

/* ---------- footer ---------- */
.foot { background: var(--blue); padding: 12vh 56px 10vh; }
.foot-script {
  font-family: var(--script);
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 7vh;
}
.foot-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8%;
  max-width: 1240px; margin-bottom: 3vh;
}
.foot-cols p { margin-bottom: 18px; max-width: 420px; }
.foot-cols a { text-decoration: underline; text-underline-offset: 3px; }
.foot-cols .copyright { font-size: 11.5px; opacity: 0.85; }
.foot-gallery {
  display: flex; align-items: flex-start; gap: 6%;
  margin-top: 9vh;
}
.foot-gallery .ph { position: relative; }
.fg-1 { width: 22%; aspect-ratio: 2/3; margin-top: 0; }
.fg-2 { width: 14%; aspect-ratio: 2/3; margin-top: 4%; }
.fg-3 { width: 27%; aspect-ratio: 3/4; margin-top: 0; }
.fg-4 { width: 14%; aspect-ratio: 2/3; margin-top: 4%; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .hero-slide { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile ---------- */
@media (max-width: 880px) {
  .topnav { padding: 14px 18px; }
  .nav-side { gap: 18px; }
  .nav-side .hide-m { display: none; }
  .topnav a { font-size: 11px; }
  .nav-logo { font-size: 19px; }

  .hero { min-height: 480px; }
  .hero-script { margin-bottom: 9vh; }

  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-panel { padding: 9vh 8% 9vh; min-height: 0; }
  .split-copy { padding-top: 6vh; max-width: none; }
  .lockup .line.shift { padding-left: 12%; }

  .collage {
    min-height: 0;
    padding: 36px 18px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    grid-auto-flow: row dense;
    align-items: start;
  }
  .collage .ph { position: static; width: 100%; }
  .ca-2, .cb-3 { grid-column: 1 / -1; }
  .collage .script-note {
    position: static; grid-column: 1 / -1;
    text-align: center; padding: 2px 0;
    font-size: 22px;
  }

  .stack { min-height: 0; }
  .stack .ph { height: 44vh; flex: none; }

  .foot { padding: 9vh 22px 8vh; }
  .foot-script { margin-bottom: 5vh; }
  .foot-cols { grid-template-columns: 1fr; gap: 22px; }
  .foot-gallery { flex-wrap: wrap; gap: 5%; margin-top: 6vh; row-gap: 18px; }
  .fg-1 { width: 46%; margin-top: 0; }
  .fg-2 { width: 30%; margin-top: 6%; }
  .fg-3 { width: 56%; margin-top: 0; }
  .fg-4 { width: 34%; margin-top: 6%; }
}
