:root {
  color-scheme: light;
  --ink: #171513;
  --muted: #6f6660;
  --paper: #f5f2ec;
  --shell: #fffdf8;
  --line: #ded3c6;
  --wine: #862738;
  --red: #b33a31;
  --jade: #426257;
  --gold: #a77835;
  --blue: #284e63;
  --shadow: 0 18px 48px rgba(33, 25, 19, 0.14);
  --content-width: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#invitation,
#story,
#gallery,
#venue,
#messages {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(245, 242, 236, 0.9);
  border-bottom: 1px solid rgba(222, 211, 198, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-weight: 900;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 14px;
  max-width: 58vw;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.88rem;
  scrollbar-width: none;
  white-space: nowrap;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(84svh - 56px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #241f1a;
}

.hero-carousel,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  opacity: 0;
  overflow: hidden;
  transition: opacity 1100ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-bg,
.hero-slide-frame {
  position: absolute;
  inset: 0;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(26px) saturate(1.08) brightness(0.82);
  transform: scale(1.12);
}

.hero-slide-frame {
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(72px, 8vh, 96px) clamp(16px, 4vw, 72px) clamp(210px, 23vh, 280px);
}

.hero-slide-main {
  width: 100%;
  height: 100%;
  object-fit: var(--hero-fit, contain);
  object-position: var(--hero-focus, center center);
  filter: drop-shadow(0 28px 58px rgba(0, 0, 0, 0.38));
}

.hero-slide-caption {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: clamp(112px, 14vh, 164px);
  z-index: 2;
  color: rgba(255, 244, 228, 0.54);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(1.15rem, 3.2vw, 3.1rem);
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.hero-slide.is-active .hero-slide-bg {
  animation: heroAtmosphere 7600ms ease-out both;
}

.hero-slide.is-active .hero-slide-main {
  animation: heroPortraitIn 1200ms ease-out both;
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 245, 230, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.06) 0%, rgba(14, 12, 10, 0.18) 38%, rgba(14, 12, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(14, 12, 10, 0.7), rgba(14, 12, 10, 0.08) 64%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 38px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff0dd;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-weight: 500;
}

h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 10vw, 5.8rem);
  line-height: 1.02;
  white-space: nowrap;
}

.couple-lockup {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px;
  column-gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 10px 0 4px;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  white-space: normal;
}

.couple-lockup::before,
.couple-lockup::after {
  grid-column: 1 / -1;
  width: min(280px, 68%);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 244, 228, 0), rgba(255, 244, 228, 0.72), rgba(255, 244, 228, 0));
}

.couple-lockup::after {
  justify-self: start;
}

.name-row {
  display: contents;
  animation: nameRise 900ms ease both;
}

.name-row.is-bride {
  justify-self: start;
  animation-delay: 120ms;
}

.name-role {
  align-self: center;
  color: rgba(255, 220, 180, 0.82);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(0.68rem, 1.6vw, 0.84rem);
  font-weight: 900;
  letter-spacing: 0;
}

.name-text {
  grid-column: 2;
  min-width: 3em;
  color: #fffaf0;
  font-family: "STXingkai", "华文行楷", "STKaiti", "华文楷体", "KaiTi", "楷体", "Songti SC", "SimSun", serif;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  font-weight: 400;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.44);
}

.name-seal {
  position: relative;
  display: grid;
  grid-column: 2;
  justify-self: center;
  place-items: center;
  width: clamp(38px, 4.4vw, 52px);
  height: clamp(38px, 4.4vw, 52px);
  margin: -3px 0 -1px;
  border: 1px solid rgba(255, 222, 190, 0.6);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(179, 58, 49, 0.96), rgba(134, 39, 56, 0.94));
  box-shadow: 0 14px 32px rgba(86, 15, 24, 0.36);
  color: #fff8ec;
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1;
  animation: sealBloom 900ms 220ms cubic-bezier(0.18, 0.72, 0.22, 1.18) both;
}

.name-vow {
  grid-column: 2;
  justify-self: center;
  margin-top: 2px;
  margin-left: 0;
  color: rgba(255, 248, 238, 0.86);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(0.86rem, 2vw, 1.04rem);
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.12rem;
  line-height: 1.18;
}

.hero-date {
  margin-bottom: 20px;
  color: #fff8ee;
  font-size: 1.05rem;
  font-weight: 700;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 86px));
  gap: 8px;
  margin-bottom: 20px;
}

