:root {
  --motion-duration: 650ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header {
  position: sticky;
  top: 0;
  transition:
    box-shadow 0.3s,
    background 0.3s;
}
.site-header.is-scrolled {
  background: #faf8f3f0;
  backdrop-filter: blur(16px);
  box-shadow: 0 3px 18px #273c3206;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #a84f36;
  z-index: 90;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}
.motion-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  background: #faf8f3f2;
  color: #53614e;
  border: 1px solid #d9ddcf;
  box-shadow: 0 4px 15px #273c3210;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  cursor: pointer;
  font:
    400 9px "DM Sans",
    sans-serif;
  backdrop-filter: blur(10px);
}
.motion-toggle svg {
  width: 15px;
  height: 15px;
}
.motion-toggle:hover {
  background: #e8edde;
}
.motion-toggle:focus-visible {
  outline: 2px solid #a84f36;
  outline-offset: 4px;
}
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-line > span,
.hero-line > em {
  display: block;
}
.motion-enabled .hero-line > span,
.motion-enabled .hero-line > em {
  animation: hero-unfold 900ms var(--motion-ease) both;
}
.motion-enabled .hero-line:nth-child(2) > span {
  animation-delay: 90ms;
}
.motion-enabled .hero-line:nth-child(3) > em {
  animation-delay: 180ms;
}
.motion-enabled .hero-copy > .eyebrow {
  animation: soft-enter 0.7s ease both;
}
.motion-enabled .hero-description,
.motion-enabled .hero-buttons,
.motion-enabled .hero-note {
  animation: soft-enter 0.7s var(--motion-ease) 0.3s both;
}
.motion-enabled .hero-visual {
  animation: visual-enter 1.1s var(--motion-ease) 0.08s both;
}
.motion-enabled .hero-back-card {
  translate: var(--pointer-x, 0px)
    calc(var(--hero-drift, 0px) + var(--pointer-y, 0px));
  transition: translate 0.45s ease-out;
}
.motion-enabled .hero-orbit {
  translate: 0 var(--hero-drift, 0px);
}
.motion-enabled .details-arch {
  translate: 0 var(--scene-drift, 0px);
}
.motion-enabled .reveal-pending {
  opacity: 0;
  translate: 0 24px;
}
.motion-enabled .reveal-done {
  animation: scroll-unfold var(--motion-duration) var(--motion-ease) both;
}
.motion-enabled .feature-grid > div:nth-child(2n),
.motion-enabled .price-plan:nth-child(2) {
  animation-delay: 70ms;
}
.motion-enabled .price-plan:nth-child(3) {
  animation-delay: 140ms;
}
.motion-enabled .studio-dialog[open] {
  animation: dialog-unfold 0.32s var(--motion-ease);
}
.button svg,
.text-link svg,
.template-open svg {
  transition: transform 0.25s var(--motion-ease);
}
.button:hover svg,
.text-link:hover svg,
.template-open:hover svg {
  transform: translate(2px, -2px);
}
.template-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 440px;
}
.template-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    #ffffff32 50%,
    transparent 80%
  );
  translate: -110% 0;
  transition: translate 0.7s;
  pointer-events: none;
}
.motion-enabled .template-card:hover .template-image::after {
  translate: 110% 0;
}
.motion-enabled .template-card {
  transition: opacity 0.25s;
}
.motion-enabled .faq-list details[open] > p {
  animation: soft-enter 0.3s ease both;
}
.how-experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  margin-top: 30px;
  position: relative;
}
.how-stage {
  position: sticky;
  top: 140px;
  background: #eee7dc;
  border: 1px solid #e5dfd1;
  border-radius: 160px 160px 6px 6px;
  height: 450px;
  overflow: hidden;
  isolation: isolate;
  margin-top: 25px;
}
.journey-orbit {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid #b8b59b55;
}
.journey-orbit::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #b8b59b33;
  border-radius: 50%;
}
.journey-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 23px;
  transition:
    opacity 0.5s var(--motion-ease),
    translate 0.7s var(--motion-ease);
  opacity: 0;
  translate: 0 24px;
  pointer-events: none;
}
.journey-panel > p {
  font:
    italic 17px "Cormorant Garamond",
    serif;
  color: #69715d;
  max-width: 90%;
  text-align: center;
}
.how-stage[data-step="0"] .journey-envelope,
.how-stage[data-step="1"] .journey-invitation,
.how-stage[data-step="2"] .journey-message {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}
.paper-envelope {
  position: relative;
  width: 290px;
  height: 200px;
  background: #e4d2b9;
  box-shadow: 0 20px 25px #4c38211a;
  transform: rotate(-7deg);
  isolation: isolate;
}
.envelope-letter {
  position: absolute;
  inset: -55px 20px 18px;
  background: #faf7e9;
  box-shadow: 0 0 0 1px #cfbca066;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 27px 15px;
  gap: 15px;
  transform: rotate(3deg);
  transition: translate 0.8s var(--motion-ease);
}
.envelope-letter > span {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #8f7453;
}
.envelope-letter b {
  font:
    italic 45px "Cormorant Garamond",
    serif;
  color: #8f7453;
}
.envelope-fold {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #eee1ca, #e6d4ba 50%, #eee0c9);
  z-index: 2;
}
.envelope-seal {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  top: 78px;
  left: 122px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #a84f36;
  color: #f2dcc6;
  box-shadow:
    inset 0 0 0 3px #ba7052,
    inset 0 0 0 4px #93442e,
    0 4px 9px #60341e33;
  font:
    italic 35px "Cormorant Garamond",
    serif;
}
.how-stage[data-step="0"] .envelope-letter {
  translate: 0 -10px;
}
.journey-card {
  width: 205px;
  height: 328px;
  box-shadow: 0 12px 25px #273c3225;
  transform: rotate(-3deg);
}
#journey-invite {
  width: 400px;
  height: 640px;
  transform: scale(0.5125);
  transform-origin: top left;
}
.journey-invitation {
  gap: 15px;
}
.sample-message {
  background: #fffdf7;
  width: 280px;
  border: 1px solid #e4decf;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 12px 25px #273c3210;
  transform: rotate(3deg);
}
.sample-message > span {
  font:
    500 7px "DM Sans",
    sans-serif;
  color: #8b886f;
  letter-spacing: 0.12em;
}
.sample-message > p {
  font:
    italic 18px "Cormorant Garamond",
    serif;
  margin-top: 18px;
  color: #6a755f;
}
.sample-message h3 {
  font:
    400 30px/1.03 "Cormorant Garamond",
    serif;
  margin-block: 12px 20px;
}
.sample-message > small {
  font-size: 8px;
  color: #7c846e;
}
.message-preview {
  font:
    500 8px "DM Sans",
    sans-serif;
  background: #e9eddf;
  padding: 12px 9px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #59704b;
  border-radius: 3px;
}
.message-preview svg {
  width: 12px;
  height: 12px;
}
.share-flower {
  position: absolute;
  top: 25px;
  color: #af956e;
}
.share-flower svg {
  width: 28px;
  height: 28px;
}
.journey-dots {
  position: absolute;
  z-index: 4;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.journey-dots a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  position: relative;
}
.journey-dots a::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b3b49c;
  transition:
    transform 0.25s,
    background 0.25s;
}
.journey-dots a[aria-current]::after {
  background: #a84f36;
  transform: scale(1.5);
}
.how-chapters article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px;
  border-bottom: 1px solid #dedfd4;
  scroll-margin-top: 160px;
  max-width: 420px;
}
.how-chapters article:last-child {
  border: 0;
}
.how-chapters .step-number {
  font:
    500 8px "DM Sans",
    sans-serif;
  letter-spacing: 0.12em;
  color: #a84f36;
  position: static;
  padding: 0;
}
.how-chapters h3 {
  font:
    400 46px/1 "Cormorant Garamond",
    serif;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
}
.how-chapters p {
  font:
    400 13px/1.9 "DM Sans",
    sans-serif;
  color: #696e65;
  max-width: 340px;
}
.how-chapters .text-link {
  align-self: start;
  margin-top: 15px;
  font-size: 11px;
  gap: 18px;
}
.format-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 15px;
}
.format-tabs button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 11px;
  min-height: 46px;
}
.format-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.format-tabs svg {
  width: 15px;
  height: 15px;
}
.format-tabs > span {
  margin-left: auto;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.video-format-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font:
    500 7px "DM Sans",
    sans-serif;
  letter-spacing: 0.1em;
  padding: 6px 8px;
  background: #273c32;
  color: #fff9e9;
  border-radius: 3px;
  z-index: 3;
}
.video-preview-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding: 28px;
}
.video-preview-body canvas {
  width: 100%;
  aspect-ratio: 9/16;
  display: block;
  background: #efe5d4;
  border-radius: 5px;
}
.video-preview-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 15px;
}
.video-preview-copy h2 {
  font:
    400 40px/1 "Cormorant Garamond",
    serif;
}
.video-preview-copy p {
  font-size: 12px;
  color: var(--muted);
}
.video-preview-copy .eyebrow {
  font-size: 8px;
}
.video-preview-copy .button {
  font-size: 11px;
  width: 100%;
}
.video-preview-copy .video-status {
  font-size: 10px;
  color: #738267;
}
.film-player-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.film-player-controls .button {
  flex: 1;
}
.film-player-controls .icon-button {
  border-radius: 4px;
  width: 45px;
  height: 48px;
}
.video-sample-note {
  font-size: 9px !important;
  line-height: 1.8;
}
.motion-paused .journey-panel {
  transition: none;
}
.motion-paused .hero-line > * {
  transform: none;
  opacity: 1;
}
.motion-paused .reveal-pending {
  opacity: 1;
  translate: none;
}
.motion-paused .template-card {
  animation: none;
}
@keyframes hero-unfold {
  from {
    transform: translateY(110%) rotate(2deg);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes soft-enter {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes visual-enter {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes scroll-unfold {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes dialog-unfold {
  from {
    opacity: 0;
    translate: 0 12px;
    scale: 0.98;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@media (max-width: 1100px) {
  .how-experience {
    gap: 60px;
  }
  .paper-envelope {
    scale: 0.9;
  }
  .journey-card {
    scale: 0.95;
  }
  .how-stage {
    height: 430px;
    top: 120px;
  }
}
@media (max-width: 800px) {
  .how-experience {
    gap: 30px;
    grid-template-columns: 0.95fr 1fr;
  }
  .how-stage {
    height: 390px;
    top: 100px;
    border-radius: 120px 120px 4px 4px;
  }
  .paper-envelope {
    scale: 0.75;
  }
  .journey-card {
    scale: 0.88;
  }
  .sample-message {
    scale: 0.85;
  }
  .journey-panel > p {
    font-size: 14px;
    max-width: 230px;
  }
  .how-chapters h3 {
    font-size: 35px;
  }
  .how-chapters p {
    font-size: 12px;
  }
  .how-chapters article {
    min-height: 300px;
  }
  .how-chapters .step-number {
    font-size: 7px;
  }
  .format-tabs > span {
    display: none;
  }
}
@media (max-width: 600px) {
  .how-experience {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
  }
  .how-stage {
    position: sticky;
    top: 88px;
    z-index: 4;
    height: 240px;
    border-radius: 100px 100px 4px 4px;
    background: #eee7dcf5;
    backdrop-filter: blur(8px);
    margin-top: 0;
    max-width: 100%;
  }
  .journey-panel {
    gap: 5px;
  }
  .journey-panel > p {
    font-size: 12px;
    position: absolute;
    bottom: 26px;
  }
  .paper-envelope {
    scale: 0.6;
    translate: 0 10px;
  }
  .journey-card {
    scale: 0.52;
    translate: 0 -8px;
  }
  .sample-message {
    scale: 0.6;
    translate: 0 5px;
  }
  .share-flower {
    display: none;
  }
  .journey-dots {
    bottom: 1px;
  }
  .how-chapters article {
    min-height: 330px;
    padding: 38px 10px 25px;
    scroll-margin-top: 350px;
  }
  .how-chapters h3 {
    font-size: 39px;
  }
  .how-chapters p {
    font-size: 13px;
    max-width: 100%;
  }
  .how-chapters .step-number {
    font-size: 8px;
  }
  .how-chapters .text-link {
    font-size: 12px;
  }
  .motion-toggle {
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    font-size: 8px;
    padding: 7px 10px;
  }
  .motion-toggle svg {
    width: 13px;
    height: 13px;
  }
  .format-tabs {
    gap: 8px;
    padding-bottom: 15px;
    margin-top: 3px;
  }
  .format-tabs button {
    font-size: 10px;
    padding: 11px 12px;
    flex: 1;
    justify-content: center;
    gap: 8px;
  }
  .format-tabs svg {
    width: 13px;
    height: 13px;
  }
  .video-format-badge {
    left: 8px;
    bottom: 10px;
    font-size: 6px;
    padding: 5px;
  }
  .video-preview-body {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 20px;
  }
  .video-preview-body canvas {
    max-width: 190px;
    margin-inline: auto;
    max-height: 340px;
  }
  .video-preview-copy {
    gap: 12px;
  }
  .video-preview-copy h2 {
    font-size: 32px;
  }
  .video-preview-copy .video-status {
    font-size: 9px;
  }
  .video-sample-note {
    font-size: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey-panel {
    transition: none;
  }
  .motion-enabled .hero-line > *,
  .motion-enabled .hero-visual,
  .motion-enabled .reveal-done {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: 0 0 !important;
  }
  .hero-back-card,
  .hero-orbit,
  .details-arch {
    translate: 0 0 !important;
  }
  .reveal-pending {
    opacity: 1 !important;
    translate: 0 0 !important;
  }
  .reading-progress {
    display: none;
  }
}
@media (max-width: 600px) {
  .motion-enabled .hero-line > * {
    animation-duration: 0.65s;
  }
  .motion-enabled .hero-visual {
    animation-duration: 0.7s;
  }
  .how-chapters article {
    scroll-margin-top: 360px;
  }
}

html.motion-paused {
  scroll-behavior: auto;
}
.motion-paused .hero-back-card,
.motion-paused .hero-orbit,
.motion-paused .details-arch {
  translate: 0 0 !important;
}
