/* ==========================================================================
   NASHORN – Psychiatrie & Kliniken
   A quiet room, then the one chair that belongs in it.
   ========================================================================== */

.pk-page {
  --pk-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface-page);
  color: var(--text-dark);
}

.pk-page:not(.is-locked) .site-header:not(.is-scrolled) .site-header__logo-light {
  opacity: 1;
}

.pk-page:not(.is-locked) .site-header:not(.is-scrolled) .header-download {
  color: #fff;
}

.pk-ico {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Hero — sticky room, content scrolls over it
   -------------------------------------------------------------------------- */
.pk-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 200vh;
  margin-top: calc(var(--header-h) * -1);
  margin-bottom: -100vh;
  overflow: clip;
  color: #fff;
  background: var(--navy-900);
}

.pk-hero__stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.pk-hero__media,
.pk-hero__veil {
  position: absolute;
  inset: 0;
}

.pk-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 74%;
}

.pk-hero__veil {
  background: linear-gradient(
    90deg,
    rgba(7, 19, 29, 0.52) 0%,
    rgba(7, 19, 29, 0.5) 42%,
    rgba(7, 19, 29, 0.58) 68%,
    rgba(7, 19, 29, 0.72) 100%
  );
}

.pk-hero__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin-top: -100vh;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 0;
}

.pk-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
  column-gap: clamp(36px, 4vw, 72px);
  align-items: start;
  padding-top: clamp(96px, 14vh, 168px);
}

.pk-hero__copy {
  grid-column: 2;
  max-width: 34rem;
}

.pk-hero__copy h1 {
  margin: 0 0 22px;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--display-weight, 500);
  line-height: var(--lh-tight);
  letter-spacing: var(--display-tracking, -0.034em);
}

.pk-hero__lead {
  max-width: 600px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.pk-hero__mark {
  display: block;
  width: auto;
  margin: 0 0 0 -0.048em;
  padding: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7.03vw, 8.45rem);
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.055em;
  text-align: left;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.js .pk-hero__copy,
.js .pk-hero__mark {
  opacity: 0;
  translate: 0 16px;
}

.js.is-loaded .pk-hero__copy,
.js.is-loaded .pk-hero__mark {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 760ms var(--ease-out),
    translate 980ms var(--pk-ease);
}

.js.is-loaded .pk-hero__mark {
  transition-delay: 140ms;
}

.js.reveal-fallback .pk-hero__copy,
.js.reveal-fallback .pk-hero__mark {
  opacity: 1;
  translate: none;
}

/* --------------------------------------------------------------------------
   Principles — editorial rows, not cards
   -------------------------------------------------------------------------- */
.pk-principles {
  position: relative;
  z-index: 1;
  background: var(--surface-page);
  padding-block: clamp(112px, 14vh, 168px) clamp(88px, 10vh, 128px);
}

.pk-principles__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(48px, 5vw, 88px);
  align-items: center;
}

.pk-principles__stage {
  overflow: hidden;
  perspective: 1400px;
}

.pk-principles__frame {
  position: relative;
  width: 78%;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  isolation: isolate;
}

.pk-principles__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition:
    transform 560ms var(--pk-ease),
    opacity 560ms var(--pk-ease),
    filter 560ms var(--pk-ease);
}

.pk-principles__frame img[data-place="front"] {
  z-index: 3;
  transform: translateX(0) scale(1) rotateY(0deg);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  backface-visibility: hidden;
}

.pk-principles__frame img[data-place="next"] {
  z-index: 1;
  transform: translateX(24%) scale(0.86) rotateY(-8deg);
  opacity: 0.36;
  filter: blur(3px);
}

.pk-principles__frame img[data-place="prev"] {
  z-index: 1;
  transform: translateX(-24%) scale(0.86) rotateY(8deg);
  opacity: 0.36;
  filter: blur(3px);
}

.pk-principles__list {
  margin: 0;
  padding: 0;
}

