/* ==========================================================================
   Tootja profile — additions on top of main.css + projektid.css
   Ported from ledture-tootja-mall.html (scoped under .pj)
   ========================================================================== */

.tj-btn-ghost, .tj-doc-row button, .pj .cta-btn{
  appearance:none; -webkit-appearance:none; box-sizing:border-box;
}

.tj-logo-tile{
  display:flex; align-items:center; gap:14px;
  background:#fff; border-radius:16px; padding:12px 18px;
  border:1px solid var(--pj-line);
}
.tj-logo-tile img{ height:26px; width:auto; display:block; }
.tj-logo-tile .sep{ width:1px; height:22px; background:rgba(11,22,36,.12); }
.tj-logo-tile a{
  font-family:inherit; font-size:12.5px; font-weight:600; color:#16202e;
  display:inline-flex; align-items:center; gap:5px; transition:color .2s var(--pj-ease);
}
.tj-logo-tile a:hover{ color:var(--pj-gold); }

.tj-shimmer{
  background-image:linear-gradient(
    100deg,
    rgba(76,140,63,.5) 38%,
    var(--pj-gold-light) 50%,
    rgba(76,140,63,.5) 62%
  );
  background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:tj-sweep 7s ease-in-out infinite;
}
@keyframes tj-sweep{ 0%{background-position:200% 0;} 55%{background-position:-40% 0;} 100%{background-position:-40% 0;} }
@media (prefers-reduced-motion:reduce){
  .tj-shimmer{
    animation:none; background-image:none;
    -webkit-background-clip:initial; background-clip:initial;
    color:rgba(76,140,63,.5);
  }
}

.tj-lede{ max-width:680px; color:var(--pj-muted); font-size:14.5px; line-height:1.75; margin:0 0 90px; font-family:inherit; }
.tj-lede strong{ color:var(--pj-white); font-weight:600; }

