body.identity-page {
  margin: 0;
  background: #fff;
  font-family: sans-serif;
  overflow: hidden;
}

body.identity-page .back-link {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 100;
  animation: none;
}

body.identity-page #identity-manifest-root.identity-container {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  animation: none;
}

body.identity-page #identity-manifest-root .portrait-viewport {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 6.5rem 0 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

body.identity-page #identity-manifest-root .portrait-stack {
  position: absolute;
  left: 6%;
  bottom: 1rem;
  width: min(40vw, 430px);
  height: min(calc(100vh - 10rem), 520px);
  z-index: 10;
}

body.identity-page #identity-manifest-root .identity-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: opacity, filter;
}

body.identity-page #identity-manifest-root .node-icon {
  position: absolute;
  z-index: 20;
  cursor: pointer;
  filter: url(#liquid-lens);
  animation: floatNode 4s ease-in-out infinite;
  will-change: transform, filter;
}

body.identity-page #identity-manifest-root .node-icon img {
  width: 72px;
  height: auto;
  transition: transform 0.4s ease;
}

body.identity-page #identity-manifest-root #node-psychology { top: 20%; left: 24%; }
body.identity-page #identity-manifest-root #node-gallery { top: 18%; left: 52%; }
body.identity-page #identity-manifest-root #node-data { top: 32%; left: 69%; }

body.identity-page #identity-manifest-root .node-icon:hover img,
body.identity-page #identity-manifest-root .locked-node img {
  transform: scale(1.25);
}

body.identity-page #identity-manifest-root .node-icon::before,
body.identity-page #identity-manifest-root .node-icon::after {
  content: none;
}

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

body.identity-page #identity-manifest-root .content-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 4.5rem 4% 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

body.identity-page #identity-manifest-root .identity-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
}

body.identity-page #identity-manifest-root .identity-media-stack {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.identity-page #identity-manifest-root .identity-logo {
  display: block;
  width: 100%;
  margin-bottom: 2px;
}

body.identity-page #identity-manifest-root .identity-logo-video {
  display: block;
  width: 100%;
  max-height: clamp(287px, 49vh, 423px);
  height: auto;
  object-fit: contain;
}

body.identity-page #identity-manifest-root .identity-logo-mark {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  margin: -14px auto 0;
}

body.identity-page #identity-manifest-root .face-data {
  transform: scale(1.5);
  transform-origin: center center;
}

body.identity-page #identity-manifest-root #dynamic-title {
  width: 100%;
  margin: 0;
  display: block;
  position: relative;
  z-index: 2;
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(0.88rem, 1.45vw, 1.12rem);
  letter-spacing: clamp(1px, 0.25vw, 4px);
  overflow-wrap: anywhere;
  line-height: 1.25;
  padding-bottom: 0;
}

body.identity-page #identity-manifest-root .manifesto-vault {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(500px, 92%);
  flex: 0 0 auto;
  margin-top: 4px;
}

body.identity-page #identity-manifest-root .state-desc {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.identity-page #identity-manifest-root .state-desc p {
  margin: 0;
  font-size: clamp(1.04rem, 1.33vw, 1.2rem);
  line-height: 1.34;
  color: #444;
  overflow-wrap: anywhere;
}

body.identity-page #identity-manifest-root.state-mirror .face-mirror,
body.identity-page #identity-manifest-root.state-psychology .face-psychology,
body.identity-page #identity-manifest-root.state-gallery .face-gallery,
body.identity-page #identity-manifest-root.state-data .face-data {
  opacity: 1;
}

body.identity-page #identity-manifest-root.state-mirror .desc-mirror,
body.identity-page #identity-manifest-root.state-psychology .desc-psychology,
body.identity-page #identity-manifest-root.state-gallery .desc-gallery,
body.identity-page #identity-manifest-root.state-data .desc-data {
  display: block;
  opacity: 1;
}

body.identity-page #identity-manifest-root.state-gallery .face-gallery {
  filter: url(#wave-shuffler);
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 820px) {
  body.identity-page #identity-manifest-root .content-panel {
    padding-top: 3.5rem;
    gap: 3px;
  }

  body.identity-page #identity-manifest-root .identity-logo-video {
    max-height: clamp(241px, 39vh, 338px);
  }

  body.identity-page #identity-manifest-root .identity-logo-mark {
    width: 93%;
    max-width: 300px;
  }

  body.identity-page #identity-manifest-root #dynamic-title {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    line-height: 1.2;
    letter-spacing: clamp(0.8px, 0.16vw, 2px);
  }

  body.identity-page #identity-manifest-root .state-desc p {
    font-size: clamp(0.93rem, 1.2vw, 1.08rem);
    line-height: 1.28;
  }

  body.identity-page #identity-manifest-root .portrait-stack {
    height: min(calc(100vh - 9.5rem), 470px);
  }
}

@media (max-height: 900px) {
  body.identity-page #identity-manifest-root .content-panel {
    padding-top: 3.4rem;
    padding-bottom: 0.35rem;
    gap: 3px;
  }

  body.identity-page #identity-manifest-root .identity-logo-video {
    max-height: clamp(233px, 38vh, 330px);
  }

  body.identity-page #identity-manifest-root .identity-logo-mark {
    max-width: 320px;
  }

  body.identity-page #identity-manifest-root .manifesto-vault {
    margin-top: 2px;
  }

  body.identity-page #identity-manifest-root .state-desc p {
    font-size: clamp(0.9rem, 1.14vw, 1.05rem);
    line-height: 1.27;
  }
}

@media (max-height: 760px) {
  body.identity-page #identity-manifest-root .content-panel {
    padding-top: 3.2rem;
  }

  body.identity-page #identity-manifest-root .identity-logo-video {
    max-height: clamp(178px, 29vh, 254px);
  }

  body.identity-page #identity-manifest-root .identity-logo-mark {
    max-width: 230px;
    margin-top: -6px;
  }

  body.identity-page #identity-manifest-root #dynamic-title {
    font-size: clamp(0.74rem, 1.05vw, 0.92rem);
    line-height: 1.18;
  }

  body.identity-page #identity-manifest-root .state-desc p {
    font-size: clamp(0.86rem, 1vw, 0.96rem);
    line-height: 1.2;
  }
}
