/* 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;
  }
}
