@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Monomakh&family=Ponomar&display=swap");

:root {
  --paper: #fff8ea;
  --paper-soft: #f5e8d1;
  --ink: #2f1b14;
  --muted: #725e52;
  --red: #ae111b;
  --red-dark: #760d13;
  --gold: #b98e35;
  --olive: #626d42;
  --shadow: 0 28px 90px rgba(68, 26, 16, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #ffffff;
  font-family: "Monomakh", Georgia, "Times New Roman", serif;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("./assets/bg-rus-landscape-v5.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: max(1500px, 118vw) auto;
  opacity: 0.78;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(var(--site-bg-scale, 1.04));
  transform-origin: center bottom;
  transition: transform 110ms linear;
}

.invite {
  position: relative;
  z-index: 1;
  display: flow-root;
  overflow: clip;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  text-align: center;
  background: transparent;
  opacity: var(--intro-screen-opacity, 1);
  transition: opacity 120ms linear;
}

.intro::before {
  content: none;
}

.intro::after {
  content: none;
}

.intro__text {
  position: relative;
  top: 0;
  z-index: 1;
  display: flex;
  height: 100svh;
  padding: clamp(32px, 6vw, 74px) clamp(18px, 5vw, 80px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: var(--intro-opacity, 1);
  animation: introTextAppear 900ms ease 360ms both;
  transform:
    translate3d(0, calc(var(--intro-y, 0) - 11vh), 0)
    scale(var(--intro-scale, 1));
  transition: opacity 120ms linear, transform 120ms linear;
  backface-visibility: hidden;
  transform-origin: center center;
  will-change: opacity, transform;
}

@keyframes introTextAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: var(--intro-opacity, 1);
  }
}

.eyebrow,
.date-line {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.eyebrow {
  color: var(--muted);
  font-family: "Ponomar", "Monomakh", Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.7vw, 20px);
}

.date-line {
  color: var(--red);
  font-family: "Ponomar", "Monomakh", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.55vw, 34px);
  text-shadow: 0 0 0.01px currentColor;
}

h1,
h2,
.map-placeholder strong {
  font-family: "Ponomar", "Monomakh", Georgia, "Times New Roman", serif;
}

.countdown strong,
.schedule time {
  font-family: "Monomakh", "Ponomar", Georgia, "Times New Roman", serif;
}