.pk-principle {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 28px 0 26px;
  border: 0;
  border-top: 1px solid rgba(13, 28, 39, 0.16);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pk-principle:last-child {
  border-bottom: 1px solid rgba(13, 28, 39, 0.16);
}

.pk-principle:not(.is-current) .pk-principle__head,
.pk-principle:not(.is-current) .pk-principle__text {
  opacity: 0.58;
}

.pk-principle__head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pk-principle__head .pk-ico {
  flex: none;
  width: 64px;
  height: 64px;
  color: var(--navy-900);
}

.pk-principle.is-current .pk-ico {
  color: var(--nashorn-blue);
}

.pk-principle__title {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--fs-h2-md);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.pk-principle__text {
  display: block;
  max-width: 34em;
  color: var(--text-dark);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  line-height: 1.5;
}

.pk-quiet {
  max-width: 42em;
  margin: clamp(28px, 4vh, 48px) 0 0;
  color: rgba(13, 28, 39, 0.62);
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   NH-FB01 — one pinned three-state chapter
   -------------------------------------------------------------------------- */
.pk-story {
  --pk-env: 1;
  --pk-fb: 0;
  --pk-c1: 1;
  position: relative;
  z-index: 1;
  height: 300vh;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
}

.pk-story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.pk-story__env {
  position: absolute;
  inset: 0;
  opacity: var(--pk-env);
}

.pk-story__env img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.pk-story__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 29, 0.72) 0%, rgba(7, 19, 29, 0.28) 46%, rgba(7, 19, 29, 0.18) 100%);
}

.pk-story__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.15fr);
  column-gap: clamp(28px, 4vw, 64px);
  align-items: center;
  height: 100%;
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: 28px;
}

.pk-story__copy {
  position: relative;
  min-height: 16rem;
}

.pk-story__panel {
  position: absolute;
  inset: auto 0;
  top: 50%;
  translate: 0 -50%;
  opacity: 0;
  pointer-events: none;
}

.pk-story__panel[data-pk-panel="context"] { opacity: var(--pk-c1); }

.pk-story__panel.is-live {
  pointer-events: auto;
}

.pk-story__copy h2 {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 2.8vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pk-story__copy p {
  max-width: 28em;
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.pk-story__object {
  position: relative;
  height: min(78vh, 760px);
}

.pk-story__fb {
  --pk-story-rail: max(min(var(--gutter), 40px), calc((100% - min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px))) / 2));
  --pk-story-band: min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px));
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: var(--pk-fb);
  pointer-events: none;
}

.pk-story__fb.is-live {
  pointer-events: auto;
}

.pk-story__fb > .rk-fb {
  min-height: 100%;
  height: 100%;
}

.pk-story__fb .rk-fb__copy {
  left: var(--pk-story-rail);
  width: min(460px, calc(var(--pk-story-band) * 0.34));
}

.pk-story__fb .rk-colors {
  right: var(--pk-story-rail);
  left: auto;
  width: min(250px, calc(var(--pk-story-band) * 0.184));
}

.pk-story__fb .rk-fb__slab {
  left: calc(var(--pk-story-rail) + var(--pk-story-band) * 0.5);
  width: calc(var(--pk-story-band) * 0.24);
}

.pk-story__fb .rk-fb__chair {
  left: calc(var(--pk-story-rail) + var(--pk-story-band) * 0.55);
}

.pk-story__fb .rk-fb__copy,
.pk-story__fb .rk-colors {
  top: 50%;
  transform: translateY(-50%);
}

.js .pk-story__fb .rk-fb__copy,
.js .pk-story__fb .rk-colors {
  opacity: 1;
  transform: translateY(-50%);
  transition: none;
}

/* --------------------------------------------------------------------------
   Sortiment — three catalog words, one visual
   -------------------------------------------------------------------------- */
.pk-range {
  position: relative;
  z-index: 1;
  background: var(--surface-page);
  padding-block: clamp(88px, 11vh, 140px);
}

.pk-range__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.15fr);
  column-gap: clamp(36px, 5vw, 88px);
  align-items: center;
}

