:root {
  --paper: #f7f3eb;
  --ink: #1c1b19;
  --muted: #706a60;
  --sage: #7a8b72;
  --moss: #314334;
  --clay: #b68566;
  --champagne: #ded0bb;
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button {
  font: inherit;
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #151613;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.cover::before,
.hero::before,
.photo-break::before,
.closing::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image: var(--photo);
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: 0.58;
  transform: scale(1.04);
}

.cover.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-photo,
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

.cover-photo {
  object-position: center;
}

.cover-shade,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 20, 17, 0.78), rgba(18, 20, 17, 0.18) 55%, rgba(18, 20, 17, 0.55));
}

.cover-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 760px);
  padding: 32px;
  text-align: center;
  color: var(--white);
}

.guest-line {
  margin: 0 0 12px;
  color: rgba(255, 250, 242, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.1;
}

.cover h1,
.hero h1,
.intro h2,
.section-heading h2,
.gift h2,
.closing h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.95;
}

.cover h1 {
  font-size: clamp(4rem, 12vw, 9rem);
}

.cover-date {
  margin: 18px 0 28px;
  color: rgba(255, 250, 242, 0.82);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.warm-transition {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(222, 208, 187, 0.76), rgba(182, 133, 102, 0.32) 38%, rgba(49, 67, 52, 0) 72%),
    rgba(255, 250, 242, 0.2);
}

.warm-transition.play {
  animation: warm-open 1150ms ease forwards;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-btn,
.ghost-btn,
.copy-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-btn {
  background: var(--white);
  color: var(--ink);
}

.ghost-btn {
  border-color: rgba(255, 250, 242, 0.58);
  color: var(--white);
}

.primary-btn:hover,
.ghost-btn:hover,
.copy-btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #151613;
  color: var(--white);
}

.hero-photo {
  object-position: center;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(rgba(15, 18, 14, 0.55), rgba(15, 18, 14, 0));
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.88rem;
}

.nav-gift {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-btn {
  min-width: 74px;
  min-height: 38px;
  border-color: rgba(255, 250, 242, 0.36);
  background: rgba(255, 250, 242, 0.08);
  color: var(--white);
}

.icon-btn.is-playing {
  background: var(--white);
  color: var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  width: min(920px, 92vw);
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 clamp(42px, 8vw, 86px);
  margin-left: clamp(18px, 7vw, 110px);
}

.hero h1 {
  font-size: clamp(3.35rem, 7.6vw, 7.6rem);
  line-height: 0.92;
}

.hero h1 span {
  color: var(--champagne);
}

.hero-line {
  margin: 22px 0 28px;
  color: rgba(255, 250, 242, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.band {
  background: var(--white);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.intro-grid,
.gift-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: end;
}

.intro h2,
.gift h2,
.section-heading h2,
.closing h2 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.intro-text,
.gift p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.section-copy {
  width: min(720px, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.couple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--champagne);
}

.profile img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.profile:first-child img {
  object-position: center 24%;
}

.profile:last-child img {
  object-position: center 18%;
}

.profile div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(14px);
}

.profile h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
}

.story {
  position: relative;
  overflow: hidden;
}

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

.story-bg span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(182, 133, 102, 0.28);
  animation: float-heart 8s ease-in-out infinite;
  transform: rotate(45deg);
}

.story-bg span::before,
.story-bg span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.story-bg span::before {
  left: -9px;
}

.story-bg span::after {
  top: -9px;
}

.story-bg span:nth-child(1) {
  top: 11%;
  left: 7%;
}

.story-bg span:nth-child(2) {
  top: 18%;
  right: 10%;
  animation-delay: -2s;
  animation-duration: 9s;
}

.story-bg span:nth-child(3) {
  top: 54%;
  left: 4%;
  animation-delay: -4s;
}

.story-bg span:nth-child(4) {
  right: 8%;
  bottom: 22%;
  animation-delay: -1s;
  animation-duration: 7s;
}

.story-bg span:nth-child(5) {
  left: 48%;
  bottom: 8%;
  animation-delay: -5s;
  animation-duration: 10s;
}

.story .section-heading {
  position: relative;
  width: min(780px, 100%);
  margin: 0 auto clamp(38px, 6vw, 70px);
  text-align: center;
}

