:root {
  --color-bg: #fff7f4;
  --color-surface: #fffdf9;
  --color-surface-soft: #ffe7df;
  --color-text: #321c1a;
  --color-muted: #7b5c55;
  --color-primary: #e3262f;
  --color-primary-dark: #8f1118;
  --color-accent: #c78336;
  --color-line: #f1c4b9;
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --shadow-soft: 0 18px 50px rgba(83, 31, 24, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --section-spacing: clamp(4rem, 10vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
}

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

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

.is-portal-active,
.is-chapter-2023-active,
.is-chapter-2024-active {
  overflow: hidden;
}

.is-portal-active .site-header,
.is-portal-active main,
.is-portal-active .site-footer,
.is-chapter-2023-active .site-header,
.is-chapter-2023-active main,
.is-chapter-2023-active .site-footer,
.is-chapter-2024-active .site-header,
.is-chapter-2024-active main,
.is-chapter-2024-active .site-footer {
  display: none;
}

.portal-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  min-height: 100svh;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.84), transparent 0 12rem),
    radial-gradient(circle at 50% 42%, rgba(227, 38, 47, 0.3), transparent 0 17rem),
    linear-gradient(135deg, #fff7f4 0%, #ffe1d8 45%, #ffc6b8 100%);
  color: var(--color-text);
  text-align: center;
  transition: opacity 620ms ease, transform 620ms ease;
}

.is-portal-active .portal-screen {
  display: grid;
}

.time-chapter-screen {
  display: none;
}

.is-chapter-2023-active .chapter-2023-screen,
.is-chapter-2024-active .chapter-2024-screen {
  display: grid;
}

.is-story-started .time-chapter-screen {
  display: none;
}

