/* Proctima home hero — Figma Daily Hero inspired opening scene */

@media (min-width: 761px) {
  html.proctima-home .site-header:not(.is-scrolled) .header-inner {
    background: rgba(3, 28, 30, 0.34);
    border-color: rgba(255, 255, 255, 0.17);
    box-shadow: 0 18px 50px rgba(0, 14, 16, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
  }

  html.proctima-home .site-header:not(.is-scrolled) .brand img {
    filter: brightness(0) invert(1);
  }

  html.proctima-home .site-header:not(.is-scrolled) .primary-nav > a,
  html.proctima-home .site-header:not(.is-scrolled) .nav-cluster > a {
    color: #fff;
    opacity: 0.82;
    text-shadow: 0 2px 16px rgba(0, 13, 16, 0.46);
  }

  html.proctima-home .site-header:not(.is-scrolled) .primary-nav > a:hover,
  html.proctima-home .site-header:not(.is-scrolled) .primary-nav > a.active,
  html.proctima-home .site-header:not(.is-scrolled) .nav-cluster > a:hover,
  html.proctima-home .site-header:not(.is-scrolled) .nav-cluster > a.active {
    color: #fff;
    opacity: 1;
  }

  html.proctima-home .site-header:not(.is-scrolled) .primary-nav > a.active::after,
  html.proctima-home .site-header:not(.is-scrolled) .nav-cluster > a.active::after {
    background: rgba(255, 255, 255, 0.88);
  }
}

.portal-experience {
  color: #fff;
  background: #061b1e;
  border-color: rgba(211, 245, 238, 0.22);
  border-radius: 34px;
  height: calc(100svh - 12px);
  min-height: 720px;
  max-height: 1080px;
  margin: 6px;
  box-shadow: 0 28px 90px rgba(2, 26, 29, 0.26);
}

.portal-experience .portal-entry-bg {
  background-image: url("/assets/proctima-hero.webp");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04);
  inset: -4%;
  transform: translate3d(var(--portal-x), var(--portal-y), 0) scale(1.09);
  transition: transform 0.18s linear, filter 0.35s ease;
  will-change: transform, filter;
}

.portal-experience .portal-entry-light {
  z-index: -3;
  background:
    radial-gradient(circle at 67% 40%, rgba(246, 252, 211, 0.3) 0, rgba(191, 239, 226, 0.09) 18%, transparent 35%),
    linear-gradient(90deg, rgba(0, 13, 17, 0.72) 0%, rgba(0, 18, 22, 0.45) 30%, transparent 55%, rgba(0, 17, 20, 0.08) 76%, rgba(0, 12, 15, 0.42) 100%),
    linear-gradient(0deg, rgba(0, 12, 15, 0.75) 0%, transparent 32%, transparent 72%, rgba(0, 10, 12, 0.38) 100%);
  inset: 0;
}

.portal-experience .portal-entry-light::before {
  content: "";
  position: absolute;
  width: min(43vw, 760px);
  aspect-ratio: 1;
  top: 2%;
  left: 47%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 255, 231, 0.2), rgba(132, 222, 216, 0.06) 43%, transparent 69%);
  filter: blur(10px);
  animation: proctimaPortalBreathe 5.8s ease-in-out infinite alternate;
}

.portal-experience .portal-entry-light::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 125px rgba(0, 7, 10, 0.86);
}

.portal-experience .portal-medical-field {
  z-index: 2;
  overflow: hidden;
}

.portal-experience .portal-medical-field::before {
  content: "";
  position: absolute;
  width: min(46vw, 790px);
  aspect-ratio: 1;
  top: 0;
  left: 45%;
  border: 1px solid rgba(235, 255, 244, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(220, 255, 244, 0.022),
    0 0 0 130px rgba(220, 255, 244, 0.014);
  animation: proctimaPortalOrbit 24s linear infinite;
}

.portal-experience .portal-medical-field::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 26%;
  left: 64%;
  border: 0;
  border-radius: 50%;
  background: rgba(238, 255, 224, 0.94);
  box-shadow:
    92px 36px 0 rgba(216, 250, 227, 0.66),
    -117px 92px 0 rgba(184, 240, 226, 0.62),
    155px 174px 0 rgba(250, 246, 184, 0.56),
    -205px 228px 0 rgba(216, 251, 239, 0.45);
  filter: blur(0.25px);
  animation: proctimaMoteFloat 7s ease-in-out infinite alternate;
}

.portal-experience .portal-medical-field i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(229, 255, 241, 0.72);
  box-shadow: 0 0 18px rgba(196, 250, 233, 0.66);
  animation: proctimaMoteFloat 6.5s ease-in-out infinite alternate;
}

.portal-experience .portal-medical-field i:nth-child(1) {
  top: 21%;
  left: 40%;
  animation-delay: -1.2s;
}

.portal-experience .portal-medical-field i:nth-child(2) {
  top: 31%;
  right: 17%;
  animation-delay: -3.4s;
}

.portal-experience .portal-medical-field i:nth-child(3) {
  bottom: 17%;
  left: 58%;
  animation-delay: -4.7s;
}

.portal-experience .portal-medical-field i:nth-child(4) {
  right: 5%;
  bottom: 31%;
  animation-delay: -2.3s;
}

.portal-experience .portal-medical-field i:nth-child(5) {
  top: 47%;
  left: 33%;
  animation-delay: -5.5s;
}

.portal-experience .portal-cursor {
  z-index: 12;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 8px rgba(216, 255, 240, 0.08),
    0 0 32px rgba(220, 255, 244, 0.5);
}

.portal-experience .portal-intro-copy {
  z-index: 6;
  width: min(660px, 39vw);
  top: 51%;
  left: clamp(40px, 6.5vw, 118px);
  transform: translate3d(var(--content-x), calc(-50% + var(--content-y)), 0);
}

.portal-experience .portal-kicker {
  color: rgba(235, 255, 246, 0.76);
  letter-spacing: 0.28em;
  margin-bottom: 20px;
  font-size: 8px;
  font-weight: 800;
  animation: proctimaTextReveal 0.82s cubic-bezier(0.2, 0.74, 0.22, 1) 0.08s both;
}

.portal-experience .portal-intro-copy h1 {
  max-width: 7.9em;
  color: #fff;
  font-family: "Bodoni 72", Didot, "Times New Roman", serif;
  font-size: clamp(58px, 4.8vw, 92px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 7px 34px rgba(0, 12, 16, 0.54);
  animation: proctimaTextReveal 0.96s cubic-bezier(0.2, 0.74, 0.22, 1) 0.16s both;
}

.portal-experience .portal-intro-copy h1 span {
  display: block;
  margin-top: 0.06em;
  color: #f4f8ec;
  font-family: inherit;
  font-size: 0.89em;
  font-style: normal;
  font-weight: 400;
  line-height: 0.82;
}

.portal-experience .portal-intro-copy > p:last-of-type {
  max-width: 395px;
  margin-top: 25px;
  color: rgba(246, 255, 251, 0.78);
  font-size: 13px;
  line-height: 1.62;
  text-shadow: 0 3px 18px rgba(0, 10, 13, 0.58);
  animation: proctimaTextReveal 0.9s cubic-bezier(0.2, 0.74, 0.22, 1) 0.27s both;
}

.portal-experience.phase-portal .portal-proofline {
  display: none;
}

.portal-experience.phase-portal .portal-product-model.model-phase-portal {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -45%, 0) scale(0.8);
}

.portal-experience .portal-preview-rail {
  z-index: 7;
  gap: 14px;
  top: 50%;
  right: clamp(-82px, -3.2vw, -34px);
  transform: translate3d(var(--cards-x), calc(-38% + var(--cards-y)), 0);
}

.portal-experience .portal-preview-rail > a {
  width: clamp(150px, 10.2vw, 198px);
  height: clamp(218px, 26vh, 286px);
  color: #fff;
  background: rgba(12, 40, 41, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 31px;
  -webkit-backdrop-filter: blur(13px) saturate(1.08);
  backdrop-filter: blur(13px) saturate(1.08);
  box-shadow: 0 27px 62px rgba(0, 14, 17, 0.38);
  animation: proctimaCardReveal 0.9s cubic-bezier(0.16, 0.74, 0.19, 1) both;
}

.portal-experience .portal-preview-rail > a:nth-child(1) {
  transform: translateY(20px);
  animation-delay: 0.34s;
}

.portal-experience .portal-preview-rail > a:nth-child(2) {
  transform: translateY(-4px);
  animation-delay: 0.42s;
}

.portal-experience .portal-preview-rail > a:nth-child(3) {
  transform: translateY(16px);
  animation-delay: 0.5s;
}

.portal-experience .portal-preview-rail > a::before {
  content: "";
  z-index: 2;
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 31%);
}

.portal-experience .portal-preview-rail > a::after {
  z-index: 1;
  background: linear-gradient(180deg, transparent 26%, rgba(1, 19, 22, 0.24) 55%, rgba(1, 16, 19, 0.93) 100%);
}

.portal-experience .portal-preview-rail > a:first-child > img {
  box-sizing: border-box;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.4), transparent 53%),
    linear-gradient(145deg, rgba(31, 157, 164, 0.82), rgba(4, 48, 55, 0.72));
  padding: 18px;
}

