/* Websjekk research desktop finetune v1
   Final rendered-state correction for /innsikt/research/.
   Repairs the late E-E-A-T method projection and gives the R&D exit a deliberate visual ending. */

.insight-eeat-method[data-research-desktop-method] {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(32rem, 1.28fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  width: min(90rem, calc(100% - 2rem));
  margin: clamp(3.5rem, 7vw, 6.5rem) auto 0;
  padding: clamp(1.6rem, 3.6vw, 3.2rem);
  overflow: hidden;
  border: 1px solid rgba(77, 73, 79, 0.13);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 77% 28%, rgba(103, 82, 103, 0.11), transparent 24rem),
    radial-gradient(circle at 24% 88%, rgba(85, 119, 111, 0.08), transparent 22rem),
    linear-gradient(145deg, #f8f5f2 0%, #f1edef 50%, #edf3f1 100%);
  box-shadow: 0 1.35rem 3.8rem rgba(34, 38, 41, 0.055);
}

.insight-eeat-method[data-research-desktop-method]::before {
  position: absolute;
  width: 32rem;
  height: 32rem;
  top: -19rem;
  right: -7rem;
  border: 1px solid rgba(103, 82, 103, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(103, 82, 103, 0.018), 0 0 0 8rem rgba(85, 119, 111, 0.012);
  content: "";
  pointer-events: none;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__copy {
  position: relative;
  z-index: 2;
  max-width: 39rem;
  margin: 0;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__copy h2 {
  max-width: 12ch;
  font-size: clamp(2.45rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__copy > p:last-child {
  max-width: 48ch;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.68;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__sequence {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.research-method-process {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
  align-items: start;
  min-height: 13rem;
  padding: 1.2rem 0.4rem 0;
}

.research-method-process__rail,
.research-method-process__progress {
  position: absolute;
  top: 4.15rem;
  right: 10.5%;
  left: 10.5%;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
}

.research-method-process__rail {
  background: linear-gradient(90deg, rgba(103, 82, 103, 0.18), rgba(85, 119, 111, 0.18));
}

.research-method-process__progress {
  background: linear-gradient(90deg, #765d72, #55776f);
  transform: scaleX(0);
  transform-origin: left center;
  animation: research-method-progress 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.research-method-process__signal {
  position: absolute;
  z-index: 6;
  top: 3.78rem;
  left: 10.5%;
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #765d72;
  box-shadow: 0 0 0 0.35rem rgba(118, 93, 114, 0.1), 0 0 1.1rem rgba(85, 119, 111, 0.3);
  transform: translateX(-50%);
  animation: research-method-signal 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.research-method-process__step {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.research-method-process__node {
  display: grid;
  width: clamp(5rem, 6vw, 5.8rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(82, 75, 82, 0.19);
  border-radius: 50%;
  color: #675267;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.7rem 1.7rem rgba(43, 38, 43, 0.055);
  animation: research-method-node 8s ease-in-out infinite;
}

.research-method-process__node svg {
  width: 2.15rem;
  height: 2.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.research-method-process__step:nth-of-type(2) .research-method-process__node { animation-delay: 2s; }
.research-method-process__step:nth-of-type(3) .research-method-process__node { animation-delay: 4s; }
.research-method-process__step:nth-of-type(4) .research-method-process__node { animation-delay: 6s; }

.research-method-process__step strong {
  margin-top: 0.85rem;
  color: #302c31;
  font-size: 0.92rem;
  line-height: 1.2;
}

.research-method-process__step small {
  max-width: 12ch;
  margin-top: 0.35rem;
  color: #737075;
  font-size: 0.74rem;
  line-height: 1.4;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__flow {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.8rem, 1.3vw, 1.1rem) !important;
  width: 100%;
  margin: 0;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__step {
  display: flex;
  min-width: 0;
  min-height: 13.5rem;
  flex-direction: column;
  padding: clamp(1.1rem, 1.6vw, 1.4rem);
  border: 1px solid rgba(77, 73, 79, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0.6rem 1.7rem rgba(43, 38, 43, 0.035);
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__index {
  color: #765d72;
  font-size: 0.76rem;
  letter-spacing: 0.035em;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__step strong {
  margin-top: auto;
  margin-bottom: 0.45rem;
  color: #302c31;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.22;
}

.insight-eeat-method[data-research-desktop-method] .source-graph-method__step p {
  color: #67656a;
  font-size: 0.88rem;
  line-height: 1.55;
}

[data-research-rd-exit] {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(5rem, 9vw, 8.5rem);
  overflow: hidden;
  border-bottom: 0;
  background: linear-gradient(180deg, #fbfaf7 0%, #f2efea 100%);
}

[data-research-rd-exit] .rv2-shell {
  width: min(90rem, calc(100% - 2rem));
  margin-inline: auto;
}

[data-research-rd-exit] .rv2-rd-exit__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: 33rem;
  align-items: center;
  padding: clamp(2.1rem, 4.5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.6rem;
  color: #f7faf9;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 82% 32%, rgba(127, 228, 211, 0.15), transparent 22rem),
    linear-gradient(145deg, #07131f 0%, #0b2330 58%, #0b3934 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 2rem 5.4rem rgba(7, 19, 31, 0.18);
}

[data-research-rd-exit] .rv2-rd-exit__panel::after {
  position: absolute;
  width: 34rem;
  height: 34rem;
  top: -18rem;
  right: -13rem;
  border: 1px solid rgba(127, 228, 211, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(127, 228, 211, 0.018), 0 0 0 10rem rgba(127, 228, 211, 0.012);
  content: "";
  pointer-events: none;
}

[data-research-rd-exit] .rv2-rd-exit__copy {
  position: relative;
  z-index: 3;
  max-width: 50rem;
}

[data-research-rd-exit] .rv2-rd-exit__eyebrow {
  margin: 0 0 0.85rem;
  color: #7fe4d3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-research-rd-exit] .rv2-rd-exit h2,
[data-research-rd-exit] h2 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

[data-research-rd-exit] .rv2-rd-exit__text {
  max-width: 48ch;
  margin: 1.25rem 0 0;
  color: #bac9cc;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

[data-research-rd-exit] .rv2-rd-exit__action {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.8rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0.82rem;
  color: #07131f;
  background: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

[data-research-rd-exit] .rv2-rd-exit__action:hover,
[data-research-rd-exit] .rv2-rd-exit__action:focus-visible {
  color: #07131f;
  background: #7fe4d3;
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.research-rd-visual {
  position: relative;
  z-index: 2;
  min-height: 25rem;
  isolation: isolate;
}

.research-rd-visual__halo,
.research-rd-visual__orbit,
.research-rd-visual__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.research-rd-visual__halo {
  width: min(88%, 23rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 20%, rgba(127, 228, 211, 0.09) 38%, rgba(127, 228, 211, 0) 70%);
}

.research-rd-visual__orbit {
  aspect-ratio: 1;
  border: 1px solid rgba(127, 228, 211, 0.23);
  border-radius: 50%;
}

.research-rd-visual__orbit--outer {
  width: 92%;
  animation: research-rd-orbit 24s linear infinite;
}

.research-rd-visual__orbit--middle {
  width: 69%;
  border-style: dashed;
  border-color: rgba(210, 170, 103, 0.22);
  animation: research-rd-orbit-reverse 18s linear infinite;
}

.research-rd-visual__orbit--inner {
  width: 47%;
  border-color: rgba(127, 228, 211, 0.16);
  animation: research-rd-orbit 31s linear infinite;
}

.research-rd-visual__orbit::before {
  position: absolute;
  width: 0.68rem;
  height: 0.68rem;
  top: 8%;
  right: 23%;
  border: 2px solid rgba(7, 19, 31, 0.75);
  border-radius: 50%;
  background: #7fe4d3;
  box-shadow: 0 0 1rem rgba(127, 228, 211, 0.45);
  content: "";
}

.research-rd-visual__orbit--middle::before {
  top: 44%;
  right: auto;
  left: -0.34rem;
  background: #d2aa67;
  box-shadow: 0 0 1rem rgba(210, 170, 103, 0.36);
}

.research-rd-visual__core {
  z-index: 4;
  display: grid;
  width: clamp(7.6rem, 10vw, 9.4rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 0.85rem rgba(255, 255, 255, 0.035), 0 1.6rem 4rem rgba(0, 0, 0, 0.24);
  animation: research-rd-breathe 5.6s ease-in-out infinite;
}

.research-rd-visual__core img {
  width: 68%;
  height: auto;
}

.research-rd-visual__node {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 0.1rem;
  min-width: 7.4rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  color: #d8e6e5;
  background: rgba(6, 17, 28, 0.68);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.research-rd-visual__node strong {
  color: #7fe4d3;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-rd-visual__node small {
  font-size: 0.76rem;
  line-height: 1.35;
}

.research-rd-visual__node--data { top: 8%; left: 4%; animation: research-rd-node 6s ease-in-out infinite; }
.research-rd-visual__node--method { top: 18%; right: 0; animation: research-rd-node 6s 2s ease-in-out infinite; }
.research-rd-visual__node--prototype { right: 7%; bottom: 7%; animation: research-rd-node 6s 4s ease-in-out infinite; }

@keyframes research-method-progress {
  0%, 8% { transform: scaleX(0); opacity: 0.45; }
  88%, 100% { transform: scaleX(1); opacity: 0.95; }
}

@keyframes research-method-signal {
  0%, 8% { left: 10.5%; background: #765d72; }
  31% { left: 36.8%; }
  55% { left: 63.2%; background: #667366; }
  79%, 100% { left: 89.5%; background: #55776f; }
}

@keyframes research-method-node {
  0%, 17%, 100% {
    color: #675267;
    border-color: rgba(82, 75, 82, 0.19);
    transform: scale(1);
  }
  5%, 11% {
    color: #55776f;
    border-color: rgba(85, 119, 111, 0.48);
    box-shadow: 0 0 0 0.55rem rgba(85, 119, 111, 0.08), 0 0.8rem 2rem rgba(43, 38, 43, 0.09);
    transform: scale(1.045);
  }
}

@keyframes research-rd-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes research-rd-orbit-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes research-rd-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.035); }
}

@keyframes research-rd-node {
  0%, 100% { transform: translateY(0); border-color: rgba(255, 255, 255, 0.12); }
  50% { transform: translateY(-5px); border-color: rgba(127, 228, 211, 0.28); }
}

@media (max-width: 64rem) {
  .insight-eeat-method[data-research-desktop-method] {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .research-method-process {
    min-height: 11rem;
  }

  [data-research-rd-exit] .rv2-rd-exit__panel {
    grid-template-columns: 1fr;
  }

  .research-rd-visual {
    min-height: 22rem;
  }
}

@media (max-width: 47.99rem) {
  .insight-eeat-method[data-research-desktop-method] {
    width: calc(100% - 1rem);
    padding: 1.15rem;
  }

  .research-method-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 0.8rem;
    min-height: 0;
    padding-top: 0.4rem;
  }

  .research-method-process__rail,
  .research-method-process__progress,
  .research-method-process__signal {
    display: none;
  }

  .research-method-process__node {
    width: 4.5rem;
  }

  .insight-eeat-method[data-research-desktop-method] .source-graph-method__flow {
    grid-template-columns: 1fr !important;
  }

  .insight-eeat-method[data-research-desktop-method] .source-graph-method__step {
    min-height: 0;
  }

  [data-research-rd-exit] {
    padding-block: 3.5rem;
  }

  [data-research-rd-exit] .rv2-shell {
    width: calc(100% - 1rem);
  }

  [data-research-rd-exit] .rv2-rd-exit__panel {
    min-height: 0;
    padding: 1.4rem;
    border-radius: 1.2rem;
  }

  [data-research-rd-exit] h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .research-rd-visual {
    min-height: 19rem;
  }

  .research-rd-visual__node {
    min-width: 6.3rem;
    padding: 0.55rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-method-process__progress,
  .research-method-process__signal,
  .research-method-process__node,
  .research-rd-visual__orbit,
  .research-rd-visual__core,
  .research-rd-visual__node {
    animation: none !important;
  }

  .research-method-process__progress {
    transform: scaleX(1);
    opacity: 0.6;
  }
}