h1 {
  width: min(100%, 1320px);
  margin: 20px auto;
  font-size: clamp(40px, 10.2vw, 164px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0.012em 0 currentColor,
    -0.006em 0 currentColor,
    0 0.006em currentColor;
}

.name-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.ampersand {
  color: var(--red);
}

.countdown {
  position: static;
  top: var(--countdown-top, calc(50svh + 132px));
  bottom: auto;
  left: auto;
  z-index: 50;
  margin-top: clamp(30px, 3.8vh, 48px);
  width: var(--countdown-width, min(93vw, 620px));
  padding: 12px;
  border: 1px solid rgba(174, 17, 27, 0.42);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  opacity: var(--countdown-opacity, 1);
  pointer-events: var(--countdown-events, none);
  backdrop-filter: blur(8px);
  transform: none;
  transform-origin: center top;
  transition: opacity 180ms linear;
}

.countdown--docked {
  position: fixed;
  top: var(--countdown-top, clamp(18px, 5vh, 52px));
  left: 50%;
  margin-top: 0;
  transform: translateX(-50%) scale(var(--countdown-scale, 0.9));
}

.countdown--portal,
.countdown--docked {
  width: min(86vw, 520px);
}

@media (min-width: 861px) {
  .countdown {
    width: var(--countdown-width, min(86vw, 1120px));
  }

  .countdown--portal,
  .countdown--docked {
    width: min(76vw, 820px);
  }
}

.countdown::before {
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px solid rgba(185, 142, 53, 0.44);
  content: "";
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.countdown__grid div {
  min-width: 0;
  text-align: center;
}

.countdown strong {
  display: block;
  padding: 10px 3px 7px;
  border-bottom: 1px solid rgba(174, 17, 27, 0.34);
  color: var(--ink);
  font-size: clamp(42px, 7.2vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  display: block;
  padding-top: 7px;
  color: var(--muted);
  font-size: clamp(10px, 2.2vw, 14px);
}

.story-scroll {
  position: relative;
  margin-top: 240svh;
  height: 2200vh;
}

.sticky-scene {
  position: fixed;
  inset: 0;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  perspective: 1500px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
}

.background-lines {
  display: none;
}

.three-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: var(--scene-opacity, 0);
  pointer-events: none;
  transition: opacity 120ms linear;
}

.webgl-note {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 0;
  margin: 0;
  color: rgba(114, 94, 82, 0.72);
  font-size: 14px;
  transform: translate(-50%, -50%);
}

.story-card {
  position: absolute;
  top: 50%;
  right: auto;
  left: 50%;
  z-index: 5;
  display: flex;
  --card-side-offset: clamp(250px, 26vw, 460px);
  width: clamp(360px, 28vw, 520px);
  max-width: calc(100vw - (var(--card-side-offset) * 2) - 72px);
  height: clamp(420px, 66svh, 620px);
  max-height: calc(100svh - 156px);
  overflow: hidden;
  padding: clamp(28px, 3.8vw, 46px);
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(174, 17, 27, 0.46);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  opacity: var(--card-opacity, 0);
  text-align: center;
  transform:
    translate3d(calc(-50% + var(--card-offset, 0px) + var(--card-x, 0)), calc(-50% + var(--card-y, 0px)), var(--card-z, -1800px))
    scale(var(--card-scale, 0.96));
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: opacity 220ms ease, transform 520ms cubic-bezier(0.075, 0.5, 0, 1);
  backdrop-filter: none;
  will-change: opacity, transform;
}

.story-card::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(185, 142, 53, 0.42);
  pointer-events: none;
  content: "";
}

.story-card--left {
  --card-offset: calc(-1 * var(--card-side-offset));
  --hidden-x: -72vw;
}

.story-card--right {
  --card-offset: var(--card-side-offset);
  --hidden-x: 72vw;
}

.story-card--wide {
  width: clamp(440px, 34vw, 640px);
  max-width: calc(100vw - (var(--card-side-offset) * 2) - 72px);
}

.card-kicker {
  display: none;
}

.story-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.25vw, 46px);
  font-weight: 400;
  line-height: 0.96;
  text-shadow: 0.008em 0 currentColor;
}

.story-card p {
  margin: clamp(24px, 3vh, 32px) 0 0;
  color: var(--ink);
  font-size: clamp(18px, 1.42vw, 23px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.quote-card {
  right: auto;
  left: 50%;
  width: min(99vw, 1660px);
  height: min(82svh, 720px);
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  text-align: center;
  transform:
    translate3d(calc(-50% + var(--card-x, 0)), calc(-50% + var(--card-y, 0px)), var(--card-z, -1800px))
    scale(var(--card-scale, 0.96));
}

.quote-card::before {
  content: none;
}

.quote-card p {
  width: 100%;
  max-width: 1600px;
  margin: 0;
  color: #c40012;
  font-family: "Great Vibes", "Monomakh", Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6.4vw, 112px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}

.schedule {
  position: relative;
  width: min(100%, 530px);
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  --schedule-time-column: 104px;
  --schedule-gap: 44px;
  --schedule-dot-size: 17px;
  --schedule-time-size: 34px;
  --schedule-axis-offset: calc(var(--schedule-gap) / 2);
  --schedule-axis: calc(var(--schedule-time-column) + var(--schedule-axis-offset));
}

.schedule::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: var(--schedule-axis);
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--red), transparent);
}

.schedule li {
  position: relative;
  display: grid;
  grid-template-columns: var(--schedule-time-column) 1fr;
  gap: var(--schedule-gap);
  align-items: start;
  padding-bottom: 26px;
}

.schedule li::before {
  position: absolute;
  top: calc(var(--schedule-time-size) / 2 - var(--schedule-dot-size) / 2);
  left: calc(var(--schedule-axis) - var(--schedule-dot-size) / 2);
  width: var(--schedule-dot-size);
  height: var(--schedule-dot-size);
  border: 1px solid var(--red);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, var(--red) 0 4px, transparent 5px),
    var(--paper);
}

