/* Service pages: the big moments (cinematic hero, giant word band, horizontal "what we do", fibre through the steps, big CTA).
   Everything is switched on by html.wow (set by page-wow.js). Without JS or under reduced motion the pages stay as before. */

/* ---------- 1. cinematic hero: the photo fills the screen, then gathers into a rounded frame as you scroll ---------- */
html.wow .wow-stage{position:relative;height:calc(var(--wsh,165) * 1vh)}
html.wow .wow-sticky{position:sticky;top:var(--navh,88px);height:calc(100vh - var(--navh,88px));overflow:hidden;display:flex;align-items:center}
html.wow .wow-stage .hero{position:relative;z-index:2;display:block;width:100%;padding-top:0;padding-bottom:0;transform:translateY(calc(var(--p,0) * -90px));opacity:calc(1 - var(--p,0) * 1.5)}
html.wow .wow-stage .hero>div{max-width:min(760px,58%)}
html.wow .wow-stage .hero h1{font-size:clamp(46px,5.4vw,100px);line-height:1.02;letter-spacing:-.045em}
html.wow .wow-stage .hero .lead{max-width:50ch;color:rgba(236,240,244,.82)}
html.wow .wow-bg{position:absolute;inset:0;z-index:0;margin:0;border-radius:0;aspect-ratio:auto;background:#010202;
  clip-path:inset(var(--iy,0px) var(--ix,0px) round calc(var(--p,0) * 32px))}
