/* JustTekno homepage product theatre — three scroll-driven, layered scenes. */
body.jt-site { overflow-x: clip; }
.jt26-page { overflow: visible !important; }

.jt-theatre {
  --theatre-accent: var(--jt-theme-brand);
  position: relative;
  overflow: clip;
  background: var(--jt-theme-bg-deep);
  color: var(--jt-theme-ink);
  border-block: 1px solid var(--jt-theme-line);
}

html[data-theme="light"] .jt-theatre {
  --theatre-veil: linear-gradient(90deg, rgba(244,247,250,.98) 0%, rgba(244,247,250,.92) 38%, rgba(244,247,250,.62) 70%, rgba(244,247,250,.83) 100%);
  --theatre-copy: color-mix(in srgb, var(--jt-theme-surface) 86%, transparent);
  --theatre-glass: rgba(255,255,255,.82);
}

html[data-theme="dark"] .jt-theatre {
  --theatre-veil: linear-gradient(90deg, rgba(7,17,26,.98) 0%, rgba(7,17,26,.91) 39%, rgba(7,17,26,.58) 72%, rgba(7,17,26,.82) 100%);
  --theatre-copy: color-mix(in srgb, var(--jt-theme-surface) 78%, transparent);
  --theatre-glass: rgba(13,30,43,.82);
}

.jt-theatre-intro {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  padding-top: 84px;
  padding-bottom: 64px;
}

.jt-theatre-intro header { max-width: 900px; }
.jt-theatre-intro header > span,
.jt-theatre-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jt-theme-brand) !important;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.jt-theatre-intro header > span::before,
.jt-theatre-kicker::before {
  content: "";
  width: 19px;
  height: 2px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--theatre-accent), var(--jt-theme-violet));
}
.jt-theatre-intro h2 {
  max-width: 880px;
  margin: 13px 0 14px !important;
  color: var(--jt-theme-ink) !important;
  font-size: clamp(2.2rem, 4.6vw, 4.65rem) !important;
  line-height: 1.01 !important;
  letter-spacing: -.052em !important;
}
.jt-theatre-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--jt-theme-muted) !important;
  font-size: 1rem;
  line-height: 1.75;
}

.jt-theatre-hint {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--jt-theme-line);
  border-radius: 999px;
  background: var(--jt-theme-surface);
  color: var(--jt-theme-muted);
  box-shadow: var(--jt-theme-shadow-soft);
  font-size: .69rem;
  font-weight: 780;
  white-space: nowrap;
}
.jt-theatre-hint i {
  position: relative;
  width: 17px;
  height: 27px;
  border: 1px solid var(--jt-theme-brand);
  border-radius: 999px;
}
.jt-theatre-hint i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--jt-theme-brand);
  transform: translateX(-50%);
  animation: jt-theatre-wheel 1.7s ease-in-out infinite;
}

@keyframes jt-theatre-wheel {
  0%, 100% { opacity: .35; transform: translate(-50%, 0); }
  45% { opacity: 1; }
  70% { opacity: .2; transform: translate(-50%, 8px); }
}

.jt-theatre-track { position: relative; }
.jt-theatre-sticky { position: relative; background: var(--jt-theme-bg-deep); }
.jt-theatre-backgrounds { display: none; }
.jt-theatre-atmosphere { display: none; }
.jt-theatre-stage { position: relative; }
.jt-theatre-rail { display: none; }
.jt-theatre-scenes { display: grid; gap: 28px; padding-bottom: 80px; }

.jt-theatre-scene {
  --theatre-accent: var(--jt-theme-brand);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(420px,1.18fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: 620px;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--jt-theme-line);
  border-radius: 30px;
  background: var(--jt-theme-surface);
  box-shadow: var(--jt-theme-shadow);
  content-visibility: auto;
  contain-intrinsic-size: 620px;
}
.jt-theatre-scene.is-violet { --theatre-accent: var(--jt-theme-violet); }
.jt-theatre-scene.is-mint { --theatre-accent: var(--jt-theme-mint); }
.jt-theatre-scene::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -130px;
  top: -145px;
  border-radius: 50%;
  background: var(--theatre-accent);
  opacity: .09;
  filter: blur(12px);
  pointer-events: none;
}

