/* Services section: sir's picture on one side, services in a zigzag on the other, with 3D effects.
   Colours and fonts come from profile.css. */
.zz { position: relative; padding: clamp(80px, 9vw, 130px) 0 clamp(70px, 8vw, 120px); overflow: clip; background: radial-gradient(60% 40% at 12% 40%, rgba(255, 20, 40, .1), transparent 70%), linear-gradient(180deg, var(--bg), #0e0607 50%, var(--bg)); }
.zz__wrap { width: min(1320px, 100% - 2 * clamp(16px, 3vw, 48px)); margin: 0 auto; }
.zz__head { max-width: 900px; margin: 0 auto clamp(36px, 4.5vw, 64px); text-align: center; }
.zz__head .kicker { justify-content: center; }
.zz__head p:last-child { max-width: 760px; margin: 0 auto; color: #b9aeb0; }

.zz__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 3.5vw, 60px); align-items: start; }

/* ---------- picture side: stays on screen while the services scroll past ---------- */
.zz__side { position: sticky; top: 92px; height: calc(100vh - 112px); height: calc(100svh - 112px); min-height: 460px; max-height: 760px; perspective: 1200px; }
.zz__stage { --rx: 0deg; --ry: 0deg; --turn: 0deg; position: relative; height: 100%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 30px; background: radial-gradient(90% 60% at 50% 34%, #46090f 0%, #17060a 55%, #08040a 100%); box-shadow: 0 50px 80px -50px #000; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.zz__stage.is-live { transition: transform .1s linear; }
.zz__stage > * { position: absolute; }
.zz__clip { inset: 0; overflow: hidden; border-radius: inherit; }
.zz__clip > * { position: absolute; }
/* floor grid running into the distance */
.zz__floor { left: -50%; right: -50%; bottom: -8%; height: 46%; background-image: linear-gradient(rgba(255, 52, 68, .34) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 52, 68, .34) 1px, transparent 1px); background-size: 46px 46px; transform: perspective(420px) rotateX(70deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
.zz__big { left: 0; right: 0; top: 5%; text-align: center; font-size: clamp(110px, 15vw, 230px); font-weight: 900; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 90, 104, .38); }
.zz__rings { left: 50%; top: 40%; width: 0; height: 0; transform-style: preserve-3d; }
.zz__rings i { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border: 1.5px solid rgba(255, 70, 85, .55); border-radius: 50%; transform: rotateX(74deg); }
.zz__rings i::after { content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 5px var(--accent); }
.zz__rings i:nth-child(2) { left: -190px; top: -190px; width: 380px; height: 380px; border-style: dashed; border-color: rgba(255, 70, 85, .35); transform: rotateX(68deg) rotateY(-14deg); }
.zz__sir { left: 50%; bottom: 0; height: 88%; width: auto; max-width: none; translate: -50% 0; filter: drop-shadow(-10px -2px 24px rgba(255, 40, 60, .35)); transform: translateZ(40px) rotateY(var(--turn)); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.zz__fade { left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(transparent, rgba(6, 3, 4, .96)); border-radius: 0 0 30px 30px; transform: translateZ(50px); }
/* picture of the service now being read, floating in front */
.zz__mini { top: 7%; right: -14px; width: clamp(130px, 40%, 200px); aspect-ratio: 4 / 3; padding: 6px; border: 1px solid rgba(255, 90, 104, .6); border-radius: 18px; background: rgba(14, 6, 8, .88); box-shadow: 0 24px 40px -18px #000, 0 0 30px -8px rgba(255, 40, 60, .7); transform: translateZ(90px); }
.zz__mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.zz__mini.is-flip { animation: zzFlip .7s cubic-bezier(.2, .8, .2, 1); }
.zz__label { left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(10, 6, 8, .66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateZ(80px); }
.zz__label b { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #b3101f, var(--accent)); color: #fff; font-size: 17px; }
.zz__label span { display: block; min-width: 0; }
.zz__label strong { display: block; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.3; }
.zz__label small { color: var(--accent-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.zz__label strong.is-flip { animation: zzText .5s ease; }

/* ---------- services side: zigzag ---------- */
.zz__services { position: relative; }
.zz__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.zz__line path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.zz__line .zz__path-base { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 5 9; }
.zz__line .zz__path-fill { stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 40, 60, .85)); }
.zz__line circle { fill: #14070a; stroke: rgba(255, 255, 255, .3); stroke-width: 2; transition: fill .3s ease, stroke .3s ease; }
.zz__line circle.is-on { fill: var(--accent); stroke: #fff; }

.zz__list { position: relative; display: grid; gap: clamp(28px, 3.4vw, 48px); }
.zz__item { width: 87%; perspective: 1100px; }
.zz__item:nth-child(even) { margin-left: auto; }
/* entrance: swings in from its own side */
.zz__swing { transform-style: preserve-3d; transition: transform .95s cubic-bezier(.16, 1, .3, 1), opacity .7s ease; }
.zz__item.is-wait .zz__swing { opacity: 0; transform: translate3d(-90px, 40px, -160px) rotateY(38deg); }
.zz__item.is-wait:nth-child(even) .zz__swing { transform: translate3d(90px, 40px, -160px) rotateY(-38deg); }

.zz__card { --lean: 7deg; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: stretch; gap: 4px; padding: 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; background: linear-gradient(160deg, #1b0e11, #0a0708); box-shadow: 0 36px 50px -38px #000; }
.zz__item:nth-child(even) .zz__card { --lean: -7deg; }
.zz__item:nth-child(even) .zz__pic { order: 2; }
/* each card leans towards the picture side until it is the one being read; profile.js adds the mouse tilt */
.zz__card[data-tilt] { transform: perspective(1200px) rotateY(calc(var(--lean) + var(--ry))) rotateX(var(--rx)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), border-color .4s ease, box-shadow .4s ease; }
.zz__card[data-tilt].is-tilt { transition: transform .08s linear, border-color .4s ease, box-shadow .4s ease; }
.zz__item.is-active .zz__card { --lean: 0deg; border-color: rgba(255, 52, 68, .75); box-shadow: 0 40px 60px -38px #000, 0 0 44px -12px rgba(255, 30, 55, .75); }

.zz__pic { position: relative; margin: 0; min-height: 190px; border-radius: 16px; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.zz__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; filter: saturate(.8) brightness(.86); transition: filter .4s ease; }
.zz__item.is-active .zz__pic img, .zz__card:hover .zz__pic img { filter: none; }
.zz__card.is-tilt .zz__pic { transform: translateZ(46px) scale(1.04); }
.zz__no { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; box-shadow: 0 10px 18px -8px #000; }
.zz__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 12px 16px; transform-style: preserve-3d; }
.zz__text h3 { margin-bottom: 8px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.28; transition: transform .45s ease; }
.zz__text p { margin-bottom: 12px; color: #b8afb0; font-size: 15.5px; line-height: 1.65; }
.zz__card.is-tilt h3 { transform: translateZ(30px); }
.zz__more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-size: 15.5px; font-weight: 500; }
.zz__more i { font-style: normal; transition: translate .25s ease; }
.zz__more:hover { color: #fff; }
.zz__more:hover i { translate: 6px 0; }

@media (prefers-reduced-motion: no-preference) {
  .zz__floor { animation: zzFloor 3.2s linear infinite; }
  .zz__rings i { animation: zzSpin 11s linear infinite; }
  .zz__rings i:nth-child(2) { animation: zzSpinBack 17s linear infinite; }
  .zz__mini { animation: zzFloat 5s ease-in-out infinite; }
  .zz__mini.is-flip { animation: zzFlip .7s cubic-bezier(.2, .8, .2, 1), zzFloat 5s ease-in-out .7s infinite; }
}
@keyframes zzFloor { to { background-position: 0 46px, 0 0; } }
@keyframes zzSpin { from { transform: rotateX(74deg) rotateZ(0); } to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes zzSpinBack { from { transform: rotateX(68deg) rotateY(-14deg) rotateZ(360deg); } to { transform: rotateX(68deg) rotateY(-14deg) rotateZ(0); } }
@keyframes zzFloat { 50% { translate: 0 -12px; } }
@keyframes zzFlip { from { opacity: .2; transform: translateZ(90px) rotateY(-90deg); } to { opacity: 1; transform: translateZ(90px) rotateY(0); } }
@keyframes zzText { from { opacity: 0; translate: 0 12px; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1199.98px) {
  .zz__item { width: 94%; }
  .zz__card { grid-template-columns: minmax(0, 1fr); }
  .zz__item:nth-child(even) .zz__pic { order: 0; }
  .zz__pic { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 991.98px) {
  .zz__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .zz__side { position: relative; top: 0; width: 100%; max-width: 460px; height: 520px; min-height: 0; margin: 0 auto; }
  .zz__mini { right: 10px; }
  .zz__list { max-width: 640px; margin: 0 auto; }
  .zz__item { width: 90%; }
  .zz__card { --lean: 4deg; }
  .zz__item:nth-child(even) .zz__card { --lean: -4deg; }
  .zz__item.is-wait .zz__swing { transform: translate3d(-40px, 40px, -80px) rotateY(24deg); }
  .zz__item.is-wait:nth-child(even) .zz__swing { transform: translate3d(40px, 40px, -80px) rotateY(-24deg); }
}
@media (max-width: 575.98px) {
  .zz__side { height: 440px; }
  .zz__rings { scale: .78; }
}
@media (prefers-reduced-motion: reduce) {
  .zz__stage, .zz__sir, .zz__swing, .zz__card[data-tilt], .zz__pic { transition: none; }
}
