:root {
  --cream: #f8f1e4;
  --linen: #e8ddcb;
  --paper: #fff8ec;
  --sage: #b9c7b0;
  --sage-soft: #dbe5d5;
  --olive: #53614f;
  --deep-olive: #2f4437;
  --forest-text: #26372f;
  --champagne: #b99b64;
  --moss: #7d8a6f;
  --line: rgba(83, 97, 79, 0.24);
  --shadow: 0 2px 7px rgba(38, 55, 47, 0.08);
  font-family: "Times New Roman", "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.invite-shell::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  color: var(--forest-text);
  background:
    url("assets/texture-warm-light.png") top center / 680px auto no-repeat,
    radial-gradient(circle at 50% -12%, rgba(185, 153, 99, 0.24), transparent 34%),
    linear-gradient(180deg, #e1e8d8 0%, var(--cream) 34%, #e5eadb 100%);
  letter-spacing: 0;
  overflow-x: hidden;
  -ms-overflow-style: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: multiply;
  background: url("assets/texture-paper.webp") center / 520px auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 21;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(38, 55, 47, 0.28) 0 1px, transparent 1.3px),
    radial-gradient(circle at 70% 60%, rgba(185, 153, 99, 0.22) 0 1px, transparent 1.4px);
  background-size: 18px 18px, 23px 23px;
  mix-blend-mode: multiply;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.invite-shell {
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 12px 28px;
  background: rgba(248, 244, 234, 0.76);
  overflow-x: hidden;
}

.section,
.entry-screen {
  position: relative;
  overflow: hidden;
}

.section {
  min-height: auto;
  margin: 0 0 16px;
  padding: 54px 22px;
}

.paper-card {
  border: 1px solid rgba(102, 114, 96, 0.18);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(248, 241, 228, 0.6)),
    url("assets/texture-paper.webp") center / 520px auto,
    var(--cream);
  box-shadow: var(--shadow);
}

.paper-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 28%),
    url("assets/texture-veil.png") center / cover no-repeat;
}

.texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.texture--tree {
  z-index: 1;
  opacity: 0.2;
  background: url("assets/texture-tree-shadow.png") top center / cover no-repeat;
  animation: shadowDrift 26s ease-in-out infinite alternate;
}

.texture--veil {
  z-index: 1;
  opacity: 0.22;
  background: url("assets/texture-veil.png") center / cover no-repeat;
  animation: veilDrift 18s ease-in-out infinite alternate;
}

.entry-screen {
  position: fixed;
  inset: 12px;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 34px 22px;
  text-align: center;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.entry-screen::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid rgba(185, 153, 99, 0.22);
  pointer-events: none;
}

.entry-screen::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  height: 28%;
  z-index: 0;
  opacity: 0.16;
  background: url("assets/cover.webp") center 44% / cover no-repeat;
  filter: saturate(0.86);
}

.entry-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.logo-seal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border: 1px solid rgba(185, 153, 99, 0.3);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.5);
  box-shadow: 0 2px 8px rgba(38, 55, 47, 0.08);
  backdrop-filter: blur(5px);
}

.logo-seal img,
.entry-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.eyebrow,
.hero__content p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--champagne);
  font-size: 12px;
  letter-spacing: 0;
}

.entry-screen h1,
.hero__content h2,
.ending h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--forest-text);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 400;
  line-height: 1.18;
}

.entry-screen h1 span,
.hero__content h2 span,
.ending h2 span { color: var(--champagne); }

.entry-date,
.entry-hint {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--olive);
}

.entry-hint {
  font-size: 14px;
}

.primary-btn,
.secondary-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
  color: #fffaf1;
  background: var(--deep-olive);
  box-shadow: 0 3px 8px rgba(38, 55, 47, 0.16);
}

.secondary-btn {
  color: var(--forest-text);
  background: rgba(255, 250, 241, 0.78);
  border-color: rgba(102, 114, 96, 0.34);
}

.primary-btn:active,
.secondary-btn:active { transform: scale(0.98); }

.music-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 25;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 241, 0.58);
  border-radius: 50%;
  background: rgba(83, 97, 79, 0.58);
  backdrop-filter: blur(8px);
}

.music-toggle__icon {
  display: block;
  width: 14px;
  height: 15px;
  margin: auto;
  border-left: 5px solid #fffaf1;
  border-right: 5px solid #fffaf1;
}

.music-toggle.is-paused .music-toggle__icon {
  width: 0;
  height: 0;
  border-left: 13px solid #fffaf1;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 0;
}

.hero {
  display: block;
  min-height: calc(100svh - 28px);
  padding: 0;
  background: var(--linen);
}

.hero__video,
.hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.92) contrast(0.94) brightness(1.04);
}

.hero__video {
  z-index: 1;
  background: var(--linen);
  transform: none;
  will-change: auto;
}

.hero__image {
  z-index: 0;
}

.hero.is-video-unavailable .hero__video {
  display: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 238, 190, 0.16), rgba(255, 250, 241, 0.03) 34%, rgba(25, 42, 33, 0.22)),
    linear-gradient(90deg, rgba(25, 42, 33, 0.26), transparent 58%),
    url("assets/texture-veil.png") center / cover no-repeat;
  opacity: 0.86;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 248, 236, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 70% 70%, rgba(38, 55, 47, 0.45) 0 1px, transparent 1.3px);
  background-size: 14px 14px, 17px 17px;
}

.hero__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 30px;
  z-index: 4;
  padding: 0;
  text-align: left;
}

.hero__content h2 {
  margin: 10px 0 14px;
  color: var(--paper);
  font-family: "Microsoft JhengHei", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(42px, 13vw, 68px);
  font-weight: 800;
  line-height: 0.98;
  text-shadow: 0 2px 7px rgba(23, 37, 29, 0.26);
}