.jt-theatre-copy {
  position: relative;
  z-index: 4;
  max-width: 610px;
}
.jt-theatre-copy h3 {
  max-width: 680px;
  margin: 18px 0 8px !important;
  color: var(--jt-theme-ink) !important;
  font-size: clamp(2.2rem, 4.2vw, 4.65rem) !important;
  font-weight: 720 !important;
  line-height: .99 !important;
  letter-spacing: -.055em !important;
}
.jt-theatre-copy > strong {
  display: block;
  color: var(--theatre-accent);
  font-size: .82rem;
  font-weight: 880;
  letter-spacing: .035em;
}
.jt-theatre-copy p {
  max-width: 600px;
  margin: 17px 0 0;
  color: var(--jt-theme-muted) !important;
  line-height: 1.72;
}
.jt-theatre-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 25px;
  padding: 0;
  list-style: none;
}
.jt-theatre-copy li {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--theatre-accent) 28%, var(--jt-theme-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--theatre-accent) 7%, var(--jt-theme-surface));
  color: var(--jt-theme-ink);
  font-size: .68rem;
  font-weight: 740;
}
.jt-theatre-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 45px;
  padding: 10px 15px;
  border: 1px solid var(--jt-theme-line);
  border-radius: 11px;
  background: var(--jt-theme-surface);
  color: var(--jt-theme-ink) !important;
  box-shadow: var(--jt-theme-shadow-soft);
  font-size: .76rem;
  font-weight: 850;
}
.jt-theatre-copy > a span {
  color: var(--theatre-accent);
  font-size: 1rem;
  transition: transform .2s ease;
}
.jt-theatre-copy > a:hover span { transform: translate(2px, -2px); }

.jt-theatre-visual {
  position: relative;
  z-index: 2;
  min-height: 510px;
  perspective: 1500px;
  transform-style: preserve-3d;
}
.jt-theatre-orbit {
  position: absolute;
  inset: 6% 0 8%;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-style: preserve-3d;
}
.jt-theatre-orbit i {
  position: absolute;
  width: 78%;
  aspect-ratio: 1.9;
  border: 1px solid color-mix(in srgb, var(--theatre-accent) 36%, transparent);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-8deg);
  box-shadow: 0 0 55px color-mix(in srgb, var(--theatre-accent) 12%, transparent);
}
.jt-theatre-orbit i:nth-child(2) { width: 61%; transform: rotateX(68deg) rotateZ(24deg) translateZ(22px); opacity: .7; }
.jt-theatre-orbit i:nth-child(3) { width: 93%; transform: rotateX(68deg) rotateZ(51deg) translateZ(-18px); opacity: .38; }

.jt-theatre-product,
.jt-theatre-companion {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theatre-accent) 25%, var(--jt-theme-line));
  background: var(--jt-theme-surface);
  box-shadow: 0 36px 90px rgba(2, 12, 24, .23), 0 0 70px color-mix(in srgb, var(--theatre-accent) 12%, transparent);
  transform-style: preserve-3d;
}
.jt-theatre-product {
  z-index: 3;
  inset: 8% 3% 10% 2%;
  padding: 10px;
  border-radius: 26px;
  transform: rotateY(-7deg) rotateX(2deg);
}
.jt-theatre-product > span {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 23px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(5,18,28,.82);
  color: #fff;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .08em;
  backdrop-filter: blur(7px);
}
.jt-theatre-product img,
.jt-theatre-companion img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jt-theatre-product img { border-radius: 17px; }
.jt-theatre-companion {
  z-index: 5;
  right: -2%;
  bottom: 1%;
  width: 37%;
  aspect-ratio: 1.36;
  padding: 6px;
  border-radius: 17px;
  transform: translateZ(95px) rotateY(-10deg) rotateZ(2deg);
}
.jt-theatre-companion img { border-radius: 11px; }

.jt-theatre-status {
  position: absolute;
  z-index: 7;
  left: -2%;
  bottom: 3%;
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  overflow: hidden;
  border: 1px solid var(--jt-theme-line);
  border-radius: 14px;
  background: var(--theatre-glass);
  box-shadow: var(--jt-theme-shadow-soft);
  backdrop-filter: blur(10px);
}
.jt-theatre-status span { min-width: 92px; padding: 10px 12px; border-left: 1px solid var(--jt-theme-line); }
.jt-theatre-status span:first-child { border-left: 0; }
.jt-theatre-status small,
.jt-theatre-status b { display: block; }
.jt-theatre-status small { color: var(--jt-theme-muted); font-size: .52rem; font-weight: 850; letter-spacing: .09em; }
.jt-theatre-status b { margin-top: 3px; color: var(--jt-theme-ink); font-size: .72rem; }