.story-lead {
  width: min(620px, 100%);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.story-flow {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 14px 0;
}

.story-flow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(92px, 18vw, 164px);
  width: 1px;
  background: linear-gradient(rgba(182, 133, 102, 0), rgba(182, 133, 102, 0.46), rgba(182, 133, 102, 0));
}

.story-moment {
  position: relative;
  display: grid;
  grid-template-columns: clamp(82px, 17vw, 150px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(24px, 5vw, 48px) 0;
}

.story-moment::before {
  content: "";
  position: absolute;
  top: clamp(34px, 5vw, 58px);
  left: clamp(85px, 18vw, 157px);
  width: 15px;
  height: 15px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 8px rgba(182, 133, 102, 0.14);
  animation: pulse-ring 2.8s ease-in-out infinite;
}

.story-moment span {
  padding-top: 4px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.story-moment div {
  position: relative;
  padding-bottom: clamp(18px, 4vw, 34px);
}

.story-moment div::after {
  content: "";
  position: absolute;
  right: min(8vw, 42px);
  bottom: 0;
  width: 74px;
  height: 1px;
  background: rgba(182, 133, 102, 0.32);
}

.story-moment h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
}

.story-moment p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.9;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.story-moment:nth-child(2).reveal,
.story-moment:nth-child(5).reveal {
  transition-delay: 90ms;
}

.story-moment:nth-child(3).reveal,
.story-moment:nth-child(6).reveal {
  transition-delay: 180ms;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timer div {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 1px solid rgba(49, 67, 52, 0.16);
  border-radius: 8px;
  background: var(--paper);
}

.timer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
}

.timer span {
  margin-top: -20px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 32px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-card,
.bank-card {
  border: 1px solid rgba(28, 27, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.7);
  padding: 24px;
}

.detail-icon {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.detail-card h3,
.bank-card h3 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.detail-card p,
.bank-card span {
  color: var(--muted);
  line-height: 1.7;
}

.detail-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.detail-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--moss);
  font-weight: 700;
}

.photo-break {
  position: relative;
  display: grid;
  height: clamp(560px, 86vh, 980px);
  place-items: center;
  overflow: hidden;
  background: #151613;
}

.photo-break img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.masonry {
  columns: 3 260px;
  column-gap: 14px;
}

.masonry button {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.masonry img {
  width: 100%;
  transition: transform 420ms ease;
}

.masonry button:hover img {
  transform: scale(1.04);
}

.bank-list {
  display: grid;
  gap: 14px;
}

.bank-card p {
  margin: 0;
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.bank-card h3 {
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-top: 18px;
  background: var(--moss);
  color: var(--white);
}

.gift-open-large {
  align-self: end;
  width: fit-content;
}

.dark-btn {
  background: var(--moss);
  color: var(--white);
}

.form-panel {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  border: 1px solid rgba(49, 67, 52, 0.13);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 250, 242, 0.76);
  box-shadow: 0 18px 44px rgba(49, 67, 52, 0.07);
}

.form-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid rgba(49, 67, 52, 0.18);
  border-radius: 8px;
  padding: 14px 15px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  outline: none;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(182, 133, 102, 0.13);
}

.wishes-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: clamp(18px, 5vw, 52px);
  align-items: start;
}

.wish-tree {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(49, 67, 52, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(122, 139, 114, 0.14), transparent 14%, transparent 86%, rgba(182, 133, 102, 0.13)),
    var(--champagne);
  box-shadow: 0 18px 44px rgba(49, 67, 52, 0.07);
}

.tree-board {
  position: absolute;
  inset: 22px;
  border-radius: 6px;
  background: #fffdfa;
  box-shadow:
    0 18px 48px rgba(49, 67, 52, 0.18),
    inset 0 0 0 1px rgba(28, 27, 25, 0.08);
}

.tree-board::before,
.tree-board::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  opacity: 0.35;
  background: linear-gradient(180deg, rgba(122, 139, 114, 0.45), rgba(255, 250, 242, 0));
}

.tree-board::before {
  left: 0;
}

.tree-board::after {
  right: 0;
}

.branch-art {
  position: absolute;
  inset: 5% 5% 2%;
  width: 90%;
  height: 93%;
  overflow: visible;
}

.tree-trace,
.twig,
.tree-hill {
  fill: none;
  stroke: #24221f;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-trace {
  stroke-width: 5.6;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: branch-draw 2.2s ease forwards;
}