.portal-screen::before {
  content: "";
  position: absolute;
  width: min(74vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(143, 17, 24, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 1.4rem rgba(255, 255, 255, 0.22),
    0 0 5rem rgba(227, 38, 47, 0.2);
  animation: portal-pulse 2800ms ease-in-out infinite;
}

.portal-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.portal-kicker {
  margin: 0 0 1rem;
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  font-weight: 700;
}

.portal-content h1 {
  max-width: 780px;
  font-size: clamp(2.75rem, 12vw, 6.2rem);
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  margin-top: 2rem;
  padding: 0.95rem 1.55rem;
  background: var(--color-primary-dark);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(143, 17, 24, 0.24);
  transition: transform 180ms ease, background-color 180ms ease;
}

.portal-button:hover,
.portal-button:focus-visible {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.portal-footer {
  position: absolute;
  bottom: 1.4rem;
  left: 1rem;
  right: 1rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.is-portal-opening .portal-screen {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.time-transition[hidden] {
  display: none;
}

.time-transition {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at center, rgba(255, 247, 244, 0.98), rgba(255, 225, 216, 0.94) 42%, rgba(143, 17, 24, 0.92)),
    var(--color-primary-dark);
  color: var(--color-primary-dark);
  text-align: center;
  animation: time-transition-in 420ms ease both;
}

.time-transition p {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 12vw, 6rem);
  font-weight: 700;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 247, 244, 0.92);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-primary-dark);
}

.origin-section {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 4rem 0;
  background:
    linear-gradient(180deg, rgba(50, 28, 26, 0.05), rgba(50, 28, 26, 0.18)),
    linear-gradient(135deg, #ffe7df 0%, #fff7f4 52%, #ffc6b8 100%);
}

.reunion-section {
  background:
    linear-gradient(180deg, rgba(50, 28, 26, 0.05), rgba(50, 28, 26, 0.18)),
    linear-gradient(135deg, #fff7f4 0%, #ffd7cb 48%, #ffbcae 100%);
}

.origin-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.origin-photo {
  margin: 0;
}

.origin-photo img,
.origin-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.origin-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 2rem;
  background: linear-gradient(135deg, #ffb19f, #fff7f4 58%, #eac08b);
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: clamp(2rem, 12vw, 4.4rem);
  line-height: 1;
  text-align: center;
}

.origin-content {
  animation: fade-up 800ms ease both;
}

.chapter-year {
  margin: 0 0 0.35rem;
  color: rgba(143, 17, 24, 0.16);
  font-family: var(--font-title);
  font-size: clamp(5rem, 25vw, 12rem);
  font-weight: 700;
  line-height: 0.78;
}

.time-arrow-button {
  display: grid;
  place-items: center;
  width: clamp(3.4rem, 12vw, 4.5rem);
  height: clamp(3.4rem, 12vw, 4.5rem);
  margin-top: 1.6rem;
  background: var(--color-primary-dark);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1;
  box-shadow: 0 18px 44px rgba(143, 17, 24, 0.24);
  transition: transform 180ms ease, background-color 180ms ease;
}

.time-arrow-button:hover,
.time-arrow-button:focus-visible {
  background: var(--color-primary);
  transform: translateX(4px);
}

.hero-section {
  min-height: 86vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 118, 92, 0.46), transparent 34%),
    radial-gradient(circle at bottom right, rgba(201, 139, 82, 0.22), transparent 36%),
    linear-gradient(135deg, #fff7f4 0%, #ffe7df 48%, #ffd0bf 100%);
  color: var(--color-text);
  overflow: hidden;
}

.section-inner {
  width: min(100% - 2rem, 1040px);
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  gap: 2rem;
  padding: 4rem 0;
}

.hero-content {
  animation: fade-up 800ms ease both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow:empty {
  display: none;
}

.hero-section .eyebrow {
  color: var(--color-primary);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  line-height: 1.05;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 18vw, 7rem);
}

h2 {
  max-width: 720px;
  font-size: clamp(2.3rem, 12vw, 4.5rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-text {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 4vw, 1.25rem);
}

.hero-photo {
  position: relative;
  margin: 0;
  animation: fade-up 900ms ease 120ms both;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1rem -0.5rem -0.5rem 1rem;
  border: 1px solid rgba(227, 38, 47, 0.24);
  border-radius: var(--radius-md);
}

.hero-photo img,
.hero-photo-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 2rem;
  background: linear-gradient(135deg, #ffb19f, #fff7f4 62%, #eac08b);
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: clamp(2rem, 12vw, 4rem);
  line-height: 1;
  text-align: center;
}

.love-counter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 520px;
  margin-top: 1.75rem;
}

.counter-item {
  padding: 0.85rem 0.7rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(83, 31, 24, 0.08);
  text-align: center;
}

.counter-number {
  display: block;
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: clamp(2rem, 10vw, 3.15rem);
  font-weight: 700;
  line-height: 0.95;
}

.counter-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.counter-note {
  margin: 0.85rem 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.counter-note:empty {
  display: none;
}

.content-section {
  padding: var(--section-spacing) 0;
}

.alt-section {
  background: var(--color-surface-soft);
}

.text-block {
  max-width: 760px;
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 1rem;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-left: 1.25rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--color-primary), var(--color-accent));
}

.timeline-item,
.gallery-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 1rem;
  overflow: visible;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: calc(-1.25rem - 5px);
  width: 12px;
  height: 12px;
  background: var(--color-primary-dark);
  border: 3px solid var(--color-surface-soft);
  border-radius: 50%;
}

.timeline-date {
  color: var(--color-primary);
  font-weight: 700;
}

.timeline-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.timeline-media img,
.timeline-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.timeline-image-placeholder {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffb19f, #fff7f4 58%, #eac08b);
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 9vw, 3rem);
  line-height: 1;
  text-align: center;
}

.timeline-content {
  padding: 1.25rem;
}

.timeline-item p,
.gallery-card p {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
}

.gallery-scroll {
  margin-top: 2rem;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scrollbar-color: var(--color-primary) transparent;
}

.intercessor-section {
  background:
    linear-gradient(180deg, rgba(255, 247, 244, 0.84), rgba(255, 231, 223, 0.94)),
    var(--color-bg);
}

