@import url("./base.css");

.mementom-story {
  margin-top: 72px;
}

.story-stage {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 12%, rgba(82, 132, 159, 0.33), transparent 29%),
    linear-gradient(145deg, #2c3134, #131719 74%);
  color: #fff;
  box-shadow: 0 40px 100px rgba(25, 31, 34, 0.24);
}

.story-stage::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.story-brand {
  position: absolute;
  z-index: 12;
  top: 24px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-brand img {
  width: 46px;
  height: auto;
}

.story-brand span {
  font-size: 1rem;
  font-weight: 700;
}

.story-brand small {
  margin-left: 8px;
  color: #a9c4d2;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-device {
  position: absolute;
  z-index: 4;
  top: 72px;
  left: 50%;
  width: min(720px, calc(100% - 80px));
  height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: #f2f3f3;
  color: #222629;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px #fff;
  transform: translateX(-50%);
}

.story-app-bar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 54px;
  align-items: center;
  padding-inline: 20px;
  border-bottom: 1px solid #d8dcde;
  background: rgba(255, 255, 255, 0.92);
}

.story-app-bar strong {
  color: #365d78;
  font-size: 1rem;
}

.story-app-bar span {
  color: #555d61;
  font-size: 0.72rem;
}

.story-app-bar i {
  justify-self: end;
  width: 28px;
  height: 2px;
  background: #365d78;
  box-shadow: 0 7px #365d78, 0 -7px #365d78;
}

.story-screen {
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 420ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 560ms;
  visibility: hidden;
}

.story-project-screen,
.story-restored {
  padding: 38px 42px;
  background: #f2f3f3;
}

.story-project-title span,
.story-signed-out > span,
.story-saved-screen > span,
.story-photo-challenge > span,
.story-phrase-challenge > span,
.story-action-challenge > span {
  display: block;
  color: #6c7478;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-project-title strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.story-project-title small {
  color: #6c7478;
}

.story-space-card {
  position: absolute;
  right: 42px;
  bottom: 36px;
  left: 42px;
  display: flex;
  min-height: 126px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid #d4d9db;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(35, 43, 47, 0.08);
}

.story-space-card span {
  font-size: 1.3rem;
  font-weight: 700;
}

.story-space-card strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf1f3;
  color: #6c7478;
  font-size: 0.68rem;
}

.story-security-drawer {
  left: 39%;
  padding: 30px 34px;
  border-left: 1px solid #d5dade;
  background: #fff;
  box-shadow: -24px 0 52px rgba(30, 37, 40, 0.14);
  transform: translateX(100%);
}

.story-screen-label {
  display: block;
  color: #365d78;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-security-drawer > strong {
  display: block;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.story-security-drawer > p {
  margin: 8px 0 0;
  color: #5f686c;
  font-size: 0.82rem;
}

.story-account-key {
  margin-top: 28px;
  padding: 18px;
  border-radius: 13px;
  background: #f0f3f4;
}

.story-account-key span {
  display: block;
  color: #758086;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-account-key i {
  display: inline-block;
  width: 38px;
  height: 6px;
  margin: 11px 5px 0 0;
  border-radius: 999px;
  background: #365d78;
}

.story-setup-button,
.story-save-button,
.story-connect-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #365d78;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.story-setup-button {
  margin-top: 20px;
}

.story-enroll-modal {
  top: 72px;
  right: 12%;
  bottom: 22px;
  left: 12%;
  padding: 24px 28px;
  border: 1px solid #d9dddf;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(26, 33, 36, 0.2);
}

.story-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-modal-title span {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.story-modal-title small {
  color: #6f787c;
  font-size: 0.64rem;
}

.story-memory-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e0e3e4;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(14px);
}

