:root {
  --cream: #f8f2eb;
  --gold: #d7b782;
  --line: rgba(248, 242, 235, 0.42);
  --panel: rgba(24, 17, 14, 0.56);
  --timeline-gutter: clamp(64px, 6vw, 104px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  color: var(--cream);
  background: #120f0d;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

.experience {
  position: relative;
  width: 100%;
  height: 100vh;
}

.story-step {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1.2rem, 7vw, 9rem);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 1.1s ease;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

.story-step.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.wedding-step {
  align-items: center;
  padding-top: clamp(0.5rem, 1.4vh, 1rem);
  padding-bottom: clamp(0.5rem, 1.4vh, 1rem);
}

.story-step:nth-of-type(1) {
  background-image:
    linear-gradient(130deg, rgba(31, 18, 16, 0.62), rgba(10, 8, 7, 0.48)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1920&q=80");
}

.story-step:nth-of-type(2) {
  background-image:
    linear-gradient(125deg, rgba(47, 26, 21, 0.58), rgba(14, 9, 8, 0.46)),
    url("https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?auto=format&fit=crop&w=1920&q=80");
}

.story-step:nth-of-type(3) {
  background-image:
    linear-gradient(120deg, rgba(27, 22, 20, 0.55), rgba(9, 8, 9, 0.58)),
    url("https://images.unsplash.com/photo-1487412912498-0447578fcca8?auto=format&fit=crop&w=1920&q=80");
}

.story-step:nth-of-type(4) {
  background-image:
    linear-gradient(120deg, rgba(34, 21, 17, 0.58), rgba(11, 10, 8, 0.5)),
    url("https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?auto=format&fit=crop&w=1920&q=80");
}

.story-step:nth-of-type(5) {
  background-image:
    linear-gradient(125deg, rgba(40, 23, 19, 0.55), rgba(14, 10, 8, 0.55)),
    url("https://images.unsplash.com/photo-1478146896981-b80fe463b330?auto=format&fit=crop&w=1920&q=80");
}

.story-step:nth-of-type(6) {
  background-image:
    linear-gradient(125deg, rgba(24, 14, 13, 0.52), rgba(10, 9, 8, 0.6)),
    url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=1920&q=80");
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.11), transparent 34%),
    radial-gradient(circle at 80% 78%, rgba(250, 222, 170, 0.12), transparent 35%);
  z-index: 0;
}

.content-wrap {
  position: relative;
  z-index: 1;
  justify-self: start;
  max-width: min(760px, calc(100% - 90px));
  padding: 0;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.75s ease 0.22s, opacity 0.75s ease 0.22s;
}

.story-step.active .content-wrap {
  transform: translateY(0);
  opacity: 1;
}

.hero-step .content-wrap {
  justify-self: center;
  text-align: center;
  max-width: min(900px, calc(100% - 30px));
}

.wedding-step .content-wrap {
  --wedding-scale: 1;
  --wedding-offset-y: 30px;
  justify-self: start;
  text-align: left;
  width: min(980px, calc(100% - 90px));
  max-width: min(980px, calc(100% - 90px));
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  transform: translateY(var(--wedding-offset-y)) scale(var(--wedding-scale));
  transform-origin: top left;
  align-self: center;
}

.story-step:nth-of-type(3) .content-wrap,
.story-step:nth-of-type(5) .content-wrap {
  justify-self: end;
  text-align: right;
  margin-right: var(--timeline-gutter);
  max-width: min(760px, calc(100% - var(--timeline-gutter) - 60px));
}

.story-step:nth-of-type(2) .content-wrap,
.story-step:nth-of-type(4) .content-wrap,
.story-step:nth-of-type(6) .content-wrap {
  justify-self: start;
  text-align: left;
}

.story-step.wedding-step .content-wrap {
  justify-self: start;
  text-align: left;
}

.story-step.wedding-step.active .content-wrap {
  --wedding-offset-y: 0px;
}

.story-step:nth-of-type(3) blockquote,
.story-step:nth-of-type(5) blockquote {
  border-left: 0;
  border-right: 2px solid rgba(215, 183, 130, 0.7);
  padding-left: 0;
  padding-right: 0.9rem;
}

h1,
h2,
.year,
.names {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5.2vw, 4rem);
  margin-bottom: 0.8rem;
}

p {
  margin: 0;
  line-height: 1.65;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
}

.subtext {
  margin-top: 0.85rem;
  max-width: 65ch;
  opacity: 0.92;
}

blockquote {
  margin: 1rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(215, 183, 130, 0.7);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(248, 242, 235, 0.94);
}

.mini-info {
  margin-top: 1rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.75;
  color: rgba(248, 242, 235, 0.9);
}

.mini-info span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-right: 0.35rem;
}

.kicker,
.year {
  display: inline-block;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.names {
  font-size: clamp(1.5rem, 4vw, 2.9rem);
  margin-bottom: 0.35rem;
}

.date {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.detail-grid p {
  margin: 0;
}

.detail-grid span {
  display: inline-block;
  min-width: 110px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.program {
  margin: 0.9rem 0 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.program::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.42rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(215, 183, 130, 0.15), rgba(215, 183, 130, 0.85), rgba(215, 183, 130, 0.15));
}

.program li {
  font-size: clamp(0.96rem, 1.7vw, 1.1rem);
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  padding: 0.45rem 0.55rem 0.45rem 0.25rem;
  background: rgba(12, 10, 10, 0.14);
  border: 1px solid rgba(248, 242, 235, 0.12);
}

.program li::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(18, 15, 13, 0.9);
}

.program .time {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 500;
  justify-self: start;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(215, 183, 130, 0.35);
  background: rgba(0, 0, 0, 0.22);
}

.program .event {
  border-left: 1px solid rgba(248, 242, 235, 0.2);
  padding-left: 0.7rem;
}

.info-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(248, 242, 235, 0.22);
  background: rgba(12, 10, 10, 0.24);
}