.intercessor-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.intercessor-photo {
  margin: 0;
}

.intercessor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 72% center;
  border: 10px solid #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.origin-photo img.origin-photo-contain {
  background: #ffffff;
  object-fit: contain;
  object-position: center right;
}

.intercessor-content .text-block p {
  margin: 0;
}

.intercessor-content .text-block p + p {
  margin-top: 0.85rem;
}

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

.gallery-pages {
  display: flex;
  gap: 0;
}

.gallery-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  scroll-snap-align: start;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-nav-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary-dark);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

.gallery-nav-button:hover,
.gallery-nav-button:focus-visible {
  background: var(--color-primary);
  transform: translateY(-1px);
}

.gallery-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.gallery-page-status {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(83, 31, 24, 0.16);
}

.gallery-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-photo-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-photo-button:hover img,
.gallery-photo-button:focus-visible img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.045);
}

.gallery-photo-button:focus-visible {
  outline: 3px solid rgba(227, 38, 47, 0.38);
  outline-offset: -3px;
}

.gallery-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb19f, #fff7f4);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.gallery-meta {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-card-content {
  padding: 1.25rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 24, 22, 0.78);
  border: 0;
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  animation: lightbox-in 180ms ease both;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(38, 24, 22, 0.74);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--color-primary-dark);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #261816;
}

.lightbox-image-placeholder {
  display: grid;
  place-items: center;
  min-height: min(62vh, 560px);
  padding: 2rem;
  background: linear-gradient(135deg, #ffb19f, #fff7f4 58%, #eac08b);
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: clamp(2rem, 10vw, 4.8rem);
  line-height: 1;
  text-align: center;
}

.lightbox-image-placeholder[hidden] {
  display: none;
}

.is-lightbox-open {
  overflow: hidden;
}

.continuation-section {
  background:
    radial-gradient(circle at top right, rgba(255, 118, 92, 0.24), transparent 32%),
    var(--color-primary-dark);
  color: #ffffff;
}

.continuation-section .eyebrow,
.continuation-section .text-block {
  color: #ffe4d9;
}

.site-footer {
  padding: 2rem 1rem;
  background: #261816;
  color: #f7ece8;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 720px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
  }

  .main-nav {
    gap: 1.25rem;
    padding-bottom: 0;
  }

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

  .gallery-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
    align-items: center;
  }

  .timeline-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
  }

  .timeline-media img,
  .timeline-image-placeholder {
    height: 100%;
    min-height: 260px;
  }

  .timeline-media {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  }
}