.countdown span {
  min-height: 70px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.countdown strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.countdown small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff4e4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--wine);
  border-radius: 8px;
  background: transparent;
  color: var(--wine);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--wine);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible,
.featured-item:focus-visible,
.photo-tile:focus-visible,
.chapter-cover:focus-visible,
.magazine-tile:focus-visible,
.lightbox button:focus-visible,
.interaction-tab:focus-visible,
.message-form input:focus,
.message-form textarea:focus,
.message-form select:focus {
  outline: 3px solid rgba(134, 39, 56, 0.28);
  outline-offset: 3px;
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 58px 0;
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--gold);
  font-weight: 900;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.invitation {
  padding-top: 34px;
  border-bottom: 1px solid var(--line);
}

.invitation-layout {
  display: grid;
  gap: 24px;
}

.invitation h2 {
  color: var(--wine);
}

.invitation-copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.invitation-copy .lead {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
}

.story-section > .section-heading,
.story-list,
.gallery-section > .section-heading,
.gallery-groups,
.venue > .section-heading,
.venue-layout {
  width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.story-section > .section-heading,
.gallery-section > .section-heading,
.venue > .section-heading {
  max-width: none;
}

.story-section > .section-heading p:not(.eyebrow),
.gallery-section > .section-heading p:not(.eyebrow) {
  max-width: 720px;
}

.story-section {
  position: relative;
  width: 100%;
  padding: 70px 0 86px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7f1e9 100%);
}

.story-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(167, 120, 53, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(66, 98, 87, 0.06) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent);
  pointer-events: none;
}

.story-section > .section-heading,
.story-list {
  position: relative;
  z-index: 1;
}

.story-list {
  position: relative;
  display: grid;
  gap: clamp(28px, 5vw, 54px);
  padding: 20px 0 0;
  list-style: none;
}

.story-list::before {
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 20px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgba(134, 39, 56, 0), rgba(134, 39, 56, 0.34), rgba(167, 120, 53, 0));
}

.story-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.story-marker {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(134, 39, 56, 0.24);
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(134, 39, 56, 0.12);
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1;
}

.story-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(222, 211, 198, 0.74);
}

.story-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd2c8;
  box-shadow: 0 18px 44px rgba(33, 25, 19, 0.12);
  isolation: isolate;
}

.story-media::before {
  position: absolute;
  inset: -12px;
  z-index: 0;
  content: "";
  background-image: var(--story-bg);
  background-position: center;
  background-size: cover;
  filter: blur(15px) saturate(1.06) brightness(0.92);
  opacity: 0.58;
  transform: scale(1.08);
}

.story-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(4px, 1.1vw, 10px);
}

.story-date {
  display: block;
  margin-bottom: 4px;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 900;
}

.story-body h3 {
  max-width: 12em;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(1.3rem, 6vw, 2.05rem);
  font-weight: 500;
  line-height: 1.16;
}

.story-body p {
  max-width: 34em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.86;
}

.gallery-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 74px 0 94px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f3eee6 54%, #eef4f2 100%);
}

.gallery-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(40, 78, 99, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(167, 120, 53, 0.09) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.gallery-section > .section-heading,
.gallery-groups {
  position: relative;
  z-index: 1;
}

.featured-gallery {
  display: flex;
  gap: 14px;
  margin-inline: -16px;
  margin-bottom: 34px;
  padding: 8px 16px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.featured-gallery::-webkit-scrollbar {
  display: none;
}

.featured-item,
.photo-tile,
.chapter-cover,
.magazine-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #ddd2c8;
  cursor: zoom-in;
  isolation: isolate;
}

.featured-item {
  flex: 0 0 min(78vw, 390px);
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.featured-item.is-large {
  aspect-ratio: 16 / 11;
  flex-basis: min(92vw, 720px);
}

.featured-item > img,
.photo-tile img,
.chapter-cover img,
.magazine-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.featured-item:hover img,
.photo-tile:hover img,
.chapter-cover:hover img,
.magazine-tile:hover > img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.035);
}

.featured-item::before {
  position: absolute;
  inset: -14px;
  z-index: 0;
  content: "";
  background-image: var(--photo-bg);
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.08) brightness(0.92);
  opacity: 0.58;
  transform: scale(1.08);
}

.featured-item > img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  padding: clamp(5px, 0.9vw, 13px);
  filter: drop-shadow(0 14px 28px rgba(33, 25, 19, 0.18));
}

.featured-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-groups {
  display: grid;
  gap: clamp(34px, 5vw, 68px);
}