.trunk-line {
  stroke-width: 9;
}

.twig {
  stroke-width: 3.4;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: branch-draw 2s ease 350ms forwards;
}

.tree-hill {
  stroke-width: 3;
  stroke: rgba(36, 34, 31, 0.82);
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: branch-draw 1.6s ease 700ms forwards;
}

.wish-leaves {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.wish-leaf {
  position: absolute;
  width: min(182px, 42vw);
  min-height: 78px;
  border: 1px solid rgba(245, 91, 135, 0.24);
  border-radius: 26px 8px 26px 8px;
  padding: 12px 13px;
  background: rgba(255, 246, 249, 0.94);
  box-shadow: 0 14px 30px rgba(170, 61, 94, 0.14);
  transform: translate(-50%, -50%) rotate(var(--rotate, -3deg));
  animation: leaf-pop 500ms ease both, leaf-sway 3s ease-in-out infinite;
}

.wish-leaf::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 6px;
  background: linear-gradient(135deg, #ff8aac, #d93572);
  box-shadow: 0 5px 12px rgba(217, 53, 114, 0.22);
}

.wish-leaf::after {
  content: "";
  position: absolute;
  top: -12px;
  left: calc(50% - 12px);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8aac, #d93572);
  box-shadow: 24px 0 0 #d93572;
}

.wish-leaf h3 {
  margin: 0 0 6px;
  color: #8f2149;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
}

.wish-leaf p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wish-empty {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 4;
  width: min(300px, 74%);
  transform: translate(-50%, -50%);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
}

.closing {
  position: relative;
  min-height: 82svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #151613;
  color: var(--white);
  text-align: center;
}

.closing img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(16, 19, 14, 0.58);
}

.closing-copy {
  position: relative;
  z-index: 3;
  width: min(90vw, 820px);
}

.closing p:last-child {
  color: rgba(255, 250, 242, 0.82);
  font-size: 1.1rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  min-width: 210px;
  transform: translate(-50%, 20px);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 72px 18px 24px;
  background: rgba(10, 11, 10, 0.92);
}

.lightbox.is-visible {
  display: grid;
}

.lightbox img {
  max-height: 86vh;
  width: auto;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(16, 19, 14, 0.76);
  backdrop-filter: blur(10px);
}

.gift-modal.is-visible {
  display: grid;
}

.gift-page {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.gift-page .close-lightbox {
  border-color: rgba(28, 27, 25, 0.22);
  color: var(--ink);
}

.gift-page h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
}

.gift-page > p {
  width: min(620px, 100%);
  color: var(--muted);
  line-height: 1.8;
}

@keyframes float-heart {
  0%,
  100% {
    transform: translateY(0) rotate(45deg) scale(1);
  }

  50% {
    transform: translateY(-22px) rotate(45deg) scale(1.12);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.18;
  }
}

@keyframes warm-open {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes tree-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.025);
  }
}

@keyframes leaf-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) rotate(var(--rotate, -3deg)) scale(0.88);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rotate, -3deg)) scale(1);
  }
}

@keyframes leaf-sway {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -7px;
  }
}

@keyframes drift-sparkle {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(-18px);
    opacity: 0.9;
  }
}

@keyframes branch-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .topbar {
    padding: 14px 18px;
  }

  .hero-copy {
    width: calc(100% - 36px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

  .intro-grid,
  .gift-grid,
  .couple,
  .wishes-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .story-moment {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 46px;
  }

  .story-moment::before {
    top: 32px;
    left: 10px;
  }

  .story-moment span {
    padding-top: 0;
  }

  .profile,
  .profile img {
    min-height: 540px;
  }

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

  .timer div {
    min-height: 118px;
  }

  .photo-break {
    height: clamp(520px, 78vh, 820px);
  }

  .gift-open-large {
    width: 100%;
  }

  .wish-tree {
    min-height: 640px;
  }

  .wish-leaf {
    width: min(158px, 46vw);
    min-height: 78px;
    padding: 13px 14px;
  }

  .wish-leaf h3 {
    font-size: 1.06rem;
  }

  .wish-leaf p {
    font-size: 0.84rem;
  }
}

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

@media (max-width: 460px) {
  .cover-content {
    padding: 20px;
  }

  .cover h1 {
    font-size: 3.65rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .profile,
  .profile img {
    min-height: 460px;
  }

  .profile div {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}