@media (max-width: 719px) {
  :root {
    --section-spacing: 3.4rem;
  }

  body {
    line-height: 1.62;
  }

  .portal-screen {
    padding: 1.25rem;
  }

  .portal-screen::before {
    width: min(86vw, 360px);
    box-shadow:
      0 0 0 0.9rem rgba(255, 255, 255, 0.2),
      0 0 3.4rem rgba(227, 38, 47, 0.2);
  }

  .portal-kicker {
    margin-bottom: 0.75rem;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .portal-content h1 {
    max-width: 10ch;
    font-size: clamp(2.6rem, 13vw, 4.1rem);
  }

  .portal-button {
    min-height: 3.35rem;
    margin-top: 1.6rem;
    padding: 0.9rem 1.25rem;
  }

  .time-transition {
    padding: 1.25rem;
  }

  .time-transition p {
    font-size: clamp(2.35rem, 13vw, 4.1rem);
  }

  .site-header {
    gap: 0.55rem;
    padding: 0.8rem 1rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .main-nav {
    gap: 1rem;
    margin-inline: -1rem;
    padding: 0 1rem 0.2rem;
    scrollbar-width: none;
  }

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

  .section-inner {
    width: min(100% - 1.5rem, 1040px);
  }

  .origin-section {
    min-height: 100svh;
    padding: 1.25rem 0 1.75rem;
    align-items: stretch;
  }

  .origin-layout {
    min-height: calc(100svh - 3rem);
    align-content: center;
    gap: 1.15rem;
  }

  .origin-photo img,
  .origin-photo-placeholder {
    border-width: 6px;
    border-radius: 12px;
  }

  .origin-photo img {
    max-height: min(50svh, 420px);
  }

  .origin-photo-placeholder {
    min-height: min(46svh, 360px);
    padding: 1.2rem;
  }

  .chapter-year {
    font-size: clamp(4.2rem, 24vw, 7rem);
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  h3 {
    font-size: 1.32rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-layout {
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .hero-photo img,
  .hero-photo-placeholder {
    border-width: 6px;
    border-radius: 12px;
  }

  .hero-photo-placeholder {
    min-height: 260px;
  }

  .hero-text,
  .text-block {
    font-size: 0.97rem;
  }

  .timeline-list,
  .gallery-scroll {
    margin-top: 1.4rem;
  }

  .timeline-content,
  .gallery-card-content {
    padding: 1rem;
  }

  .timeline-media img,
  .timeline-image-placeholder {
    aspect-ratio: 4 / 3;
  }

  .gallery-toolbar {
    position: sticky;
    top: 5.35rem;
    z-index: 4;
    justify-content: space-between;
    gap: 0.55rem;
    margin-top: 1.35rem;
    padding: 0.65rem 0;
    background: rgba(255, 247, 244, 0.92);
    backdrop-filter: blur(12px);
  }

  .gallery-nav-button {
    width: 2.9rem;
    height: 2.9rem;
    font-size: 1.8rem;
  }

  .gallery-page {
    gap: 0.75rem;
  }

  .gallery-photo-button img,
  .gallery-image {
    aspect-ratio: 1;
  }

  .gallery-card h3 {
    font-size: 1.08rem;
  }

  .gallery-card p {
    font-size: 0.86rem;
  }

  .gallery-page-status {
    font-size: 0.84rem;
  }

  .gallery-lightbox {
    padding: 0.65rem;
  }

  .lightbox-dialog {
    width: 100%;
    max-height: calc(100svh - 1.3rem);
    border-radius: 12px;
  }

  .lightbox-figure img {
    max-height: 68svh;
  }

  .love-counter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    max-width: 100%;
    margin-top: 1.35rem;
  }

  .counter-item {
    padding: 0.62rem 0.35rem;
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(227, 38, 47, 0.13);
    border-radius: 12px;
    box-shadow: none;
  }

  .counter-number {
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1;
  }

  .counter-label {
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .is-mobile-intro:not(.is-story-started) {
    overflow: hidden;
  }

  .is-mobile-intro:not(.is-story-started) .site-header,
  .is-mobile-intro:not(.is-story-started) .content-section:not(.hero-section),
  .is-mobile-intro:not(.is-story-started) .site-footer {
    display: none;
  }

  .is-mobile-intro:not(.is-story-started) .hero-section {
    min-height: 100svh;
  }

  .is-mobile-intro:not(.is-story-started) .hero-layout {
    min-height: 100svh;
    align-content: center;
    padding: 1.5rem 0;
  }

  .is-mobile-intro:not(.is-story-started) .hero-photo {
    display: none;
  }

  .is-mobile-intro:not(.is-story-started) h1 {
    font-size: clamp(2.85rem, 15vw, 4.6rem);
  }

  .is-mobile-intro:not(.is-story-started) .love-counter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    margin-top: 1.25rem;
  }

  .is-mobile-intro:not(.is-story-started) .counter-item {
    padding: 0.56rem 0.3rem;
  }

  .is-mobile-intro:not(.is-story-started) .counter-number {
    font-size: clamp(1.22rem, 6.5vw, 1.8rem);
  }

  .is-mobile-intro:not(.is-story-started) .counter-label {
    font-size: 0.54rem;
  }

}

@media (min-width: 980px) {
  .origin-layout {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: 5rem 0;
  }

  .intercessor-layout {
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes portal-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes time-transition-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