.gallery-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "meta"
    "cover"
    "mosaic";
  gap: 10px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(134, 39, 56, 0.16);
}

.chapter-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  color: var(--ink);
}

.chapter-number {
  grid-row: span 3;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 8vw, 3.9rem);
  line-height: 0.9;
}

.chapter-meta h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(1.35rem, 5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.12;
}

.chapter-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.chapter-meta small {
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid rgba(134, 39, 56, 0.22);
  border-radius: 999px;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.chapter-cover {
  grid-area: cover;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 244, 228, 0.16), transparent 34%),
    #1c1916;
  box-shadow: 0 18px 46px rgba(33, 25, 19, 0.16);
  cursor: zoom-in;
}

.chapter-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--chapter-bg, var(--photo-bg));
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.08) brightness(0.88);
  opacity: 0.66;
  transform: scale(1.08);
}

.chapter-cover > img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  padding: clamp(8px, 1.2vw, 18px);
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.28));
}

.chapter-cover::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(180deg, rgba(23, 21, 19, 0.02), rgba(23, 21, 19, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.portfolio-mosaic {
  grid-area: mosaic;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(116px, 34vw, 172px);
  gap: clamp(6px, 1.2vw, 10px);
}

.magazine-tile {
  --enter-x: -42px;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  background: #e2d7cb;
  box-shadow: 0 10px 24px rgba(33, 25, 19, 0.1);
}

.magazine-tile:nth-child(even) {
  --enter-x: 42px;
}

.magazine-tile::before {
  position: absolute;
  inset: -12px;
  z-index: 0;
  content: "";
  background-image: var(--photo-bg);
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.08) brightness(0.9);
  opacity: 0.56;
  transform: scale(1.08);
}

.magazine-tile > img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  padding: clamp(4px, 0.65vw, 9px);
  filter: drop-shadow(0 10px 22px rgba(33, 25, 19, 0.16));
}

.magazine-tile.is-tall {
  grid-row: span 2;
  aspect-ratio: 3 / 5;
}

.magazine-tile.is-feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

.magazine-tile.is-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.magazine-tile.is-square {
  aspect-ratio: 1;
}

.side-enter-ready {
  opacity: 0;
  transform: translateX(var(--enter-x, 0));
  transition:
    opacity 720ms ease,
    transform 860ms cubic-bezier(0.18, 0.72, 0.18, 1);
  will-change: opacity, transform;
}

.gallery-chapter.side-enter-ready {
  --enter-x: 0;
  transform: translateY(28px);
}

.side-enter-ready.is-entered {
  opacity: 1;
  transform: translateX(0);
}

.gallery-chapter.side-enter-ready.is-entered {
  transform: translateY(0);
}

.magazine-tile.side-enter-ready:nth-child(3n) {
  transition-delay: 70ms;
}

.magazine-tile.side-enter-ready:nth-child(5n) {
  transition-delay: 130ms;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.venue {
  position: relative;
  width: 100%;
  padding: 76px 0 86px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 21, 19, 0.1), rgba(23, 21, 19, 0)),
    #365f55;
  color: #fff;
}

.venue::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 244, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 228, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  pointer-events: none;
}

.venue > .section-heading,
.venue-layout {
  position: relative;
  z-index: 1;
}

.venue .eyebrow {
  color: #ffe0c0;
}

.venue .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.venue-layout {
  display: grid;
  gap: 18px;
}

.venue-coordinate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.14), rgba(255, 253, 248, 0.05)),
    rgba(26, 44, 39, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.venue-main {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: clamp(22px, 4vw, 38px);
}

.venue-date {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 224, 192, 0.36);
  border-radius: 999px;
  background: rgba(255, 244, 228, 0.1);
  color: #ffe0c0;
  font-size: 0.88rem;
  font-weight: 900;
}