#tj-sec-overview .tj-hero-image{
  position:relative;
  margin-bottom:90px;
}
#tj-sec-overview .tj-hero-media{
  position:relative; overflow:hidden;
  border-radius:var(--pj-radius-lg);
  aspect-ratio:16/8;
}
#tj-sec-overview .tj-hero-media img{
  position:absolute; left:50%; top:50%; z-index:0;
  width:130%; height:130%; max-width:none;
  object-fit:cover; object-position:center;
  filter:grayscale(.15) brightness(.86);
  transform:translate(-50%,-50%) scale(1);
  animation:tj-hero-kb 20s ease-in-out infinite alternate;
  will-change:transform;
}
.pj .tj-case-image img{
  position:relative; z-index:0; display:block; width:100%; height:100%; object-fit:cover;
  filter:grayscale(.15) brightness(.86);
}
@keyframes tj-hero-kb{
  from{ transform:translate(-50%,-50%) scale(1); }
  to{ transform:translate(-58%,-54%) scale(1.22); }
}
#tj-sec-overview .tj-hero-media .trace-line,
.pj .tj-case-image .trace-line{ z-index:3; }
#tj-sec-overview .tj-hero-caption{
  position:absolute; inset:auto 0 0; z-index:4;
  padding:48px 36px 36px;
  background:linear-gradient(to top, rgba(11,22,36,.94) 0%, rgba(11,22,36,.72) 42%, transparent 100%);
  pointer-events:none;
}
#tj-sec-overview .tj-hero-caption .tj-lede{
  max-width:none; margin:0 0 20px; padding:0;
  color:#F5F7FA; font-family:inherit; font-size:14.5px; line-height:1.75;
}
#tj-sec-overview .tj-hero-caption .info-panel,
#tj-sec-overview .tj-hero-info{
  margin:0; pointer-events:auto;
  display:grid;
  background:rgba(8,14,24,.58);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--pj-radius-md);
  backdrop-filter:blur(10px);
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  overflow:visible;
}
#tj-sec-overview .tj-hero-info .cell{
  border-right:1px solid rgba(255,255,255,.1);
  padding:24px 28px;
}
#tj-sec-overview .tj-hero-info .cell:last-child{ border-right:none; }
#tj-sec-overview .tj-hero-info .cell .k{
  font-family:inherit; font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--pj-gold); margin-bottom:12px;
}
#tj-sec-overview .tj-hero-info .cell .v{ color:#F5F7FA; font-size:15px; font-weight:500; line-height:1.5; }
#tj-sec-overview .tj-hero-info .chip{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
  color:rgba(245,247,250,.92);
}
#tj-sec-overview .tj-hero-image ~ .info-panel,
#tj-sec-overview .tj-hero-image ~ .tj-lede{ display:none; }
@media (max-width:768px){
  .pj .hero-top{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
  }
  .pj .detail-header{ padding:20px 0 24px; }
  .pj .detail-header h1{ font-size:clamp(28px,8vw,36px); margin-bottom:10px; }
  .pj .detail-header .sub{ font-size:15px; line-height:1.65; margin-bottom:18px; }
  .pj .stat-row{ gap:14px 22px; }
  .pj .stat-row .stat .num{ font-size:22px; }
  .pj .stat-row .stat .lbl{ font-size:12px; }
  .tj-logo-tile{ width:100%; box-sizing:border-box; justify-content:center; }
  #tj-sec-overview .tj-hero-image{ margin-bottom:40px; }
  #tj-sec-overview .tj-hero-media{
    aspect-ratio:16/9;
    max-height:220px;
  }
  #tj-sec-overview .tj-hero-media img{ animation:none; transform:translate(-50%,-50%) scale(1); }
  #tj-sec-overview .tj-hero-caption{
    position:static; padding:16px 0 0; background:none; pointer-events:auto;
  }
  #tj-sec-overview .tj-hero-caption .tj-lede{
    margin:0 0 14px; color:var(--pj-muted); font-size:14px; line-height:1.65;
  }
  #tj-sec-overview .tj-hero-info{
    background:var(--pj-navy-panel);
    border:1px solid var(--pj-line);
    backdrop-filter:none;
    grid-template-columns:1fr;
  }
  #tj-sec-overview .tj-hero-info .cell .v{ color:var(--pj-white); }
  .pj .section-head{ margin-bottom:20px; }
  .pj .section-head h2{ font-size:22px; }
  .pj .section-head .hint{ font-size:12px; }
}
@media (max-width:640px){
  .pj .wrap{ padding:0 16px; }
  .pj .crumbs{ font-size:11px; margin-bottom:12px; }
  #tj-sec-overview .tj-hero-media{
    aspect-ratio:16/10;
    max-height:190px;
    border-radius:var(--pj-radius-md);
  }
  #tj-sec-overview .tj-hero-caption{ padding-top:14px; }
  #tj-sec-overview .tj-hero-caption .tj-lede{ font-size:13.5px; margin-bottom:12px; }
  #tj-sec-overview .tj-hero-info .cell{ padding:16px 18px; border-right:none; border-bottom:1px solid var(--pj-line); }
  #tj-sec-overview .tj-hero-info .cell:last-child{ border-bottom:none; }
  #tj-sec-overview .tj-hero-info .cell .k{ font-size:10px; margin-bottom:8px; }
  #tj-sec-overview .tj-hero-info .cell .v{ font-size:14px; }
  #tj-sec-overview .tj-hero-info .chip{ font-size:12px; padding:5px 11px; }
}

.tj-case{ margin-bottom:8px; }
.tj-case-label{
  font-family:"JetBrains Mono",monospace; font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--pj-gold); margin-bottom:10px; display:flex; align-items:center; gap:8px;
}
.tj-case-label::before{ content:""; width:20px; height:1px; background:var(--pj-gold); }
.tj-case h3{ font-size:24px; font-weight:700; margin-bottom:18px; }
.tj-case .stat-row{ margin-top:0; }
.pj .tj-case-image{
  position:relative; overflow:hidden;
  margin:32px 0 70px;
}
.pj .tj-case-caption{
  position:absolute; left:0; right:0; bottom:0; z-index:4;
  padding:48px 36px 36px;
  background:linear-gradient(to top, rgba(11,22,36,.94) 0%, rgba(11,22,36,.72) 42%, transparent 100%);
  pointer-events:none;
}
.pj .tj-case-caption .tj-case-copy{
  position:static; max-width:720px; margin:0; padding:0;
  font-family:inherit; font-size:14.5px; line-height:1.7; color:#F5F7FA;
}
.pj .tj-case-foot{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-top:18px; padding-top:14px; border-top:1px solid rgba(255,255,255,.12);
  text-decoration:none; color:#F5F7FA; pointer-events:auto;
  font-family:inherit; font-size:13px; font-weight:600;
}
.pj .tj-case-foot span:first-child{ flex:1; min-width:0; }
.pj .tj-case-foot--plain{
  position:static; max-width:640px; margin:0 0 70px; padding-top:14px;
  border-top:1px solid var(--pj-line); color:var(--pj-muted);
}
.pj .tj-case-image:hover .arrow-circ,
.pj .tj-case-foot:hover .arrow-circ{
  background:var(--pj-gold); border-color:var(--pj-gold);
}
.pj .tj-case-image:hover .arrow-circ svg,
.pj .tj-case-foot:hover .arrow-circ svg{
  transform:rotate(0deg);
}
.pj .tj-case-image:hover .arrow-circ svg path,
.pj .tj-case-foot:hover .arrow-circ svg path{ stroke:var(--pj-navy-deep); }
.tj-case-copy--plain{
  font-family:inherit; color:var(--pj-muted); max-width:640px; margin:0 0 18px; padding:0;
}