/* Progressive enhancement: only enabled by JS for capable desktop viewports. */
.jt-theatre.is-enhanced .jt-theatre-track { height: 390svh; min-height: 2500px; }
.jt-theatre.is-enhanced .jt-theatre-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}
.jt-theatre.is-enhanced .jt-theatre-backgrounds {
  position: absolute;
  z-index: -4;
  inset: 0;
  display: block;
  overflow: hidden;
}
.jt-theatre.is-enhanced .jt-theatre-backgrounds::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  background: var(--theatre-veil);
  pointer-events: none;
}
.jt-theatre.is-enhanced .jt-theatre-background {
  position: absolute;
  inset: -11%;
  margin: 0;
  opacity: var(--background-opacity, 0);
  transform: translate3d(var(--background-x, 0), var(--background-y, 0), 0) scale(var(--background-scale, 1.18));
  transform-origin: center;
  will-change: transform, opacity;
}
.jt-theatre.is-enhanced .jt-theatre-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.02);
}
html[data-theme="light"] .jt-theatre.is-enhanced .jt-theatre-background img { filter: saturate(.68) contrast(.92) brightness(1.08); }
.jt-theatre.is-enhanced .jt-theatre-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 74% 43%, color-mix(in srgb, var(--jt-theme-brand) 14%, transparent), transparent 28%),
    linear-gradient(rgba(93,157,181,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,157,181,.045) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(90deg, #000 0 62%, transparent 94%);
  pointer-events: none;
}
.jt-theatre.is-enhanced .jt-theatre-stage {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  align-items: center;
  height: 100%;
  padding-top: 74px;
  padding-bottom: 20px;
}
.jt-theatre.is-enhanced .jt-theatre-rail {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  align-self: stretch;
  padding: 12vh 0;
}
.jt-theatre-rail-line {
  position: absolute;
  left: 7px;
  top: 17%;
  bottom: 17%;
  width: 1px;
  overflow: hidden;
  background: var(--jt-theme-line);
}
.jt-theatre-rail-line i {
  display: block;
  width: 100%;
  height: var(--theatre-progress, 0%);
  background: linear-gradient(var(--jt-theme-brand), var(--jt-theme-violet), var(--jt-theme-mint));
  box-shadow: 0 0 13px var(--jt-theme-brand);
}
.jt-theatre-rail a {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 21px;
  color: var(--jt-theme-muted);
  opacity: .55;
  transition: opacity .18s ease, color .18s ease;
}
.jt-theatre-rail a::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--jt-theme-bg-deep);
  border-radius: 50%;
  background: var(--jt-theme-line);
  box-shadow: 0 0 0 1px var(--jt-theme-line);
}
.jt-theatre-rail a b { font-size: .64rem; letter-spacing: .1em; }
.jt-theatre-rail a span { width: 58px; overflow: hidden; font-size: .56rem; font-weight: 760; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.jt-theatre-rail a.is-active { color: var(--jt-theme-ink); opacity: 1; }
.jt-theatre-rail a.is-active::before { background: var(--jt-theme-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jt-theme-brand) 14%, transparent), 0 0 16px var(--jt-theme-brand); }