.venue-main h3 {
  max-width: 100%;
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(2.6rem, 5.5vw, 4.7rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.venue-main p {
  max-width: 30em;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.venue .button.primary {
  border-color: #fff4e4;
  background: #fff4e4;
  color: var(--jade);
}

.venue .button.primary span {
  margin-left: 8px;
  transition: transform 180ms ease;
}

.venue .button.primary:hover span {
  transform: translateX(4px);
}

.venue-route-map {
  position: relative;
  min-height: 260px;
  background:
    radial-gradient(circle at 68% 42%, rgba(255, 224, 192, 0.28), transparent 4%),
    radial-gradient(circle at 24% 66%, rgba(255, 255, 255, 0.16), transparent 5%),
    linear-gradient(135deg, transparent 0 45%, rgba(255, 224, 192, 0.36) 45% 45.5%, transparent 45.5% 100%),
    linear-gradient(45deg, transparent 0 54%, rgba(255, 244, 228, 0.22) 54% 54.5%, transparent 54.5% 100%),
    rgba(255, 255, 255, 0.04);
}

.venue-route-map::before {
  position: absolute;
  inset: 24px;
  content: "";
  border: 1px solid rgba(255, 244, 228, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 244, 228, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 228, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.venue-route-map::after {
  position: absolute;
  left: 16%;
  right: 20%;
  top: 54%;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(255, 224, 192, 0.9) 0 12px, transparent 12px 22px);
  transform: rotate(-14deg);
  transform-origin: center;
}

.venue-pin {
  position: absolute;
  left: 62%;
  top: 34%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 244, 228, 0.52);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  animation: venuePulse 1800ms ease-in-out infinite;
}

.venue-pin::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: #fff4e4;
}

.venue-route-label,
.venue-route-date {
  position: absolute;
  z-index: 2;
  color: rgba(255, 244, 228, 0.74);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 0.9rem;
}

.venue-route-label {
  left: 28px;
  top: 28px;
}

.venue-route-date {
  right: 28px;
  bottom: 26px;
}

.travel-notes {
  display: grid;
  gap: 12px;
}

.travel-note-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}

.travel-note-mark {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 244, 228, 0.14);
  color: #ffe0c0;
  font-weight: 900;
}

.travel-notes strong {
  display: block;
  color: #ffe0c0;
}

.travel-notes p {
  grid-column: 2;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.messages {
  display: grid;
  gap: 22px;
}

.interaction-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid rgba(222, 211, 198, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 14px 36px rgba(33, 25, 19, 0.08);
}

.interaction-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.interaction-tab span {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(134, 39, 56, 0.1);
  color: var(--wine);
  font-size: 0.76rem;
  line-height: 1;
}

.interaction-tab.is-active {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 10px 24px rgba(134, 39, 56, 0.22);
}

.interaction-tab.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff7ec;
}

.interaction-panels {
  min-width: 0;
}

.interaction-panel {
  display: grid;
  gap: 18px;
  align-items: start;
}

.interaction-panel[hidden] {
  display: none;
}

.interaction-form {
  position: relative;
}

.message-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--shell);
  box-shadow: 0 12px 34px rgba(33, 25, 19, 0.08);
}

.message-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.message-form input,
.message-form textarea,
.message-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.message-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--wine) 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--wine) 50%, transparent 50%) calc(100% - 13px) 52% / 6px 6px no-repeat,
    #fff;
  cursor: pointer;
}

.message-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-status {
  min-height: 1.5em;
  margin-bottom: 0;
  color: var(--muted);
}

.message-list {
  display: grid;
  gap: 12px;
  max-height: min(520px, 70svh);
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(134, 39, 56, 0.42) rgba(222, 211, 198, 0.52);
  scrollbar-width: thin;
}

.checkin-map,
.future-list {
  display: grid;
  gap: 12px;
  max-height: min(520px, 70svh);
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(134, 39, 56, 0.42) rgba(222, 211, 198, 0.52);
  scrollbar-width: thin;
}

.message-list::-webkit-scrollbar {
  width: 8px;
}

.checkin-map::-webkit-scrollbar,
.future-list::-webkit-scrollbar {
  width: 8px;
}

.message-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(222, 211, 198, 0.52);
}

.checkin-map::-webkit-scrollbar-track,
.future-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(222, 211, 198, 0.52);
}

.message-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(134, 39, 56, 0.42);
}

.checkin-map::-webkit-scrollbar-thumb,
.future-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(134, 39, 56, 0.42);
}

.message-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #fff9f2 100%);
  box-shadow: 0 12px 28px rgba(33, 25, 19, 0.07);
}

.message-card header,
.checkin-card header,
.future-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.message-card strong,
.checkin-card header strong,
.future-card header strong {
  color: var(--ink);
}

.message-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.checkin-map {
  position: relative;
  padding-top: 4px;
  background:
    radial-gradient(circle at 12% 18%, rgba(66, 98, 87, 0.12), transparent 16%),
    radial-gradient(circle at 82% 28%, rgba(167, 120, 53, 0.12), transparent 14%),
    radial-gradient(circle at 42% 78%, rgba(134, 39, 56, 0.1), transparent 18%);
}