.story-photo {
  position: relative;
  display: block;
  overflow: hidden;
  width: 96px;
  height: 74px;
  border-radius: 9px;
  background: linear-gradient(#a9c4d2 0 60%, #7398ab 60%);
  object-fit: cover;
}

.story-sun {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.story-mountain {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-right: 34px solid transparent;
  border-bottom: 48px solid #365d78;
  border-left: 34px solid transparent;
}

.story-mountain-a {
  left: -10px;
}

.story-mountain-b {
  right: -12px;
  opacity: 0.7;
}

.story-phrase > span {
  color: #727b7f;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-phrase-words {
  display: block;
  max-width: 260px;
  color: #365d78;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(7px);
}

.story-phrase-input {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.story-phrase-input b {
  color: #365d78;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(6px);
}

.story-phrase-input i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #365d78;
  transform: scaleX(0);
  transform-origin: left;
}

.story-phrase-input i:first-child {
  width: 76px;
}

.story-phrase-input i:last-child {
  width: 112px;
}

.story-save-button {
  min-height: 38px;
  margin-top: 16px;
}

.story-saved-screen,
.story-signed-out,
.story-photo-challenge,
.story-phrase-challenge,
.story-action-challenge {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  background: #f2f3f3;
  text-align: center;
}

.story-saved-screen > strong,
.story-signed-out > strong,
.story-photo-challenge > strong,
.story-phrase-challenge > strong,
.story-action-challenge > strong {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.story-saved-keys {
  display: flex;
  gap: 24px;
  margin: 30px 0 22px;
}

.story-saved-keys img {
  width: 138px;
  height: auto;
  opacity: 0;
  transform: translateY(12px);
}

.story-saved-screen small {
  color: #6d767a;
}

.story-connect-button {
  width: 240px;
  margin-top: 36px;
}

.story-logout-confirmation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e5eee9;
  color: #315f4a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(-8px);
}

.story-logout-confirmation i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c8060;
  box-shadow: 0 0 0 4px rgba(60, 128, 96, 0.12);
}

.story-issued-phrase {
  width: min(420px, 90%);
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid #d7dcde;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 43, 47, 0.07);
  text-align: left;
}

.story-issued-phrase small {
  display: block;
  color: #727b7f;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-issued-phrase b {
  display: block;
  margin-top: 7px;
  color: #365d78;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.story-photo-request {
  display: flex;
  min-width: 290px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  border: 1px dashed #7898a9;
  border-radius: 14px;
  background: #eaf0f3;
  color: #365d78;
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
}

.story-photo-request-icon {
  position: relative;
  width: 24px;
  height: 20px;
  border: 2px solid #365d78;
  border-radius: 3px;
}

.story-photo-request-icon::before {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #365d78;
  content: "";
}

.story-photo-request-icon i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: 8px;
  background: #365d78;
  clip-path: polygon(0 100%, 35% 20%, 55% 65%, 72% 35%, 100% 100%);
}

.story-drop-zone {
  position: relative;
  display: grid;
  width: 290px;
  justify-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 22px;
  overflow: hidden;
  border: 1px dashed #90a8b5;
  border-radius: 17px;
  background: #fff;
}

.story-drop-zone .story-photo {
  opacity: 0;
  transform: translateY(-24px) rotate(-4deg);
}

.story-drop-zone small {
  color: #627076;
}

.story-scan-line {
  position: absolute;
  top: 20px;
  right: 20px;
  left: 20px;
  height: 2px;
  background: #365d78;
  box-shadow: 0 0 15px #365d78;
  opacity: 0;
}

.story-phrase-input {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid #d6dbdd;
  border-radius: 14px;
  background: #fff;
}

.story-complete-key {
  margin-top: 24px;
  opacity: 0;
  transform: translateX(-18px);
}

.story-complete-key img {
  width: 170px;
  height: auto;
}

.story-restored {
  overflow: hidden;
}

.story-restored .story-project-title,
.story-restored .story-space-card {
  opacity: 0;
  transform: translateY(14px);
}

.story-open-mark {
  position: absolute;
  z-index: 5;
  top: 38%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
}

.story-open-mark img {
  width: 180px;
  height: auto;
  padding: 14px;
  border-radius: 16px;
  background: #365d78;
}

.story-open-mark span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #365d78;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-beat {
  position: absolute;
  z-index: 12;
  right: 30px;
  bottom: 74px;
  left: 30px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: center;
}

.story-beat span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(169, 196, 210, 0.38);
  border-radius: 50%;
  color: #a9c4d2;
  font-size: 0.67rem;
  font-weight: 800;
}

