@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakhFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakhFaNum-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakhFaNum-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-ink: #071a33;
  --color-navy: #1e3b84;
  --color-blue: #1a71a1;
  --color-cyan: #02adbf;
  --color-paper: #f6fafc;
  --color-muted: #6b7280;
  --color-border: #d9e4ea;
  --font-brand: "Yekan Bakh", Tahoma, Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --slide-height: 100svh;
}

@supports (height: 100dvh) {
  :root {
    --slide-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--color-ink);
}

body {
  color: #fff;
  font-family: var(--font-brand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

::selection {
  color: #fff;
  background: var(--color-cyan);
}

.invitation-shell {
  position: relative;
  height: var(--slide-height);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.invitation-shell::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  isolation: isolate;
  display: grid;
  height: var(--slide-height);
  min-height: var(--slide-height);
  align-items: center;
  overflow: hidden;
  padding: max(118px, calc(env(safe-area-inset-top) + 104px))
    clamp(22px, 7vw, 112px)
    max(82px, calc(env(safe-area-inset-bottom) + 64px));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide:not([data-slide="0"]) {
  padding-top: max(52px, calc(env(safe-area-inset-top) + 38px));
}

.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity 620ms var(--ease-out-expo),
    transform 720ms var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.slide::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: 0.38;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.slide--ink {
  color: #fff;
  background: var(--color-ink);
}

.slide--paper {
  color: #08182c;
  background: var(--color-paper);
}

.slide--paper::before,
.slide--map::before {
  opacity: 0.7;
  background-image: linear-gradient(rgba(7, 26, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 51, 0.045) 1px, transparent 1px);
}

.slide--blue {
  color: #fff;
  background: var(--color-navy);
}

.slide--map {
  color: #08182c;
  background: #edf8fa;
}

.slide-content {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.slide-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--color-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.slide-kicker::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.display-title {
  max-width: 870px;
  margin: 0;
  font-size: clamp(48px, 13vw, 124px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.display-title em {
  display: block;
  color: var(--color-cyan);
  font-style: normal;
}

.hero-note {
  max-width: 590px;
  margin: 28px 0 0;
  color: #cbd8e5;
  font-size: clamp(15px, 3.8vw, 19px);
  line-height: 1.95;
}

.event-label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-block: 0 22px;
  padding: 7px 12px;
  border: 1px solid rgba(2, 173, 191, 0.42);
  color: #e8fdff;
  background: rgba(2, 173, 191, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.invitation-data-status {
  width: fit-content;
  margin: -10px 0 20px;
  padding: 7px 10px;
  border-right: 2px solid var(--color-cyan);
  color: #b8cad9;
  background: rgba(7, 26, 51, 0.34);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.7;
}

.invitation-data-status.is-loaded {
  color: #d6fcff;
}

.invitation-data-status.is-sample {
  border-right-color: #f2c777;
  color: #ffe8b5;
}

.invitation-data-status.is-error {
  border-right-color: #f2c777;
  color: #ffe8b5;
}

.brand-lockup {
  position: absolute;
  z-index: 5;
  top: max(14px, env(safe-area-inset-top));
  right: auto;
  left: clamp(22px, 7vw, 112px);
  display: grid;
  width: 120px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-artwork {
  display: block;
  width: 100%;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.motion-enabled .slide.is-active .slide-kicker::before {
  animation: kicker-draw 760ms var(--ease-out-expo) both;
}

.motion-enabled .slide.is-active .recipient-card::after {
  animation: accent-draw 820ms 180ms var(--ease-out-expo) both;
}

.motion-enabled .slide.is-active .detail-item {
  animation: detail-rise 700ms var(--detail-delay, 100ms) var(--ease-out-expo) both;
}

.motion-enabled .slide.is-active .detail-item:nth-child(2) {
  --detail-delay: 170ms;
}

.motion-enabled .slide.is-active .detail-item:nth-child(3) {
  --detail-delay: 240ms;
}

.motion-enabled .slide.is-active .detail-item:nth-child(4) {
  --detail-delay: 310ms;
}

.motion-enabled .slide.is-active .map-figure {
  animation: map-arrive 900ms 120ms var(--ease-out-expo) both;
}

.motion-enabled .slide.is-active .story-poster {
  animation: story-arrive 900ms 80ms var(--ease-out-expo) both;
}

.motion-enabled .slide.is-active .story-halo--one {
  animation: halo-bloom 1100ms 300ms var(--ease-out-expo) both;
}

.motion-enabled .slide.is-active .closing-beam {
  animation: beam-sweep 1100ms 120ms var(--ease-out-expo) both;
}

@keyframes kicker-draw {
  from {
    transform: scaleX(0);
    transform-origin: right;
  }
  to {
    transform: scaleX(1);
    transform-origin: right;
  }
}

@keyframes accent-draw {
  from {
    transform: scaleX(0);
    transform-origin: right;
  }
  to {
    transform: scaleX(1);
    transform-origin: right;
  }
}

@keyframes detail-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes map-arrive {
  from {
    opacity: 0;
    transform: translate3d(-26px, 14px, 0) rotate(-1deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes story-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) rotate(0.7deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes halo-bloom {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes beam-sweep {
  from {
    opacity: 0;
    transform: translate3d(28%, 0, 0) rotate(-14deg) scaleX(0.7);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-14deg) scaleX(1);
  }
}

.edition-mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -0.07em;
  transform: translateY(-50%);
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: clamp(220px, 70vw, 760px);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.12em;
  opacity: 0.15;
  -webkit-text-stroke: 1px #fff;
  user-select: none;
}

.orbit {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 8%;
  width: min(62vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(2, 173, 191, 0.48);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit::before {
  inset: 14%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.orbit::after {
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--color-cyan);
  box-shadow: 0 0 0 8px rgba(2, 173, 191, 0.14);
}

.signal-ribbon {
  position: absolute;
  z-index: -1;
  display: block;
  width: min(72vw, 820px);
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(2, 173, 191, 0.95), transparent);
  box-shadow: 0 0 24px rgba(2, 173, 191, 0.38);
}

.signal-ribbon::after {
  position: absolute;
  top: -3px;
  right: 23%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a3f7fb;
  box-shadow: 0 0 0 7px rgba(2, 173, 191, 0.12);
  content: "";
}

.signal-ribbon--one {
  top: 31%;
  right: -18%;
}

.signal-ribbon--two {
  bottom: 22%;
  left: -22%;
}

.motion-enabled .slide.is-active .orbit {
  animation: orbit-drift 24s linear infinite;
}

.motion-enabled .slide.is-active .signal-ribbon--one {
  animation: signal-sweep-one 5.6s ease-in-out infinite alternate;
}

.motion-enabled .slide.is-active .signal-ribbon--two {
  animation: signal-sweep-two 6.4s ease-in-out 260ms infinite alternate;
}

.motion-enabled .slide.is-active .edition-mark {
  animation: edition-breathe 7s ease-in-out infinite;
}

.motion-enabled .slide.is-active .next-control {
  animation: next-nudge 2.6s ease-in-out 900ms infinite;
}

@keyframes orbit-drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes signal-sweep-one {
  from {
    opacity: 0.34;
    transform: translate3d(-7%, 0, 0) scaleX(0.9);
  }
  to {
    opacity: 0.92;
    transform: translate3d(7%, 0, 0) scaleX(1.08);
  }
}

@keyframes signal-sweep-two {
  from {
    opacity: 0.25;
    transform: translate3d(8%, 0, 0) scaleX(0.92);
  }
  to {
    opacity: 0.78;
    transform: translate3d(-8%, 0, 0) scaleX(1.04);
  }
}

@keyframes edition-breathe {
  0%,
  100% {
    opacity: 0.11;
    transform: translate3d(0, -50%, 0) scale(0.985);
  }
  50% {
    opacity: 0.19;
    transform: translate3d(1.5%, -50%, 0) scale(1.015);
  }
}

@keyframes next-nudge {
  0%,
  76%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  86% {
    transform: translate3d(0, 5px, 0);
  }
  93% {
    transform: translate3d(0, -2px, 0);
  }
}

.next-control {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 7vw, 112px);
  bottom: max(22px, env(safe-area-inset-bottom));
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  transition: color 200ms ease, background 200ms ease;
}

.next-control:hover,
.next-control:focus-visible {
  color: #fff;
  background: var(--color-cyan);
  outline: 3px solid rgba(2, 173, 191, 0.28);
  outline-offset: 4px;
}

.slide-number {
  position: absolute;
  right: clamp(22px, 7vw, 112px);
  bottom: max(32px, env(safe-area-inset-bottom));
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.5;
}

.progress-rail {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: max(4px, env(safe-area-inset-left));
  display: grid;
  gap: 4px;
  transform: translateY(-50%);
}

.progress-dot {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #8c9aaa;
  background: transparent;
  cursor: pointer;
}

.progress-dot::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.72;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  transition: height 220ms var(--ease-out-expo), opacity 220ms ease,
    border-radius 220ms ease, background 220ms ease;
}

.progress-dot.is-active::before {
  width: 5px;
  height: 28px;
  border-radius: 10px;
  background: var(--color-cyan);
  box-shadow: none;
  opacity: 1;
}

.progress-dot:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: -5px;
}

.next-control:active,
.progress-dot:active,
.review-button:active,
.map-link:active,
.calendar-button:active,
.story-action:active {
  opacity: 0.72;
}

.recipient-layout {
  display: grid;
  gap: clamp(34px, 8vw, 84px);
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 10vw, 92px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.recipient-card {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(24px, 6vw, 52px) 0 0;
  border-top: 3px solid #08182c;
}

.recipient-card::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 34%;
  height: 3px;
  content: "";
  background: var(--color-cyan);
}

.recipient-label {
  margin: 0 0 9px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.recipient-name {
  margin: 0;
  font-size: clamp(30px, 7vw, 58px);
  font-weight: 900;
  line-height: 1.2;
}

.recipient-role {
  margin: 8px 0 0;
  color: #526172;
  font-size: clamp(14px, 3.5vw, 18px);
  line-height: 1.8;
}

.invitation-copy {
  max-width: 650px;
  margin: 0;
  color: #273649;
  font-size: clamp(16px, 4vw, 21px);
  line-height: 2;
}

.meeting-purpose {
  max-width: 650px;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-right: 3px solid var(--color-cyan);
  color: #21394c;
  background: rgba(2, 173, 191, 0.08);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
}

.meeting-purpose span {
  display: block;
  color: #147488;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.signature::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--color-cyan);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(24px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.17);
}

.detail-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-height: 116px;
  align-items: center;
  padding: 16px 18px;
  background: var(--color-navy);
}

.detail-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #78e5ee;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.detail-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.detail-label {
  margin: 0 0 5px;
  color: #9eeaf0;
  font-size: 11px;
  font-weight: 800;
}

.detail-value {
  margin: 0;
  font-size: clamp(16px, 3.7vw, 22px);
  font-weight: 800;
  line-height: 1.55;
}

.source-note {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.8;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
}

.calendar-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #7ce7ee;
  color: #062a3a;
  background: #9ff2f5;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.calendar-button:hover,
.calendar-button:focus-visible {
  border-color: #fff;
  color: var(--color-navy);
  background: #fff;
  outline: 3px solid rgba(159, 242, 245, 0.24);
  outline-offset: 3px;
}

.calendar-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.map-layout {
  display: grid;
  gap: clamp(18px, 4vw, 50px);
  align-items: center;
}

.map-title {
  max-width: 560px;
  font-size: clamp(35px, 8.2vw, 76px);
}

.map-description {
  max-width: 540px;
  margin: 20px 0 0;
  color: #526172;
  font-size: clamp(14px, 3.4vw, 18px);
  line-height: 1.9;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.map-ambient {
  position: absolute;
  z-index: -1;
  top: 9%;
  left: -12%;
  width: min(62vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(2, 173, 191, 0.32), transparent 68%);
  filter: blur(14px);
}

.map-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #9fb5c2;
  color: #18344b;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.map-link--primary {
  border-color: var(--color-cyan);
  color: #fff;
  background: var(--color-cyan);
}

.map-link:hover,
.map-link:focus-visible {
  border-color: var(--color-navy);
  color: #fff;
  background: var(--color-navy);
  outline: 3px solid rgba(2, 173, 191, 0.22);
  outline-offset: 3px;
}

.map-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.map-figure {
  position: relative;
  width: min(100%, 46svh);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(30, 59, 132, 0.14);
  background: #fff;
  box-shadow: 0 24px 64px rgba(30, 59, 132, 0.16);
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
}

.booth-marker {
  position: absolute;
  top: 50%;
  left: 39%;
  display: grid;
  min-width: 86px;
  transform: translate(-50%, -50%);
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  color: #fff;
  background: var(--color-navy);
  box-shadow: 0 8px 24px rgba(7, 26, 51, 0.34);
  text-align: center;
}

.booth-marker strong {
  position: relative;
  z-index: 1;
  font-size: 10px;
  line-height: 1.5;
}

.booth-marker > span:last-child {
  position: relative;
  z-index: 1;
  color: #a7eff4;
  font-size: 8px;
  font-weight: 800;
}

.booth-marker small {
  position: relative;
  z-index: 1;
  color: #a7eff4;
  font-size: 8px;
}

.marker-pulse {
  position: absolute;
  z-index: -1;
  inset: -8px;
  border: 2px solid var(--color-cyan);
  border-radius: 8px;
  animation: marker-pulse 1.8s var(--ease-out-expo) infinite;
}

@keyframes marker-pulse {
  0% {
    transform: scale(0.86);
    opacity: 0.9;
  }
  78%,
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.slide--story {
  color: #fff;
  background: #06172d;
  padding-block: max(94px, calc(env(safe-area-inset-top) + 82px))
    max(66px, calc(env(safe-area-inset-bottom) + 52px));
}

.slide--story::before {
  opacity: 0.5;
  background-image: linear-gradient(rgba(2, 173, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 173, 191, 0.05) 1px, transparent 1px);
}

.story-layout {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.story-poster {
  position: relative;
  display: flex;
  height: min(60svh, 670px);
  aspect-ratio: 9 / 16;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(152, 238, 245, 0.26);
  color: #fff;
  background:
    linear-gradient(156deg, rgba(30, 59, 132, 0.9), rgba(7, 26, 51, 0.98) 52%, #052a41),
    #071a33;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.story-poster::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-cyan), var(--color-blue));
  content: "";
}

.story-halo {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.story-halo--one {
  top: -16%;
  left: -33%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(127, 238, 246, 0.28);
  box-shadow: inset 0 0 70px rgba(2, 173, 191, 0.12);
}

.story-halo--one::before,
.story-halo--one::after {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.story-halo--one::before {
  inset: 17%;
}

.story-halo--one::after {
  inset: 34%;
}

.story-halo--two {
  right: -36%;
  bottom: -12%;
  width: 88%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(2, 173, 191, 0.34), transparent 66%);
  filter: blur(10px);
}

.story-edition {
  position: absolute;
  z-index: 0;
  top: 34%;
  left: -0.1em;
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: clamp(160px, 42svh, 330px);
  font-weight: 900;
  line-height: 0.75;
  opacity: 0.11;
  -webkit-text-stroke: 1px #fff;
}

.story-brand {
  position: relative;
  z-index: 2;
  width: 78px;
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.story-top {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: ltr;
}

.story-avatar {
  display: grid;
  width: clamp(66px, 17vw, 82px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: #eafdff;
  background: linear-gradient(145deg, rgba(2, 173, 191, 0.56), rgba(30, 59, 132, 0.96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28), 0 0 0 5px rgba(2, 173, 191, 0.12);
  font-size: 22px;
  font-weight: 900;
}

.story-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  position: relative;
  z-index: 2;
}

.story-eyebrow {
  margin: 0 0 14px;
  color: #86edf3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(16px, 2.8svh, 27px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.story-copy h2 span {
  display: block;
  color: #79e9f0;
  font-weight: 900;
}

.story-signoff {
  margin: 14px 0 0;
  font-size: clamp(14px, 2.2svh, 21px);
  font-weight: 900;
}

.story-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #d5e7ef;
  font-size: 10px;
  font-weight: 800;
}

.story-actions {
  display: flex;
  width: min(100%, 420px);
  flex-wrap: wrap;
  gap: 8px;
}

.story-action {
  display: inline-flex;
  min-height: 48px;
  flex: 1 1 124px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-action--primary {
  border-color: var(--color-cyan);
  background: var(--color-cyan);
}

.story-action:hover,
.story-action:focus-visible {
  border-color: #fff;
  color: var(--color-ink);
  background: #fff;
  outline: 3px solid rgba(2, 173, 191, 0.26);
  outline-offset: 3px;
}

.story-action svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.story-instruction {
  margin: 0;
  color: #9fb4c6;
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

.story-exit-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-exit-layer:focus-visible {
  outline: 4px solid var(--color-cyan);
  outline-offset: -8px;
}

.is-story-mode {
  overflow: hidden;
  scroll-snap-type: none;
}

.is-story-mode .progress-rail,
.is-story-mode .story-slide > .brand-lockup,
.is-story-mode .story-actions,
.is-story-mode .story-instruction,
.is-story-mode .story-slide > .next-control {
  display: none;
}

.is-story-mode .story-slide {
  position: fixed;
  z-index: 100;
  inset: 0;
  height: var(--slide-height);
  min-height: var(--slide-height);
  padding: 0;
}

.is-story-mode .story-layout {
  display: grid;
  width: 100%;
  height: var(--slide-height);
  place-items: center;
}

.is-story-mode .story-poster {
  width: min(100%, 56.25svh);
  height: var(--slide-height);
  border: 0;
  box-shadow: none;
}

.camera-backdrop {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(2, 13, 26, 0.84);
  backdrop-filter: blur(12px);
}

.camera-dialog {
  width: min(100%, 430px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(126, 235, 243, 0.25);
  color: #fff;
  background: #071a33;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.camera-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.camera-header p,
.camera-header h2 {
  margin: 0;
}

.camera-header p {
  color: #80eaf1;
  font-size: 10px;
  font-weight: 800;
}

.camera-header h2 {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
}

.camera-close {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.camera-close:hover,
.camera-close:focus-visible {
  border-color: #fff;
  color: var(--color-ink);
  background: #fff;
  outline: 3px solid rgba(2, 173, 191, 0.28);
  outline-offset: 3px;
}

.camera-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.camera-preview,
.camera-error {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 235, 243, 0.22);
  background: #03111f;
}

.camera-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-preview > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b8cad9;
  background: rgba(3, 17, 31, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.camera-error {
  align-content: center;
  gap: 12px;
  padding: 28px;
  color: #ffe9bb;
  text-align: center;
}

.camera-error svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}

.camera-error p,
.camera-error small {
  margin: 0;
}

.camera-error p {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.9;
}

.camera-error small {
  color: #aebfcd;
  font-size: 10px;
  line-height: 1.8;
}

.camera-controls {
  display: grid;
  margin-top: 14px;
}

.camera-capture,
.camera-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--color-cyan);
  color: #fff;
  background: var(--color-cyan);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.camera-capture > span {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.camera-capture:hover,
.camera-capture:focus-visible,
.camera-secondary:hover,
.camera-secondary:focus-visible {
  border-color: #fff;
  color: var(--color-ink);
  background: #fff;
  outline: 3px solid rgba(2, 173, 191, 0.28);
  outline-offset: 3px;
}

.camera-capture:disabled {
  cursor: wait;
  opacity: 0.48;
}

.camera-canvas {
  display: none;
}

.feedback-toast {
  position: fixed;
  z-index: 140;
  right: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  min-width: min(310px, calc(100vw - 36px));
  transform: translate3d(50%, 16px, 0);
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  background: #051a2d;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 200ms ease, transform 200ms var(--ease-out-expo);
}

.feedback-toast.is-visible {
  transform: translate3d(50%, 0, 0);
  opacity: 1;
}

.closing-beam {
  position: absolute;
  z-index: -1;
  top: 14%;
  right: -22%;
  width: min(84vw, 940px);
  height: 42%;
  transform: rotate(-14deg);
  background: linear-gradient(90deg, transparent, rgba(2, 173, 191, 0.12), transparent);
  filter: blur(18px);
}

.closing-grid {
  display: grid;
  gap: clamp(44px, 10vw, 96px);
}

.closing-quote {
  max-width: 850px;
  margin: 0;
  font-size: clamp(44px, 11vw, 104px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.closing-quote span {
  color: var(--color-cyan);
}

.inviter-block {
  display: grid;
  max-width: 610px;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.inviter-block small {
  color: #9badc1;
  font-size: 11px;
  font-weight: 800;
}

.inviter-block strong {
  font-size: clamp(19px, 4.5vw, 28px);
  line-height: 1.5;
}

.inviter-block p {
  margin: 0;
  color: #9badc1;
  font-size: 13px;
  line-height: 1.8;
}

.review-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: start;
  padding: 12px 22px;
  border: 1px solid var(--color-cyan);
  color: #fff;
  background: var(--color-cyan);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: color 200ms ease, background 200ms ease;
}

.review-button:hover,
.review-button:focus-visible {
  color: var(--color-cyan);
  background: transparent;
  outline: 3px solid rgba(2, 173, 191, 0.24);
  outline-offset: 4px;
}

.review-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

@media (min-width: 760px) {
  .brand-lockup {
    width: 156px;
    padding: 5px;
  }

  .recipient-layout,
  .closing-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: end;
  }

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

  .detail-item {
    min-height: 124px;
    padding: 26px;
  }

  .event-label {
    font-size: 12px;
  }

  .progress-rail {
    left: 18px;
  }

  .map-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  }

  .map-figure {
    width: min(100%, 46vw, 560px);
  }
}

@media (max-width: 759px) {
  .slide--map {
    padding-top: max(106px, calc(env(safe-area-inset-top) + 96px));
  }

  .map-copy {
    display: grid;
  }

  .map-description {
    display: none;
  }

  .map-actions {
    order: 2;
    margin-top: 12px;
  }

  .map-link {
    flex: 1 1 140px;
  }

  .map-figure {
    order: 1;
  }

  .story-action {
    font-size: 10px;
  }
}

@media (max-height: 740px) and (max-width: 759px) and (orientation: portrait) {
  .slide {
    padding-top: max(74px, calc(env(safe-area-inset-top) + 66px));
    padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 40px));
  }

  .slide:not([data-slide="0"]) {
    padding-top: max(32px, calc(env(safe-area-inset-top) + 24px));
  }

  .brand-lockup {
    top: max(7px, env(safe-area-inset-top));
    width: 96px;
  }

  .event-label {
    min-height: 30px;
    margin-bottom: 12px;
    padding-block: 4px;
  }

  .slide-kicker {
    margin-bottom: 10px;
  }

  .display-title {
    font-size: clamp(37px, 11vw, 74px);
  }

  .hero-note {
    margin-top: 14px;
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.75;
  }

  .recipient-layout,
  .closing-grid {
    gap: 18px;
  }

  .section-title,
  .closing-quote {
    font-size: clamp(30px, 8vw, 58px);
  }

  .recipient-card {
    gap: 11px;
    padding-top: 14px;
  }

  .recipient-name {
    font-size: clamp(27px, 6vw, 44px);
  }

  .recipient-role,
  .invitation-copy {
    font-size: 13px;
    line-height: 1.65;
  }

  .meeting-purpose {
    padding-block: 7px;
    line-height: 1.55;
  }

  .details-grid {
    margin-top: 12px;
  }

  .detail-item {
    min-height: 78px;
    padding: 10px 12px;
  }

  .detail-value {
    font-size: clamp(13px, 3.2vw, 17px);
    line-height: 1.4;
  }

  .visit-actions {
    margin-top: 8px;
  }

  .calendar-button,
  .map-link,
  .story-action {
    min-height: 42px;
  }

  .map-title {
    font-size: clamp(28px, 7vw, 50px);
  }

  .map-figure {
    width: min(100%, 37svh);
  }

  .story-poster {
    height: min(52svh, 500px);
    padding: 16px;
  }

  .story-copy h2 {
    font-size: clamp(15px, 2.8svh, 21px);
    line-height: 1.32;
  }

  .story-eyebrow {
    margin-bottom: 8px;
  }

  .story-signoff {
    margin-top: 8px;
  }

  .story-action {
    padding-block: 7px;
  }

  .closing-grid {
    align-items: center;
  }

  .inviter-block {
    gap: 7px;
    padding-top: 14px;
  }

  .review-button {
    min-height: 44px;
  }

  .next-control {
    width: 44px;
    height: 44px;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .slide {
    padding-block: 74px 34px;
  }

  .brand-lockup {
    top: 8px;
    width: 84px;
    padding: 4px;
  }

  .display-title,
  .section-title,
  .closing-quote {
    font-size: clamp(36px, 8vw, 68px);
  }

  .recipient-layout,
  .closing-grid,
  .map-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 38px;
  }

  .details-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
  }

  .detail-item {
    min-height: 112px;
    padding: 14px;
  }

  .map-figure {
    width: min(100%, 68svh);
  }

  .story-poster {
    height: min(72svh, 470px);
  }

  .story-layout {
    grid-template-columns: auto minmax(220px, 320px);
    justify-content: center;
  }

  .story-actions {
    flex-direction: column;
  }

  .story-instruction {
    display: none;
  }

  .next-control {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-shell {
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