.schedule time {
  position: relative;
  z-index: 1;
  color: var(--red);
  font-size: var(--schedule-time-size);
  font-weight: 400;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.schedule h3 {
  margin: 0;
  color: var(--red);
  font-family: "Ponomar", "Monomakh", Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1.08;
}

.schedule p {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.palette i {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(47, 27, 20, 0.18);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 4px rgba(255, 248, 234, 0.45), 0 10px 24px rgba(47, 27, 20, 0.12);
}

.map-placeholder {
  display: grid;
  min-height: 240px;
  margin-top: 20px;
  border: 1px solid rgba(174, 17, 27, 0.4);
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

.map-address {
  margin: 16px 0 0;
  color: var(--ink);
  font-style: normal;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.35;
  text-align: center;
}

.map-address span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9em;
}

.portal-finale {
  position: fixed;
  right: auto;
  bottom: clamp(28px, 6vh, 64px);
  left: 50%;
  z-index: 16;
  opacity: var(--portal-opacity, 0);
  pointer-events: var(--portal-events, none);
  transform:
    translate3d(-50%, var(--portal-y, 24px), 0)
    scale(var(--portal-scale, 0.94));
  transition: opacity 160ms linear, transform 160ms linear;
}

.portal-finale .confirm-button {
  margin-top: 0;
}

.confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 30px;
  padding: 0 30px;
  border: 1px solid var(--red);
  color: var(--paper);
  background: var(--red);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(174, 17, 27, 0.23);
  cursor: pointer;
}

.confirm-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.rsvp-open {
  overflow: hidden;
}

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 42px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.rsvp-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rsvp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(7px);
}

.rsvp-modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100svh - clamp(36px, 8vw, 84px));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(190, 20, 30, 0.56);
  outline: 1px solid rgba(188, 164, 100, 0.5);
  outline-offset: -10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(49, 28, 19, 0.14);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.rsvp-modal.is-open .rsvp-modal__panel {
  transform: translateY(0) scale(1);
}

.rsvp-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--red);
  background: transparent;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.rsvp-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 0.95;
  text-align: center;
}

.rsvp-modal__lead {
  margin: 16px auto 26px;
  max-width: 430px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.35;
  text-align: center;
}

.rsvp-form {
  display: grid;
  gap: 18px;
}

.rsvp-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 20px);
}

.rsvp-field > span,
.rsvp-field legend {
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.1;
}

.rsvp-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
  min-width: 0;
}

.rsvp-field input[type="text"],
.rsvp-field textarea {
  width: 100%;
  border: 1px solid rgba(190, 20, 30, 0.45);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.35;
}

.rsvp-field input[type="text"] {
  min-height: 48px;
  padding: 10px 12px;
}

.rsvp-field textarea {
  resize: vertical;
  min-height: 104px;
  padding: 12px;
}

.rsvp-field input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.rsvp-submit {
  justify-self: center;
  margin-top: 4px;
}

.rsvp-status {
  min-height: 1.35em;
  margin: 0;
  color: var(--red);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.35;
  text-align: center;
}

.rsvp-submit-frame {
  display: none;
}

