:root {
  --blue-cnp: #2d418f;
  --text-dark: #56585d;
}

@font-face {
  font-family: "Rawline";
  src: url("./rawline/rawline-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Rawline";
  src: url("./rawline/rawline-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Rawline";
  src: url("./rawline/rawline-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  background: #dbdbdf;
  overflow-x: hidden;
  font-family: "Rawline", Inter, Avenir, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 10;
  transition: opacity 0.15s linear;
  pointer-events: none;
  background: var(--blue-cnp);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(24px, 6vw, 64px);
  will-change: opacity;
}

.intro-fade-spacer {
  height: 115vh;
}

.hero-text {
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.2;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.scroll-hint-label {
  font-weight: 400;
}

.scroll-hint-icon {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  display: inline-flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-hint-dot {
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  animation: scrollHint 1.25s ease-in-out infinite;
}

@keyframes scrollHint {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(11px);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.bg-logo {
  position: fixed;
  right: -42vw;
  top: 45%;
  width: 122vw;
  height: auto;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.45s ease, right 0.8s ease, top 0.8s ease, width 0.8s ease;
}

.invite-yellow-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #f2cb12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.invite-yellow-layer.is-visible {
  opacity: 1;
}

.bg-logo.is-agenda-stage {
  right: -14vw;
  top: 44%;
  width: 168vw;
}

.bg-logo.is-next-stage {
  right: -54vw;
  top: 45%;
  width: 176vw;
}

.bg-logo.is-third-stage {
  right: -108vw;
  top: 45%;
  width: 198vw;
}

.bg-logo.is-fourth-stage {
  right: -18vw;
  top: 60%;
  width: 172vw;
}

.bg-logo.is-fifth-stage {
  right: -92vw;
  top: 72%;
  width: 264vw;
}

.bg-logo.is-hidden {
  opacity: 0;
}

.timeline {
  position: relative;
  min-height: 760vh;
  margin-top: -15vh;
  z-index: 2;
}

.sticky-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  opacity: 1;
}

.scene-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.copy-stack {
  position: fixed;
  left: clamp(24px, 7.2vw, 88px);
  top: 50%;
  transform: translateY(-50%);
  width: min(640px, 60vw);
  z-index: 3;
  pointer-events: auto;
}

.copy-item {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.015em;
  font-size: clamp(16px, 1.8vw, 30px);
  line-height: 1.12;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  max-width: none;
  pointer-events: none;
  visibility: hidden;
}

.copy-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.copy-item:nth-child(1) {
  font-size: clamp(22px, 2.2vw, 30px);
  max-width: none;
}

.copy-line-keep {
  white-space: nowrap;
}

.copy-item:nth-child(2) {
  text-transform: none;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #1f2229;
  max-width: none;
}

.copy-item.agenda-right {
  position: absolute;
  top: 0;
  left: auto;
  right: -48vw;
  transform: translateY(34px);
  z-index: 4;
}

.copy-item.agenda-right.is-active {
  transform: translateY(0);
}

.copy-item.reception-right {
  position: absolute;
  top: 0;
  left: auto;
  right: -52vw;
  transform: translateY(34px);
  z-index: 4;
}

.copy-item.reception-right.is-active {
  transform: translateY(0);
}

@media (max-width: 1400px) {
  .copy-item.agenda-right {
    right: -38vw;
  }

  .copy-item.reception-right {
    right: -42vw;
  }
}

@media (max-width: 1200px) {
  .copy-item.agenda-right {
    right: -26vw;
  }

  .copy-item.reception-right {
    right: -30vw;
  }
}

@media (max-width: 1024px) {
  .copy-item.agenda-right {
    right: -14vw;
  }

  .copy-item.reception-right {
    right: -18vw;
  }
}

.agenda-light {
  font-weight: 300;
  color: #2c2f36;
}

.agenda-strong {
  font-weight: 700;
  color: #6a6d75;
  display: inline-block;
}

.copy-item:nth-child(2) .agenda-strong:first-of-type {
  font-size: 1.62em;
  line-height: 1;
}

.date-pill {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 4px 12px 5px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.copy-item:nth-child(2) .agenda-strong:last-of-type {
  font-size: 0.72em;
  font-weight: 400;
  color: #8b8d94;
}

.copy-item:nth-child(3),
.copy-item:nth-child(4),
.copy-item:nth-child(5),
.copy-item:nth-child(6) {
  color: var(--text-dark);
  font-size: clamp(20px, 2vw, 28px);
  max-width: none;
  text-shadow: none;
  white-space: nowrap;
}

.copy-logo-final {
  position: fixed;
  left: 50vw;
  top: 50vh;
  width: min(420px, 58vw);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) translateY(34px);
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.25));
}

.copy-logo-final.is-active {
  position: fixed;
  left: 50vw;
  top: 50vh;
  transform: translate(-50%, -50%) !important;
  visibility: visible !important;
}

.confirm-btn {
  position: relative;
  z-index: 6;
  display: inline-block;
  margin-top: 12px;
  padding: 10px 28px;
  border: 0;
  border-radius: 0;
  background: #ececef;
  color: #7e8087;
  font: inherit;
  font-weight: 300;
  font-size: 0.92em;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.confirm-btn:hover {
  background: #e3e4e8;
  color: #6f7178;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-overlay:target {
  display: flex;
}

.modal-card {
  width: min(480px, 92vw);
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px 18px 18px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d3d6dd;
  background: #f6f7fa;
  color: #6b6f79;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

.modal-close:hover {
  background: #eceff4;
  border-color: #c4c9d3;
  color: #4f5563;
}

.modal-title {
  color: #2d418f;
  font-size: 24px;
  margin-bottom: 14px;
}

.confirm-form {
  display: grid;
  gap: 10px;
}

.form-label {
  font-size: 14px;
  color: #3f4350;
}

.form-input {
  width: 100%;
  border: 1px solid #c9ccd3;
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
}

.form-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 4px;
  padding: 11px 14px;
  background: #2d418f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.confirm-success {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding-top: 6px;
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d418f;
}

.success-text {
  font-size: 14px;
  color: #636874;
}

.success-qrcode {
  width: min(220px, 62vw);
  height: auto;
  border-radius: 8px;
  border: 1px solid #dde1ea;
  background: #ffffff;
  padding: 8px;
}

.save-qrcode-btn {
  margin-top: 4px;
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  background: #2d418f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
}

.scroll-track {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.track-step {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(45, 65, 143, 0.2);
  transform: scaleX(0.78);
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.track-step.is-active {
  background: #2d418f;
  transform: scaleX(1);
}

@media (max-width: 900px) {
  .timeline {
    min-height: 760vh;
  }

  .bg-logo {
    width: 240vw;
    right: -126vw;
    top: 50%;
    opacity: 0.72;
  }

  .bg-logo.is-agenda-stage {
    width: 360vw !important;
    right: -8vw !important;
    top: 47% !important;
  }

  .bg-logo.is-next-stage {
    width: 250vw;
    right: -132vw;
    top: 49%;
  }

  .bg-logo.is-third-stage {
    width: 230vw;
    right: -130vw;
    top: 50%;
  }

  .bg-logo.is-fourth-stage {
    width: 210vw;
    right: -58vw;
    top: 58%;
  }

  .bg-logo.is-fifth-stage {
    width: 250vw;
    right: -150vw;
    top: 74%;
  }

  .copy-stack {
    left: 16px;
    top: 52%;
    width: calc(100vw - 32px);
  }

  .copy-item {
    font-size: clamp(17px, 5.2vw, 24px);
    line-height: 1.16;
    max-width: 88vw;
    white-space: normal;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
  }

  .copy-item:nth-child(1) {
    font-size: clamp(21px, 6vw, 28px);
  }

  .copy-item:nth-child(3),
  .copy-item:nth-child(4),
  .copy-item:nth-child(5),
  .copy-item:nth-child(6) {
    font-size: clamp(18px, 5.4vw, 24px);
    white-space: normal;
  }

  .copy-item:nth-child(2) {
    font-size: clamp(16px, 4.4vw, 22px);
  }

  .copy-item.agenda-right {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(34px);
    max-width: 78vw;
  }

  .copy-item.agenda-right.is-active {
    transform: translateX(0) translateY(0);
  }

  .copy-item.reception-right {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(34px);
    max-width: 80vw;
  }

  .copy-item.reception-right.is-active {
    transform: translateX(0) translateY(0);
  }

  .copy-logo-final {
    width: min(68vw, 290px);
  }

  .scroll-track {
    bottom: 12px;
    gap: 6px;
    padding: 6px 8px;
  }

  .track-step {
    width: 24px;
  }
}