.hero__content strong {
  display: block;
  color: var(--paper);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 0 2px 7px rgba(23, 37, 29, 0.26);
}

.hero__content strong span {
  color: #dbc58a;
}

.hero__content time,
.hero__content small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 248, 236, 0.92);
  text-shadow: 0 2px 7px rgba(23, 37, 29, 0.26);
}

.section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 26px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--forest-text);
  font-size: 28px;
  font-weight: 400;
}

.section-heading p {
  width: min(100%, 280px);
  margin: 10px auto 0;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.65;
}

.invitation {
  min-height: 72svh;
  display: grid;
  align-content: center;
}

.invitation-note {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 34px 26px;
  border: 1px solid rgba(185, 153, 99, 0.24);
  background:
    linear-gradient(rgba(255, 250, 241, 0.78), rgba(255, 250, 241, 0.68)),
    url("assets/texture-paper.webp") center / 360px auto;
  box-shadow: 0 2px 7px rgba(38, 55, 47, 0.07);
}

.invitation-note::before {
  content: "";
  position: absolute;
  inset: -28px -18px auto auto;
  width: 120px;
  height: 180px;
  opacity: 0.24;
  background: url("assets/texture-veil.png") center / cover no-repeat;
}

.invitation-note p {
  margin: 0;
  color: var(--forest-text);
  font-size: 20px;
  line-height: 1.76;
  text-align: center;
}

.gallery-section {
  padding-left: 18px;
  padding-right: 18px;
}

.photo-mosaic {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.gallery-caption {
  grid-column: span 6;
  margin: 4px 10px 8px;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

.photo-card {
  grid-column: span 3;
  margin: 0;
  border: 3px solid rgba(255, 250, 241, 0.82);
  background: var(--paper);
  box-shadow: 0 2px 7px rgba(38, 55, 47, 0.08);
}

.photo-card--large,
.photo-card--wide { grid-column: span 6; }

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.12;
  object-fit: cover;
}

.photo-card--large img { aspect-ratio: 3 / 4.18; }
.photo-card--wide img { aspect-ratio: 4 / 3; }

.info-panel,
.location-card,
.rsvp-form,
.blessing-form {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 250, 241, 0.78), rgba(255, 250, 241, 0.72)),
    url("assets/texture-paper.webp") center / 420px auto;
  box-shadow: 0 2px 7px rgba(38, 55, 47, 0.07);
}

.info-panel::before,
.location-card::before,
.rsvp-form::before,
.blessing-form::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(185, 153, 99, 0.16);
}

.info-panel {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.info-panel div,
.info-panel a {
  display: grid;
  gap: 4px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(102, 114, 96, 0.18);
}

.info-panel div:last-child,
.info-panel a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-panel strong {
  color: var(--forest-text);
  font-size: 20px;
  font-weight: 400;
}

.info-panel span {
  color: var(--olive);
  line-height: 1.55;
}

.phone-link {
  padding: 14px 16px;
  margin: 0 -6px;
  border: 1px solid rgba(185, 153, 99, 0.34);
  background: rgba(255, 250, 241, 0.46);
}

.timeline-section {
  min-height: 68svh;
  display: grid;
  align-content: center;
}

.timeline {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 30px;
  margin: 40px 0 0;
  padding: 0 0 0 38px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(185, 153, 99, 0.62);
}

.timeline li {
  position: relative;
  display: grid;
  gap: 4px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 4px rgba(185, 153, 99, 0.12);
}

.timeline time {
  color: var(--champagne);
  font-size: 23px;
}

.timeline span {
  color: var(--forest-text);
  font-size: 20px;
}

.map-section {
  min-height: 70svh;
  display: grid;
  align-content: center;
}

.location-card {
  padding: 26px;
  text-align: center;
}

.location-card h3 {
  margin: 0 0 12px;
  color: var(--forest-text);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.35;
}

.location-card p {
  margin: 7px 0;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.65;
}

.button-row {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.rsvp-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.rsvp-form,
.blessing-form {
  display: grid;
  gap: 13px;
  padding: 20px;
}

.rsvp-form label {
  display: grid;
  gap: 7px;
  color: var(--forest-text);
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(83, 97, 79, 0.28);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--forest-text);
  background:
    linear-gradient(rgba(255, 250, 241, 0.78), rgba(255, 250, 241, 0.7)),
    url("assets/texture-paper.webp") center / 320px auto;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

textarea { resize: vertical; }

input::placeholder,
textarea::placeholder { color: rgba(102, 114, 96, 0.72); }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(185, 153, 99, 0.15);
}

.form-success {
  min-height: 22px;
  margin: 0;
  color: var(--forest-text);
  text-align: center;
}

.blessing-form {
  margin-bottom: 22px;
}

.blessing-stream {
  position: relative;
  z-index: 2;
  height: clamp(190px, 46svh, 340px);
  margin: -4px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(102, 114, 96, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.34), rgba(219, 229, 213, 0.22)),
    url("assets/texture-tree-shadow.png") center / cover no-repeat,
    rgba(255, 250, 241, 0.28);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.blessing-stream::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(185, 153, 99, 0.12);
}

.danmaku-paper {
  position: absolute;
  top: var(--lane, 28%);
  left: 100%;
  width: max-content;
  max-width: min(68vw, 250px);
  padding: 10px 14px 11px;
  border: 1px solid rgba(102, 114, 96, 0.2);
  border-radius: 3px;
  color: var(--forest-text);
  background:
    linear-gradient(rgba(255, 250, 241, 0.9), rgba(248, 241, 228, 0.82)),
    url("assets/texture-paper.webp") center / 320px auto;
  box-shadow: 0 2px 7px rgba(38, 55, 47, 0.08);
  opacity: 0;
  animation: blessingDrift var(--duration, 18s) linear forwards;
  transform: translate3d(0, 0, 0) rotate(var(--tilt, -1deg));
  will-change: transform, opacity;
}