.portal-experience .portal-preview-rail > a:nth-child(2) > .preview-glyph {
  background: url("/assets/care-botanical-v8.webp") center / cover no-repeat;
}

.portal-experience .portal-preview-rail > a:nth-child(3) > .preview-glyph {
  background: url("/assets/care-refresh-v8.webp") center / cover no-repeat;
}

.portal-experience .portal-preview-rail .preview-glyph i {
  display: none;
}

.portal-experience .portal-preview-rail > a > span:not(.preview-glyph) {
  z-index: 3;
  right: 42px;
  bottom: 17px;
  left: 17px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.04;
}

.portal-experience .portal-preview-rail > a > span:not(.preview-glyph) b {
  color: rgba(255, 255, 255, 0.72);
  font-size: 7px;
}

.portal-experience .portal-preview-rail > a > span:not(.preview-glyph) small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 6px;
}

.portal-experience .portal-preview-rail > a > i {
  z-index: 4;
  width: 31px;
  height: 31px;
  color: #163f3f;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0;
}

.portal-experience .portal-preview-rail > a > i::before {
  content: "▶";
  padding-left: 2px;
  font-size: 9px;
}

.portal-experience .portal-preview-rail > a:hover {
  border-color: rgba(255, 255, 255, 0.78);
  transform: translateY(-12px);
  box-shadow: 0 36px 78px rgba(0, 13, 16, 0.52);
}

