/* EUTYCH V9.7 — editable 3D landing carousel */
.eutych-c3d-section{
  position:relative;
  overflow:hidden;
  border-top:1px solid var(--line,#242429);
  border-bottom:1px solid var(--line,#242429);
  background:
    radial-gradient(circle at 50% 45%,rgba(255,212,0,.07),transparent 34%),
    #09090b;
}
.eutych-c3d-heading{padding-top:64px;text-align:center;max-width:760px;margin:0 auto -22px;position:relative;z-index:5}
.eutych-c3d-heading>span{display:inline-block;color:#ffd400;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin-bottom:10px}
.eutych-c3d-heading h2{margin:0;color:#fff;font-size:clamp(2rem,4vw,4rem);line-height:1;letter-spacing:-.045em;font-weight:800}
.eutych-c3d-heading p{margin:14px auto 0;color:#9b9ba4;font-size:15px;line-height:1.65;max-width:640px}
.eutych-c3d-stage{
  --c3d-stage-h:560px;
  --c3d-w:150px;
  --c3d-h:220px;
  --c3d-radius:360px;
  --c3d-perspective:1100px;
  --c3d-tilt:-12deg;
  --c3d-speed:20s;
  position:relative;
  height:var(--c3d-stage-h);
  min-height:360px;
  display:grid;
  place-items:center;
  overflow:hidden;
  perspective:var(--c3d-perspective);
  isolation:isolate;
}
.eutych-c3d-stage:before{
  content:"";position:absolute;left:50%;bottom:12%;width:min(760px,72vw);height:92px;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(ellipse,rgba(255,212,0,.10),rgba(0,0,0,0) 70%);filter:blur(10px);pointer-events:none
}
.eutych-c3d-scene{position:relative;width:var(--c3d-w);height:var(--c3d-h);transform-style:preserve-3d;z-index:2}
.eutych-c3d-inner{
  position:absolute;inset:0;
  transform-style:preserve-3d;
  transform:rotateX(var(--c3d-tilt)) rotateY(0deg);
  animation:eutychC3dRotate var(--c3d-speed) linear infinite;
  will-change:transform;
}
.eutych-c3d-inner.direction-left{animation-name:eutychC3dRotateReverse}
.eutych-c3d-inner.is-paused{animation-play-state:paused}
.eutych-c3d-stage.pause-on-hover:hover .eutych-c3d-inner{animation-play-state:paused}
@keyframes eutychC3dRotate{
  from{transform:rotateX(var(--c3d-tilt)) rotateY(0deg)}
  to{transform:rotateX(var(--c3d-tilt)) rotateY(1turn)}
}
@keyframes eutychC3dRotateReverse{
  from{transform:rotateX(var(--c3d-tilt)) rotateY(0deg)}
  to{transform:rotateX(var(--c3d-tilt)) rotateY(-1turn)}
}
.eutych-c3d-card{
  position:absolute;
  inset:0;
  border:1.5px solid rgba(var(--color-card),.82);
  border-radius:16px;
  overflow:hidden;
  background:#111116;
  box-shadow:0 0 28px rgba(var(--color-card),.09),0 20px 46px rgba(0,0,0,.34);
  transform:rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--c3d-radius));
  backface-visibility:visible;
}
.eutych-c3d-link{display:block;width:100%;height:100%;color:inherit;text-decoration:none}
.eutych-c3d-media{position:relative;width:100%;height:100%;overflow:hidden;background:#111116}
.eutych-c3d-media-el{width:100%;height:100%;object-fit:cover;display:block}
.eutych-c3d-glass{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(145deg,rgba(255,255,255,.17),rgba(255,255,255,0) 38%),
    linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,0) 56%);
  box-shadow:inset 0 0 34px rgba(var(--color-card),.12)
}
.eutych-c3d-copy{position:absolute;left:0;right:0;bottom:0;padding:14px 13px 13px;color:#fff;display:flex;flex-direction:column;gap:4px;z-index:3;text-align:left}
.eutych-c3d-copy span{align-self:flex-start;padding:3px 7px;border-radius:999px;background:#ffd400;color:#09090b;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.eutych-c3d-copy strong{font-size:14px;line-height:1.2;font-weight:800;text-shadow:0 1px 10px rgba(0,0,0,.5)}
.eutych-c3d-copy small{font-size:10px;line-height:1.35;color:rgba(255,255,255,.72);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

@media (max-width: 900px){
  .eutych-c3d-heading{padding-top:48px;margin-bottom:-34px;padding-inline:18px}
  .eutych-c3d-stage{height:min(var(--c3d-stage-h),520px)}
  .eutych-c3d-scene{transform:scale(.78)}
}
@media (max-width: 640px){
  .eutych-c3d-heading{padding-top:40px;margin-bottom:-60px}
  .eutych-c3d-heading p{font-size:13px}
  .eutych-c3d-stage{height:430px;min-height:430px}
  .eutych-c3d-scene{transform:scale(.58)}
  .eutych-c3d-copy{padding:10px}
}
@media (prefers-reduced-motion: reduce){
  .eutych-c3d-inner{animation-duration:90s}
}

/* EUTYCH V12.6.2 — MOBILE ALWAYS-RUN PATCH
   On Android/iOS the decorative 3D carousel must continue rotating.
   Desktop behavior still follows the Admin autoplay/pause settings. */
@media (max-width: 900px){
  .eutych-c3d-inner,
  .eutych-c3d-inner.is-paused,
  .eutych-c3d-stage.pause-on-hover:hover .eutych-c3d-inner{
    animation-play-state:running !important;
    animation-duration:var(--c3d-speed) !important;
    -webkit-animation-play-state:running !important;
    -webkit-animation-duration:var(--c3d-speed) !important;
    will-change:transform;
  }
  .eutych-c3d-inner{
    -webkit-transform-style:preserve-3d;
    transform-style:preserve-3d;
    backface-visibility:visible;
    -webkit-backface-visibility:visible;
  }
  .eutych-c3d-scene,
  .eutych-c3d-card{
    -webkit-transform-style:preserve-3d;
    transform-style:preserve-3d;
  }
}

/* Do not make the carousel look frozen on phones when the OS has Reduce Motion enabled.
   Desktop still keeps the original reduced-motion behavior. */
@media (max-width: 900px) and (prefers-reduced-motion: reduce){
  .eutych-c3d-inner{
    animation-duration:var(--c3d-speed) !important;
    -webkit-animation-duration:var(--c3d-speed) !important;
  }
}