.story-beat strong {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.story-controls {
  position: absolute;
  z-index: 12;
  right: 30px;
  bottom: 22px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-track,
.story-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.story-track button {
  position: relative;
  width: 42px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-track button::before,
.story-track button::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
}

.story-track button::before {
  background: rgba(255, 255, 255, 0.18);
}

.story-track button::after {
  width: 0;
  background: #a9c4d2;
}

.story-track button.is-active::after {
  animation: story-progress 3.6s linear forwards;
}

.story-actions button {
  min-width: 62px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
}

.story-actions button:hover,
.story-actions button:focus-visible {
  border-color: #a9c4d2;
  background: rgba(169, 196, 210, 0.1);
}

/* Actual story beats */
.mementom-story[data-story-step="0"] .story-project-screen,
.mementom-story[data-story-step="1"] .story-project-screen,
.mementom-story[data-story-step="7"] .story-restored,
.mementom-story[data-story-step="2"] .story-enroll-modal,
.mementom-story[data-story-step="3"] .story-saved-screen,
.mementom-story[data-story-step="4"] .story-signed-out,
.mementom-story[data-story-step="5"] .story-photo-challenge,
.mementom-story[data-story-step="6"] .story-phrase-challenge,
.mementom-story[data-story-step="8"] .story-action-challenge {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.mementom-story[data-story-step="1"] .story-security-drawer {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

.mementom-story[data-story-step="1"] .story-project-screen {
  filter: brightness(0.8);
}

.mementom-story[data-story-step="2"] .story-device {
  background: #dfe3e5;
}

.mementom-story[data-story-step="2"] .story-memory-one,
.mementom-story[data-story-step="2"] .story-memory-two {
  animation: story-memory-in 500ms ease-out forwards;
}

.mementom-story[data-story-step="2"] .story-memory-two {
  animation-delay: 650ms;
}

.mementom-story[data-story-step="2"] .story-memory-one .story-phrase-words,
.mementom-story[data-story-step="2"] .story-memory-two .story-phrase-words {
  animation: story-phrase-words-in 520ms ease-out forwards;
}

.mementom-story[data-story-step="2"] .story-memory-one .story-phrase-words {
  animation-delay: 300ms;
}

.mementom-story[data-story-step="2"] .story-memory-two .story-phrase-words {
  animation-delay: 950ms;
}

.mementom-story[data-story-step="2"] .story-save-button {
  animation: story-save-ready 700ms ease-out 1.45s both;
}

.mementom-story[data-story-step="3"] .story-saved-keys img {
  animation: story-key-in 520ms ease-out forwards;
}

.mementom-story[data-story-step="3"] .story-saved-keys img:last-child {
  animation-delay: 260ms;
}

.mementom-story[data-story-step="4"] .story-signed-out {
  animation: story-wipe 520ms ease-out;
}

.mementom-story[data-story-step="4"] .story-logout-confirmation {
  animation: story-logout-confirmed 500ms ease-out 420ms forwards;
}

.mementom-story[data-story-step="5"] .story-drop-zone .story-photo {
  animation: story-photo-drop 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mementom-story[data-story-step="5"] .story-scan-line {
  opacity: 1;
  animation: story-scan 1.5s ease-in-out 500ms infinite alternate;
}

.mementom-story[data-story-step="6"] .story-phrase-input i {
  animation: story-phrase-in 600ms ease-out forwards;
}

.mementom-story[data-story-step="6"] .story-phrase-input i:last-child {
  animation-delay: 260ms;
}

.mementom-story[data-story-step="6"] .story-phrase-input b {
  animation: story-phrase-words-in 600ms ease-out forwards;
}

.mementom-story[data-story-step="6"] .story-complete-key {
  animation: story-complete-key 700ms ease-out 800ms forwards;
}

.mementom-story[data-story-step="7"] .story-open-mark {
  animation: story-open 850ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mementom-story[data-story-step="7"] .story-restored .story-project-title,
.mementom-story[data-story-step="7"] .story-restored .story-space-card {
  animation: story-project-return 600ms ease-out 1s forwards;
}

.mementom-story[data-story-step="8"] .story-photo-request {
  animation: story-photo-request 520ms ease-out 480ms forwards;
}

@keyframes story-progress {
  to {
    width: 100%;
  }
}

@keyframes story-memory-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes story-phrase-in {
  to {
    transform: scaleX(1);
  }
}

@keyframes story-phrase-words-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes story-photo-request {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes story-save-ready {
  from {
    opacity: 0.4;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes story-key-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes story-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes story-logout-confirmed {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes story-photo-drop {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes story-scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(112px);
  }
}

@keyframes story-complete-key {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes story-open {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(34%, -50%) scale(0.7);
  }
}

@keyframes story-project-return {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .story-stage {
    min-height: 610px;
  }

  .story-device {
    top: 76px;
    width: calc(100% - 32px);
    height: 390px;
  }

  .story-security-drawer {
    left: 18%;
  }

  .story-enroll-modal {
    right: 4%;
    left: 4%;
    padding-inline: 18px;
  }

  .story-modal-title small {
    display: none;
  }

  .story-beat {
    bottom: 70px;
  }

  .story-track {
    gap: 1px;
  }

  .story-track button {
    width: 28px;
  }
}

@media (max-width: 520px) {
  .mementom-story {
    margin-top: 52px;
  }

  .story-stage {
    min-height: 630px;
    border-radius: 22px;
  }

  .story-brand {
    top: 18px;
    left: 18px;
  }

  .story-brand small {
    display: none;
  }

  .story-device {
    top: 64px;
    height: 408px;
  }

  .story-security-drawer {
    left: 5%;
    padding: 24px 20px;
  }

  .story-project-screen,
  .story-restored {
    padding-inline: 22px;
  }

  .story-space-card {
    right: 22px;
    left: 22px;
  }

  .story-enroll-modal {
    top: 64px;
    bottom: 14px;
    padding: 18px 14px;
  }

  .story-memory-row {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 9px;
  }

  .story-photo {
    width: 72px;
    height: 62px;
  }

  .story-beat {
    right: 18px;
    left: 18px;
  }

  .story-beat strong {
    font-size: 1.65rem;
  }

  .story-controls {
    right: 18px;
    left: 18px;
  }

  .story-actions button {
    min-width: 54px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-screen,
  .story-memory-row,
  .story-phrase-words,
  .story-saved-keys img,
  .story-drop-zone .story-photo,
  .story-scan-line,
  .story-phrase-input i,
  .story-phrase-input b,
  .story-complete-key,
  .story-open-mark,
  .story-project-title,
  .story-space-card,
  .story-logout-confirmation,
  .story-photo-request,
  .story-track button::after {
    transition: none !important;
    animation: none !important;
  }

  .mementom-story[data-story-step="2"] .story-memory-row,
  .mementom-story[data-story-step="2"] .story-phrase-words,
  .mementom-story[data-story-step="3"] .story-saved-keys img,
  .mementom-story[data-story-step="4"] .story-logout-confirmation,
  .mementom-story[data-story-step="5"] .story-drop-zone .story-photo,
  .mementom-story[data-story-step="6"] .story-phrase-input i,
  .mementom-story[data-story-step="6"] .story-phrase-input b,
  .mementom-story[data-story-step="6"] .story-complete-key,
  .mementom-story[data-story-step="7"] .story-project-title,
  .mementom-story[data-story-step="7"] .story-space-card,
  .mementom-story[data-story-step="8"] .story-photo-request {
    opacity: 1;
    transform: none;
  }
}

.whitepaper-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 80px;
  align-items: center;
  margin-bottom: 24px;
  padding: 78px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--blue);
  color: var(--white);
}

.whitepaper-section::before {
  position: absolute;
  right: -190px;
  bottom: -265px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.whitepaper-copy {
  position: relative;
  z-index: 1;
}

.whitepaper-copy .eyebrow {
  margin-bottom: 18px;
  color: #dbe7ec;
}

.whitepaper-copy h2 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.whitepaper-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 34px;
  color: #e1e8eb;
  font-size: 1.05rem;
  line-height: 1.7;
}

.whitepaper-document {
  position: relative;
  z-index: 1;
  min-height: 390px;
  padding: 34px 32px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 64px rgba(24, 48, 67, 0.4);
  transform: rotate(2deg);
}

.whitepaper-document img {
  width: 116px;
  margin-bottom: 48px;
}

.whitepaper-document > span {
  display: block;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.whitepaper-document strong {
  display: block;
  margin-top: 15px;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.whitepaper-document small {
  position: absolute;
  bottom: 28px;
  left: 32px;
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .whitepaper-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .whitepaper-document {
    width: min(440px, 100%);
  }
}

@media (max-width: 680px) {
  .whitepaper-section {
    width: calc(100% - 20px);
    gap: 38px;
    padding: 60px 22px;
    border-radius: 28px;
  }

  .whitepaper-document {
    min-height: 340px;
  }

  .whitepaper-copy h2 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }
}