@media (max-width: 640px) {
  .rsvp-modal {
    align-items: start;
    justify-content: stretch;
    padding: 12px 12px max(28px, env(safe-area-inset-bottom));
  }

  .rsvp-modal__panel {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 30px 18px 22px;
  }

  .rsvp-modal__lead {
    margin-bottom: 18px;
  }

  .rsvp-form {
    gap: 14px;
  }

  .rsvp-field {
    font-size: clamp(16px, 4.2vw, 18px);
  }

  .rsvp-field > span,
  .rsvp-field legend {
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .rsvp-field label {
    align-items: flex-start;
  }

  .rsvp-field input[type="radio"] {
    margin-top: 0.18em;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .intro__text {
    padding-right: clamp(24px, 7vw, 72px);
    padding-left: clamp(24px, 7vw, 72px);
  }

  h1 {
    font-size: clamp(44px, 8.6vw, 96px);
    line-height: 0.86;
  }

  .date-line {
    font-size: clamp(18px, 2.4vw, 28px);
  }

  .countdown strong {
    font-size: clamp(42px, 5.8vw, 62px);
  }

  .story-card {
    right: auto;
    left: 50%;
    --card-side-offset: 0px;
    width: min(clamp(500px, 62vw, 640px), calc(100vw - 128px));
    max-width: calc(100vw - 128px);
    height: min(76svh, 620px);
    max-height: 76svh;
    padding: clamp(24px, 3.2vw, 38px);
    overflow: hidden;
    transform:
      translate3d(calc(-50% + var(--tablet-card-offset, 0px) + var(--card-x, 0px)), calc(-50% + var(--card-y, 0px)), var(--card-z, -1800px))
      scale(var(--card-scale, 0.96));
  }

  .story-card--left {
    --tablet-card-offset: 0px;
  }

  .story-card--right {
    --tablet-card-offset: 0px;
  }

  .story-card--wide {
    width: min(clamp(560px, 72vw, 700px), calc(100vw - 128px));
    max-width: calc(100vw - 128px);
  }

  .story-card h2 {
    font-size: clamp(28px, 3.8vw, 40px);
  }

  .story-card p {
    margin-top: clamp(22px, 3vh, 30px);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.48;
  }

  .quote-card {
    width: calc(100vw - 48px);
    height: min(76svh, 640px);
    --tablet-card-offset: 0px;
  }

  .quote-card p {
    font-size: clamp(38px, 4.9vw, 62px);
    line-height: 1.12;
    text-wrap: pretty;
  }

  .schedule-card {
    height: min(78svh, 650px);
  }

  .schedule {
    --schedule-time-column: clamp(76px, 9vw, 98px);
    --schedule-gap: clamp(28px, 4vw, 40px);
    --schedule-time-size: clamp(28px, 3.6vw, 34px);
  }

  .schedule h3 {
    font-size: clamp(19px, 2.25vw, 22px);
  }

  .schedule p {
    font-size: clamp(17px, 1.9vw, 20px);
  }

  .route-card {
    height: min(78svh, 650px);
    justify-content: flex-start;
  }

  .route-card .map-placeholder {
    min-height: 0;
    height: clamp(210px, 30svh, 300px);
  }

  .palette {
    margin-top: clamp(18px, 2.8vh, 24px);
  }

  .palette i {
    width: clamp(30px, 4vw, 36px);
    height: clamp(30px, 4vw, 36px);
  }
}

@media (max-width: 860px) {
  .story-scroll {
    height: 2300vh;
  }

  .intro__text {
    padding-right: clamp(16px, 5vw, 36px);
    padding-left: clamp(16px, 5vw, 36px);
    transform:
      translate3d(0, calc(var(--intro-y, 0) - 5vh), 0)
      scale(var(--intro-scale, 1));
  }

  h1 {
    font-size: clamp(36px, 12.2vw, 68px);
    line-height: 0.86;
  }

  .date-line {
    font-size: clamp(16px, 5vw, 24px);
    line-height: 1.35;
  }

  .countdown {
    width: var(--countdown-width, calc(100vw - 30px));
    padding: clamp(8px, 2.6vw, 12px);
  }

  .countdown--docked {
    left: 50%;
    transform: translateX(-50%) scale(var(--countdown-scale, 0.9));
  }

  .story-card {
    top: auto;
    right: clamp(24px, 7vw, 44px);
    bottom: 50%;
    left: clamp(24px, 7vw, 44px);
    width: auto;
    max-width: none;
    height: min(61svh, 520px);
    max-height: 61svh;
    overflow: hidden;
    transform:
      translate3d(var(--card-x, 0), calc(50% + var(--card-y, 0vh)), var(--card-z, -1800px))
      scale(var(--card-scale, 0.96));
    transition: opacity 120ms linear, transform 80ms linear;
  }

  .schedule-card {
    height: min(68svh, 560px);
    max-height: 68svh;
    overflow: hidden;
    padding: clamp(18px, 4.4vw, 28px);
  }

  .schedule-card h2 {
    font-size: clamp(30px, 8.6vw, 40px);
    line-height: 0.9;
  }

  .route-card {
    height: min(70svh, 590px);
    max-height: 70svh;
    overflow: hidden;
    justify-content: flex-start;
    padding: clamp(18px, 4.4vw, 28px);
  }

  .route-card h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 0.92;
  }

  .route-card > p {
    margin-top: clamp(16px, 3vh, 22px);
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.36;
  }

  .route-card .map-placeholder {
    min-height: 0;
    height: clamp(190px, 31svh, 270px);
    margin-top: clamp(16px, 3vh, 22px);
  }

  .route-card .map-placeholder iframe {
    min-height: 0;
    height: 100%;
  }

  .route-card .map-address {
    margin-top: clamp(10px, 2vh, 14px);
    font-size: clamp(16px, 4.4vw, 20px);
    line-height: 1.24;
  }

  .route-card .map-address span {
    margin-top: 2px;
    font-size: 0.82em;
  }

  .quote-card {
    right: clamp(22px, 6vw, 40px);
    left: clamp(22px, 6vw, 40px);
    width: auto;
    max-width: none;
    height: min(62svh, 540px);
    transform:
      translate3d(var(--card-x, 0), calc(50% + var(--card-y, 0vh)), var(--card-z, -1800px))
      scale(var(--card-scale, 0.96));
  }

  .quote-card p {
    font-size: clamp(42px, 11vw, 64px);
    line-height: 1.08;
    text-wrap: pretty;
  }

  .story-card--left,
  .story-card--right {
    --hidden-x: 0px;
  }

  .portal-finale {
    right: clamp(18px, 5vw, 32px);
    left: clamp(18px, 5vw, 32px);
    display: grid;
    place-items: center;
    transform:
      translate3d(0, var(--portal-y, 24px), 0)
      scale(var(--portal-scale, 0.94));
  }

  .schedule {
    width: 100%;
    margin-top: clamp(18px, 4vh, 26px);
    --schedule-time-column: clamp(50px, 15vw, 70px);
    --schedule-gap: clamp(32px, 9.5vw, 42px);
    --schedule-dot-size: 15px;
    --schedule-time-size: clamp(19px, 5.8vw, 28px);
    --schedule-axis-offset: calc(var(--schedule-gap) / 2);
  }

  .schedule li {
    padding-bottom: clamp(14px, 3.5vh, 20px);
  }

  .schedule time {
    font-size: var(--schedule-time-size);
  }

  .schedule h3 {
    font-size: clamp(16px, 4.6vw, 22px);
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .schedule p {
    margin-top: 6px;
    font-size: clamp(14px, 3.9vw, 19px);
    line-height: 1.22;
  }
}

@media (max-height: 760px) and (max-width: 860px) {
  .intro__text {
    transform:
      translate3d(0, calc(var(--intro-y, 0) - 3vh), 0)
      scale(var(--intro-scale, 1));
  }

  .countdown {
    margin-top: clamp(18px, 2.6vh, 30px);
  }

  .story-card {
    height: min(70svh, 500px);
    max-height: 70svh;
    padding-top: clamp(14px, 3vh, 20px);
    padding-bottom: clamp(14px, 3vh, 20px);
  }

  .story-card h2 {
    font-size: clamp(25px, 7.2vw, 34px);
  }

  .story-card p {
    margin-top: clamp(12px, 2.2vh, 18px);
    font-size: clamp(15px, 4.1vw, 18px);
    line-height: 1.28;
  }

  .schedule-card {
    height: min(74svh, 520px);
    max-height: 74svh;
  }

  .schedule {
    margin-top: clamp(10px, 2vh, 16px);
    --schedule-time-column: clamp(48px, 14.5vw, 58px);
    --schedule-gap: clamp(32px, 9vw, 40px);
    --schedule-dot-size: 13px;
    --schedule-time-size: clamp(18px, 5.2vw, 23px);
    --schedule-axis-offset: calc(var(--schedule-gap) / 2);
  }

  .schedule li {
    padding-bottom: clamp(8px, 1.8vh, 12px);
  }

  .schedule h3 {
    font-size: clamp(14px, 3.9vw, 17px);
    letter-spacing: 0.01em;
  }

  .schedule p {
    font-size: clamp(12px, 3.3vw, 15px);
  }

  .route-card {
    height: min(76svh, 540px);
    max-height: 76svh;
  }

  .route-card .map-placeholder {
    height: clamp(120px, 22svh, 190px);
  }

  .route-card .map-address {
    margin-top: 8px;
  }

  .quote-card {
    height: min(62svh, 540px);
  }
}

@media (max-width: 460px) {
  .intro__text {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: clamp(30px, 10.6vw, 47px);
  }

  .eyebrow {
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .date-line {
    font-size: clamp(13px, 3.75vw, 17px);
    letter-spacing: 0.07em;
  }

  .countdown__grid {
    gap: clamp(3px, 1.5vw, 6px);
  }

  .countdown strong {
    padding: 8px 1px 6px;
    font-size: clamp(30px, 10vw, 42px);
  }

  .countdown span {
    padding-top: 6px;
    font-size: clamp(8px, 2.4vw, 10px);
  }

  .portal-finale {
    bottom: clamp(56px, 9vh, 88px);
  }

  .portal-finale .confirm-button {
    min-height: 52px;
    padding: 0 clamp(22px, 8vw, 34px);
    font-size: clamp(13px, 4vw, 16px);
  }

  .story-card {
    right: clamp(22px, 7vw, 34px);
    left: clamp(22px, 7vw, 34px);
    height: min(66svh, 500px);
    max-height: 66svh;
    padding: clamp(16px, 4.2vw, 22px);
  }

  .story-card h2 {
    font-size: clamp(27px, 7.6vw, 34px);
  }

  .story-card p {
    margin-top: clamp(18px, 3vh, 24px);
    font-size: clamp(17px, 4.7vw, 20px);
    line-height: 1.42;
  }

  .schedule-card {
    height: min(66svh, 500px);
    max-height: 66svh;
  }

  .schedule-card h2 {
    font-size: clamp(27px, 7.4vw, 34px);
  }

  .schedule {
    margin-top: clamp(14px, 2.8vh, 20px);
    --schedule-time-column: clamp(46px, 14vw, 54px);
    --schedule-gap: clamp(34px, 10vw, 42px);
    --schedule-dot-size: 13px;
    --schedule-time-size: clamp(17px, 4.9vw, 21px);
    --schedule-axis-offset: calc(var(--schedule-gap) / 2);
  }

  .schedule li {
    padding-bottom: clamp(10px, 2.3vh, 15px);
  }

  .schedule h3 {
    font-size: clamp(14px, 3.95vw, 17px);
    line-height: 1.02;
    letter-spacing: 0;
  }

  .schedule p {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.2;
  }

  .palette {
    gap: 10px;
    margin-top: 18px;
  }

  .palette i {
    width: clamp(28px, 8vw, 34px);
    height: clamp(28px, 8vw, 34px);
  }

  .route-card {
    height: min(62svh, 500px);
    max-height: 62svh;
  }

  .route-card h2 {
    font-size: clamp(27px, 7.4vw, 34px);
  }

  .route-card > p {
    margin-top: clamp(10px, 2vh, 16px);
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.24;
  }

  .route-card .map-placeholder {
    height: clamp(138px, 23svh, 205px);
    margin-top: clamp(10px, 2vh, 16px);
  }

  .route-card .map-address {
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.2;
  }

  .quote-card {
    height: min(62svh, 540px);
  }

  .quote-card p {
    font-size: clamp(39px, 11.8vw, 54px);
    line-height: 1.08;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: clamp(28px, 9.6vw, 35px);
  }

  .date-line {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .countdown strong {
    font-size: clamp(27px, 9.4vw, 34px);
  }

  .countdown span {
    font-size: 7px;
  }

  .story-card {
    height: min(66svh, 470px);
    max-height: 66svh;
    padding: 14px;
  }

  .story-card h2,
  .schedule-card h2,
  .route-card h2 {
    font-size: clamp(24px, 7vw, 29px);
  }

  .story-card p {
    font-size: 15px;
  }

  .quote-card p {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.1;
  }

  .route-card .map-placeholder {
    height: clamp(132px, 24svh, 180px);
  }
}

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