.jt-theatre.is-enhanced .jt-theatre-scenes {
  position: relative;
  align-self: stretch;
  display: block;
  padding: 0;
}
.jt-theatre.is-enhanced .jt-theatre-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(330px,.79fr) minmax(470px,1.21fr);
  gap: clamp(35px, 5vw, 78px);
  min-height: 0;
  padding: 0 2px 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: var(--scene-opacity, 0);
  transform: translate3d(var(--scene-x, 0), var(--scene-y, 0), var(--scene-z, 0)) scale(var(--scene-scale, 1));
  transform-origin: 42% 50%;
  content-visibility: visible;
  contain: layout style;
  will-change: transform, opacity;
  pointer-events: none;
}
.jt-theatre.is-enhanced .jt-theatre-scene.is-active { pointer-events: auto; }
.jt-theatre.is-enhanced .jt-theatre-copy {
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--jt-theme-line) 82%, transparent);
  border-radius: 24px;
  background: var(--theatre-copy);
  box-shadow: var(--jt-theme-shadow-soft);
  backdrop-filter: blur(10px) saturate(1.08);
}
.jt-theatre.is-enhanced .jt-theatre-copy h3 { font-size: clamp(2.35rem, 4.2vw, 4.8rem) !important; }
.jt-theatre.is-enhanced .jt-theatre-visual {
  transform: translate3d(var(--visual-x, 0), var(--visual-y, 0), var(--visual-z, 0)) rotateY(var(--visual-rotate-y, 0deg)) rotateX(var(--visual-rotate-x, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.jt-theatre.is-enhanced .jt-theatre-product {
  transform: translateZ(24px) rotateY(-7deg) rotateX(2deg);
}

@media (max-width: 1120px) {
  .jt-theatre-scene { grid-template-columns: minmax(0,.9fr) minmax(380px,1.1fr); }
  .jt-theatre.is-enhanced .jt-theatre-stage { grid-template-columns: 68px minmax(0,1fr); }
  .jt-theatre.is-enhanced .jt-theatre-scene { grid-template-columns: minmax(300px,.86fr) minmax(420px,1.14fr); gap: 34px; }
  .jt-theatre.is-enhanced .jt-theatre-copy { padding: 24px; }
  .jt-theatre-copy h3 { font-size: clamp(2.1rem, 4vw, 3.65rem) !important; }
  .jt-theatre-status { left: 0; }
}

@media (max-width: 899px), (max-height: 649px) {
  .jt-theatre { overflow: hidden; }
  .jt-theatre-intro { align-items: flex-start; flex-direction: column; padding-top: 64px; padding-bottom: 38px; }
  .jt-theatre-hint { display: none; }
  .jt-theatre-scenes { gap: 18px; padding-bottom: 58px; }
  .jt-theatre-scene { grid-template-columns: 1fr; min-height: 0; padding: 25px; border-radius: 23px; }
  .jt-theatre-copy { max-width: none; }
  .jt-theatre-copy h3 { font-size: clamp(2rem, 8vw, 3.2rem) !important; }
  .jt-theatre-visual { min-height: clamp(330px, 68vw, 520px); }
  .jt-theatre-product { inset: 5% 3% 10% 1%; transform: rotateY(-4deg) rotateX(1deg); }
  .jt-theatre-companion { right: 0; bottom: 0; }
}

@media (max-width: 560px) {
  .jt-theatre-intro { padding-top: 54px; padding-bottom: 30px; }
  .jt-theatre-intro h2 { font-size: clamp(2rem, 11vw, 3rem) !important; }
  .jt-theatre-intro p { font-size: .91rem; }
  .jt-theatre-scene { padding: 21px; }
  .jt-theatre-copy h3 { font-size: clamp(1.9rem, 10vw, 2.7rem) !important; }
  .jt-theatre-copy p { font-size: .89rem; }
  .jt-theatre-copy li { font-size: .64rem; }
  .jt-theatre-visual { min-height: 300px; }
  .jt-theatre-product { inset: 8% 0 17%; padding: 7px; border-radius: 18px; transform: none; }
  .jt-theatre-product img { border-radius: 12px; }
  .jt-theatre-product > span { left: 17px; top: 17px; }
  .jt-theatre-companion { width: 42%; right: -1%; bottom: 9%; transform: translateZ(25px) rotateZ(2deg); }
  .jt-theatre-status { left: 0; right: 0; bottom: 0; grid-template-columns: repeat(3, 1fr); }
  .jt-theatre-status span { min-width: 0; padding: 9px 7px; }
  .jt-theatre-status b { font-size: .61rem; }
  .jt-theatre-orbit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jt-theatre-hint i::before { animation: none !important; }
  .jt-theatre *, .jt-theatre *::before, .jt-theatre *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .jt-theatre-track { height: auto !important; min-height: 0 !important; }
  .jt-theatre-sticky { position: relative !important; top: auto !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .jt-theatre-backgrounds, .jt-theatre-atmosphere, .jt-theatre-rail { display: none !important; }
  .jt-theatre-stage { display: block !important; height: auto !important; padding-top: 0 !important; }
  .jt-theatre-scenes { position: relative !important; display: grid !important; gap: 18px !important; padding-bottom: 60px !important; }
  .jt-theatre-scene {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .jt-theatre-visual { transform: none !important; }
}