.intro-card {
  max-width: 100%;
  margin-top: 1rem;
}

.wedding-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.wedding-grid .detail-grid {
  margin-top: 0.85rem;
  max-width: 100%;
}

.wedding-step .detail-grid {
  max-width: 100%;
}

.program-card h3,
.logistics-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
}

.logistics-card .detail-grid p {
  padding: 0.4rem 0 0.6rem;
  border-bottom: 1px dashed rgba(248, 242, 235, 0.18);
}

.logistics-card .detail-grid p:last-child {
  border-bottom: 0;
}

.map-link-card {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(248, 242, 235, 0.26);
  background: rgba(12, 10, 10, 0.28);
  border-radius: 6px;
  padding: 0.95rem 1rem;
}

.map-label {
  margin: 0;
  color: rgba(248, 242, 235, 0.86);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-link {
  color: #20150f;
  text-decoration: none;
  border: 1px solid rgba(215, 183, 130, 0.55);
  background: linear-gradient(135deg, #f0d8a9, #d7b782);
  padding: 0.55rem 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.map-link:hover {
  background: linear-gradient(135deg, #f6dfb3, #e4c692);
}

.mobile-map-cta {
  display: none;
  margin-top: 1rem;
  text-decoration: none;
  color: #20150f;
  background: linear-gradient(135deg, #f0d8a9, #d7b782);
  border: 1px solid rgba(215, 183, 130, 0.55);
  padding: 0.75rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.mobile-swipe-hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(248, 242, 235, 0.24);
  background: rgba(12, 10, 10, 0.42);
  backdrop-filter: blur(2px);
}

.mobile-swipe-hint.is-visible {
  display: inline-flex;
}

.hand-icon {
  display: inline-block;
  animation: handMove 1.25s ease-in-out infinite;
}

.hand-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: var(--gold);
}

.hint-text {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 242, 235, 0.9);
}

@keyframes handMove {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.timeline {
  position: fixed;
  top: 50%;
  right: clamp(1rem, 2.1vw, 2rem);
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 1.65rem;
  z-index: 10;
}

.line {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--line);
  z-index: 0;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: #120f0d;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.dot.active {
  background: var(--cream);
  border-color: var(--cream);
  transform: scale(1.12);
}

.dot::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
}

.dot:hover {
  transform: scale(1.15);
}

.made-by-nuptivora {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 14px;
  margin: 0;
  z-index: 30;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 242, 235, 0.72);
  background: rgba(12, 10, 10, 0.36);
  border: 1px solid rgba(248, 242, 235, 0.2);
  padding: 0.25rem 0.45rem;
}

.made-by-nuptivora.is-visible {
  display: block;
}

@media (max-width: 780px) {
  .timeline {
    display: none;
  }

  .content-wrap {
    max-width: calc(100% - 40px);
    margin-right: 24px;
  }

  .wedding-step {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wedding-step .content-wrap,
  .story-step.wedding-step .content-wrap {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .story-step:nth-of-type(3) .content-wrap,
  .story-step:nth-of-type(5) .content-wrap {
    text-align: left;
    justify-self: start;
    margin-right: 0;
    max-width: calc(100% - 40px);
  }

  .story-step:nth-of-type(3) blockquote,
  .story-step:nth-of-type(5) blockquote {
    border-right: 0;
    border-left: 2px solid rgba(215, 183, 130, 0.7);
    padding-right: 0;
    padding-left: 0.9rem;
  }

  .detail-grid span {
    min-width: 90px;
  }

  .wedding-grid {
    grid-template-columns: 1fr;
  }

  .map-link-card {
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .program-card {
    display: none;
  }

  .mobile-map-cta {
    display: block;
  }

}

@media (max-height: 900px) {
  .wedding-step .content-wrap {
    width: min(940px, calc(100% - 80px));
    max-width: min(940px, calc(100% - 80px));
  }

  .wedding-step .year {
    font-size: clamp(0.9rem, 1.6vh, 1.08rem);
    margin-bottom: 0.3rem;
  }

  .wedding-step h2 {
    font-size: clamp(1.55rem, 3.8vh, 2.35rem);
    margin-bottom: 0.42rem;
  }

  .wedding-step p {
    font-size: clamp(0.9rem, 1.65vh, 1.02rem);
    line-height: 1.42;
  }

  .wedding-step .subtext {
    margin-top: 0.34rem;
  }

  .wedding-step .info-card {
    padding: 0.68rem 0.74rem;
  }

  .wedding-step .intro-card,
  .wedding-step .wedding-grid,
  .wedding-step .map-link-card,
  .wedding-step .mobile-map-cta {
    margin-top: 0.58rem;
  }

  .wedding-step .detail-grid {
    margin-top: 0.56rem;
    gap: 0.45rem;
  }

  .wedding-step .detail-grid span {
    min-width: 88px;
    font-size: 0.72rem;
  }

  .wedding-step .program {
    margin-top: 0.42rem;
    gap: 0.42rem;
    padding-left: 1.1rem;
  }

  .wedding-step .program li {
    grid-template-columns: 76px 1fr;
    gap: 0.58rem;
    padding: 0.28rem 0.36rem 0.28rem 0.2rem;
    font-size: clamp(0.86rem, 1.5vh, 0.96rem);
  }

  .wedding-step .program .time {
    font-size: 0.72rem;
    padding: 0.14rem 0.3rem;
  }

  .wedding-step .map-label {
    font-size: 0.8rem;
  }

  .wedding-step .map-link,
  .wedding-step .mobile-map-cta {
    font-size: 0.72rem;
    padding: 0.52rem 0.74rem;
  }
}