.tj-ref-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:90px; }
.tj-ref-row{
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:88px; padding:16px 20px; border-radius:var(--pj-radius-sm);
  background:var(--pj-navy-panel); border:1px solid var(--pj-line);
  transition:border-color .25s var(--pj-ease), transform .3s var(--pj-ease);
  text-decoration:none; color:inherit;
}
.tj-ref-row--has-media .txt{
  position:relative; z-index:2;
  flex:0 0 50%; max-width:50%; min-width:0;
}
.tj-ref-row__media{
  position:absolute; inset:0; pointer-events:none; overflow:hidden;
}
.tj-ref-row__media img{
  position:absolute; top:0; right:0; width:54%; height:100%; object-fit:cover; object-position:center;
  display:block; opacity:.58; filter:grayscale(.1) brightness(.82);
  transform-origin:right center;
  transition:transform .55s var(--pj-ease), opacity .35s var(--pj-ease);
}
.tj-ref-row__media::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(to right, var(--pj-navy-panel) 0%, var(--pj-navy-panel) 38%, rgba(16,31,51,.92) 52%, rgba(16,31,51,.4) 68%, transparent 86%);
}
.tj-ref-row--has-media:hover .tj-ref-row__media img{
  transform:scale(1.03);
}
.tj-ref-row--has-media:hover{ border-color:var(--pj-line-strong); }
.tj-ref-row:not(.tj-ref-row--has-media):hover{ border-color:var(--pj-line-strong); transform:translateX(3px); }
.tj-ref-row .txt strong{ display:block; font-size:14.5px; font-weight:600; }
.tj-ref-row .txt span{ display:block; font-size:12.5px; color:var(--pj-muted); margin-top:3px; }
.tj-ref-row .arrow{
  position:relative; z-index:3; flex-shrink:0;
  width:28px; height:28px; border-radius:50%;
  border:1px solid var(--pj-line-strong); display:flex; align-items:center; justify-content:center;
  color:var(--pj-muted); transition:background .25s var(--pj-ease), border-color .25s var(--pj-ease), color .25s var(--pj-ease);
}
.tj-ref-row:hover .arrow{ background:var(--pj-gold); border-color:var(--pj-gold); color:var(--pj-navy-deep); }
.tj-ref-row .arrow svg{ width:13px; height:13px; }
@media (max-width:640px){
  .tj-ref-row--has-media .txt{ flex-basis:62%; max-width:62%; }
  .tj-ref-row__media img{ width:48%; }
}