.portal-experience .portal-preview-dots {
  display: none;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter {
  z-index: 9;
  width: 94px;
  height: 78px;
  bottom: 22px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 24px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter::before {
  content: "KEŞFET";
  display: block;
  position: absolute;
  inset: 4px 0 auto;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: 0;
  -webkit-mask: none;
  mask: none;
  letter-spacing: 0.24em;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 7px;
  font-weight: 800;
  animation: none;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter::after {
  content: "";
  display: block;
  position: absolute;
  width: 1px;
  height: 20px;
  inset: auto auto 0 50%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.72), transparent);
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter-ring {
  display: none;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core {
  width: 38px;
  height: 34px;
  top: 47%;
  color: #fff;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core b {
  width: 24px;
  height: 24px;
  color: transparent;
  background: transparent;
  font-size: 0;
  animation: proctimaChevron 1.8s ease-in-out infinite;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core b::before,
.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core b::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core b::before {
  top: 0;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core b::after {
  top: 7px;
  opacity: 0.52;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core small {
  display: none;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translate(-50%) translateY(-4px);
  box-shadow: none;
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.portal-experience.phase-travelling .portal-entry-bg {
  animation: proctimaPortalDive 1.32s cubic-bezier(0.45, 0.02, 0.18, 1) forwards;
}

.portal-experience.phase-travelling .portal-entry-light {
  animation: proctimaPortalLight 1.32s ease-out forwards;
}

.portal-experience.phase-travelling .portal-intro-copy {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(var(--content-x), calc(-50% + var(--content-y)), 0) scale(1.14);
}

.portal-experience.phase-travelling .portal-preview-rail {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(var(--cards-x), calc(-38% + var(--cards-y)), 0) scale(1.14);
}

.portal-experience.phase-travelling .portal-travel-layer {
  visibility: visible;
  background: url("/assets/proctima-portal-transition.webp") 50% / cover no-repeat;
  animation: proctimaTravelFlash 1.32s cubic-bezier(0.36, 0.02, 0.24, 1) forwards;
}

.portal-experience .portal-travel-layer::before,
.portal-experience .portal-travel-layer::after {
  display: none;
}

.portal-experience.phase-travelling .portal-product-model {
  opacity: 0;
  visibility: hidden;
}

@keyframes proctimaPortalBreathe {
  from {
    opacity: 0.6;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes proctimaPortalOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes proctimaMoteFloat {
  from {
    opacity: 0.35;
    transform: translate3d(-4px, 7px, 0) scale(0.72);
  }
  to {
    opacity: 0.9;
    transform: translate3d(7px, -12px, 0) scale(1.18);
  }
}

@keyframes proctimaTextReveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes proctimaCardReveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0 round 31px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 31px);
  }
}

@keyframes proctimaChevron {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(-3px);
  }
  50% {
    opacity: 1;
    transform: translateY(5px);
  }
}

@keyframes proctimaPortalDive {
  0% {
    filter: saturate(1.08) contrast(1.04) blur(0);
    transform: translate3d(var(--portal-x), var(--portal-y), 0) scale(1.09);
  }
  58% {
    filter: saturate(1.18) contrast(1.02) blur(1.5px);
    transform: translate3d(0, 1%, 0) scale(1.56);
  }
  100% {
    filter: saturate(1.25) brightness(1.25) blur(7px);
    transform: translate3d(0, 3%, 0) scale(2.18);
  }
}

@keyframes proctimaPortalLight {
  0% {
    opacity: 1;
  }
  72% {
    opacity: 0.46;
  }
  100% {
    opacity: 0;
  }
}

@keyframes proctimaTravelFlash {
  0% {
    opacity: 0;
    filter: blur(14px) saturate(0.78);
    transform: scale(0.7);
  }
  40% {
    opacity: 0.32;
    filter: blur(7px) saturate(1.02);
  }
  76% {
    opacity: 0.96;
    filter: blur(1px) brightness(1.16);
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    filter: blur(0) brightness(1.4);
    transform: scale(1.42);
  }
}

@media (max-width: 1180px) {
  .portal-experience .portal-intro-copy {
    width: 42vw;
    left: 44px;
  }

  .portal-experience .portal-intro-copy h1 {
    font-size: clamp(54px, 5.2vw, 72px);
  }

  .portal-experience .portal-preview-rail {
    right: -92px;
  }

  .portal-experience .portal-preview-rail > a {
    width: 150px;
    height: 226px;
  }
}

@media (max-width: 760px) {
  html.proctima-home .site-header:not(.is-scrolled) .header-inner {
    background: rgba(3, 28, 30, 0.38);
    border-color: rgba(255, 255, 255, 0.17);
    box-shadow: 0 14px 38px rgba(0, 13, 16, 0.18);
    -webkit-backdrop-filter: blur(17px) saturate(1.08);
    backdrop-filter: blur(17px) saturate(1.08);
  }

  html.proctima-home .site-header:not(.is-scrolled) .brand img {
    filter: brightness(0) invert(1);
  }

  html.proctima-home .site-header:not(.is-scrolled) .menu-toggle {
    background: rgba(255, 255, 255, 0.1);
  }

  html.proctima-home .site-header:not(.is-scrolled) .menu-toggle i {
    background: #fff;
  }

  .portal-experience {
    border-radius: 24px;
    width: calc(100% - 8px);
    height: calc(100svh - 8px);
    min-height: 650px;
    margin: 4px;
  }

  .portal-experience .portal-entry-bg {
    background-position: 66% 50%;
    inset: -7%;
    transform: translate3d(0, 0, 0) scale(1.1);
  }

  .portal-experience .portal-entry-light {
    background:
      radial-gradient(circle at 58% 30%, rgba(236, 255, 227, 0.22), transparent 33%),
      linear-gradient(180deg, rgba(0, 12, 15, 0.36) 0%, transparent 24%, rgba(0, 10, 13, 0.16) 44%, rgba(0, 10, 13, 0.91) 78%, rgba(0, 9, 12, 0.98) 100%);
  }

  .portal-experience .portal-entry-light::before {
    width: 95vw;
    top: 4%;
    left: 22%;
  }

  .portal-experience .portal-entry-light::after {
    box-shadow: inset 0 0 72px rgba(0, 7, 10, 0.7);
  }

  .portal-experience .portal-medical-field::before {
    width: 112vw;
    top: 5%;
    left: 13%;
  }

  .portal-experience .portal-cursor {
    display: none;
  }

  .portal-experience .portal-preview-rail {
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    gap: 9px;
    top: 116px;
    right: 15px;
    left: 15px;
    padding: 5px 18px 13px 1px;
    overflow-x: auto;
    transform: none;
  }

  .portal-experience .portal-preview-rail::-webkit-scrollbar {
    display: none;
  }

  .portal-experience .portal-preview-rail > a {
    scroll-snap-align: start;
    flex: 0 0 134px;
    width: 134px;
    height: 128px;
    border-radius: 21px;
  }

  .portal-experience .portal-preview-rail > a:nth-child(1),
  .portal-experience .portal-preview-rail > a:nth-child(2),
  .portal-experience .portal-preview-rail > a:nth-child(3) {
    transform: none;
  }

  .portal-experience .portal-preview-rail > a:first-child > img {
    padding: 8px;
  }

  .portal-experience .portal-preview-rail > a > span:not(.preview-glyph) {
    right: 11px;
    bottom: 10px;
    left: 11px;
    font-size: 12px;
  }

  .portal-experience .portal-preview-rail > a > span:not(.preview-glyph) b {
    margin-bottom: 4px;
    font-size: 6px;
  }

  .portal-experience .portal-preview-rail > a > span:not(.preview-glyph) small,
  .portal-experience .portal-preview-rail > a > i {
    display: none;
  }

  .portal-experience .portal-intro-copy {
    width: auto;
    top: auto;
    right: 22px;
    bottom: 103px;
    left: 22px;
    transform: none;
  }

  .portal-experience .portal-kicker {
    margin-bottom: 14px;
    font-size: 6px;
  }

  .portal-experience .portal-intro-copy h1 {
    max-width: 7.8em;
    font-size: clamp(43px, 12vw, 54px);
    line-height: 0.84;
  }

  .portal-experience .portal-intro-copy > p:last-of-type {
    max-width: 335px;
    margin-top: 15px;
    font-size: 10px;
    line-height: 1.48;
  }

  .portal-experience:is(.phase-portal, .phase-travelling) .portal-enter {
    width: 82px;
    height: 67px;
    bottom: 13px;
  }

  .portal-experience:is(.phase-portal, .phase-travelling) .portal-enter::before {
    font-size: 6px;
  }

  .portal-experience .portal-product-model.model-phase-inside {
    width: 90vw;
    height: 25vh;
    top: 36%;
  }
}

@media (max-width: 390px) and (max-height: 720px) {
  .portal-experience .portal-preview-rail {
    top: 98px;
  }

  .portal-experience .portal-preview-rail > a {
    flex-basis: 120px;
    width: 120px;
    height: 112px;
  }

  .portal-experience .portal-intro-copy {
    bottom: 88px;
  }

  .portal-experience .portal-intro-copy h1 {
    font-size: 41px;
  }

  .portal-experience .portal-intro-copy > p:last-of-type {
    margin-top: 12px;
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-experience .portal-entry-light::before,
  .portal-experience .portal-medical-field::before,
  .portal-experience .portal-medical-field::after,
  .portal-experience .portal-medical-field i,
  .portal-experience .portal-kicker,
  .portal-experience .portal-intro-copy h1,
  .portal-experience .portal-intro-copy > p:last-of-type,
  .portal-experience .portal-preview-rail > a,
  .portal-experience:is(.phase-portal, .phase-travelling) .portal-enter .portal-enter-core b {
    animation: none;
  }
}

/* Preserve the approved Figma post-opening composition: the portal stays open
   and the product remains in the first information card, not as a second large
   duplicate in the centre of the scene. */
.portal-experience.phase-portal .portal-product-model.model-phase-portal,
html.proctima-intro-revealing .portal-experience.phase-portal .portal-product-model.model-phase-portal,
html.proctima-intro-complete .portal-experience.phase-portal .portal-product-model.model-phase-portal {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  animation: none;
}

/* Figma Animation page opening: close floral cover -> split foliage -> hero reveal */

html.proctima-intro-pending,
html.proctima-intro-running,
html.proctima-intro-pending body,
html.proctima-intro-running body {
  overflow: hidden;
}

html.proctima-intro-pending .site-header,
html.proctima-intro-running:not(.proctima-intro-revealing) .site-header {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-38px);
}

html.proctima-intro-pending .portal-intro-copy,
html.proctima-intro-pending .portal-preview-rail,
html.proctima-intro-pending .portal-enter,
html.proctima-intro-pending .portal-medical-field,
html.proctima-intro-pending .portal-cursor,
html.proctima-intro-running:not(.proctima-intro-revealing) .portal-intro-copy,
html.proctima-intro-running:not(.proctima-intro-revealing) .portal-preview-rail,
html.proctima-intro-running:not(.proctima-intro-revealing) .portal-enter,
html.proctima-intro-running:not(.proctima-intro-revealing) .portal-medical-field,
html.proctima-intro-running:not(.proctima-intro-revealing) .portal-cursor {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.proctima-home .portal-experience.phase-portal .portal-kicker,
html.proctima-home .portal-experience.phase-portal .portal-intro-copy h1,
html.proctima-home .portal-experience.phase-portal .portal-intro-copy > p:last-of-type,
html.proctima-home .portal-experience.phase-portal .portal-preview-rail > a {
  animation: none;
}

html.proctima-intro-revealing .site-header,
html.proctima-intro-complete .site-header {
  animation: proctimaFigmaHeaderIn 0.76s cubic-bezier(0.18, 0.72, 0.18, 1) 0.08s both;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-kicker,
html.proctima-intro-complete .portal-experience.phase-portal .portal-kicker {
  animation: proctimaTextReveal 0.78s cubic-bezier(0.2, 0.74, 0.22, 1) 0.08s both;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-intro-copy h1,
html.proctima-intro-complete .portal-experience.phase-portal .portal-intro-copy h1 {
  animation: proctimaTextReveal 0.92s cubic-bezier(0.2, 0.74, 0.22, 1) 0.15s both;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-intro-copy > p:last-of-type,
html.proctima-intro-complete .portal-experience.phase-portal .portal-intro-copy > p:last-of-type {
  animation: proctimaTextReveal 0.84s cubic-bezier(0.2, 0.74, 0.22, 1) 0.25s both;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-preview-rail > a,
html.proctima-intro-complete .portal-experience.phase-portal .portal-preview-rail > a {
  animation: proctimaCardReveal 0.82s cubic-bezier(0.16, 0.74, 0.19, 1) both;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-preview-rail > a:nth-child(1),
html.proctima-intro-complete .portal-experience.phase-portal .portal-preview-rail > a:nth-child(1) {
  animation-delay: 0.27s;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-preview-rail > a:nth-child(2),
html.proctima-intro-complete .portal-experience.phase-portal .portal-preview-rail > a:nth-child(2) {
  animation-delay: 0.36s;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-preview-rail > a:nth-child(3),
html.proctima-intro-complete .portal-experience.phase-portal .portal-preview-rail > a:nth-child(3) {
  animation-delay: 0.45s;
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-enter,
html.proctima-intro-revealing .portal-experience.phase-portal .portal-medical-field,
html.proctima-intro-revealing .portal-experience.phase-portal .portal-cursor,
html.proctima-intro-complete .portal-experience.phase-portal .portal-enter,
html.proctima-intro-complete .portal-experience.phase-portal .portal-medical-field,
html.proctima-intro-complete .portal-experience.phase-portal .portal-cursor {
  animation: proctimaFigmaFieldIn 0.74s ease-out 0.36s both;
}

.proctima-figma-opening {
  z-index: 9999;
  isolation: isolate;
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #03191b;
  cursor: progress;
  opacity: 1;
  transition: opacity 0.48s ease, transform 0.48s cubic-bezier(0.18, 0.72, 0.18, 1);
}

.proctima-figma-opening.is-finishing {
  pointer-events: none;
  opacity: 0;
  transform: scale(1.012);
}

.proctima-figma-opening.is-skipped {
  pointer-events: none;
  opacity: 0;
  transition-duration: 0.035s;
}

.figma-opening-scene {
  --opening-focus-x: 69%;
  --opening-focus-y: 41%;
  --opening-start-scale: 2.12;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #03191b;
}

.figma-opening-world {
  z-index: 1;
  position: absolute;
  inset: -9%;
  background: url("/assets/proctima-portal-entry.webp") 50% 50% / cover no-repeat;
  filter: brightness(0.42) saturate(1.16) contrast(1.08);
  transform: translate3d(-1.5%, 2%, 0) scale(var(--opening-start-scale));
  transform-origin: 50% 52%;
}

.proctima-figma-opening.is-active .figma-opening-world {
  will-change: transform, filter, opacity;
  animation: proctimaFigmaWorldOpen 3.4s cubic-bezier(0.58, 0.02, 0.12, 1) both;
}

.figma-opening-destination {
  z-index: 2;
  position: absolute;
  inset: 6px;
  overflow: hidden;
  border-radius: 34px;
  background: #061b1e;
  box-shadow: inset 0 0 130px rgba(0, 8, 12, 0.5);
  opacity: 0;
  clip-path: circle(2% at var(--opening-focus-x) var(--opening-focus-y));
  transform: scale(1.02);
}

.figma-opening-destination::before,
.figma-opening-destination::after {
  content: "";
  position: absolute;
}

.figma-opening-destination::before {
  inset: -4%;
  background: url("/assets/proctima-hero.webp") 50% 50% / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.09);
}

.figma-opening-destination::after {
  inset: 0;
  background:
    radial-gradient(circle at 69% 41%, rgba(245, 255, 223, 0.2), transparent 31%),
    linear-gradient(90deg, rgba(0, 16, 20, 0.58), transparent 56%, rgba(0, 15, 18, 0.1));
}

.proctima-figma-opening.is-active .figma-opening-destination {
  will-change: clip-path, transform, opacity;
  animation: proctimaFigmaDestination 3.4s cubic-bezier(0.52, 0.04, 0.12, 1) both;
}

.figma-opening-rush {
  z-index: 4;
  position: absolute;
  inset: -18%;
  background: url("/assets/proctima-portal-transition.webp") 50% 50% / cover no-repeat;
  mix-blend-mode: screen;
  filter: blur(7px) saturate(0.9) brightness(0.76);
  opacity: 0;
  transform: scale(0.72);
}

.proctima-figma-opening.is-active .figma-opening-rush {
  will-change: transform, filter, opacity;
  animation: proctimaFigmaRush 2.15s cubic-bezier(0.32, 0.04, 0.12, 1) 0.72s both;
}

.figma-opening-curtain {
  z-index: 6;
  position: absolute;
  width: 72vw;
  height: 132vh;
  top: -16vh;
  overflow: hidden;
  filter: brightness(0.34) saturate(1.2) contrast(1.13) blur(0.2px);
  transform-origin: 50% 50%;
}

.figma-opening-curtain::before,
.figma-opening-curtain i {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: url("/assets/proctima-portal-entry.webp");
  background-repeat: no-repeat;
  background-size: 188vw auto;
}

.figma-opening-curtain i {
  inset: -12%;
  opacity: 0.54;
  filter: blur(4px) brightness(0.62);
  transform: scale(1.15);
}

.figma-opening-curtain.curtain-left {
  left: -18vw;
  clip-path: polygon(0 0, 100% 0, 91% 17%, 96% 34%, 86% 49%, 96% 65%, 88% 82%, 100% 100%, 0 100%);
  transform: translate3d(0, 0, 0) scale(1.08) rotate(0.01deg);
}

.figma-opening-curtain.curtain-left::before,
.figma-opening-curtain.curtain-left i {
  background-position: 16% 50%;
}

.figma-opening-curtain.curtain-right {
  right: -18vw;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 82%, 4% 65%, 14% 49%, 4% 34%, 9% 17%);
  transform: translate3d(0, 0, 0) scale(1.08) rotate(-0.01deg);
}

.figma-opening-curtain.curtain-right::before,
.figma-opening-curtain.curtain-right i {
  background-position: 84% 50%;
}

.proctima-figma-opening.is-active .figma-opening-curtain.curtain-left {
  will-change: transform, filter, opacity;
  animation: proctimaFigmaCurtainLeft 3.25s cubic-bezier(0.58, 0.02, 0.12, 1) 0.12s both;
}

.proctima-figma-opening.is-active .figma-opening-curtain.curtain-right {
  will-change: transform, filter, opacity;
  animation: proctimaFigmaCurtainRight 3.25s cubic-bezier(0.58, 0.02, 0.12, 1) 0.12s both;
}

.figma-opening-light {
  z-index: 8;
  position: absolute;
  width: min(60vw, 980px);
  aspect-ratio: 1;
  top: 42%;
  left: 69%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 255, 226, 0.72) 0%, rgba(169, 241, 225, 0.22) 28%, rgba(98, 209, 201, 0.06) 52%, transparent 70%);
  filter: blur(17px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
}

.proctima-figma-opening.is-active .figma-opening-light {
  will-change: transform, opacity;
  animation: proctimaFigmaLight 2.15s ease-out 1.04s both;
}

.figma-opening-veil {
  z-index: 10;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 69% 41%, transparent 0 9%, rgba(0, 20, 22, 0.08) 32%, rgba(0, 11, 14, 0.58) 83%, rgba(0, 7, 10, 0.86) 100%),
    linear-gradient(180deg, rgba(0, 7, 9, 0.24), transparent 40%, rgba(0, 8, 10, 0.22));
  box-shadow: inset 0 0 150px rgba(0, 7, 10, 0.72);
}

.proctima-figma-opening.is-active .figma-opening-veil {
  will-change: opacity;
  animation: proctimaFigmaVeil 3.25s ease-out 0.08s both;
}

.figma-opening-skip {
  z-index: 20;
  position: absolute;
  right: 24px;
  bottom: 22px;
  min-width: 62px;
  height: 34px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(2, 25, 27, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  letter-spacing: 0.18em;
  font: 800 8px/1 "Helvetica Neue", Arial, sans-serif;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.figma-opening-skip:hover,
.figma-opening-skip:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.64);
}

.figma-opening-skip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes proctimaFigmaWorldOpen {
  0%,
  11% {
    opacity: 1;
    filter: brightness(0.42) saturate(1.16) contrast(1.08) blur(0);
    transform: translate3d(-1.5%, 2%, 0) scale(var(--opening-start-scale));
  }
  45% {
    opacity: 1;
    filter: brightness(0.58) saturate(1.14) contrast(1.06) blur(0.4px);
    transform: translate3d(0, 0.5%, 0) scale(1.46);
  }
  75% {
    opacity: 0.9;
    filter: brightness(0.78) saturate(1.08) contrast(1.02) blur(1.2px);
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  100% {
    opacity: 0;
    filter: brightness(0.94) saturate(1.04) blur(3px);
    transform: translate3d(0, 0, 0) scale(0.98);
  }
}

@keyframes proctimaFigmaDestination {
  0%,
  36% {
    opacity: 0;
    clip-path: circle(2% at var(--opening-focus-x) var(--opening-focus-y));
    transform: scale(1.02);
  }
  51% {
    opacity: 0.4;
    clip-path: circle(9% at var(--opening-focus-x) var(--opening-focus-y));
  }
  76% {
    opacity: 0.96;
    clip-path: circle(58% at var(--opening-focus-x) var(--opening-focus-y));
    transform: scale(1.008);
  }
  100% {
    opacity: 1;
    clip-path: circle(155% at var(--opening-focus-x) var(--opening-focus-y));
    transform: scale(1);
  }
}

@keyframes proctimaFigmaRush {
  0%,
  10% {
    opacity: 0;
    filter: blur(9px) saturate(0.86) brightness(0.66);
    transform: scale(0.72);
  }
  42% {
    opacity: 0.54;
    filter: blur(4px) saturate(1.02) brightness(0.82);
  }
  74% {
    opacity: 0.78;
    filter: blur(1.2px) saturate(1.12) brightness(1.02);
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    filter: blur(7px) saturate(1.18) brightness(1.18);
    transform: scale(1.72);
  }
}

@keyframes proctimaFigmaCurtainLeft {
  0%,
  14% {
    opacity: 1;
    filter: brightness(0.34) saturate(1.2) contrast(1.13) blur(0.2px);
    transform: translate3d(0, 0, 0) scale(1.08) rotate(0.01deg);
  }
  45% {
    opacity: 1;
    filter: brightness(0.48) saturate(1.16) contrast(1.08) blur(0.8px);
    transform: translate3d(-12vw, -1vh, 0) scale(1.2) rotate(-1.2deg);
  }
  78% {
    opacity: 0.9;
    filter: brightness(0.58) saturate(1.1) blur(2px);
    transform: translate3d(-47vw, -4vh, 0) scale(1.38) rotate(-4.4deg);
  }
  100% {
    opacity: 0;
    filter: brightness(0.68) saturate(1.06) blur(7px);
    transform: translate3d(-82vw, -8vh, 0) scale(1.58) rotate(-7deg);
  }
}

@keyframes proctimaFigmaCurtainRight {
  0%,
  14% {
    opacity: 1;
    filter: brightness(0.34) saturate(1.2) contrast(1.13) blur(0.2px);
    transform: translate3d(0, 0, 0) scale(1.08) rotate(-0.01deg);
  }
  45% {
    opacity: 1;
    filter: brightness(0.48) saturate(1.16) contrast(1.08) blur(0.8px);
    transform: translate3d(12vw, 1vh, 0) scale(1.2) rotate(1.2deg);
  }
  78% {
    opacity: 0.9;
    filter: brightness(0.58) saturate(1.1) blur(2px);
    transform: translate3d(47vw, 4vh, 0) scale(1.38) rotate(4.4deg);
  }
  100% {
    opacity: 0;
    filter: brightness(0.68) saturate(1.06) blur(7px);
    transform: translate3d(82vw, 8vh, 0) scale(1.58) rotate(7deg);
  }
}

@keyframes proctimaFigmaLight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  54% {
    opacity: 0.62;
  }
  78% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.62);
  }
}

@keyframes proctimaFigmaVeil {
  0%,
  17% {
    opacity: 1;
  }
  58% {
    opacity: 0.62;
  }
  83% {
    opacity: 0.14;
  }
  100% {
    opacity: 0;
  }
}

@keyframes proctimaFigmaHeaderIn {
  from {
    opacity: 0;
    transform: translateY(-38px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes proctimaFigmaFieldIn {
  from {
    visibility: visible;
    opacity: 0;
  }
  to {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .figma-opening-scene {
    --opening-focus-x: 64%;
    --opening-focus-y: 39%;
    --opening-start-scale: 2.42;
  }

  .figma-opening-world {
    inset: -13%;
    background-position: 52% 50%;
    transform: translate3d(-1%, 1%, 0) scale(var(--opening-start-scale));
  }

  .figma-opening-destination {
    inset: 4px;
    border-radius: 24px;
    clip-path: circle(2% at var(--opening-focus-x) var(--opening-focus-y));
  }

  .figma-opening-destination::before {
    background-position: 66% 50%;
  }

  .figma-opening-rush {
    inset: -28%;
    background-position: 56% 50%;
  }

  .figma-opening-curtain {
    width: 88vw;
    height: 138vh;
    top: -19vh;
  }

  .figma-opening-curtain::before,
  .figma-opening-curtain i {
    background-size: auto 150vh;
  }

  .figma-opening-curtain.curtain-left {
    left: -37vw;
  }

  .figma-opening-curtain.curtain-right {
    right: -37vw;
  }

  .figma-opening-light {
    width: 118vw;
    top: 39%;
    left: 64%;
  }

  .figma-opening-veil {
    background:
      radial-gradient(circle at 64% 39%, transparent 0 8%, rgba(0, 20, 22, 0.09) 29%, rgba(0, 11, 14, 0.62) 78%, rgba(0, 7, 10, 0.9) 100%),
      linear-gradient(180deg, rgba(0, 7, 9, 0.24), transparent 40%, rgba(0, 8, 10, 0.24));
  }

  .figma-opening-skip {
    right: 14px;
    bottom: 14px;
    min-width: 58px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proctima-figma-opening {
    display: none !important;
  }

  html.proctima-intro-pending,
  html.proctima-intro-running,
  html.proctima-intro-pending body,
  html.proctima-intro-running body {
    overflow: auto;
  }

  html.proctima-intro-complete .site-header,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-kicker,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-intro-copy h1,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-intro-copy > p:last-of-type,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-preview-rail > a,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-enter,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-medical-field,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-cursor {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   V4 / FIGMA MOTION REBUILD + CLINICAL ART DIRECTION
   The opening now moves forward through the botanical layers. The final hero
   keeps the Figma composition but replaces beauty/editorial cues with a
   pharmaceutical navy/cyan system, restrained yellow and clinical geometry.
   -------------------------------------------------------------------------- */

html.proctima-home {
  --medical-navy-950: #021523;
  --medical-navy-900: #05263a;
  --medical-navy-800: #083d58;
  --medical-cyan-500: #31bad0;
  --medical-cyan-200: #bfeef3;
  --medical-white: #f8fdff;
  --medical-yellow: #f7c917;
}

html.proctima-intro-pending body,
html.proctima-intro-running body {
  background: var(--medical-navy-950);
}

@media (min-width: 761px) {
  html.proctima-home .site-header:not(.is-scrolled) .header-inner {
    height: 66px;
    padding-inline: 20px;
    background:
      linear-gradient(90deg, rgba(5, 34, 50, 0.92), rgba(5, 42, 59, 0.72)),
      rgba(3, 27, 42, 0.84);
    border-color: rgba(181, 235, 242, 0.22);
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(1, 14, 24, 0.28), inset 0 1px rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(15px) saturate(0.92);
    backdrop-filter: blur(15px) saturate(0.92);
  }

  html.proctima-home .site-header:not(.is-scrolled) .primary-nav > a,
  html.proctima-home .site-header:not(.is-scrolled) .nav-cluster > a {
    color: #ecfbfd;
    opacity: 0.78;
    text-shadow: none;
  }

  html.proctima-home .site-header:not(.is-scrolled) .primary-nav > a.active::after,
  html.proctima-home .site-header:not(.is-scrolled) .nav-cluster > a.active::after {
    background: var(--medical-cyan-500);
  }
}

.portal-experience {
  color: var(--medical-white);
  background: var(--medical-navy-950);
  border-color: rgba(165, 228, 237, 0.22);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 22, 35, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.portal-experience .portal-entry-bg {
  inset: 0;
  background-image: url("/assets/proctima-medical-portal-v4.webp");
  background-position: 50% 50%;
  background-size: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.93);
  transform: translate3d(var(--portal-x), var(--portal-y), 0) scale(1.03);
}

.portal-experience .portal-entry-light {
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 18, 31, 0.94) 0%, rgba(2, 26, 41, 0.74) 31%, rgba(3, 40, 55, 0.17) 56%, transparent 75%),
    linear-gradient(0deg, rgba(1, 15, 25, 0.74), transparent 35%, transparent 76%, rgba(1, 15, 25, 0.32));
}

.portal-experience .portal-entry-light::before {
  width: auto;
  aspect-ratio: auto;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(154, 229, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 229, 238, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 37%, transparent 75%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 37%, transparent 75%);
  filter: none;
  opacity: 0.42;
  animation: proctimaMedicalGrid 7s ease-in-out infinite alternate;
}

.portal-experience .portal-entry-light::after {
  inset: 0;
  box-shadow: inset 0 0 110px rgba(0, 10, 18, 0.64);
}

.portal-experience .portal-medical-field {
  z-index: 2;
  opacity: 0.62;
}

.portal-experience .portal-medical-field::before {
  width: min(37vw, 650px);
  top: 6%;
  left: 57%;
  border-color: rgba(189, 240, 246, 0.18);
  box-shadow:
    0 0 0 34px rgba(189, 240, 246, 0.018),
    0 0 0 82px rgba(189, 240, 246, 0.012),
    inset 0 0 60px rgba(125, 222, 232, 0.04);
  animation: proctimaMedicalCalibration 28s linear infinite;
}

.portal-experience .portal-medical-field::after {
  width: 260px;
  height: 260px;
  top: 26%;
  left: 67%;
  border: 1px solid rgba(194, 241, 246, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(203, 244, 248, 0.2) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(transparent calc(50% - 0.5px), rgba(203, 244, 248, 0.2) 50%, transparent calc(50% + 0.5px));
  box-shadow: none;
  filter: none;
  animation: proctimaMedicalPulse 5.2s ease-in-out infinite alternate;
}

.portal-experience .portal-medical-field i {
  width: 22px;
  height: 1px;
  border-radius: 0;
  background: rgba(207, 247, 250, 0.58);
  box-shadow: 0 0 12px rgba(128, 226, 235, 0.35);
  animation: proctimaMedicalTick 4.8s ease-in-out infinite alternate;
}

.portal-experience .portal-medical-field i::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 7px;
  left: 50%;
  top: -3px;
  background: inherit;
}

.portal-experience .portal-medical-field i:nth-child(1) { top: 20%; left: 58%; }
.portal-experience .portal-medical-field i:nth-child(2) { top: 31%; right: 10%; }
.portal-experience .portal-medical-field i:nth-child(3) { bottom: 17%; left: 62%; }
.portal-experience .portal-medical-field i:nth-child(4) { right: 8%; bottom: 30%; }
.portal-experience .portal-medical-field i:nth-child(5) { top: 48%; left: 54%; }

.portal-experience .portal-cursor {
  width: 14px;
  height: 14px;
  border-color: rgba(222, 252, 255, 0.78);
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(91, 207, 221, 0.08), 0 0 24px rgba(91, 207, 221, 0.28);
  transform: rotate(45deg);
}

.portal-experience .portal-intro-copy {
  width: min(610px, 39vw);
  top: 52%;
  left: clamp(40px, 5.8vw, 104px);
}

.portal-experience .portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(211, 246, 250, 0.82);
  letter-spacing: 0.21em;
  font-family: var(--sans, "Helvetica Neue", Arial, sans-serif);
  font-size: 8px;
  font-weight: 800;
}

.portal-experience .portal-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--medical-yellow) 0 45%, var(--medical-cyan-500) 45% 100%);
}

.portal-experience .portal-intro-copy h1 {
  max-width: 7.8em;
  color: var(--medical-white);
  font-family: var(--sans, "Helvetica Neue", Arial, sans-serif);
  font-size: clamp(54px, 4.55vw, 82px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-transform: none;
  text-shadow: 0 10px 34px rgba(0, 13, 23, 0.42);
}

.portal-experience .portal-intro-copy h1 span {
  margin-top: 0.08em;
  color: #c9f1f4;
  font-family: inherit;
  font-size: 0.79em;
  font-weight: 700;
  line-height: 0.98;
}

.portal-experience .portal-intro-copy > p:last-of-type {
  max-width: 445px;
  margin-top: 24px;
  color: rgba(226, 247, 250, 0.76);
  font-family: var(--sans, "Helvetica Neue", Arial, sans-serif);
  font-size: 13px;
  line-height: 1.68;
  text-shadow: none;
}

.portal-experience.phase-portal .portal-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.portal-experience.phase-portal .portal-proofline span {
  position: relative;
  min-height: 28px;
  padding: 8px 11px 7px 25px;
  color: rgba(230, 249, 251, 0.86);
  background: rgba(7, 54, 72, 0.54);
  border: 1px solid rgba(174, 234, 241, 0.18);
  border-radius: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.portal-experience.phase-portal .portal-proofline span::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 11px;
  top: 50%;
  border-radius: 50%;
  background: var(--medical-yellow);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(247, 201, 23, 0.1);
}

.portal-experience.phase-portal .portal-product-model.model-phase-portal {
  z-index: 5;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  width: clamp(390px, 30vw, 555px);
  height: clamp(300px, 42vh, 470px);
  top: 58%;
  left: 69%;
  filter: drop-shadow(0 34px 34px rgba(0, 15, 27, 0.42));
  transform: translate3d(-50%, -50%, 0) rotate(-4.2deg) scale(1);
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.portal-experience.phase-portal .portal-product-model.model-phase-portal::before {
  background:
    radial-gradient(circle, rgba(239, 253, 255, 0.34), rgba(83, 196, 210, 0.12) 42%, transparent 70%);
}

.portal-experience.phase-portal .portal-product-model.model-phase-portal .product-visual-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-experience .portal-preview-rail {
  gap: 11px;
  top: 51%;
  right: clamp(-104px, -5.4vw, -56px);
}

.portal-experience .portal-preview-rail > a {
  width: clamp(138px, 9.1vw, 174px);
  height: clamp(198px, 23vh, 252px);
  color: var(--medical-white);
  background:
    linear-gradient(180deg, rgba(16, 69, 86, 0.7), rgba(3, 31, 46, 0.9));
  border: 1px solid rgba(177, 234, 240, 0.24);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(11px) saturate(0.88);
  backdrop-filter: blur(11px) saturate(0.88);
  box-shadow: 0 22px 50px rgba(0, 17, 29, 0.34);
}

.portal-experience .portal-preview-rail > a::before {
  inset: 0 0 auto;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--medical-cyan-500), transparent 72%);
}

.portal-experience .portal-preview-rail > a::after {
  background: linear-gradient(180deg, rgba(3, 23, 34, 0.02) 27%, rgba(3, 24, 36, 0.38) 57%, rgba(2, 20, 32, 0.96) 100%);
}

.portal-experience .portal-preview-rail > a:first-child > img {
  padding: 15px;
  background:
    linear-gradient(rgba(178, 235, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 235, 241, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(230, 252, 255, 0.24), rgba(21, 99, 118, 0.16) 52%, transparent 70%);
  background-size: 22px 22px, 22px 22px, auto;
}

.portal-experience .portal-preview-rail > a:nth-child(2) > .preview-glyph {
  background: url("/assets/proctima-medical-hero.webp") 68% 50% / cover no-repeat;
  filter: saturate(0.76) contrast(1.02);
}

.portal-experience .portal-preview-rail > a:nth-child(3) > .preview-glyph {
  background: url("/assets/care-clean-v8.webp") center / cover no-repeat;
  filter: saturate(0.58) contrast(1.04);
}

.portal-experience .portal-preview-rail > a > span:not(.preview-glyph) {
  color: var(--medical-white);
  font-family: var(--sans, "Helvetica Neue", Arial, sans-serif);
  font-size: 14px;
}

.portal-experience .portal-preview-rail > a > span:not(.preview-glyph) b {
  color: var(--medical-cyan-200);
  font-size: 7px;
}

.portal-experience .portal-preview-rail > a > span:not(.preview-glyph) small {
  color: rgba(215, 242, 246, 0.58);
}

.portal-experience .portal-preview-rail > a > i {
  width: 29px;
  height: 29px;
  color: var(--medical-navy-900);
  background: var(--medical-cyan-200);
  border-radius: 7px;
}

.portal-experience .portal-preview-rail > a:hover {
  border-color: rgba(199, 244, 248, 0.54);
  box-shadow: 0 28px 60px rgba(0, 17, 29, 0.42);
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter::before {
  color: rgba(222, 248, 251, 0.78);
}

.portal-experience:is(.phase-portal, .phase-travelling) .portal-enter::after {
  background: linear-gradient(var(--medical-yellow), rgba(49, 186, 208, 0.12));
}

.portal-experience.phase-travelling .portal-entry-bg {
  animation-name: proctimaMedicalPortalDive;
}

.portal-experience.phase-travelling .portal-travel-layer {
  background: url("/assets/proctima-medical-rush-v4.webp") 50% 50% / cover no-repeat;
  animation-name: proctimaMedicalTravelFlash;
}

/* First-load overlay. Unlike V3, every depth plane scales toward the viewer. */

.proctima-medical-opening {
  background: transparent;
  cursor: default;
}

.proctima-medical-opening .figma-opening-scene {
  --opening-focus-x: 70%;
  --opening-focus-y: 43%;
  --opening-duration: 4.28s;
  --medical-world-start: 1.08;
  background: transparent;
}

.proctima-medical-opening .figma-opening-world {
  z-index: 5;
  inset: -4%;
  background-image: url("/assets/proctima-medical-entry-v4.webp");
  background-position: 50% 50%;
  background-size: cover;
  filter: brightness(0.58) saturate(0.82) contrast(1.08);
  opacity: 1;
  transform: translate3d(0, 1.5%, 0) scale(var(--medical-world-start));
  transform-origin: var(--opening-focus-x) var(--opening-focus-y);
}

.proctima-medical-opening.is-active .figma-opening-world {
  animation: proctimaMedicalWorldForward var(--opening-duration) cubic-bezier(0.56, 0.02, 0.12, 1) both;
}

.figma-opening-depth {
  pointer-events: none;
  position: absolute;
}

.figma-opening-depth.depth-far {
  z-index: 6;
  inset: -8%;
  background: url("/assets/proctima-medical-entry-v4.webp") 50% 50% / cover no-repeat;
  clip-path: circle(38% at var(--opening-focus-x) var(--opening-focus-y));
  filter: brightness(0.72) saturate(0.7) blur(0.4px);
  opacity: 0;
  transform: scale(1.12);
  transform-origin: var(--opening-focus-x) var(--opening-focus-y);
}

.proctima-medical-opening.is-active .figma-opening-depth.depth-far {
  animation: proctimaMedicalFarField 3.35s cubic-bezier(0.45, 0.03, 0.12, 1) 0.52s both;
}

.proctima-medical-opening .figma-opening-curtain {
  z-index: 8;
  top: -12vh;
  height: 124vh;
  overflow: hidden;
  filter: brightness(0.52) saturate(0.88) contrast(1.09);
  opacity: 0.94;
  transform-origin: var(--opening-focus-x) var(--opening-focus-y);
}

.proctima-medical-opening .figma-opening-curtain::before,
.proctima-medical-opening .figma-opening-curtain i {
  inset: -10%;
  background-image: url("/assets/proctima-medical-entry-v4.webp");
  background-size: 112vw auto;
}

.proctima-medical-opening .figma-opening-curtain i {
  opacity: 0.32;
  filter: blur(3px) brightness(0.72);
  transform: scale(1.08);
}

.proctima-medical-opening .figma-opening-curtain.curtain-left {
  width: 59vw;
  left: -9vw;
  clip-path: polygon(0 0, 92% 0, 82% 15%, 95% 31%, 78% 47%, 91% 63%, 74% 80%, 88% 100%, 0 100%);
  transform: translate3d(0, 0, 0) scale(1.03);
}

.proctima-medical-opening .figma-opening-curtain.curtain-left::before,
.proctima-medical-opening .figma-opening-curtain.curtain-left i {
  background-position: 4% 50%;
}

.proctima-medical-opening .figma-opening-curtain.curtain-right {
  width: 59vw;
  right: -9vw;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 10% 100%, 26% 80%, 9% 63%, 22% 47%, 5% 31%, 18% 15%);
  transform: translate3d(0, 0, 0) scale(1.03);
}

.proctima-medical-opening .figma-opening-curtain.curtain-right::before,
.proctima-medical-opening .figma-opening-curtain.curtain-right i {
  background-position: 96% 50%;
}

.proctima-medical-opening .figma-opening-curtain.curtain-top {
  width: 122vw;
  height: 61vh;
  top: -24vh;
  left: -11vw;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 91%, 64% 76%, 48% 94%, 31% 79%, 14% 91%, 0 74%);
  transform: translate3d(0, 0, 0) scale(1.04);
}

.proctima-medical-opening .figma-opening-curtain.curtain-top::before,
.proctima-medical-opening .figma-opening-curtain.curtain-top i {
  background-position: 50% 4%;
}

.proctima-medical-opening.is-active .figma-opening-curtain.curtain-left {
  animation: proctimaMedicalNearLeft 3.62s cubic-bezier(0.55, 0.02, 0.11, 1) 0.16s both;
}

.proctima-medical-opening.is-active .figma-opening-curtain.curtain-right {
  animation: proctimaMedicalNearRight 3.62s cubic-bezier(0.55, 0.02, 0.11, 1) 0.16s both;
}

.proctima-medical-opening.is-active .figma-opening-curtain.curtain-top {
  animation: proctimaMedicalNearTop 3.42s cubic-bezier(0.55, 0.02, 0.11, 1) 0.28s both;
}

.proctima-medical-opening .figma-opening-rush {
  z-index: 10;
  inset: -22%;
  background-image: url("/assets/proctima-medical-rush-v4.webp");
  background-position: 50% 50%;
  background-size: cover;
  mix-blend-mode: normal;
  filter: blur(11px) saturate(0.72) brightness(0.72);
  opacity: 0;
  transform: scale(0.74);
  transform-origin: var(--opening-focus-x) var(--opening-focus-y);
}

.proctima-medical-opening.is-active .figma-opening-rush {
  animation: proctimaMedicalRush 2.28s cubic-bezier(0.36, 0.03, 0.1, 1) 1.32s both;
}

.proctima-medical-opening .figma-opening-destination {
  z-index: 3;
  inset: 6px;
  border-radius: 26px;
  background: var(--medical-navy-950);
  clip-path: circle(0.5% at var(--opening-focus-x) var(--opening-focus-y));
  opacity: 0;
  transform: scale(1.055);
}

.proctima-medical-opening .figma-opening-destination::before {
  inset: 0;
  background-image: url("/assets/proctima-medical-portal-v4.webp");
  background-position: 50% 50%;
  background-size: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.93);
  transform: scale(1.03);
}

.proctima-medical-opening .figma-opening-destination::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 18, 31, 0.94) 0%, rgba(2, 26, 41, 0.74) 31%, rgba(3, 40, 55, 0.17) 56%, transparent 75%),
    linear-gradient(0deg, rgba(1, 15, 25, 0.74), transparent 35%, transparent 76%, rgba(1, 15, 25, 0.32));
}

.proctima-medical-opening.is-active .figma-opening-destination {
  animation: proctimaMedicalDestination var(--opening-duration) cubic-bezier(0.45, 0.03, 0.11, 1) both;
}

.figma-opening-scan {
  z-index: 12;
  position: absolute;
  width: min(42vw, 680px);
  aspect-ratio: 1;
  top: var(--opening-focus-y);
  left: var(--opening-focus-x);
  border: 1px solid rgba(207, 247, 250, 0.44);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.32);
  box-shadow:
    0 0 0 18px rgba(101, 212, 225, 0.025),
    0 0 0 54px rgba(101, 212, 225, 0.016),
    inset 0 0 44px rgba(125, 221, 231, 0.04);
}

.figma-opening-scan::before,
.figma-opening-scan::after {
  content: "";
  position: absolute;
  inset: 50% -12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 248, 251, 0.42), transparent);
}

.figma-opening-scan::after {
  transform: rotate(90deg);
}

.proctima-medical-opening.is-active .figma-opening-scan {
  animation: proctimaMedicalScan 2.25s cubic-bezier(0.34, 0.03, 0.15, 1) 1.68s both;
}

.figma-opening-calibration {
  z-index: 13;
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(rgba(178, 235, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 235, 241, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at var(--opening-focus-x) var(--opening-focus-y), #000, transparent 61%);
  mask-image: radial-gradient(circle at var(--opening-focus-x) var(--opening-focus-y), #000, transparent 61%);
}

.figma-opening-calibration i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(205, 246, 250, 0.52);
  border-style: solid;
}

.figma-opening-calibration i:nth-child(1) { top: 18%; left: 18%; border-width: 1px 0 0 1px; }
.figma-opening-calibration i:nth-child(2) { top: 18%; right: 18%; border-width: 1px 1px 0 0; }
.figma-opening-calibration i:nth-child(3) { right: 18%; bottom: 18%; border-width: 0 1px 1px 0; }
.figma-opening-calibration i:nth-child(4) { bottom: 18%; left: 18%; border-width: 0 0 1px 1px; }

.proctima-medical-opening.is-active .figma-opening-calibration {
  animation: proctimaMedicalCalibrationGrid 1.72s ease-out 2.18s both;
}

.proctima-medical-opening .figma-opening-light {
  z-index: 14;
  width: min(48vw, 790px);
  top: var(--opening-focus-y);
  left: var(--opening-focus-x);
  background: radial-gradient(circle, rgba(233, 253, 255, 0.72), rgba(84, 204, 217, 0.18) 31%, rgba(31, 135, 154, 0.04) 54%, transparent 72%);
  filter: blur(14px);
}

.proctima-medical-opening.is-active .figma-opening-light {
  animation: proctimaMedicalLight 1.92s ease-out 1.72s both;
}

.proctima-medical-opening .figma-opening-veil {
  z-index: 16;
  background:
    radial-gradient(circle at var(--opening-focus-x) var(--opening-focus-y), transparent 0 10%, rgba(0, 19, 29, 0.06) 34%, rgba(0, 10, 18, 0.68) 100%),
    linear-gradient(180deg, rgba(0, 9, 16, 0.34), transparent 42%, rgba(0, 9, 16, 0.3));
  box-shadow: inset 0 0 150px rgba(0, 7, 13, 0.66);
}

.proctima-medical-opening.is-active .figma-opening-veil {
  animation: proctimaMedicalVeil var(--opening-duration) ease-out both;
}

.proctima-medical-opening .figma-opening-skip {
  right: 22px;
  bottom: 20px;
  min-width: 67px;
  height: 32px;
  padding: 0 13px;
  color: rgba(222, 248, 251, 0.74);
  background: rgba(3, 31, 45, 0.58);
  border-color: rgba(181, 237, 242, 0.24);
  border-radius: 7px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@keyframes proctimaMedicalGrid {
  from { opacity: 0.22; transform: translate3d(-6px, -4px, 0); }
  to { opacity: 0.5; transform: translate3d(6px, 4px, 0); }
}

@keyframes proctimaMedicalCalibration {
  to { transform: rotate(360deg); }
}

@keyframes proctimaMedicalPulse {
  from { opacity: 0.34; transform: scale(0.94); }
  to { opacity: 0.68; transform: scale(1.04); }
}

@keyframes proctimaMedicalTick {
  from { opacity: 0.24; transform: scaleX(0.72); }
  to { opacity: 0.8; transform: scaleX(1.08); }
}

@keyframes proctimaMedicalWorldForward {
  0%, 10% {
    opacity: 1;
    filter: brightness(0.58) saturate(0.82) contrast(1.08) blur(0);
    transform: translate3d(0, 1.5%, 0) scale(var(--medical-world-start));
  }
  30% {
    opacity: 1;
    filter: brightness(0.68) saturate(0.84) contrast(1.06) blur(0.2px);
    transform: translate3d(-1.2%, 0.8%, 0) scale(1.34);
  }
  53% {
    opacity: 0.96;
    filter: brightness(0.78) saturate(0.88) contrast(1.04) blur(0.8px);
    transform: translate3d(-3.8%, -0.4%, 0) scale(1.92);
  }
  74% {
    opacity: 0.5;
    filter: brightness(0.92) saturate(0.9) blur(4px);
    transform: translate3d(-8%, -2.5%, 0) scale(2.76);
  }
  100% {
    opacity: 0;
    filter: brightness(1.08) saturate(0.86) blur(12px);
    transform: translate3d(-12%, -5%, 0) scale(3.42);
  }
}

@keyframes proctimaMedicalFarField {
  0% { opacity: 0; filter: brightness(0.7) saturate(0.7) blur(1.5px); transform: scale(0.96); }
  18% { opacity: 0.34; }
  58% { opacity: 0.7; filter: brightness(0.86) saturate(0.78) blur(0.4px); transform: scale(1.48); }
  100% { opacity: 0; filter: brightness(1.05) saturate(0.72) blur(9px); transform: scale(2.72); }
}

@keyframes proctimaMedicalNearLeft {
  0%, 11% { opacity: 0.94; filter: brightness(0.52) saturate(0.88) contrast(1.09) blur(0); transform: translate3d(0, 0, 0) scale(1.03); }
  36% { opacity: 1; filter: brightness(0.6) saturate(0.86) contrast(1.06) blur(0.4px); transform: translate3d(-4vw, -1vh, 0) scale(1.3) rotate(-0.8deg); }
  68% { opacity: 0.76; filter: brightness(0.72) saturate(0.82) blur(3px); transform: translate3d(-35vw, -5vh, 0) scale(2.36) rotate(-4deg); }
  100% { opacity: 0; filter: brightness(0.88) saturate(0.74) blur(13px); transform: translate3d(-94vw, -13vh, 0) scale(4.1) rotate(-8deg); }
}

@keyframes proctimaMedicalNearRight {
  0%, 11% { opacity: 0.94; filter: brightness(0.52) saturate(0.88) contrast(1.09) blur(0); transform: translate3d(0, 0, 0) scale(1.03); }
  36% { opacity: 1; filter: brightness(0.6) saturate(0.86) contrast(1.06) blur(0.4px); transform: translate3d(4vw, 1vh, 0) scale(1.3) rotate(0.8deg); }
  68% { opacity: 0.76; filter: brightness(0.72) saturate(0.82) blur(3px); transform: translate3d(35vw, 5vh, 0) scale(2.36) rotate(4deg); }
  100% { opacity: 0; filter: brightness(0.88) saturate(0.74) blur(13px); transform: translate3d(94vw, 13vh, 0) scale(4.1) rotate(8deg); }
}

@keyframes proctimaMedicalNearTop {
  0%, 13% { opacity: 0.9; filter: brightness(0.5) saturate(0.86) blur(0); transform: translate3d(0, 0, 0) scale(1.04); }
  44% { opacity: 0.92; filter: brightness(0.61) saturate(0.84) blur(0.7px); transform: translate3d(0, -6vh, 0) scale(1.46); }
  74% { opacity: 0.58; filter: brightness(0.74) saturate(0.78) blur(4px); transform: translate3d(2vw, -38vh, 0) scale(2.52); }
  100% { opacity: 0; filter: brightness(0.9) saturate(0.72) blur(12px); transform: translate3d(5vw, -92vh, 0) scale(3.82); }
}

@keyframes proctimaMedicalRush {
  0%, 8% { opacity: 0; filter: blur(11px) saturate(0.72) brightness(0.72); transform: scale(0.74); }
  29% { opacity: 0.24; }
  58% { opacity: 0.88; filter: blur(1.5px) saturate(0.88) brightness(0.98); transform: scale(1.18); }
  78% { opacity: 0.72; filter: blur(3px) saturate(0.84) brightness(1.08); transform: scale(1.58); }
  100% { opacity: 0; filter: blur(12px) saturate(0.76) brightness(1.2); transform: scale(2.18); }
}

@keyframes proctimaMedicalDestination {
  0%, 49% { opacity: 0; clip-path: circle(0.5% at var(--opening-focus-x) var(--opening-focus-y)); transform: scale(1.055); }
  61% { opacity: 0.34; clip-path: circle(11% at var(--opening-focus-x) var(--opening-focus-y)); }
  77% { opacity: 1; clip-path: circle(72% at var(--opening-focus-x) var(--opening-focus-y)); transform: scale(1.014); }
  88% { opacity: 1; clip-path: circle(150% at var(--opening-focus-x) var(--opening-focus-y)); transform: scale(1); }
  100% { opacity: 0; clip-path: circle(165% at var(--opening-focus-x) var(--opening-focus-y)); transform: scale(1); }
}

@keyframes proctimaMedicalScan {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.32) rotate(-8deg); }
  22% { opacity: 0.36; }
  62% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.02) rotate(4deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.58) rotate(9deg); }
}

@keyframes proctimaMedicalCalibrationGrid {
  0% { opacity: 0; transform: scale(1.06); }
  38% { opacity: 0.34; }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes proctimaMedicalLight {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.34); }
  46% { opacity: 0.56; }
  76% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.46); }
}