.pk-range__nav nav {
  display: grid;
}

.pk-cat {
  display: grid;
  gap: 8px;
  padding-block: clamp(22px, 3vh, 36px);
  color: var(--navy-900);
  text-decoration: none;
}

.pk-cat + .pk-cat {
  border-top: 1px solid rgba(13, 28, 39, 0.16);
}

.pk-cat__name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.45vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pk-cat__label {
  min-width: 0;
}

.pk-cat__name .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  justify-self: end;
  transition: transform var(--dur-base) var(--ease-out);
}

.pk-cat__note {
  color: rgba(13, 28, 39, 0.62);
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
  line-height: 1.5;
}

.pk-cat:hover .pk-cat__name,
.pk-cat:focus-visible .pk-cat__name,
.pk-cat.is-current .pk-cat__name {
  color: var(--nashorn-blue);
}

.pk-cat:hover .icon,
.pk-cat:focus-visible .icon,
.pk-cat.is-current .icon {
  transform: translate(3px, -3px);
}

.pk-range__visual {
  position: relative;
  min-height: clamp(420px, 62vh, 680px);
  overflow: hidden;
  background: #e7edf2;
}

.pk-range__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 320ms var(--pk-ease);
}

.pk-range__visual img.is-on {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Reduced motion and narrower frames: no pin, all states visible
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pk-hero {
    height: auto;
    min-height: 100vh;
    margin-bottom: 0;
  }

  .pk-hero__stage {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .pk-hero__frame {
    margin-top: 0;
  }

  .js .pk-hero__copy,
  .js .pk-hero__mark {
    opacity: 1;
    translate: none;
  }

  .pk-story {
    height: auto;
  }

  .pk-story__pin {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .pk-story__env {
    position: relative;
    height: 72vh;
    opacity: 1;
  }

  .pk-story__layout {
    height: auto;
    display: block;
    padding-block: clamp(48px, 8vh, 80px);
  }

  .pk-story__copy {
    min-height: 0;
  }

  .pk-story__panel[data-pk-panel] {
    position: static;
    translate: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 36px;
  }

  .pk-story__panel[data-pk-panel="context"] {
    margin-top: 0;
  }

  .pk-story__object {
    display: none;
  }

  .pk-story__fb {
    position: relative;
    opacity: 1;
    min-height: max(100vh, 760px);
    margin-top: 36px;
  }

}

@media (max-width: 1199.98px) {
  .pk-hero {
    height: auto;
    min-height: 100vh;
    margin-bottom: 0;
  }

  .pk-hero__stage {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .pk-hero__frame {
    min-height: 0;
    margin-top: 0;
    padding-top: 36px;
  }

  .pk-hero__mark {
    font-size: clamp(2.75rem, 11vw, 4.75rem);
  }

  .pk-principles__grid,
  .pk-range__grid,
  .pk-story__layout {
    grid-template-columns: 1fr;
  }

  .pk-principles__stage {
    margin-bottom: 36px;
  }

  .pk-story {
    height: auto;
  }

  .pk-story__pin {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .pk-story__env {
    position: relative;
    height: 64vh;
    opacity: 1;
  }

  .pk-story__layout {
    height: auto;
    display: block;
    padding-block: 48px 64px;
  }

  .pk-story__panel[data-pk-panel] {
    position: static;
    translate: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 28px;
  }

  .pk-story__panel[data-pk-panel="context"] {
    margin-top: 0;
  }

  .pk-story__object {
    display: none;
  }

  .pk-story__fb {
    position: relative;
    opacity: 1;
    min-height: max(100vh, 760px);
    margin-top: 28px;
  }

  .pk-story__fb .rk-fb__copy,
  .pk-story__fb .rk-colors {
    top: auto;
    translate: none;
    transform: none;
  }

  .pk-story__fb .rk-fb__copy {
    position: relative;
    left: auto;
    width: auto;
    padding: 48px var(--gutter) 0;
  }

  .pk-range__visual {
    min-height: 420px;
    order: -1;
  }
}
