/* Picnick Media / local exploration: the original welcome screen + scroll-through lens.
   Only scoped to .pm-stage. Production website is not affected. */
html {scroll-padding-top:76px}
body.pm-stage-active .navbar,
body.pm-stage-active .navbar.scrolled {
  background:rgba(7,11,14,.79)!important;
  border-bottom-color:rgba(227,233,232,.17)!important;
}
body.pm-stage-active .navbar .logo-name,
body.pm-stage-active .navbar .lang-btn,
body.pm-stage-active .navbar.scrolled .logo-name,
body.pm-stage-active .navbar.scrolled .lang-btn {color:#e9edef!important}
body.pm-stage-active .navbar .lang-btn.active {color:#fff!important}
.pm-stage {
  position:relative;
  isolation:isolate;
  height:370vh;
  width:100%;
  background:#060a0c;
  overflow:clip;
}
.pm-stage-sticky {
  position:sticky;
  top:0;
  width:100%;
  height:100vh;
  height:100svh;
  overflow:hidden;
  --pm-blackout:0;
  color:#f8f8f8;
  background:radial-gradient(ellipse at 61% 49%,#18282c,#090f13 60%,#060a0c 100%);
}
.pm-stage-canvas,.pm-stage-fallback,.pm-stage-shade,.pm-stage-blackout {
  position:absolute;inset:0;width:100%;height:100%;
}
.pm-stage-canvas {z-index:1;display:block;opacity:0;transition:opacity .7s ease}
.pm-stage-canvas.is-ready {opacity:1}
.pm-stage-fallback {
  z-index:1;opacity:.85;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(ellipse at 58% 46%,rgba(74,114,119,.22),transparent 55%);
  transition:opacity .5s ease;
}
.pm-stage-fallback svg{
  width:min(87vw,1050px);
  height:auto;
  max-height:95vh;
  transform:translateX(13vw);
  filter:drop-shadow(0 20px 80px rgba(8,8,12,.7));
}
.pm-stage:has(.pm-stage-canvas.is-ready) .pm-stage-fallback{opacity:0}
.pm-stage-vignette{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 57% 46%,rgba(91,133,137,.09),transparent 49%);
}
.pm-stage-shade {
  z-index:2;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(6,10,13,.82) 0%,rgba(6,10,13,.4) 27%,transparent 46%,rgba(6,10,13,.28) 63%,rgba(6,10,13,.76) 100%),
    linear-gradient(0deg,rgba(5,8,11,.8) 0%,transparent 23%,transparent 73%,rgba(5,8,11,.36) 100%);
}
/* Silver light bloom after the dark overlay, aligned with the actual
   projected lamp positions. Unlike increasing ambient exposure, this leaves
   the rest of the set atmospheric and the original text high-contrast. */
.pm-stage-lamp-glows {
  position:absolute;
  inset:0;
  z-index:3;
  overflow:hidden;
  pointer-events:none;
  opacity:0;
  transition:opacity .35s ease;
}
.pm-stage:has(.pm-stage-canvas.is-ready) .pm-stage-lamp-glows {opacity:1;}
.pm-stage-lamp-glow {
  position:absolute;
  left:-500px;
  top:-500px;
  display:block;
  width:180px;
  height:165px;
  transform:translate(-50%,-50%);
  pointer-events:none;
  mix-blend-mode:screen;
  filter:blur(4px);
  will-change:transform;
}
.pm-stage-lamp-glow-softbox {
  border-radius:34%;
  background:
    radial-gradient(ellipse at center,
      rgba(252,254,255,.51) 0%,
      rgba(237,246,251,.34) 19%,
      rgba(215,232,241,.20) 39%,
      rgba(200,219,231,.085) 57%,
      transparent 74%);
}
.pm-stage-lamp-glow-fresnel {
  border-radius:50%;
  background:
    radial-gradient(circle at center,
      rgba(254,254,255,.58) 0%,
      rgba(235,244,252,.37) 16%,
      rgba(219,232,244,.20) 36%,
      rgba(194,215,231,.09) 55%,
      transparent 76%);
}
.pm-stage-blackout{
  z-index:4;pointer-events:none;background:#050708;opacity:var(--pm-blackout);
}
.pm-stage-hero {
  position:absolute!important;
  z-index:5;
  inset:0;
  height:100%!important;
  min-height:0!important;
  width:100%;
  padding:100px 0 108px!important;
  margin:0;
  display:flex!important;
  align-items:center;
  justify-content:center;
  overflow:hidden!important;
  box-shadow:none!important;
  background:transparent!important;
  opacity:1;
}
.pm-stage-hero .hero-layout-grid {
  width:100%;
  max-width:1530px;
  margin:0 auto;
  padding:0 clamp(30px,5vw,76px);
  display:grid;
  grid-template-columns:minmax(0,480px) minmax(0,1fr);
  align-items:center;
  gap:clamp(90px,11vw,220px);
  text-align:left;
}
.pm-stage-hero .hero-split-left{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  text-align:left;min-width:0;
}
.pm-stage-hero .hero-content{
  padding:0;max-width:100%;
}
.pm-stage-hero .hero-tag {
  font-size:clamp(10px,.83vw,13px);
  letter-spacing:2.15px;
  margin-bottom:22px;
}
.pm-stage-hero .hero-title {
  font-size:clamp(39px,4.2vw,70px);
  letter-spacing:-.03em;
  line-height:1.08;
  white-space:normal;
  min-height:2.25em;
  margin-bottom:17px;
  text-shadow:0 8px 30px rgba(0,0,0,.4);
}
.pm-stage-hero .hero-subtitle {
  margin:0;
  max-width:455px;
  padding:0;
  font-size:clamp(14px,1.08vw,17px);
  line-height:1.65;
  color:rgba(241,244,244,.84);
}
.pm-stage-hero .hero-nav{
  position:absolute!important;
  z-index:8;
  bottom:31px!important;
  top:auto!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  margin:0!important;
}
.pm-stage-hero .hero-nav-btn{padding:13px 21px}
.pm-stage-scroll-cue{
  position:absolute;
  z-index:8;
  left:clamp(30px,5vw,76px);
  bottom:37px;
  display:flex;align-items:center;gap:14px;
  font:600 10px/1 Inter,Arial,sans-serif;
  letter-spacing:3px;
  color:rgba(238,240,242,.7);
  text-decoration:none;
}
.pm-stage-scroll-cue span:last-child{font-size:20px;line-height:1;animation:pm-cue 2s infinite}
.pm-stage-scroll-cue:hover{color:white}
@keyframes pm-cue{0%,100%{transform:translateY(-2px)}60%{transform:translateY(5px)}}
@media(max-width:1100px){
  .pm-stage-hero .hero-layout-grid{
    gap:clamp(50px,7vw,100px);
    grid-template-columns:minmax(0,470px) minmax(0,1fr);
  }
  .pm-stage-hero .hero-nav-btn{padding:11px 16px}
}
@media(max-width:900px){
  .pm-stage {height:340vh}
  .pm-stage-hero{padding:98px 0 120px!important;align-items:center}
  .pm-stage-hero .hero-layout-grid {
    grid-template-columns:1fr;
    max-width:620px;
    gap:19px;
    padding:0 30px;
    text-align:left;
  }
  .pm-stage-hero .hero-split-left,
  .pm-stage-hero .hero-split-left{justify-content:flex-start;align-items:flex-start;text-align:left;}
  .pm-stage-hero .hero-content {width:100%}
  .pm-stage-hero .hero-tag{margin-bottom:12px}
  .pm-stage-hero .hero-title{
    font-size:clamp(32px,6vw,51px);
    min-height:2.15em;
    margin-bottom:10px;
  }
  .pm-stage-hero .hero-subtitle{max-width:470px;margin:0;line-height:1.45}
  .pm-stage-hero .hero-nav{
    position:absolute!important;
    bottom:25px!important;
    width:min(94%,490px);
    flex-wrap:wrap;
    max-width:none;
  }
  .pm-stage-hero .hero-nav-btn{
    flex:1 1 43%;
    justify-content:center;
    padding:9px 13px;
    font-size:.83rem;
  }
  .pm-stage-scroll-cue{display:none}
  .pm-stage-shade{
    background:
      linear-gradient(0deg,rgba(6,10,13,.93) 0%,rgba(6,10,13,.59) 38%,rgba(6,10,13,.17) 70%,rgba(6,10,13,.3)),
      linear-gradient(90deg,rgba(6,10,13,.4),transparent 65%,rgba(6,10,13,.25));
  }
}
@media(max-width:600px){
  .pm-stage{height:330vh}
  .pm-stage-hero{padding:77px 0 108px!important;overflow:visible!important;}
  .pm-stage-hero .hero-layout-grid{padding:0 23px;gap:12px}
  .pm-stage-hero .hero-tag {font-size:9px;letter-spacing:1.3px;margin-bottom:8px}
  .pm-stage-hero .hero-title{font-size:clamp(30px,7.8vw,41px);min-height:2.05em;line-height:1.1;margin-bottom:6px}
  .pm-stage-hero .hero-subtitle{padding:0; font-size:12.5px;line-height:1.42;margin-bottom:0;}
  .pm-stage-hero .hero-nav{bottom:22px!important;width:calc(100% - 46px);flex-wrap:wrap;max-width:390px}
  .pm-stage-hero .hero-nav-btn{min-width:0;padding:7px 6px;font-size:11.5px;letter-spacing:0}
  .pm-stage-hero .hero-nav-btn i{font-size:.88rem}
  .pm-stage-fallback svg{width:120vw;max-width:none;transform:translate(10vw,-8vh)}
  .pm-stage-shade{background:linear-gradient(0deg,rgba(6,10,13,.92),rgba(6,10,13,.42) 63%,rgba(6,10,13,.12))}
}
@media (max-width:370px){
  .pm-stage-hero .hero-title{font-size:30px}
}
@media (prefers-reduced-motion:reduce){
  .pm-stage{height:150vh}
  .pm-stage *, .pm-stage *::before, .pm-stage *::after{animation:none!important}
  .pm-stage-canvas{transition:none}
}


/* Original AI secretary moved below prices and above contact. */
.pm-secretary-section {
  position:relative;
  padding:clamp(64px,8vw,105px) 24px!important;
  border-top:1px solid rgba(208,218,220,.07);
  border-bottom:1px solid rgba(208,218,220,.07);
  background:
    radial-gradient(ellipse 58% 105% at 50% 50%,rgba(63,86,95,.20),transparent 76%),
    #0c1115;
}
.pm-secretary-inner {
  width:100%;
  max-width:730px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pm-secretary-section .hero-secretary-card {
  width:100%;
  max-width:none;
  padding:clamp(25px,3.5vw,44px);
  display:flex;
  flex-direction:column;
  gap:17px;
  color:#f6f7f7;
  background:linear-gradient(150deg,rgba(27,34,39,.96),rgba(13,20,25,.97));
  border:1px solid rgba(215,225,228,.30);
  border-radius:15px;
  box-shadow:0 26px 85px rgba(0,0,0,.34);
}
.pm-secretary-section .hero-secretary-eyebrow {font-size:11px;letter-spacing:2.5px}
.pm-secretary-section .hero-secretary-title {font-size:clamp(24px,2.5vw,33px);line-height:1.22}
.pm-secretary-section .chat-messages {max-height:340px;overflow-y:auto}
.pm-secretary-section .chat-input-area input {min-width:0}
.pm-secretary-section .chat-message {line-height:1.5}
.pm-secretary-section .hero-secretary-trust {font-size:12px;line-height:1.45}

/* Native MP4 inside the lens: no embedded YouTube player and no muted
   playback. Native video controls remain available after playback begins. */
.pm-stage-lens-video {
  position:absolute;
  z-index:7;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(90px,12vh,120px) 3.5vw clamp(28px,5vh,50px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(22px);
  will-change:opacity,transform;
  background:radial-gradient(ellipse 66% 75% at 50% 52%,rgba(18,27,33,.74),#050708 80%);
}
/* Soft photographic glow around the landscape video on tall screens. */
.pm-stage-lens-video::before {
  content:"";
  position:absolute;inset:-9%;
  background:url("assets/picnick-videovizitka-poster.jpg") center/cover no-repeat;
  filter:blur(63px) saturate(.85);
  opacity:.15;
  pointer-events:none;
}
.pm-stage-lens-video-inner {position:relative;z-index:1;width:100%;max-width:1100px;display:flex;justify-content:center;align-items:center}
.pm-stage-lens-player {
  width:100%;
  aspect-ratio:16/9;
  position:relative;
  overflow:hidden;
  background:#000;
  border-radius:4px;
  border:1px solid rgba(198,207,213,.17);
  box-shadow:0 25px 95px rgba(0,0,0,.62);
}
.pm-stage-lens-media {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000;
}
.pm-stage-lens-start {
  position:absolute;
  z-index:2;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:linear-gradient(0deg,rgba(4,8,10,.55),rgba(4,8,10,.33)),url("assets/picnick-videovizitka-poster.jpg") center/cover no-repeat;
  opacity:1;
  visibility:visible;
  transition:opacity .35s ease,visibility .35s ease;
}
.pm-stage-lens-start.pm-playing {opacity:0;visibility:hidden;pointer-events:none}
.pm-stage-lens-play-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  border:1px solid rgba(237,244,244,.64);
  background:rgba(11,16,20,.88);
  backdrop-filter:blur(14px);
  padding:20px 28px;
  min-height:65px;
  border-radius:8px;
  color:#f7f8f9;
  font:600 clamp(14px,1.38vw,18px)/1.3 Inter,Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 10px 32px rgba(0,0,0,.56);
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.pm-stage-lens-play-button i {font-size:1.5em;color:#e4c596}
.pm-stage-lens-play-button:hover,
.pm-stage-lens-play-button:focus-visible {
  background:rgba(34,44,49,.96);
  border-color:#e4c596;
  transform:scale(1.04);
}
.pm-stage-lens-play-button:focus-visible {outline:3px solid #e4c596;outline-offset:3px}

@media(max-width:900px){
  .pm-stage-lens-video {padding:80px 16px 36px}
  .pm-stage-lens-video-inner {max-width:100%}
  .pm-secretary-inner {max-width:610px}
}
@media(max-width:600px){
  .pm-stage-lens-video {padding:66px 7px 24px}
  .pm-stage-lens-player {border-radius:2px}
  .pm-stage-lens-start {padding:12px}
  .pm-stage-lens-play-button {
    font-size:13px;
    gap:9px;
    padding:13px 15px;
    min-height:51px;
  }
  .pm-secretary-section {padding:54px 18px!important}
  .pm-secretary-section .hero-secretary-card {padding:19px 17px;gap:12px}
  .pm-secretary-section .hero-secretary-title {font-size:23px}
  .pm-secretary-section .chat-messages {max-height:270px}
  .pm-secretary-section .chat-input-area input {padding:10px 12px;font-size:13px}
  .pm-secretary-section .chat-message {font-size:13px;padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){
  .pm-stage-lens-start {transition:none}
}

/* Picnick continuum: the Three.js stage becomes one persistent atmosphere.
   Decorative-only SVG, zero script and no input/event interception. */
.pm-continuum {
  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  height:100svh;
  z-index:0;
  pointer-events:none;
  background:#060a0e url("assets/picnick-spatial-grid.svg") center center/cover no-repeat;
  /* Exactly twice the background's previous cover scale at each viewport ratio. */
  background-size:auto 200%;
  opacity:1;
  transition:opacity .85s ease;
}
.pm-continuum::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(4,7,9,.38),transparent 26%,transparent 71%,rgba(3,6,8,.40)),
    radial-gradient(ellipse 60% 70% at 50% 47%,rgba(4,7,10,.32),transparent 80%);
}
/* Keep the fully interactive opening WebGL hero above the new field; let the
   fixed background fade into the black lens as the user leaves that scene. */
body.pm-stage-active .pm-continuum {opacity:0}
/* Existing content is painted in front and retains all its native interactions. */
body > .section {position:relative;z-index:1;}
body > .footer {position:relative;z-index:1;}
/* Retain the secretary's local spotlight without cutting a solid colour slab
   across the shared coordinate field. */
body > .pm-secretary-section {
  background:
    radial-gradient(ellipse 65% 92% at 50% 48%,rgba(65,86,94,.18),transparent 78%),
    linear-gradient(180deg,rgba(6,11,15,.48),rgba(6,11,15,.60));
  border-top-color:rgba(159,181,188,.12);
  border-bottom-color:rgba(159,181,188,.12);
}
/* Semi-opaque panels read as individual objects above the studio floor. */
body > .section .portfolio-card {background:rgba(9,14,18,.90);}
body > .section .service-platform {background:rgba(9,14,18,.88);}
body > .section .service-platform.featured {
  background:linear-gradient(145deg,rgba(12,19,23,.92),rgba(58,70,75,.15));
}
body > .section .stat-card {background:rgba(9,15,18,.84);}
body > .section .contact-form-wrapper {background:rgba(10,16,20,.91);}
/* The previously silver footer should not sever the unified dark spatial
   treatment; keep its own readable contrast and section divider. */
body > .footer {
  background:rgba(5,9,12,.93);
  border-top:1px solid rgba(155,181,190,.20);
}
body > .footer .footer-logo,
body > .footer .footer-logo .logo-name,
body > .footer p {color:rgba(226,232,233,.72)!important;}
body > .footer .visitor-counter {
  background:rgba(12,20,24,.85);
  color:rgba(226,232,233,.78);
  border-color:rgba(153,176,185,.25);
}
@media(max-width:700px){
  .pm-continuum{
    background-position:52% center;
  }
  .pm-continuum::after {
    background:linear-gradient(180deg,rgba(3,6,8,.45),transparent 32%,rgba(4,7,9,.20) 74%,rgba(4,7,9,.52));
  }
}
@media(prefers-reduced-motion:reduce){
  .pm-continuum{transition:none;}
}

/* Picnick dimensional-card interactions — only the five requested surfaces:
   portfolio thumbnails, services/prices, AI secretary, contact links/form.
   The content floats in front of the static spatial-grid illustration.
   Real perspective is provided by the containing layout; mobile touch remains
   stable and unscaled. */
@media (hover:hover) and (pointer:fine) {
  #portfolio .portfolio-grid,
  #services .services-grid,
  #ai-secretary .pm-secretary-inner,
  #contact .contact-layout,
  #contact .messenger-links {
    perspective: 1250px;
  }
  #portfolio .portfolio-card,
  #services .service-platform,
  #ai-secretary .hero-secretary-card,
  #contact .messenger-btn,
  #contact .contact-form-wrapper {
    /* The old float keyframes own transform and prevent hover scale. */
    animation:none;
    position:relative;
    z-index:1;
    transform:translate3d(0,0,0) scale(1);
    transform-origin:center center;
    backface-visibility:hidden;
    transition:
      transform .43s cubic-bezier(.2,.75,.2,1),
      box-shadow .43s cubic-bezier(.2,.75,.2,1),
      border-color .34s ease,
      background-color .34s ease;
  }
  #portfolio .portfolio-card:hover,
  #services .service-platform:hover,
  #ai-secretary .hero-secretary-card:hover,
  #contact .messenger-btn:hover,
  #contact .contact-form-wrapper:hover {
    z-index:12;
    transform:translate3d(0,-9px,28px) scale(1.035);
    /* Restore the original silver-white frame while preserving 3D lift. */
    border-color:rgba(245,247,250,.98);
    box-shadow:
      0 30px 72px rgba(0,0,0,.52),
      0 0 0 1px rgba(245,247,250,.64),
      0 0 22px rgba(243,245,250,.39),
      0 0 52px rgba(208,216,226,.24);
  }
  /* Smaller individual contact chips rise less than whole-card surfaces. */
  #contact .messenger-btn:hover {
    transform:translate3d(0,-4px,18px) scale(1.025);
    box-shadow:
      0 18px 43px rgba(0,0,0,.45),
      0 0 0 1px rgba(246,248,250,.52),
      0 0 18px rgba(243,245,250,.28),
      0 0 35px rgba(209,216,226,.18);
  }
  #portfolio .portfolio-card:hover::before {
    /* Preserve the original silver rim gradient on portfolio thumbnails. */
    opacity:.5;
  }
  #portfolio .portfolio-card:hover .card-visual img {
    transform:scale(1.035);
  }
}
/* Keyboard focus reveals selection without introducing a sticky touch hover. */
#portfolio .portfolio-card:focus-visible,
#services .service-platform:focus-visible,
#contact .messenger-btn:focus-visible {
  outline:2px solid rgba(184,221,229,.75);
  outline-offset:4px;
}
@media (prefers-reduced-motion:reduce) {
  #portfolio .portfolio-card,
  #services .service-platform,
  #ai-secretary .hero-secretary-card,
  #contact .messenger-btn,
  #contact .contact-form-wrapper {
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
}

/* Keep typography pixel-sharp on hover.
   Perspective scale rasterized entire text-bearing cards onto a composited
   texture, blurring headings, AI chat messages, input fields and service prices.
   Portfolio thumbnails keep the original 3D lift. Silver hover frames/glow
   remain on all surfaces, but text itself is never transformed. */
@media (hover:hover) and (pointer:fine) {
  #services .services-grid,
  #ai-secretary .pm-secretary-inner,
  #contact .contact-layout,
  #contact .messenger-links {
    perspective:none;
  }
  #services .service-platform,
  #ai-secretary .hero-secretary-card,
  #contact .messenger-btn,
  #contact .contact-form-wrapper,
  #services .service-platform:hover,
  #ai-secretary .hero-secretary-card:hover,
  #contact .messenger-btn:hover,
  #contact .contact-form-wrapper:hover {
    transform:none;
    backface-visibility:visible;
    transition:
      box-shadow .43s cubic-bezier(.2,.75,.2,1),
      border-color .34s ease,
      background-color .34s ease;
  }
}