@keyframes proctimaMedicalVeil {
  0%, 12% { opacity: 1; }
  48% { opacity: 0.68; }
  76% { opacity: 0.2; }
  100% { opacity: 0; }
}

@keyframes proctimaMedicalPortalDive {
  0% { filter: saturate(0.92) contrast(1.04) blur(0); transform: translate3d(var(--portal-x), var(--portal-y), 0) scale(1.03); }
  58% { filter: saturate(0.9) contrast(1.03) blur(1px); transform: translate3d(0, 0, 0) scale(1.32); }
  100% { filter: saturate(0.84) brightness(1.1) blur(6px); transform: translate3d(-3%, -2%, 0) scale(1.86); }
}

@keyframes proctimaMedicalTravelFlash {
  0% { opacity: 0; filter: blur(12px) saturate(0.72); transform: scale(0.74); }
  44% { opacity: 0.38; filter: blur(5px) saturate(0.82); }
  78% { opacity: 0.9; filter: blur(1px) brightness(1.08); transform: scale(1.16); }
  100% { opacity: 0; filter: blur(8px) brightness(1.2); transform: scale(1.74); }
}

@keyframes proctimaMedicalPackIn {
  from { opacity: 0; filter: blur(8px); transform: translate3d(-47%, -46%, 0) rotate(-1deg) scale(0.72); }
  to { opacity: 1; filter: blur(0); transform: translate3d(-50%, -50%, 0) rotate(-4.2deg) scale(1); }
}