.checkin-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(222, 211, 198, 0.88);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 28px rgba(33, 25, 19, 0.07);
}

.checkin-card::after {
  position: absolute;
  inset: auto -18px 12px 58px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(66, 98, 87, 0.22), transparent);
}

.checkin-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(66, 98, 87, 0.24);
}

.checkin-card > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.checkin-card > div > strong {
  display: block;
  margin-bottom: 4px;
  color: var(--wine);
  font-size: 1rem;
}

.checkin-card p,
.future-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.future-list {
  align-content: start;
  padding-top: 4px;
}

.future-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(222, 211, 198, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 244, 228, 0.92)),
    #fff;
  box-shadow: 0 12px 28px rgba(33, 25, 19, 0.07);
}

.future-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--wine), var(--gold));
}

.future-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid rgba(134, 39, 56, 0.24);
  border-radius: 999px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
}

.interaction-empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed rgba(134, 39, 56, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 10, 9, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  display: grid;
  gap: 10px;
  width: min(1040px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82svh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 30px 16px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

@keyframes heroAtmosphere {
  from {
    transform: scale(1.16) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(0, -1.2%, 0);
  }
}

@keyframes heroPortraitIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes nameRise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sealBloom {
  from {
    opacity: 0;
    transform: scale(0.78) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes venuePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(255, 224, 192, 0.42);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 16px rgba(255, 224, 192, 0);
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    max-width: 100%;
    width: 100%;
  }

  .hero {
    min-height: calc(88svh - 92px);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(14, 12, 10, 0.08) 0%, rgba(14, 12, 10, 0.22) 42%, rgba(14, 12, 10, 0.84) 100%);
  }

  .hero-slide-frame {
    padding: 18px 12px 248px;
  }

  .hero-slide-caption {
    display: none;
  }

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

  .countdown span {
    min-height: 58px;
  }

  .hero-date {
    font-size: 0.98rem;
  }

  .interaction-tabs {
    width: 100%;
  }

  .interaction-tab {
    flex: 1 1 100%;
  }

  .couple-lockup {
    display: grid;
    grid-template-columns: auto auto;
    width: fit-content;
    max-width: 100%;
    gap: 2px;
    column-gap: 8px;
    margin-bottom: 12px;
    padding: 4px 0 2px;
  }

  .couple-lockup::before,
  .couple-lockup::after {
    display: none;
  }

  .name-row {
    display: contents;
  }

  .name-row.is-bride {
    justify-self: start;
  }

  .name-role {
    display: block;
    font-size: 0.66rem;
  }

  .name-text {
    font-size: clamp(2.05rem, 10vw, 2.65rem);
    line-height: 1;
  }

  .name-vow {
    justify-self: center;
    margin-top: -2px;
    margin-left: 0;
    font-size: 0.82rem;
  }

  .name-seal {
    justify-self: center;
    width: 34px;
    height: 34px;
    margin: -3px 0 -1px;
    font-size: 1.12rem;
  }

  .countdown strong {
    font-size: 1.42rem;
  }

  .story-section {
    padding: 58px 0 70px;
  }

  .story-list {
    gap: 28px;
  }

  .story-list::before {
    left: 17px;
  }

  .story-timeline-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .story-marker {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .story-card {
    gap: 10px;
    padding-bottom: 24px;
  }

  .story-media {
    aspect-ratio: 4 / 5;
  }

  .story-body h3 {
    max-width: 13em;
    font-size: 1.28rem;
  }

  .story-body p {
    font-size: 0.9rem;
    line-height: 1.76;
  }

  .gallery-section {
    padding: 56px 0 72px;
  }

  .venue {
    padding: 58px 0 70px;
  }

  .venue-coordinate {
    min-height: 0;
  }

  .venue-main {
    min-height: 230px;
  }

  .venue-route-map {
    min-height: 190px;
  }

  .venue-pin {
    left: 56%;
    top: 34%;
    width: 48px;
    height: 48px;
  }

  .gallery-chapter {
    gap: 8px;
  }

  .chapter-meta {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .chapter-cover {
    aspect-ratio: 4 / 5;
  }

  .portfolio-mosaic {
    grid-auto-rows: clamp(112px, 32vw, 154px);
  }

  .magazine-tile {
    --enter-x: -22px;
  }

  .magazine-tile:nth-child(even) {
    --enter-x: 22px;
  }

  .magazine-tile.is-feature {
    grid-column: span 2;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}

@media (min-width: 720px) {
  .site-header {
    padding: 12px 28px;
  }

  h2 {
    font-size: 3.1rem;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .countdown {
    grid-template-columns: repeat(4, 96px);
  }

  .countdown strong {
    font-size: 2rem;
  }

  .section {
    padding: 82px 0;
  }

  .invitation-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .story-list {
    gap: clamp(36px, 6vw, 70px);
    padding-top: 28px;
  }

  .story-list::before {
    left: 50%;
  }

  .story-timeline-item {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  .story-marker {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
  }

  .story-card {
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: minmax(170px, 0.38fr) minmax(260px, 1fr);
    gap: clamp(16px, 2.5vw, 26px);
    align-items: center;
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid rgba(222, 211, 198, 0.82);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.78);
    box-shadow: 0 18px 48px rgba(33, 25, 19, 0.08);
    backdrop-filter: blur(14px);
  }

  .story-timeline-item:nth-child(even) .story-card {
    grid-column: 1;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.38fr);
  }

  .story-timeline-item:nth-child(even) .story-media {
    grid-column: 2;
  }

  .story-timeline-item:nth-child(even) .story-body {
    grid-column: 1;
    grid-row: 1;
  }

  .story-media {
    aspect-ratio: 4 / 5;
  }

  .story-body h3 {
    max-width: 16em;
    font-size: clamp(1.38rem, 2vw, 1.95rem);
  }

  .featured-gallery {
    margin-inline: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
    padding-inline: calc((100vw - min(1180px, calc(100vw - 32px))) / 2);
  }

  .gallery-chapter {
    grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
    grid-template-areas:
      "meta cover"
      "meta mosaic";
    gap: clamp(10px, 1.5vw, 18px);
    padding-top: 24px;
  }

  .chapter-meta {
    position: sticky;
    top: 92px;
    align-self: start;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 12px;
  }

  .chapter-number {
    grid-row: auto;
    font-size: clamp(3.2rem, 6vw, 5.2rem);
  }

  .chapter-meta p {
    max-width: 17em;
  }

  .chapter-cover {
    aspect-ratio: 16 / 9;
  }

  .portfolio-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(118px, 15vw, 176px);
  }

  .magazine-tile,
  .magazine-tile.is-feature,
  .magazine-tile.is-wide,
  .magazine-tile.is-square {
    aspect-ratio: auto;
  }

  .magazine-tile.is-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .magazine-tile.is-tall {
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .magazine-tile.is-wide {
    grid-column: span 2;
  }

  .venue-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .venue-coordinate {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  }

  .venue-main {
    min-height: 390px;
  }

  .venue-route-map {
    min-height: 390px;
  }

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

  .interaction-panel {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1040px) {
  .hero-slide-frame {
    inset: 0 0 0 min(43vw, 640px);
    padding: clamp(70px, 8vh, 96px) clamp(42px, 5vw, 92px) clamp(54px, 7vh, 86px) 0;
    place-items: center;
  }

  .hero-slide-main {
    object-position: center center;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 78% 38%, rgba(255, 245, 230, 0.14), transparent 32%),
      linear-gradient(90deg, rgba(14, 12, 10, 0.88) 0%, rgba(14, 12, 10, 0.72) 35%, rgba(14, 12, 10, 0.22) 58%, rgba(14, 12, 10, 0.12) 100%),
      linear-gradient(180deg, rgba(14, 12, 10, 0.02) 0%, rgba(14, 12, 10, 0.18) 56%, rgba(14, 12, 10, 0.56) 100%);
  }

  .hero-content {
    width: min(1120px, calc(100% - 88px));
    max-width: min(41vw, 520px);
    margin-left: clamp(44px, 8vw, 160px);
    margin-right: auto;
    padding-bottom: 58px;
  }

  .hero-content .name-text {
    font-size: clamp(3rem, 4.7vw, 4.65rem);
  }

  .gallery-chapter {
    grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  }

  .portfolio-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(126px, 9vw, 166px);
  }

  .magazine-tile.is-feature {
    grid-column: span 3;
    grid-row: span 2;
  }

  .magazine-tile.is-wide {
    grid-column: span 3;
  }

  .magazine-tile.is-square {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slide.is-active .hero-slide-bg,
  .hero-slide.is-active .hero-slide-main {
    animation: none;
  }

  .name-row,
  .name-seal {
    animation: none;
  }

  .featured-item > img,
  .chapter-cover img,
  .magazine-tile > img {
    transition: none;
  }

  .side-enter-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .side-enter-ready.is-entered {
    transform: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