.tj-product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-bottom:20px; }
.tj-p-card{
  position:relative; isolation:isolate;
  background:var(--pj-navy-panel); border:1px solid var(--pj-line); border-radius:var(--pj-radius-lg);
  overflow:visible; display:flex; flex-direction:column;
  transition:transform .45s var(--pj-ease), border-color .3s var(--pj-ease);
}
.tj-p-card:hover{ transform:translateY(-6px); border-color:var(--pj-line-strong); }
.tj-p-thumb{
  position:relative; isolation:isolate;
  aspect-ratio:4/3; margin:14px 14px 0; border-radius:var(--pj-radius-md);
  background:radial-gradient(
    ellipse 95% 85% at 50% 40%,
    rgba(183,210,120,.62) 0%,
    rgba(149,184,106,.34) 34%,
    rgba(76,140,63,.12) 58%,
    var(--pj-navy-panel-2) 100%
  );
  display:flex; align-items:center; justify-content:center; padding:20px;
  overflow:hidden;
  transition:background .45s var(--pj-ease);
}
.tj-p-card:hover .tj-p-thumb{
  background:radial-gradient(
    ellipse 100% 90% at 50% 38%,
    rgba(195,220,130,.72) 0%,
    rgba(149,184,106,.4) 36%,
    rgba(76,140,63,.16) 60%,
    var(--pj-navy-panel-2) 100%
  );
}
.tj-p-thumb img{
  position:relative; z-index:1;
  max-width:100%; max-height:100%; object-fit:contain; transition:transform .55s var(--pj-ease);
}
.tj-p-card:hover .tj-p-thumb img{ transform:scale(1.06); }
.tj-p-body{ padding:20px 22px 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.tj-p-power{ font-family:"JetBrains Mono",monospace; font-size:12px; color:var(--pj-gold-light); font-weight:600; }
.tj-p-body h3{ font-size:18px; font-weight:600; line-height:1.3; }
.tj-p-body .desc{ font-size:13.5px; color:var(--pj-muted); line-height:1.6; flex:1; }
.tj-p-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tj-p-tag{ font-size:11px; color:var(--pj-muted); background:var(--pj-navy-panel-2); border-radius:999px; padding:4px 10px; }
.tj-p-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }

.pj button.tj-btn-ghost{
  background:transparent; font-family:inherit; font-size:13px; font-weight:600; color:var(--pj-white);
  border:1px solid var(--pj-line-strong); border-radius:999px; padding:9px 14px;
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  transition:border-color .2s var(--pj-ease), color .2s var(--pj-ease), background .2s var(--pj-ease);
}
.pj button.tj-btn-ghost:hover{ border-color:var(--pj-gold); color:var(--pj-gold-light); background:rgba(76,140,63,.08); }
.pj button.tj-btn-ghost svg{ width:12px; height:12px; }
.pj .tj-doc-row button.tj-btn-ghost,
.pj .tj-p-actions button.tj-btn-ghost{
  background:var(--pj-gold); color:var(--pj-navy-deep); border:1px solid var(--pj-gold);
  padding:10px 18px; font-size:14px;
}
.pj .tj-doc-row button.tj-btn-ghost:hover,
.pj .tj-p-actions button.tj-btn-ghost:hover{
  background:var(--pj-gold-light); border-color:var(--pj-gold-light); color:var(--pj-navy-deep);
}
.tj-link{
  font-family:inherit; font-size:13px; font-weight:600; color:var(--pj-muted);
  display:inline-flex; align-items:center; transition:color .2s var(--pj-ease);
}
.tj-link:hover{ color:var(--pj-gold-light); }