html.wow .wow-bg img{width:100%;height:100%;object-fit:cover;object-position:var(--wop,70% 40%);transform:scale(calc(1.16 - var(--p,0) * .1));transition:none;will-change:transform}
html.wow .wow-bg.wow-load img{transform:scale(1.32);filter:brightness(.4) saturate(.6)}
html.wow .wow-bg img{transition:transform 2.2s cubic-bezier(.16,1,.3,1),filter 2.2s cubic-bezier(.16,1,.3,1)}
html.wow .wow-bg.wow-live img{transition:none}
html.wow .wow-bg::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(1,2,2,.94) 0%,rgba(1,2,2,.78) 34%,rgba(1,2,2,.25) 66%,rgba(1,2,2,.05) 100%),linear-gradient(0deg,rgba(1,2,2,.9) 0%,rgba(1,2,2,0) 30%)}
html.wow .wow-scroll{position:absolute;z-index:3;left:50%;bottom:26px;translate:-50% 0;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:rgba(236,240,244,.6);opacity:calc(1 - var(--p,0) * 6)}
html.wow .wow-scroll i{display:block;width:1px;height:46px;background:linear-gradient(#1E5BFF,#35EA52);transform-origin:top;animation:wowDrip 2.2s cubic-bezier(.76,0,.24,1) infinite}
@keyframes wowDrip{0%{transform:scaleY(0)}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
/* the hero figure no longer opens from an inset: the stage does it with the scroll */
html.wow.fx-ready .wow-bg{transition:none}
html.wow.fx-ready .wow-bg.fx-in{clip-path:inset(var(--iy,0px) var(--ix,0px) round calc(var(--p,0) * 32px))}

/* ---------- 2. giant word band: two rows that run with the scroll and lean with its speed ---------- */
.wow-band{overflow:hidden;padding:clamp(28px,5vh,64px) 0;pointer-events:none;user-select:none;border-block:1px solid var(--line);margin-block:clamp(24px,4vh,48px)}
.wow-row{display:flex;white-space:nowrap;width:max-content;will-change:transform;font-size:clamp(56px,9.5vw,184px);font-weight:600;letter-spacing:-.05em;line-height:1.04}
.wow-row span{padding-right:.42em;display:inline-flex;align-items:center;gap:.42em}
.wow-row span::after{content:"";width:.16em;height:.16em;border-radius:50%;background:var(--grad);flex:none}
.wow-row.a{color:var(--white)}
.wow-row.a span:nth-child(3n+2) b{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.wow-row.b{color:transparent;-webkit-text-stroke:1.2px rgba(236,240,244,.38)}
.wow-row b{font-weight:inherit}

/* ---------- 3. "what we do": a horizontal reel of big panels (wide screens) ---------- */
html.wow .wow-h{padding-bottom:0}
html.wow .wow-hpin{position:sticky;top:var(--navh,88px);height:calc(100vh - var(--navh,88px));display:flex;flex-direction:column;justify-content:center;overflow:hidden}
html.wow .wow-h .grid{display:flex;gap:20px;margin-top:clamp(24px,4vh,44px);width:max-content;will-change:transform;transform:translateX(calc(var(--hx,0) * -1px))}
html.wow .wow-h .card{flex:none;width:clamp(320px,29vw,520px);height:clamp(300px,46vh,500px);display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(26px,2.4vw,40px);position:relative;overflow:hidden;border-radius:24px}
html.wow .wow-h .card .n{position:absolute;top:clamp(10px,1.4vw,24px);left:clamp(22px,2vw,36px);font-size:clamp(110px,11vw,210px);font-weight:200;letter-spacing:-.06em;line-height:1;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;opacity:.9}
html.wow .wow-h .card h3{font-size:clamp(24px,2vw,36px);letter-spacing:-.03em;line-height:1.1}
html.wow .wow-h .card p{font-size:clamp(15px,1.05vw,18px);margin-top:10px;max-width:36ch}
html.wow .wow-h .wow-count{margin-top:clamp(18px,3vh,32px);display:flex;align-items:center;gap:16px;font-size:13px;color:var(--mute);font-variant-numeric:tabular-nums}
html.wow .wow-h .wow-count i{display:block;width:clamp(120px,16vw,260px);height:2px;background:var(--line);position:relative;overflow:hidden}
html.wow .wow-h .wow-count i::after{content:"";position:absolute;inset:0;background:var(--grad);transform-origin:left;transform:scaleX(var(--hp,0))}
html.wow .wow-h .grid .card.fx-r{opacity:1;transform:none}

/* ---------- 4. the steps: a fibre runs down them and lights each number as it passes ---------- */
html.wow .steps{position:relative}
html.wow .steps::before,html.wow .steps::after{content:"";position:absolute;left:14px;top:0;bottom:0;width:2px;background:var(--line)}
html.wow .steps::after{background:linear-gradient(#1E5BFF,#35EA52);transform-origin:top;transform:scaleY(var(--sp,0));box-shadow:0 0 14px rgba(53,234,82,.5)}
html.wow .steps li{padding-left:44px;position:relative}
html.wow .steps li::before{content:"";position:absolute;left:9px;top:30px;width:12px;height:12px;border-radius:50%;background:var(--ink2,#0b0f14);border:2px solid rgba(255,255,255,.25);z-index:1;transition:background .4s,border-color .4s,box-shadow .4s}
html.wow .steps li.wow-on::before{background:#35EA52;border-color:#35EA52;box-shadow:0 0 0 6px rgba(53,234,82,.14),0 0 18px rgba(53,234,82,.7)}
html.wow .steps li .n{transition:color .4s}
html.wow .steps li.wow-on .n{color:#35EA52}
html.wow .steps li h3{transition:transform .6s cubic-bezier(.16,1,.3,1)}
html.wow .steps li.wow-on h3{transform:translateX(6px)}

/* ---------- 5. closing call: bigger type, a light that follows the pointer ---------- */
html.wow .cta{position:relative;isolation:isolate}
html.wow .cta::before{content:"";position:absolute;inset:0;height:auto;left:0;right:0;z-index:-1;pointer-events:none;opacity:.9;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);
  background:radial-gradient(560px circle at var(--cx,30%) var(--cy,40%),rgba(30,91,255,.34),rgba(53,234,82,.08) 45%,transparent 70%)}
html.wow .cta h2{font-size:clamp(44px,5.6vw,104px);line-height:1.02;letter-spacing:-.05em}

/* ---------- phones and tablets ---------- */
@media (max-width:900px){
  html.wow .wow-stage{height:calc(var(--wsh,165) * 1vh)}
  html.wow .wow-sticky{align-items:flex-end;top:var(--navh,72px);height:calc(100svh - var(--navh,72px))}
  html.wow .wow-stage .hero{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
  html.wow .wow-stage .hero>div{max-width:none}
  html.wow .wow-stage .hero h1{font-size:clamp(34px,9.6vw,52px)}
  html.wow .wow-stage .hero .lead{font-size:15px;line-height:1.5}
  html.wow .wow-bg::after{background:linear-gradient(0deg,rgba(1,2,2,.97) 0%,rgba(1,2,2,.86) 46%,rgba(1,2,2,.25) 78%,rgba(1,2,2,.1) 100%)}
  html.wow .wow-bg img{object-position:var(--wopm,60% 20%)}
  html.wow .wow-scroll{display:none}
  .wow-row{font-size:clamp(48px,16vw,96px)}
  html.wow .steps::before,html.wow .steps::after{left:10px}
  html.wow .steps li{padding-left:36px}
  html.wow .steps li::before{left:5px;top:28px}
}
/* big screens: main is zoomed, so the sticky parts use the visual height */
@media (min-width:2200px){html.wow .wow-sticky,html.wow .wow-hpin{height:calc(100vh/1.3 - var(--navh,88px))}}
@media (min-width:2880px){html.wow .wow-sticky,html.wow .wow-hpin{height:calc(100vh/1.6 - var(--navh,88px))}}
@media (min-width:3400px){html.wow .wow-sticky,html.wow .wow-hpin{height:calc(50vh - var(--navh,88px))}}

/* ---------- jury round 5 ---------- */
/* big screens: scroll lengths in visual height too (main is zoomed) */
@media (min-width:2200px){html.wow .wow-stage{height:calc(var(--wsh,165)*1vh/1.3)}}
@media (min-width:2880px){html.wow .wow-stage{height:calc(var(--wsh,165)*1vh/1.6)}}
@media (min-width:3400px){html.wow .wow-stage{height:calc(var(--wsh,165)*.5vh)}}
@media (min-width:2200px){html.wow .wow-bg img{transform:scale(calc(1.06 - var(--p,0)*.06))}}
/* the reel runs edge to edge and fades at the sides instead of cutting the cards */
html.wow .wow-hpin{margin-inline:calc(-1*max(var(--pad),env(safe-area-inset-left,0px)));padding-inline:max(var(--pad),env(safe-area-inset-left,0px));
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--pad),#000 calc(100% - var(--pad)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--pad),#000 calc(100% - var(--pad)),transparent)}
html.wow .wow-h .card{height:clamp(300px,40vh,440px)}
html.wow .wow-h .card .n{translate:calc((1 - var(--f,1)) * -14px) 0}
/* hero text clears quickly; a quiet caption sits in the finished frame */
html.wow .wow-stage .hero{opacity:calc(1 - var(--p,0) * 2.6)}
html.wow .wow-bg figcaption{position:absolute;left:calc(var(--ix,0px) + 36px);bottom:calc(var(--iy,0px) + 28px);z-index:2;font-size:clamp(13px,1vw,16px);font-weight:600;letter-spacing:.02em;color:rgba(236,240,244,.85);opacity:calc((var(--p,0) - .55) * 2.5)}
html.wow .wow-bg figcaption::before{content:"";display:inline-block;width:28px;height:1px;margin-right:12px;vertical-align:middle;background:var(--grad)}
/* the crumbs sit on the photo, so it starts right under the bar */
html.wow .wow-sticky>.crumbs{position:absolute;top:18px;left:0;right:0;z-index:3;padding-top:0}
html.wow .wow-sticky>.crumbs a,html.wow .wow-sticky>.crumbs li{color:rgba(236,240,244,.72)}
/* longer headline column on wide screens: 3-4 lines instead of 5 */
@media (min-width:1800px){html.wow .wow-stage .hero>div{max-width:min(980px,60%)}}
/* busy photos: stronger scrim behind the type */
.wow-stage[data-page="rack-diktya-rodos"] .wow-bg::after{background:linear-gradient(90deg,rgba(1,2,2,.96) 0%,rgba(1,2,2,.92) 48%,rgba(1,2,2,.35) 72%,rgba(1,2,2,.08) 100%),linear-gradient(0deg,rgba(1,2,2,.9),rgba(1,2,2,0) 30%)}
/* reel counter on the heading line, right */
html.wow .wow-h .wow-count{font-size:15px;align-self:flex-end;margin-top:clamp(18px,3vh,32px)}
/* overlay lifts as the frame forms, so the framed photo reads */
html.wow .wow-bg::after{opacity:calc(1 - var(--p,0) * .75)}
/* no double rule under the band */
html.wow .wow-band + section::before{display:none}
/* the reel: the card in the middle is in focus */
html.wow .wow-h .card{opacity:calc(.4 + .6 * var(--f,1));transform:scale(calc(.94 + .06 * var(--f,1)));transition:border-color .3s}
html.wow .wow-h .card .n{opacity:calc(.35 + .55 * var(--f,1))}
/* steps: the whole active block moves, title and text stay aligned */
html.wow .steps li.wow-on h3{transform:none}
html.wow .steps li>div{transition:transform .6s cubic-bezier(.16,1,.3,1)}
html.wow .steps li.wow-on>div{transform:translateX(6px)}
@media (max-width:900px){
  html.wow .steps li{grid-template-columns:34px 1fr;gap:12px}
  html.wow .steps li.wow-on>div{transform:translateX(3px)}
  .wow-stage[data-page="rack-diktya-rodos"] .wow-bg::after{background:linear-gradient(0deg,rgba(1,2,2,.98) 0%,rgba(1,2,2,.9) 52%,rgba(1,2,2,.35) 80%,rgba(1,2,2,.15) 100%)}
}
/* phones: "Τι κάνουμε" cards stack on top of each other as you scroll */
@media (max-width:1099px){
  html.wow section[aria-labelledby="what-h"] .grid{gap:14px}
  html.wow section[aria-labelledby="what-h"] .card{position:sticky;top:calc(var(--navh,72px) + 14px + var(--k,0) * 10px);background:#0b0f14;box-shadow:0 -18px 40px rgba(0,0,0,.6)}
  html.wow section[aria-labelledby="what-h"] .card:nth-child(2){--k:1}
  html.wow section[aria-labelledby="what-h"] .card:nth-child(3){--k:2}
  html.wow section[aria-labelledby="what-h"] .card:nth-child(4){--k:3}
  html.wow section[aria-labelledby="what-h"] .card:nth-child(5){--k:4}
  html.wow section[aria-labelledby="what-h"] .card:nth-child(6){--k:5}
}
/* round 5b */
html.wow .wow-bg figcaption{text-shadow:0 1px 2px rgba(0,0,0,.5),0 0 18px rgba(0,0,0,.55)}
html.wow .wow-bg::before{content:"";position:absolute;left:0;bottom:0;width:60%;height:40%;z-index:1;pointer-events:none;background:radial-gradient(80% 90% at 0 100%,rgba(1,2,2,.7),transparent 70%);opacity:var(--p,0)}
html.wow .wow-h .card p{min-height:calc(3 * 1.5em)}
html.wow .wow-sticky>.crumbs{top:26px}
@media (min-width:1800px){html.wow .wow-stage .hero{padding-top:72px}}
/* round 5b (phone jury) */
html.wow .wow-sticky>.crumbs{top:0;padding:14px max(var(--pad),env(safe-area-inset-left,0px)) 36px;background:linear-gradient(180deg,rgba(1,2,2,.78),rgba(1,2,2,0));opacity:calc(1 - var(--p,0) * 3)}
@media (min-width:901px){html.wow .wow-sticky>.crumbs{padding-top:24px}}
html.wow .wow-sticky>.crumbs a,html.wow .wow-sticky>.crumbs li{color:rgba(236,240,244,.95);text-shadow:0 1px 8px rgba(0,0,0,.75)}
html.wow .wow-bg figcaption{text-shadow:0 1px 10px rgba(0,0,0,.8)}
@media (max-width:900px){.wow-band{margin-top:0}}