.danmaku-paper strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep-olive);
  font-size: 13px;
  font-weight: 400;
}

.danmaku-paper span {
  display: block;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.blessing-wall {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 13px;
}

.blessing-note {
  position: relative;
  padding: 18px 20px;
  border: 1px solid rgba(102, 114, 96, 0.18);
  background:
    linear-gradient(rgba(255, 250, 241, 0.76), rgba(255, 250, 241, 0.66)),
    url("assets/texture-paper.webp") center / 360px auto;
  box-shadow: 0 2px 7px rgba(38, 55, 47, 0.07);
}

.blessing-note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 46px;
  height: 12px;
  background: rgba(185, 153, 99, 0.16);
  transform: rotate(-2deg);
}

.blessing-note:nth-child(2n) { transform: translateX(6px); }
.blessing-note:nth-child(2n + 1) { transform: translateX(-3px); }
.blessing-note.is-hidden { display: none; }

.blessing-note strong {
  color: var(--forest-text);
  font-weight: 400;
}

.blessing-note p {
  margin: 8px 0 0;
  color: var(--olive);
  line-height: 1.7;
}

.admin-hide {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 30px;
  border: 1px solid rgba(102, 114, 96, 0.3);
  background: rgba(255, 250, 241, 0.82);
  color: var(--olive);
}

.ending {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.ending__inner {
  position: relative;
  z-index: 2;
  padding: 0 18px;
}

.logo-seal--ending {
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
}

.logo-seal--ending img {
  width: 74px;
  height: 74px;
}

.ending p,
.ending small {
  color: var(--olive);
  line-height: 1.7;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes veilDrift {
  from { transform: translateX(-1.4%) skewX(-0.6deg); }
  to { transform: translateX(1.4%) skewX(0.6deg); }
}

@keyframes shadowDrift {
  from { transform: translate3d(-1%, -0.4%, 0) scale(1.01); }
  to { transform: translate3d(1%, 0.4%, 0) scale(1.02); }
}

@keyframes blessingDrift {
  0% {
    opacity: 0;
    transform: translate3d(18px, 10px, 0) rotate(var(--tilt, -1deg));
  }
  8%,
  88% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
    transform: translate3d(-720px, -10px, 0) rotate(calc(var(--tilt, -1deg) * -1));
  }
}

/* Poster-lite refactor: less template card, more low-fi outdoor paper poster. */
body {
  background:
    radial-gradient(circle at 82% 8%, rgba(223, 190, 126, 0.24), transparent 28%),
    radial-gradient(circle at 12% 38%, rgba(185, 199, 176, 0.28), transparent 34%),
    linear-gradient(180deg, #f4f0e5 0%, #e7dfcf 44%, #dbe3d5 100%);
}

body::before {
  opacity: 0.24;
}

body::after {
  opacity: 0.09;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(38, 55, 47, 0.22) 0 1px, transparent 1.2px),
    radial-gradient(circle at 72% 62%, rgba(185, 153, 99, 0.18) 0 1px, transparent 1.2px);
  background-size: 13px 13px, 19px 19px;
}

.invite-shell {
  padding: 0 10px 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.54), rgba(232, 221, 203, 0.48)),
    url("assets/texture-paper.webp") center / 560px auto;
}

.section {
  margin: 0;
  padding: clamp(46px, 10svh, 78px) 20px;
}

.paper-card {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.3), rgba(232, 221, 203, 0.18)),
    url("assets/texture-paper.webp") center / 560px auto;
  box-shadow: none;
}

.paper-card::before {
  opacity: 0.14;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 36%),
    url("assets/texture-veil.png") center / cover no-repeat;
}

.texture--tree {
  opacity: 0.11;
  filter: sepia(0.14) saturate(0.82);
}

.entry-screen {
  inset: 0;
  min-height: 100svh;
  align-content: end;
  place-items: start;
  gap: 10px;
  padding: 0 32px calc(42px + env(safe-area-inset-bottom));
  text-align: left;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 244, 216, 0.1), rgba(37, 55, 45, 0.18) 54%, rgba(31, 45, 37, 0.42)),
    url("assets/hero-cover-magazine.webp") center / cover no-repeat;
}

.entry-screen::before {
  inset: 14px;
  border-color: rgba(255, 248, 236, 0.22);
}

.entry-screen::after {
  inset: 0;
  height: auto;
  opacity: 0.28;
  background:
    url("assets/texture-veil.png") center / cover no-repeat,
    radial-gradient(circle at 24% 70%, rgba(223, 190, 126, 0.2), transparent 30%);
  filter: none;
}

.entry-kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 2px;
  color: rgba(255, 248, 236, 0.76);
  font-size: 13px;
}

.entry-screen h1 {
  color: var(--paper);
  font-family: "Microsoft JhengHei", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(44px, 14vw, 70px);
  font-weight: 800;
  line-height: 0.98;
  text-shadow: 0 2px 8px rgba(24, 37, 31, 0.28);
}

.entry-date {
  color: rgba(255, 248, 236, 0.9);
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(24, 37, 31, 0.22);
}

.entry-screen .primary-btn {
  margin-top: 8px;
  color: var(--deep-olive);
  background: rgba(255, 248, 236, 0.86);
  border-color: rgba(255, 248, 236, 0.38);
  box-shadow: 0 3px 8px rgba(24, 37, 31, 0.16);
}