html.proctima-intro-revealing .portal-experience.phase-portal .portal-product-model.model-phase-portal,
html.proctima-intro-complete .portal-experience.phase-portal .portal-product-model.model-phase-portal {
  animation: proctimaMedicalPackIn 0.92s cubic-bezier(0.18, 0.72, 0.18, 1) 0.16s both;
}

html.proctima-intro-revealing .site-header,
html.proctima-intro-complete .site-header {
  animation-duration: 0.72s;
}

@media (max-width: 1180px) {
  .portal-experience .portal-intro-copy {
    width: 40vw;
    left: 42px;
  }

  .portal-experience .portal-intro-copy h1 {
    font-size: clamp(48px, 5vw, 66px);
  }

  .portal-experience.phase-portal .portal-product-model.model-phase-portal {
    width: 32vw;
    left: 67%;
  }

  .portal-experience .portal-preview-rail {
    right: -104px;
  }
}

@media (max-width: 760px) {
  html.proctima-home .site-header:not(.is-scrolled) .header-inner {
    background: rgba(4, 35, 51, 0.9);
    border-color: rgba(184, 237, 243, 0.2);
    border-radius: 15px;
    box-shadow: 0 14px 38px rgba(0, 15, 26, 0.24);
  }

  html.proctima-home .site-header:not(.is-scrolled) .brand img {
    filter: brightness(0) invert(1);
  }

  html.proctima-home .site-header:not(.is-scrolled) .menu-toggle {
    background: rgba(188, 239, 244, 0.12);
  }

  .portal-experience {
    min-height: 700px;
    border-radius: 20px;
  }

  .portal-experience .portal-entry-bg {
    inset: 0;
    background-position: 72% 50%;
    transform: translate3d(0, 0, 0) scale(1.035);
  }

  .portal-experience .portal-entry-light {
    background:
      linear-gradient(180deg, rgba(1, 17, 28, 0.44) 0%, rgba(2, 29, 43, 0.06) 27%, rgba(1, 19, 31, 0.3) 50%, rgba(1, 15, 26, 0.96) 76%, rgba(1, 13, 23, 1) 100%),
      linear-gradient(90deg, rgba(1, 17, 28, 0.46), transparent 62%);
  }

  .portal-experience .portal-entry-light::before {
    background-size: 46px 46px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 65%);
    mask-image: linear-gradient(180deg, #000, transparent 65%);
  }

  .portal-experience .portal-medical-field::before {
    width: 108vw;
    top: 8%;
    left: 18%;
  }

  .portal-experience .portal-medical-field::after {
    width: 62vw;
    height: 62vw;
    top: 19%;
    left: 43%;
  }

  .portal-experience .portal-preview-rail {
    gap: 8px;
    top: 90px;
    right: 12px;
    left: 12px;
    padding: 4px 20px 11px 1px;
  }

  .portal-experience .portal-preview-rail > a {
    flex-basis: 128px;
    width: 128px;
    height: 104px;
    border-radius: 12px;
  }

  .portal-experience .portal-preview-rail > a::before {
    border-radius: 12px 12px 0 0;
  }

  .portal-experience .portal-preview-rail > a:first-child > img {
    padding: 7px;
  }

  .portal-experience.phase-portal .portal-product-model.model-phase-portal {
    width: min(76vw, 330px);
    height: 235px;
    top: 42%;
    left: 52%;
    transform: translate3d(-50%, -50%, 0) rotate(-4deg) scale(1);
  }

  .portal-experience .portal-intro-copy {
    width: auto;
    right: 20px;
    bottom: 88px;
    left: 20px;
  }

  .portal-experience .portal-kicker {
    gap: 7px;
    margin-bottom: 11px;
    font-size: 6px;
  }

  .portal-experience .portal-kicker::before {
    width: 18px;
  }

  .portal-experience .portal-intro-copy h1 {
    max-width: 8.4em;
    font-size: clamp(36px, 10.8vw, 47px);
    line-height: 0.96;
  }

  .portal-experience .portal-intro-copy > p:last-of-type {
    max-width: 350px;
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.5;
  }

  .portal-experience.phase-portal .portal-proofline {
    gap: 4px;
    margin-top: 10px;
  }

  .portal-experience.phase-portal .portal-proofline span {
    min-height: 23px;
    padding: 6px 7px 5px 18px;
    border-radius: 5px;
    font-size: 5.5px;
  }

  .portal-experience.phase-portal .portal-proofline span::before {
    width: 4px;
    height: 4px;
    left: 7px;
  }

  .portal-experience:is(.phase-portal, .phase-travelling) .portal-enter {
    bottom: 8px;
  }

  .proctima-medical-opening .figma-opening-scene {
    --opening-focus-x: 60%;
    --opening-focus-y: 42%;
    --medical-world-start: 1.22;
  }

  .proctima-medical-opening .figma-opening-world {
    inset: -10%;
    background-position: 54% 50%;
    transform: translate3d(0, 1%, 0) scale(var(--medical-world-start));
  }

  .proctima-medical-opening .figma-opening-depth.depth-far {
    inset: -15%;
    background-position: 56% 50%;
  }

  .proctima-medical-opening .figma-opening-curtain {
    top: -16vh;
    height: 132vh;
  }

  .proctima-medical-opening .figma-opening-curtain::before,
  .proctima-medical-opening .figma-opening-curtain i {
    background-size: auto 122vh;
  }

  .proctima-medical-opening .figma-opening-curtain.curtain-left {
    width: 84vw;
    left: -38vw;
  }

  .proctima-medical-opening .figma-opening-curtain.curtain-right {
    width: 84vw;
    right: -38vw;
  }

  .proctima-medical-opening .figma-opening-curtain.curtain-top {
    width: 150vw;
    height: 56vh;
    top: -21vh;
    left: -25vw;
  }

  .proctima-medical-opening .figma-opening-rush {
    inset: -34%;
    background-position: 54% 50%;
  }

  .proctima-medical-opening .figma-opening-destination {
    inset: 4px;
    border-radius: 20px;
  }

  .proctima-medical-opening .figma-opening-destination::before {
    background-position: 72% 50%;
  }

  .figma-opening-scan {
    width: 104vw;
  }

  .figma-opening-calibration {
    background-size: 46px 46px;
  }

  .proctima-medical-opening .figma-opening-light {
    width: 112vw;
  }

  .proctima-medical-opening .figma-opening-skip {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 390px) and (max-height: 720px) {
  .portal-experience .portal-preview-rail {
    top: 80px;
  }

  .portal-experience .portal-preview-rail > a {
    flex-basis: 112px;
    width: 112px;
    height: 91px;
  }

  .portal-experience.phase-portal .portal-product-model.model-phase-portal {
    width: 66vw;
    height: 185px;
    top: 38%;
  }

  .portal-experience .portal-intro-copy {
    bottom: 75px;
  }

  .portal-experience .portal-intro-copy h1 {
    font-size: 34px;
  }

  .portal-experience .portal-intro-copy > p:last-of-type {
    margin-top: 9px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-experience .portal-entry-light::before,
  .portal-experience .portal-medical-field::before,
  .portal-experience .portal-medical-field::after,
  .portal-experience .portal-medical-field i,
  html.proctima-intro-complete .portal-experience.phase-portal .portal-product-model.model-phase-portal {
    animation: none;
  }
}
