:root {
  --cream: #f4f1ea;
  --cream-2: #ece7db;
  --ink: #2b2620;
  --ink-muted: rgba(43, 38, 32, 0.55);
  --ink-faint: rgba(43, 38, 32, 0.28);
  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
}

/* ---------- Hero scroll mechanism ---------- */
.hero-scroll {
  position: relative;
  height: calc(var(--steps) * 100vh);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow: hidden;
}

/* ---------- Big overlapping wordmark ---------- */
.hero-wordmark {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.07em;
  font-size: clamp(38px, 6.2vw, 84px);
  text-align: center;
  color: var(--ink);
  margin: 0 0 clamp(-30px, -3.4vw, -18px) 0;
  padding-top: clamp(28px, 5vw, 52px);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  text-shadow: 0 2px 26px rgba(244, 241, 234, 0.9), 0 0 46px rgba(244, 241, 234, 0.6);
  pointer-events: none;
}

/* ---------- Split stage: photo left / color block right ---------- */
.split-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.split-set {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.split-set.active {
  opacity: 1;
  pointer-events: auto;
}

.split-photo {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, 0.35) 0%, rgba(20, 16, 12, 0) 22%, rgba(20, 16, 12, 0) 78%, rgba(20, 16, 12, 0.3) 100%),
    linear-gradient(145deg, color-mix(in srgb, var(--tone) 70%, black 10%), color-mix(in srgb, var(--tone) 60%, white 10%));
}

.split-photo--real {
  background-size: cover;
  background-position: center;
}

.split-photo--real::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.3) 0%, rgba(20, 16, 12, 0) 25%, rgba(20, 16, 12, 0) 75%, rgba(20, 16, 12, 0.35) 100%);
}

.split-block {
  flex: 1 1 50%;
  position: relative;
  background: var(--tone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 56px);
  overflow: visible;
}

.split-label {
  position: absolute;
  left: 0;
  top: 46%;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.5vw, 19px);
  color: var(--cream);
  white-space: nowrap;
  z-index: 3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.thumb {
  position: absolute;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

.split-set.active .thumb {
  animation: thumbPop 0.75s cubic-bezier(0.22, 0.9, 0.32, 1) forwards;
}

.split-set.active .thumb-a { animation-delay: 0.05s; }
.split-set.active .thumb-b { animation-delay: 0.22s; }
.split-set.active .thumb-c { animation-delay: 0.4s; }

@keyframes thumbPop {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.thumb-a {
  top: 4%;
  left: 38%;
  width: 28%;
  aspect-ratio: 3 / 4;
}

.thumb-b {
  top: 34%;
  right: 6%;
  width: 26%;
  aspect-ratio: 4 / 5;
}

.thumb-c {
  bottom: 8%;
  left: 36%;
  width: 25%;
  aspect-ratio: 3 / 4;
}

.split-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 32px);
  color: var(--cream);
  margin: 0;
  align-self: flex-end;
  text-align: right;
  z-index: 2;
}

.ph-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Dot navigation ---------- */
.dot-nav {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
}

.dot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dot-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-decoration: none;
}

.dot-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(244, 241, 234, 0.6);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.55);
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  flex-shrink: 0;
}

.dot-link:hover .dot-label,
.dot-link.active .dot-label {
  opacity: 1;
  transform: translateX(0);
}

.dot-link.active .dot-label {
  color: var(--cream);
  font-weight: 500;
}

.dot-link.active .dot {
  background: var(--cream);
  border-color: var(--cream);
  transform: scale(1.3);
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 6;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.scroll-cue-line {
  width: 1px;
  height: 34px;
  background: rgba(244, 241, 234, 0.55);
  position: relative;
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  animation: scrollDrip 1.8s ease-in-out infinite;
}

@keyframes scrollDrip {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ---------- Standalone "coming soon" pages ---------- */
.page-stub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 20px;
  background: var(--cream);
}

.page-stub h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0;
  color: var(--ink);
}

.page-stub p {
  color: var(--ink-muted);
  margin: 0;
  max-width: 480px;
  font-size: 15px;
}

.back-link {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
}

.back-link:hover {
  border-color: var(--ink);
}

.page-stub--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.page-stub--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.45) 0%, rgba(20, 16, 12, 0.35) 45%, rgba(20, 16, 12, 0.6) 100%);
}

.page-stub--photo h2,
.page-stub--photo p {
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.back-link--light {
  color: var(--cream);
  border-bottom-color: rgba(244, 241, 234, 0.4);
}

.back-link--light:hover {
  border-color: var(--cream);
}

/* ---------- Responsive: mobile = full-bleed photo + centered link list ---------- */
@media (max-width: 860px) {
  .hero-wordmark { display: none; }

  .split-photo {
    flex: 1 1 100%;
    align-items: flex-end;
  }
  .split-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(10, 8, 6, 0.55) 0%, rgba(10, 8, 6, 0.35) 40%, rgba(10, 8, 6, 0.55) 100%);
  }
  .split-photo > .ph-label {
    display: none;
  }
  .split-block,
  .split-label,
  .split-caption {
    display: none;
  }

  .dot-nav {
    position: absolute;
    inset: 0;
    transform: none;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .dot-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    width: 100%;
    padding: 0 20px;
  }
  .dot-link {
    justify-content: center;
    gap: 0;
    text-align: center;
    width: 100%;
  }
  .dot { display: none; }
  .dot-label {
    position: static;
    opacity: 1;
    transform: none;
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(19px, 7vw, 30px);
    font-weight: 400;
    color: rgba(244, 241, 234, 0.4);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    transition: color 0.6s ease, font-weight 0.3s ease;
    white-space: normal;
    line-height: 1.15;
  }
  .dot-nav li:nth-child(odd) .dot-label {
    font-weight: 600;
    font-size: clamp(22px, 8vw, 34px);
  }
  .dot-link.active .dot-label {
    color: var(--cream);
  }
}