.hero {
  min-height: 100svh;
  margin: 10px 0 0;
}

.hero__video,
.hero__image {
  filter: sepia(0.1) saturate(0.88) contrast(0.9) brightness(1.08);
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(236, 204, 145, 0.2), rgba(255, 250, 241, 0.02) 34%, rgba(37, 52, 43, 0.18)),
    linear-gradient(90deg, rgba(29, 42, 35, 0.22), transparent 60%),
    url("assets/texture-veil.png") center / cover no-repeat;
  opacity: 0.82;
}

.hero__grain {
  opacity: 0.24;
  mix-blend-mode: soft-light;
  background-size: 8px 8px, 11px 11px;
}

.hero__content {
  bottom: 34px;
}

.hero__content h2 {
  margin-top: 0;
  font-size: clamp(46px, 14vw, 72px);
}

.section-heading {
  margin-bottom: 22px;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.18;
  text-wrap: balance;
}

.invitation {
  min-height: 56svh;
}

.invitation-note {
  width: min(100%, 330px);
  margin-left: 0;
  padding: 30px 24px;
  background:
    linear-gradient(rgba(255, 250, 241, 0.72), rgba(248, 241, 228, 0.56)),
    url("assets/texture-paper.webp") center / 380px auto;
  box-shadow: none;
}

.invitation-note p {
  text-align: left;
}

.gallery-section {
  padding-left: 14px;
  padding-right: 14px;
}

.photo-mosaic {
  gap: 10px;
}

.photo-card {
  border: 5px solid rgba(255, 250, 241, 0.72);
  box-shadow: none;
  transform: rotate(-0.4deg);
}

.photo-card:nth-of-type(2n) {
  transform: rotate(0.5deg);
}

.photo-card--large img {
  aspect-ratio: 3 / 3.95;
}

.gallery-caption {
  margin: 8px 12px 0;
  text-align: left;
}

.info-panel,
.location-card,
.rsvp-form,
.blessing-form,
.blessing-note,
.danmaku-paper {
  box-shadow: none;
}

.journey-section {
  display: grid;
  gap: 26px;
  align-content: center;
}

.journey-section .timeline {
  margin-top: 6px;
}

.journey-section .location-card {
  text-align: left;
}

.journey-section .button-row {
  grid-template-columns: 1fr;
}

.blessing-section .ending__inner {
  margin-top: 42px;
  padding: 44px 12px 0;
  border-top: 1px solid rgba(102, 114, 96, 0.18);
}

.logo-seal--ending {
  width: 76px;
  height: 76px;
  opacity: 0.76;
}

.logo-seal--ending img {
  width: 58px;
  height: 58px;
}

@media (min-width: 520px) {
  body { background-color: #e5ece2; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .hero__video {
    display: none;
  }

  .hero__image {
    z-index: 1;
  }

  .blessing-stream {
    height: auto;
    min-height: 150px;
    display: grid;
    gap: 10px;
    padding: 14px;
    mask-image: none;
  }

  .danmaku-paper {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: none;
    opacity: 1;
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* Full redesign: low-fi outdoor poster inside a paper invitation suite. */
:root {
  --suite-bg: #e9e0cf;
  --suite-paper: #fbf7ee;
  --suite-ink: #2c332d;
  --suite-muted: #66705f;
  --suite-sage: #aebca8;
  --suite-olive: #344f3f;
  --suite-gold: #a98748;
  --suite-line: rgba(67, 78, 65, 0.2);
}

body {
  color: var(--suite-ink);
  background:
    radial-gradient(circle at 80% 4%, rgba(210, 168, 95, 0.22), transparent 30%),
    radial-gradient(circle at 8% 36%, rgba(174, 188, 168, 0.34), transparent 32%),
    linear-gradient(180deg, #efe8da 0%, var(--suite-bg) 50%, #d8dfd1 100%);
}

body::before {
  opacity: 0.2;
}

body::after {
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle, rgba(44, 51, 45, 0.22) 0 0.8px, transparent 1.1px),
    radial-gradient(circle, rgba(169, 135, 72, 0.18) 0 0.8px, transparent 1.2px);
  background-size: 11px 11px, 17px 17px;
}

.invite-shell {
  width: min(100%, 520px);
  padding: 0 12px 28px;
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.58), rgba(233, 224, 207, 0.34)),
    url("assets/texture-paper.webp") center / 600px auto;
}

.section {
  padding: clamp(44px, 9svh, 72px) 18px;
}

.paper-card {
  border: 0;
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.46), rgba(251, 247, 238, 0.18)),
    url("assets/texture-paper.webp") center / 600px auto;
  box-shadow: none;
}

.paper-card::before {
  opacity: 0.12;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.38), transparent 34%, rgba(255, 255, 255, 0.16)),
    url("assets/texture-veil.png") center / cover no-repeat;
}

.texture--tree {
  opacity: 0.08;
  filter: sepia(0.2) saturate(0.75);
}

.entry-screen {
  inset: 0;
  padding: 12px;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(233, 224, 207, 0.72), rgba(251, 247, 238, 0.5)),
    url("assets/texture-paper.webp") center / 620px auto;
}

.entry-screen::before {
  inset: 18px;
  border: 1px solid rgba(67, 78, 65, 0.16);
}

.entry-screen::after {
  left: 24px;
  right: 24px;
  top: 30px;
  bottom: auto;
  height: 58svh;
  opacity: 0.94;
  background:
    linear-gradient(180deg, rgba(239, 222, 184, 0.12), rgba(36, 48, 39, 0.14)),
    url("assets/hero-cover-magazine.webp") center / cover no-repeat;
  filter: sepia(0.08) saturate(0.88) brightness(1.06);
}