.tj-config-strip{
  margin-top:10px; padding:32px 0 90px; border-top:1px solid var(--pj-line);
  display:grid; grid-template-columns:1fr 2fr; gap:32px; align-items:center;
}
.tj-config-strip h4{ font-size:16.5px; font-weight:600; margin-bottom:8px; }
.tj-config-strip p{ font-size:13.5px; color:var(--pj-muted); line-height:1.6; }
.tj-config-marquees{
  display:flex; flex-direction:column; gap:1.4rem; min-width:0; width:100%;
}
.tj-config-marquee{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.tj-config-track{
  display:flex; align-items:center; gap:2.8rem; width:max-content;
  animation:tj-config-scroll 28s linear infinite;
}
.tj-config-track--reverse{
  animation-name:tj-config-scroll-reverse;
  animation-duration:34s;
}
.tj-config-marquee:hover .tj-config-track{ animation-play-state:paused; }
@keyframes tj-config-scroll{ to{ transform:translateX(-50%); } }
@keyframes tj-config-scroll-reverse{ from{ transform:translateX(-50%); } to{ transform:translateX(0); } }
.tj-config-term{
  flex:none; white-space:nowrap;
  font-family:inherit; font-size:15px; font-weight:600; letter-spacing:.01em;
  color:var(--pj-gold-light);
}
@media (prefers-reduced-motion:reduce){
  .tj-config-track{ animation:none; flex-wrap:wrap; width:auto; gap:1rem 1.6rem; }
  .tj-config-marquee{ -webkit-mask-image:none; mask-image:none; overflow:visible; }
}

.tj-cat-note{
  display:flex; gap:14px; align-items:flex-start;
  background:var(--pj-navy-panel-2); border:1px solid var(--pj-line); border-radius:var(--pj-radius-md);
  padding:18px 20px; margin-bottom:28px; font-size:13.5px; color:var(--pj-muted); line-height:1.6;
}
.tj-cat-note svg{ flex-shrink:0; margin-top:2px; color:var(--pj-gold); }
.tj-doc-list{ border-top:1px solid var(--pj-line); margin-bottom:90px; }
.tj-doc-row{
  position:relative; isolation:isolate;
  display:grid; grid-template-columns:44px 1fr auto; gap:18px; align-items:center;
  padding:16px 14px; margin:0 -14px; border-radius:14px;
  border-bottom:1px solid var(--pj-line);
  transition:background .25s var(--pj-ease);
}
.tj-doc-row:hover{ background:var(--pj-navy-panel); border-bottom-color:transparent; }
.tj-doc-icon{
  width:42px; height:42px; border-radius:10px; background:var(--pj-navy-panel-2); color:var(--pj-gold-light);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.tj-doc-name{ font-size:14.5px; font-weight:600; }
.tj-doc-sub{ font-family:inherit; font-size:13px; color:var(--pj-muted); margin-top:3px; }
.tj-doc-row > div:not(.tj-doc-icon){ min-width:0; }
.tj-modal-overlay{
  position:fixed; inset:0; background:rgba(6,11,19,.82); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity .3s var(--pj-ease); z-index:200;
}
.tj-modal-overlay.open{ opacity:1; pointer-events:auto; }
.tj-modal{
  background:var(--pj-navy-panel); border:1px solid var(--pj-line-strong); border-radius:var(--pj-radius-lg);
  width:100%; max-width:440px; padding:34px 32px 30px; position:relative;
  transform:translateY(14px) scale(.98); transition:transform .35s var(--pj-ease); color:var(--pj-white);
}
.tj-modal-overlay.open .tj-modal{ transform:translateY(0) scale(1); }
.tj-modal-close{
  position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%;
  background:#101F33; border:1px solid rgba(255,255,255,.16); color:var(--pj-white);
  display:flex; align-items:center; justify-content:center; cursor:pointer; appearance:none;
  transition:background .2s var(--pj-ease), border-color .2s var(--pj-ease);
}
.tj-modal-close:hover{ background:var(--pj-navy-panel-3); border-color:var(--pj-gold); }
.tj-modal .pj-eyebrow{ margin-bottom:8px; }
.tj-modal .pj-eyebrow[hidden]{ display:none; }
.tj-modal h3{ font-size:21px; font-weight:700; margin-bottom:8px; }
.tj-modal p.sub{ font-size:13.5px; color:var(--pj-muted); line-height:1.6; margin-bottom:22px; }
.tj-field{ margin-bottom:14px; }
.tj-field label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:6px; color:var(--pj-white); }
.tj-field input{
  width:100%; padding:11px 13px; border-radius:8px; font-size:14px;
  font-family:"Space Grotesk",sans-serif; background:var(--pj-navy-deep);
  border:1px solid var(--pj-line-strong); color:var(--pj-white); box-sizing:border-box;
  transition:border-color .2s var(--pj-ease);
}
.tj-field input:focus{ outline:none; border-color:var(--pj-gold); }
.tj-field-error{ font-size:12px; color:#e08a72; margin-top:5px; display:none; }
.tj-field.invalid input{ border-color:#e08a72; }
.tj-field.invalid .tj-field-error{ display:block; }
.tj-modal .cta-btn{
  width:100%; justify-content:center; border:none; cursor:pointer; margin-top:6px;
  font-family:"Space Grotesk",sans-serif;
}
.tj-modal-consent{ font-size:11px; color:var(--pj-muted); line-height:1.5; margin-top:14px; }
.tj-modal-success{ display:none; text-align:center; padding:10px 0 4px; }
.tj-modal-success.show{ display:block; }
.tj-modal-success svg{ margin:0 auto 14px; }
.tj-modal-form.hide{ display:none; }
.tj-modal-download{
  display:inline-flex; align-items:center; gap:8px; margin-top:16px;
  font-family:"JetBrains Mono",monospace; font-size:12.5px; font-weight:600;
  color:var(--pj-gold-light); text-decoration:none;
}
.tj-modal-download:hover{ color:var(--pj-white); }

.tj-product-grid .reveal, .tj-doc-list .reveal, .tj-ref-list .reveal{ transition-delay:var(--tj-delay,0s); }

.tj-rail{
  position:fixed; left:30px; top:50%; transform:translateY(-50%);
  z-index:60; display:flex; flex-direction:column;
}
.tj-rail-track{
  position:absolute; left:5px; top:4px; bottom:4px; width:2px;
  background:rgba(255,255,255,.16); border-radius:2px;
}
.tj-rail-fill{
  position:absolute; left:5px; top:4px; width:2px; height:0%;
  background:linear-gradient(180deg, #4C8C3F 0%, #6BA85E 100%);
  border-radius:2px; transition:height .2s linear;
}
.tj-rail-fill::after{
  content:""; position:absolute; left:50%; bottom:-2px; transform:translate(-50%,50%);
  width:9px; height:9px; border-radius:50%; background:#6BA85E;
  box-shadow:0 0 8px 2px rgba(149,184,106,.85), 0 0 20px 6px rgba(149,184,106,.35);
}
.tj-rail-item{
  position:relative; display:flex; align-items:center; gap:13px;
  background:none; border:none; padding:15px 0; cursor:pointer; appearance:none;
  -webkit-appearance:none; text-align:left;
}
.tj-rail-dot{
  position:relative; width:11px; height:11px; border-radius:50%; flex-shrink:0;
  background:#0B1624; border:2px solid rgba(255,255,255,.16);
  transition:background .3s var(--pj-ease), border-color .3s var(--pj-ease), transform .3s var(--pj-ease);
}
.tj-rail-label{
  writing-mode:vertical-rl;
  font-family:inherit; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:#F5F7FA; white-space:nowrap;
  transition:color .3s var(--pj-ease), letter-spacing .3s var(--pj-ease);
}
.tj-rail-item:hover .tj-rail-label{ color:#6BA85E; }
.tj-rail-item.active .tj-rail-dot{
  background:#4C8C3F; border-color:#4C8C3F; transform:scale(1.35);
  animation:tj-rail-pulse 1.1s var(--pj-ease);
}
.tj-rail-item.active .tj-rail-label{ color:#F5F7FA; letter-spacing:.2em; }
[data-theme="light"] .pj.pj--adaptive .tj-rail-track{ background:rgba(18,32,52,.14); }
[data-theme="light"] .pj.pj--adaptive .tj-rail-dot{
  background:var(--bg); border-color:rgba(18,32,52,.22);
}
[data-theme="light"] .pj.pj--adaptive .tj-rail-label{ color:#5c6678; }
[data-theme="light"] .pj.pj--adaptive .tj-rail-item:hover .tj-rail-label{ color:#4C8C3F; }
[data-theme="light"] .pj.pj--adaptive .tj-rail-item.active .tj-rail-label{ color:#16202e; }
@keyframes tj-rail-pulse{
  0%{ box-shadow:0 0 0 0 rgba(76,140,63,.55); }
  70%{ box-shadow:0 0 0 11px rgba(76,140,63,0); }
  100%{ box-shadow:0 0 0 0 rgba(76,140,63,0); }
}

@media (max-width:980px){
  .tj-product-grid{ grid-template-columns:1fr; gap:16px; }
  .tj-config-strip{ grid-template-columns:1fr; }
  .tj-p-card:hover{ transform:none; }
  .tj-p-thumb{
    aspect-ratio:16/10;
    margin:10px 10px 0;
    padding:14px;
    max-height:200px;
  }
  .tj-p-thumb img{ max-height:160px; }
  .tj-p-body{ padding:16px 18px 18px; }
  .tj-p-actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin-top:10px;
  }
  .tj-p-actions button.tj-btn-ghost,
  .tj-p-actions .tj-link{
    width:100%;
    justify-content:center;
    text-align:center;
    box-sizing:border-box;
  }
  .pj .tj-case-image.main-image{
    aspect-ratio:16/10;
    margin:20px 0 40px;
  }
  .pj .tj-case-caption{ padding:28px 20px 22px; }
  .tj-case h3{ font-size:21px; }
  .tj-doc-row{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:12px 14px;
    padding:16px 0;
    margin:0;
  }
  .tj-doc-icon{ flex:0 0 40px; }
  .tj-doc-row > div:not(.tj-doc-icon){
    flex:1 1 calc(100% - 54px);
    min-width:0;
  }
  .tj-doc-row button.tj-btn-ghost{
    flex:1 1 100%;
    width:100%;
    justify-content:center;
    box-sizing:border-box;
  }
}
@media (max-width:640px){
  .tj-p-thumb{
    aspect-ratio:3/2;
    max-height:180px;
    padding:12px;
  }
  .tj-p-body h3{ font-size:17px; }
  .tj-p-body .desc{ font-size:13px; }
  .pj .tj-case-image.main-image{
    aspect-ratio:16/10;
    max-height:220px;
    margin:16px 0 36px;
  }
  .pj .tj-case-caption{ padding:24px 18px 18px; }
  .pj .tj-case-caption .tj-case-copy{ font-size:13.5px; line-height:1.65; }
  .pj .tj-case-foot{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .tj-doc-name{ font-size:14px; line-height:1.35; }
  .tj-doc-sub{ font-size:12.5px; line-height:1.45; }
  .tj-doc-icon{ width:38px; height:38px; flex-basis:38px; }
  .tj-logo-tile{ flex-wrap:wrap; }
}
@media (max-width:1180px){ .tj-rail{ display:none; } }
@media (prefers-reduced-motion:reduce){
  .tj-rail-fill{ transition:none; }
  .tj-rail-item.active .tj-rail-dot{ animation:none; }
  #tj-sec-overview .tj-hero-media img{ animation:none; transform:translate(-50%,-50%) scale(1); }
}

/* ==========================================================================
   Tootjad archive cards
   ========================================================================== */

.tootja-archive-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:26px;
}
.tootja-archive-pagination{ margin-top:2.5rem; }
.tootja-archive-card{
  position:relative; isolation:isolate;
  display:block; overflow:hidden;
  min-height:340px; aspect-ratio:16/10;
  border-radius:var(--pj-radius-lg); border:1px solid var(--pj-line);
  background:var(--pj-navy-panel); text-decoration:none; color:inherit;
  transition:transform .45s var(--pj-ease), border-color .3s var(--pj-ease);
}
.tootja-archive-card:hover{ transform:translateY(-6px); border-color:var(--pj-line-strong); }
.tootja-archive-card__img,
.tootja-archive-card__fallback{
  position:absolute; top:0; left:0; width:100%; height:100%;
}
.tootja-archive-card__img{
  object-fit:cover; object-position:center; display:block;
  filter:grayscale(.15) brightness(.86);
  transition:transform .8s var(--pj-ease), filter .5s var(--pj-ease);
}
.tootja-archive-card:hover .tootja-archive-card__img{
  transform:scale(1.05); filter:grayscale(.05) brightness(.9);
}
.tootja-archive-card__fallback{ background:var(--pj-navy-panel-2); }
.tootja-archive-card__logo{
  position:absolute; top:20px; right:20px; z-index:3;
  background:#fff; border-radius:16px; padding:10px 14px;
  border:1px solid rgba(18,32,52,.08);
  box-shadow:0 8px 24px rgba(6,11,19,.18);
  pointer-events:none;
}
.tootja-archive-card__logo img{
  display:block; height:26px; width:auto; max-width:120px; object-fit:contain;
}
.tootja-archive-card__caption{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:56px 28px 28px;
  background:linear-gradient(to top, rgba(11,22,36,.97) 0%, rgba(11,22,36,.82) 36%, rgba(11,22,36,.35) 62%, transparent 100%);
  pointer-events:none;
}
.tootja-archive-card__foot{
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
}
.tootja-archive-card__tagline{
  flex:1; min-width:0; margin:0;
  font-family:inherit; font-size:15px; line-height:1.65; color:#F5F7FA;
}
.tootja-archive-card .arrow-circ{
  --arrow-circ-size:48px;
  flex-shrink:0; border-color:rgba(255,255,255,.22); color:#F5F7FA;
}
.tootja-archive-card:hover .arrow-circ{
  background:var(--pj-gold); border-color:var(--pj-gold);
}
.tootja-archive-card:hover .arrow-circ svg{
  transform:rotate(0deg);
}
.tootja-archive-card:hover .arrow-circ svg path{ stroke:var(--pj-navy-deep); }
.tootja-archive-card .trace-line{ z-index:4; }
@media (max-width:980px){
  .tootja-archive-grid{ grid-template-columns:1fr; }
  .tootja-archive-card{ min-height:300px; aspect-ratio:16/11; }
}
@media (max-width:640px){
  .tootja-archive-card{ min-height:260px; aspect-ratio:4/3; }
  .tootja-archive-card__caption{ padding:44px 20px 20px; }
  .tootja-archive-card__tagline{ font-size:14px; }
  .tootja-archive-card .arrow-circ{ --arrow-circ-size:42px; }
}
