.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  min-height: calc(min(100vh, 820px) - clamp(32px, 8vw, 80px));
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(6px, 2vw, 16px);
}

.brand {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 34px);
  margin-left: auto;
  margin-right: 24px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.nav-link {
  font-size: 1.05rem;
  opacity: 0.96;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-link.is-active {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 1rem;
}

.top-rsvp-btn {
  min-width: 124px;
}

.hero-content {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
  flex: 1;
  padding: clamp(20px, 6vw, 60px) 8px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.1rem, 2.1vw, 1.9rem);
  font-weight: 400;
}

.hero-rsvp-btn {
  margin-top: 18px;
  min-width: 220px;
}

.invitation {
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  padding: clamp(56px, 8vw, 110px) 20px clamp(44px, 8vw, 90px);
}

.invitation-text {
  margin: 0 auto 34px;
  width: min(940px, 100%);
  font-size: clamp(1.95rem, 3.4vw, 3.05rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.dress-code {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stories-grid {
  width: min(900px, 100%);
  margin: clamp(44px, 6vw, 70px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  text-align: left;
}

.story-card {
  display: flex;
  flex-direction: column;
}

.story-image {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  display: block;
}

.story-title {
  margin: 18px 0 10px;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.story-description {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #112f54;
}

.event-feature {
  background: var(--surface);
}

.event-hero {
  position: relative;
  min-height: clamp(320px, 45vw, 520px);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.33);
}

.event-hero-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  gap: 12px;
  padding: 20px;
}

.event-hero-content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 6.3vw, 4.3rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
}

.event-hero-content p {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
}

.event-detail {
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  padding: clamp(48px, 6vw, 86px) 20px clamp(54px, 6vw, 90px);
}

.event-detail h3 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
}

.event-time {
  margin: 28px 0 18px;
  font-size: 1.8rem;
}

.event-address p {
  margin: 4px 0;
  font-size: 1.4rem;
  line-height: 1.45;
}

.directions-panel {
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  padding: clamp(56px, 8vw, 104px) 20px clamp(62px, 9vw, 120px);
}

.directions-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.1vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.directions-text {
  margin: clamp(18px, 2vw, 28px) auto 0;
  width: min(780px, 100%);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.75;
}

.directions-map-title {
  margin: 22px 0 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.directions-map-wrap {
  margin: clamp(34px, 4.5vw, 60px) auto 0;
  width: min(860px, 100%);
}

.directions-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border: 0;
  filter: grayscale(0.75);
}

.directions-address {
  margin: 18px auto 0;
  width: min(860px, 100%);
  font-size: clamp(0.96rem, 1.35vw, 1.15rem);
  line-height: 1.45;
}

.gift-footer {
  background: #050505;
  color: #f5f5f5;
  text-align: center;
  padding: 44px 20px 52px;
}

.gift-footer-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
}

.gift-footer-text {
  margin: 0 auto;
  width: min(740px, 100%);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 30px;
  background: rgba(20, 20, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-100%);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.scroll-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-bar-brand {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.scroll-bar-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.scroll-bar-link {
  color: #fff;
  font-size: 1.05rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.scroll-bar-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.scroll-bar-rsvp {
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  min-height: 52px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: #989898;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top > span {
  display: block;
  width: 22px;
  height: 22px;
  border-left: 7px solid #fff;
  border-top: 7px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
  text-indent: -9999px;
  overflow: hidden;
}

.back-to-top:hover {
  background: #8e8e8e;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
  }

  .top-rsvp-btn {
    min-height: 48px;
    padding: 0 24px;
  }

  .hero-rsvp-btn {
    min-height: 50px;
    min-width: 180px;
  }

  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stories-grid .story-card:last-child {
    grid-column: 1 / -1;
  }

  .stories-grid .story-card:last-child .story-image {
    aspect-ratio: 16 / 6.6;
  }

  .mobile-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
    background: rgba(11, 11, 11, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    margin-top: 0;
  }

  .mobile-menu.is-open {
    max-height: 260px;
    opacity: 1;
    margin-top: 12px;
  }

  .mobile-nav-link {
    padding: 14px 16px;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .mobile-nav-link:last-child {
    border-bottom: 0;
  }

  .mobile-nav-link.is-active {
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .top-rsvp-btn {
    min-width: 90px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.82rem;
  }

  .menu-toggle {
    padding: 8px 12px;
    font-size: 0.74rem;
    margin-right: 8px;
  }

  .invitation-text {
    line-height: 1.33;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .stories-grid .story-card:last-child {
    grid-column: auto;
  }

  .stories-grid .story-card:last-child .story-image {
    aspect-ratio: 3 / 4.2;
  }

  .story-title {
    margin-top: 18px;
  }

  .event-time {
    font-size: 1.45rem;
  }

  .event-address p {
    font-size: 1.08rem;
  }

  .directions-text {
    line-height: 1.55;
  }

  .scroll-bar {
    min-height: 70px;
    padding: 12px 14px;
    gap: 10px;
  }

  .scroll-bar-brand {
    font-size: 1.08rem;
  }

  .scroll-bar-nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .scroll-bar-link {
    font-size: 0.9rem;
  }

  .scroll-bar-rsvp {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.84rem;
  }
}