.entry-kicker,
.entry-screen h1,
.entry-date,
.entry-screen .primary-btn {
  margin-left: 22px;
  margin-right: 22px;
}

.entry-kicker {
  margin-top: 58svh;
  color: var(--suite-gold);
}

.entry-screen h1 {
  color: var(--suite-ink);
  text-shadow: none;
}

.entry-date {
  color: var(--suite-muted);
  text-shadow: none;
}

.entry-screen .primary-btn {
  color: var(--suite-paper);
  background: var(--suite-olive);
}

.hero {
  min-height: 100svh;
  margin: 0;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.78), rgba(233, 224, 207, 0.42)),
    url("assets/texture-paper.webp") center / 620px auto;
}

.hero::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 72px;
  z-index: 1;
  background: rgba(251, 247, 238, 0.36);
  filter: blur(16px);
  pointer-events: none;
}

.hero__video,
.hero__image {
  inset: 12px 12px auto;
  width: calc(100% - 24px);
  height: 43svh;
  border: 7px solid rgba(251, 247, 238, 0.86);
  object-position: center 44%;
  filter: sepia(0.12) saturate(0.84) contrast(0.9) brightness(1.09);
}

.hero__shade {
  inset: 19px 19px auto;
  height: calc(43svh - 14px);
  background:
    linear-gradient(180deg, rgba(225, 186, 115, 0.14), transparent 36%, rgba(37, 52, 43, 0.08)),
    linear-gradient(90deg, rgba(37, 52, 43, 0.16), transparent 56%),
    url("assets/texture-veil.png") center / cover no-repeat;
  opacity: 0.7;
}

.hero__grain {
  inset: 19px 19px auto;
  height: calc(43svh - 14px);
  opacity: 0.3;
  mix-blend-mode: soft-light;
  background-size: 7px 7px, 10px 10px;
}

.hero__content {
  left: 28px;
  right: 28px;
  bottom: 104px;
  color: var(--suite-ink);
}

.hero__content h2 {
  margin: 0 0 10px;
  color: var(--suite-ink);
  font-size: clamp(42px, 13vw, 68px);
  line-height: 0.98;
  text-shadow: none;
}

.hero__content strong,
.hero__content time,
.hero__content small {
  color: var(--suite-muted);
  text-shadow: none;
}

.hero__content strong {
  font-size: 18px;
}

.hero__content strong span,
.hero__content time {
  color: var(--suite-gold);
}

.section-heading {
  text-align: left;
  margin-bottom: 22px;
}

.section-heading h2 {
  color: var(--suite-ink);
  font-size: clamp(28px, 7.4vw, 36px);
  line-height: 1.12;
}

.invitation {
  min-height: 52svh;
}

.invitation-note {
  width: min(100%, 342px);
  margin: 0;
  padding: 28px 0 0;
  border: 0;
  background: transparent;
}

.invitation-note::before {
  left: 48%;
  right: auto;
  top: -58px;
  width: 150px;
  height: 220px;
  opacity: 0.14;
}

.invitation-note p {
  color: var(--suite-ink);
  font-size: 22px;
  line-height: 1.78;
  text-align: left;
}

.gallery-section {
  padding-left: 12px;
  padding-right: 12px;
}

.photo-mosaic {
  grid-template-columns: repeat(12, 1fr);
  gap: 9px;
}

.photo-card {
  grid-column: span 6;
  border: 6px solid rgba(251, 247, 238, 0.82);
  background: var(--suite-paper);
  box-shadow: none;
}

.photo-card--large {
  grid-column: span 12;
}

.photo-card--wide {
  grid-column: span 7;
}

.photo-card:nth-of-type(5) {
  grid-column: span 5;
  align-self: end;
}

.photo-card img {
  filter: sepia(0.05) saturate(0.9) contrast(0.94);
}

.gallery-caption {
  grid-column: span 12;
  margin: 10px 8px 0;
  color: var(--suite-muted);
  text-align: left;
}

.info-panel,
.location-card,
.rsvp-form,
.blessing-form,
.blessing-note,
.danmaku-paper {
  border-color: var(--suite-line);
  background:
    linear-gradient(rgba(251, 247, 238, 0.66), rgba(251, 247, 238, 0.48)),
    url("assets/texture-paper.webp") center / 460px auto;
  box-shadow: none;
}

.info-panel::before,
.location-card::before,
.rsvp-form::before,
.blessing-form::before {
  border-color: rgba(169, 135, 72, 0.12);
}

.info-panel {
  gap: 18px;
  padding: 22px;
}

.info-panel strong,
.location-card h3,
.timeline span,
.blessing-note strong {
  color: var(--suite-ink);
}

.info-panel span,
.location-card p,
.blessing-note p,
.danmaku-paper span {
  color: var(--suite-muted);
}

.timeline {
  margin-top: 4px;
  padding-left: 34px;
}

.timeline::before {
  left: 9px;
  background: rgba(169, 135, 72, 0.42);
}

.timeline li::before {
  left: -31px;
  background: var(--suite-gold);
  box-shadow: 0 0 0 5px rgba(169, 135, 72, 0.1);
}

.timeline time {
  color: var(--suite-gold);
}

.journey-section {
  gap: 24px;
}

.location-card {
  padding: 24px;
  text-align: left;
}

.primary-btn {
  color: var(--suite-paper);
  background: var(--suite-olive);
  box-shadow: none;
}

.secondary-btn {
  color: var(--suite-olive);
  background: transparent;
  border-color: rgba(52, 79, 63, 0.3);
}

input,
select,
textarea {
  border-color: rgba(52, 79, 63, 0.24);
  color: var(--suite-ink);
  background:
    linear-gradient(rgba(251, 247, 238, 0.76), rgba(251, 247, 238, 0.58)),
    url("assets/texture-paper.webp") center / 340px auto;
}

input::placeholder,
textarea::placeholder {
  color: rgba(74, 86, 72, 0.82);
}

.blessing-stream {
  border-color: var(--suite-line);
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.34), rgba(174, 188, 168, 0.16)),
    url("assets/texture-veil.png") center / cover no-repeat,
    rgba(251, 247, 238, 0.25);
}

.blessing-section .ending__inner {
  margin-top: 40px;
  border-top: 1px solid var(--suite-line);
}

.logo-seal {
  background: rgba(251, 247, 238, 0.36);
  border-color: rgba(169, 135, 72, 0.22);
  box-shadow: none;
  backdrop-filter: none;
}

.music-toggle {
  background: rgba(52, 79, 63, 0.58);
  border-color: rgba(251, 247, 238, 0.56);
}

@media (prefers-reduced-motion: reduce) {
  .hero__image {
    z-index: 1;
  }
}

/* Real veil direction: own photo/video remains primary; chiffon is a visible spatial object. */
.entry-screen {
  background:
    linear-gradient(180deg, rgba(236, 210, 158, 0.1), rgba(31, 45, 37, 0.2) 58%, rgba(24, 36, 30, 0.48)),
    url("assets/hero-cover-magazine.webp") center / cover no-repeat;
}

.entry-screen::before {
  border-color: rgba(255, 248, 236, 0.26);
}

.entry-screen::after {
  display: none;
}

.entry-kicker,
.entry-screen h1,
.entry-date,
.entry-screen .primary-btn {
  margin-left: 20px;
  margin-right: 20px;
  z-index: 5;
}

.entry-kicker {
  margin-top: 0;
  color: rgba(255, 248, 236, 0.82);
  text-shadow: 0 2px 8px rgba(24, 36, 30, 0.22);
}

.entry-screen h1 {
  color: #fff8ec;
  text-shadow: 0 3px 12px rgba(24, 36, 30, 0.28);
}

.entry-date {
  color: rgba(255, 248, 236, 0.92);
  text-shadow: 0 2px 8px rgba(24, 36, 30, 0.24);
}

.entry-screen .primary-btn {
  color: var(--suite-olive);
  background: rgba(255, 248, 236, 0.86);
}

.real-veil {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 46% 18%, rgba(255, 255, 255, 0.54), transparent 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 250, 241, 0.5) 48%, rgba(255, 255, 255, 0.14));
  mix-blend-mode: normal;
  filter: blur(0.35px) saturate(0.88);
  opacity: 0.72;
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}

.real-veil::before,
.real-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.real-veil::before {
  background:
    url("assets/texture-veil.png") center / cover no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34) 18%, transparent 34%, rgba(255, 255, 255, 0.22) 62%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 34px);
  opacity: 0.22;
  mix-blend-mode: screen;
}

.real-veil::after {
  background: radial-gradient(circle at 52% 18%, rgba(233, 191, 113, 0.22), transparent 42%);
  mix-blend-mode: soft-light;
}

.real-veil--left {
  top: -4svh;
  left: -14px;
  width: 31%;
  height: 106svh;
  clip-path: polygon(5% 0, 88% 0, 68% 100%, 0 100%);
  -webkit-mask-image:
    radial-gradient(ellipse at 42% 18%, #000 0 52%, transparent 74%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 76%, transparent 100%);
  mask-image:
    radial-gradient(ellipse at 42% 18%, #000 0 52%, transparent 74%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 76%, transparent 100%);
  transform: rotate(-2deg);
  animation: veilHangLeft 8s ease-in-out infinite alternate;
}

.real-veil--right {
  top: -3svh;
  right: -14px;
  width: 32%;
  height: 104svh;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 36% 100%);
  -webkit-mask-image:
    radial-gradient(ellipse at 55% 22%, #000 0 52%, transparent 76%),
    linear-gradient(90deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
  mask-image:
    radial-gradient(ellipse at 55% 22%, #000 0 52%, transparent 76%),
    linear-gradient(90deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
  opacity: 0.5;
  transform: rotate(2deg);
  animation: veilHangRight 9s ease-in-out infinite alternate;
}

.real-veil--wind {
  left: -18%;
  right: -18%;
  top: 18svh;
  height: 32svh;
  opacity: 0.26;
  clip-path: polygon(0 30%, 24% 12%, 54% 34%, 82% 16%, 100% 30%, 100% 70%, 74% 84%, 42% 66%, 12% 82%, 0 68%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  transform: rotate(-4deg);
  animation: veilWind 11s ease-in-out infinite alternate;
}

.hero {
  padding: 0;
  background: var(--suite-bg);
}

.hero__video,
.hero__image {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-position: center 44%;
  filter: sepia(0.08) saturate(0.9) contrast(0.92) brightness(1.06);
}

.hero__shade {
  inset: 0;
  height: auto;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(237, 195, 120, 0.13), transparent 36%, rgba(24, 36, 30, 0.24)),
    linear-gradient(90deg, rgba(24, 36, 30, 0.26), transparent 58%);
  opacity: 0.78;
}

.hero__grain {
  inset: 0;
  height: auto;
  z-index: 2;
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

.hero-veil {
  z-index: 3;
}

.hero-veil--left {
  top: -6svh;
  left: -16px;
  width: 31%;
  height: 112svh;
  clip-path: polygon(3% 0, 92% 0, 72% 100%, 0 100%);
  animation: veilHangLeft 8s ease-in-out infinite alternate;
}

.hero-veil--right {
  top: -4svh;
  right: -20px;
  width: 30%;
  height: 108svh;
  opacity: 0.5;
  clip-path: polygon(18% 0, 100% 0, 96% 100%, 34% 100%);
  animation: veilHangRight 9s ease-in-out infinite alternate;
}

.hero-veil--wind {
  left: -20%;
  right: -20%;
  top: 17svh;
  height: 34svh;
  opacity: 0.28;
  clip-path: polygon(0 30%, 26% 12%, 52% 36%, 82% 16%, 100% 30%, 100% 70%, 72% 82%, 42% 66%, 14% 86%, 0 72%);
  transform: rotate(-5deg);
  animation: veilWind 11s ease-in-out infinite alternate;
}

.hero__content {
  z-index: 5;
  left: 24px;
  right: 24px;
  bottom: 32px;
}

.hero__content h2,
.hero__content strong,
.hero__content time,
.hero__content small {
  color: #fff8ec;
  text-shadow: 0 3px 12px rgba(24, 36, 30, 0.3);
}

.hero__content strong span,
.hero__content time {
  color: #ead49c;
}

@keyframes veilHangLeft {
  from { transform: translate3d(-1.2%, -0.2%, 0) rotate(-2.4deg) scaleX(1); }
  to { transform: translate3d(1.4%, 0.4%, 0) rotate(-1.2deg) scaleX(1.03); }
}

@keyframes veilHangRight {
  from { transform: translate3d(1.2%, -0.3%, 0) rotate(2.2deg) scaleX(1.02); }
  to { transform: translate3d(-1.2%, 0.5%, 0) rotate(1deg) scaleX(1); }
}

@keyframes veilWind {
  from { transform: translate3d(-2%, -1%, 0) rotate(-5deg) scaleX(1.03); }
  to { transform: translate3d(2%, 1.4%, 0) rotate(-2.6deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .real-veil,
  .hero-veil {
    animation: none !important;
  }
}

/* Magazine poster direction: fewer photos, stronger scroll editorial rhythm. */
.entry-screen,
.hero {
  background: #dfe5d6;
}

.entry-screen {
  align-content: end;
  padding: 0 24px calc(42px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(236, 210, 158, 0.04), rgba(22, 34, 28, 0.08) 36%, rgba(22, 34, 28, 0.5)),
    url("assets/hero-cover-magazine.webp") center / cover no-repeat;
}

.entry-screen::before {
  inset: 18px;
  border-color: rgba(255, 248, 236, 0.22);
}

.entry-screen::after {
  display: block;
  inset: 0;
  height: auto;
  opacity: 0.18;
  background:
    radial-gradient(circle at 80% 14%, rgba(238, 204, 140, 0.22), transparent 34%),
    url("assets/texture-paper.webp") center / 500px auto;
  filter: none;
  mix-blend-mode: soft-light;
}

.entry-kicker {
  margin-top: 0;
  color: rgba(255, 248, 236, 0.8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.entry-screen h1 {
  color: #fff8ec;
  font-size: clamp(48px, 15vw, 78px);
  text-shadow: 0 3px 14px rgba(18, 30, 24, 0.34);
}

.entry-date {
  color: rgba(255, 248, 236, 0.92);
}

.entry-screen .primary-btn {
  color: var(--suite-olive);
  background: rgba(255, 248, 236, 0.88);
}

.hero {
  padding: 0;
  min-height: 100svh;
}

.hero__video,
.hero__image {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.06) saturate(0.92) contrast(0.92) brightness(1.05);
}

.hero__shade {
  inset: 0;
  height: auto;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(238, 204, 140, 0.1), transparent 36%, rgba(18, 30, 24, 0.38)),
    linear-gradient(90deg, rgba(18, 30, 24, 0.3), transparent 62%);
}

.hero__grain {
  inset: 0;
  height: auto;
  z-index: 2;
  opacity: 0.3;
}

.hero__content {
  z-index: 4;
  bottom: 34px;
}

.hero__content h2,
.hero__content strong,
.hero__content time,
.hero__content small {
  color: #fff8ec;
  text-shadow: 0 3px 14px rgba(18, 30, 24, 0.34);
}

.gallery-section {
  margin-inline: -12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #10180f;
  box-shadow: none;
}

.gallery-section::before,
.gallery-section .texture--tree {
  display: none;
}

.gallery-section .section-heading {
  min-height: 46svh;
  display: grid;
  align-content: end;
  padding: 44px 24px 30px;
  margin: 0;
  color: #f8f1e4;
  background:
    linear-gradient(180deg, rgba(16, 24, 15, 0.12), rgba(16, 24, 15, 0.86)),
    url("assets/photos/photo-01.webp") center 40% / cover no-repeat;
}

.gallery-section .section-heading h2 {
  max-width: 330px;
  margin: 0;
  color: #f8f1e4;
  font-size: clamp(34px, 9.5vw, 48px);
  line-height: 1.04;
  text-shadow: 0 3px 18px rgba(7, 13, 8, 0.36);
}

.magazine-roll {
  position: relative;
  z-index: 2;
  display: grid;
}

.magazine-spread {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  overflow: hidden;
  background: #0b120c;
  isolation: isolate;
}

.magazine-spread img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(0.96) brightness(1.01);
}

.magazine-spread--cover img {
  object-position: center 50%;
}

.magazine-spread--split img {
  object-position: center 36%;
}

.magazine-spread--detail img {
  object-position: center 30%;
}

.magazine-spread--embrace img {
  object-position: center 44%;
}

.magazine-spread--lake img {
  object-position: center 38%;
}

.magazine-spread--portrait img {
  object-position: center 34%;
}

.magazine-spread::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 12, 7, 0.26), transparent 30%, rgba(6, 12, 7, 0.1) 52%, rgba(6, 12, 7, 0.78)),
    linear-gradient(90deg, rgba(6, 12, 7, 0.44), transparent 42%, rgba(6, 12, 7, 0.18)),
    url("assets/texture-paper.webp") center / 520px auto;
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.magazine-spread::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(248, 241, 228, 0.42);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 15, 0.18);
}

.magazine-masthead,
.magazine-folio,
.magazine-rail,
.magazine-copy {
  position: relative;
  z-index: 3;
}

.magazine-masthead {
  position: absolute;
  top: 26px;
  left: 22px;
  right: 62px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(248, 241, 228, 0.96);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: clamp(38px, 15vw, 74px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(6, 12, 7, 0.28);
}

.magazine-folio {
  position: absolute;
  top: 94px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  color: rgba(248, 241, 228, 0.82);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.magazine-rail {
  position: absolute;
  right: 22px;
  top: 142px;
  color: rgba(248, 241, 228, 0.8);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

.magazine-copy {
  width: min(100%, 350px);
  padding: 0 24px 48px;
  color: #fff8ec;
}

.magazine-copy p {
  width: fit-content;
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(248, 241, 228, 0.68);
  color: rgba(248, 241, 228, 0.9);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.magazine-copy h3 {
  margin: 0;
  color: #fff8ec;
  font-family: "Microsoft JhengHei", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(38px, 11vw, 58px);
  line-height: 1.03;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(6, 12, 7, 0.34);
}

.magazine-copy span {
  display: block;
  width: min(100%, 260px);
  margin-top: 14px;
  color: rgba(255, 248, 236, 0.88);
  line-height: 1.7;
}

.magazine-spread--split .magazine-copy {
  justify-self: end;
  text-align: right;
}

.magazine-spread--split .magazine-copy p {
  margin-left: auto;
}

.magazine-spread--detail {
  min-height: 92svh;
}

.magazine-spread--detail .magazine-copy {
  padding-bottom: 58px;
}

.magazine-spread--portrait .magazine-copy {
  justify-self: end;
  text-align: right;
}

.magazine-spread--portrait .magazine-copy p {
  margin-left: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .magazine-spread img {
    transform: scale(1.045);
    transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1), filter 1400ms ease;
  }

  .magazine-spread.is-visible img {
    transform: scale(1);
    filter: saturate(0.98) contrast(0.98) brightness(1.03);
  }

  .magazine-masthead,
  .magazine-folio,
  .magazine-rail,
  .magazine-copy {
    transform: translateY(12px);
    opacity: 0.001;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease;
  }

  .magazine-spread.is-visible .magazine-masthead,
  .magazine-spread.is-visible .magazine-folio,
  .magazine-spread.is-visible .magazine-rail,
  .magazine-spread.is-visible .magazine-copy {
    transform: translateY(0);
    opacity: 1;
  }

  .magazine-spread.is-visible .magazine-folio {
    transition-delay: 80ms;
  }

  .magazine-spread.is-visible .magazine-rail {
    transition-delay: 140ms;
  }

  .magazine-spread.is-visible .magazine-copy {
    transition-delay: 180ms;
  }
}

/* Full-video cover redesign: static magazine cover first, cinematic motion after entry. */
.entry-screen {
  display: grid;
  align-content: space-between;
  justify-items: stretch;
  min-height: calc(100svh - 24px);
  padding: 24px 22px calc(34px + env(safe-area-inset-bottom));
  text-align: left;
  background:
    linear-gradient(180deg, rgba(11, 14, 12, 0.18), transparent 28%, rgba(11, 14, 12, 0.2) 58%, rgba(11, 14, 12, 0.78)),
    url("assets/hero-cover-magazine.webp") center 40% / cover no-repeat;
}

.entry-screen::before {
  inset: 13px;
  border-color: rgba(255, 248, 236, 0.36);
}

.entry-screen::after {
  opacity: 0.12;
  background:
    linear-gradient(90deg, rgba(255, 248, 236, 0.2), transparent 36%, rgba(255, 248, 236, 0.1)),
    url("assets/texture-paper.webp") center / 520px auto;
}

.entry-masthead {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(255, 248, 236, 0.96);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: clamp(42px, 16vw, 72px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(8, 12, 10, 0.32);
}

.entry-kicker {
  align-self: end;
  width: fit-content;
  margin: auto 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 248, 236, 0.56);
  color: rgba(255, 248, 236, 0.86);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.entry-screen h1 {
  max-width: 310px;
  margin: 0 0 12px;
  color: #fff8ec;
  font-size: clamp(48px, 14vw, 74px);
  line-height: 1.02;
}

.entry-date {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: rgba(255, 248, 236, 0.9);
  line-height: 1.65;
}

.entry-screen .primary-btn {
  justify-self: start;
  min-width: 168px;
  color: #152318;
  background: rgba(255, 248, 236, 0.9);
  box-shadow: 0 8px 24px rgba(8, 12, 10, 0.16);
}

.hero__video {
  object-position: center center;
  filter: saturate(0.96) contrast(0.98) brightness(0.96);
}

.hero__image {
  object-position: center 40%;
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(8, 13, 10, 0.2), transparent 30%, rgba(8, 13, 10, 0.68)),
    linear-gradient(90deg, rgba(8, 13, 10, 0.28), transparent 56%);
}

.hero__content {
  left: 22px;
  right: 22px;
  bottom: 32px;
  display: grid;
  justify-items: start;
}

.hero__content h2 {
  max-width: 330px;
  font-size: clamp(42px, 12vw, 64px);
}
