/* =========================================================
   Ahoj z VCCP · EKO-KOM pitch
   VCCP brand: Mustard OR Eggshell per section (never both),
   mostly white, black type on colour, Inter.
   EKO-KOM nod: sorting-bin colours, used sparingly.
   ========================================================= */

:root{
  --mustard:#F9E100;
  --mustard-dark:#D8C300;
  --mustard-light:#FCF08C;
  --egg:#F2EDE3;
  --egg-dark:#E2DACB;
  --egg-light:#F8F5EF;
  --ink:#111111;
  --ink-soft:#4a4744;
  --white:#FFFFFF;

  /* EKO-KOM sorting colours */
  --bin-plast:#FFD100;
  --bin-papir:#1F6FC5;
  --bin-sklo:#0E9A4C;
  --bin-kovy:#8E949A;
  --eko-green:#0E9A4C;

  --font:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:'Inter', system-ui, sans-serif;
  --gutter:clamp(16px, 4vw, 48px);
  --radius:22px;
  --shadow:0 18px 40px rgba(17,17,17,.12);
}

*{box-sizing:border-box;}
[hidden]{display:none !important;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  margin:0;background:var(--white);color:var(--ink);
  font:300 18px/1.5 var(--font);
  overflow-x:hidden;
}
img,svg,video{display:block;max-width:100%;}
h1,h2,h3{font-weight:500;margin:0;letter-spacing:-0.02em;line-height:1.02;}
h1 em,h2 em,h3 em{font-style:italic;font-weight:300;}
p{margin:0;}
b{font-weight:600;}
a{color:inherit;}
.defs{position:absolute;width:0;height:0;overflow:hidden;}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

.eyebrow{
  font:500 12px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-soft);margin-bottom:18px;
}
.lede{font-size:clamp(17px,1.6vw,21px);max-width:620px;margin:18px auto 0;color:var(--ink-soft);}
.source{font:400 11px/1.4 var(--mono);letter-spacing:.06em;color:var(--ink-soft);opacity:.75;margin-top:18px;}
.section-head{text-align:center;max-width:900px;margin:0 auto;padding:0 var(--gutter);}
.section-head h2{font-size:clamp(40px,6.4vw,88px);}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  font:500 16px/1 var(--font);color:var(--ink);text-decoration:none;
  background:var(--white);border:1.5px solid var(--ink);border-radius:999px;
  padding:14px 22px;cursor:pointer;transition:transform .2s, background .2s;
}
.btn:hover{transform:translateY(-2px) rotate(-1deg);}
.btn-ghost{background:transparent;}

/* ---------- highlighter (VCCP: 1–2 words, Light Italic) ---------- */
.hl{
  font-style:italic;font-weight:300;padding:0 .12em;margin:0 -.05em;
  background:linear-gradient(transparent 12%, var(--mustard) 12%, var(--mustard) 88%, transparent 88%) no-repeat;
  background-size:0% 100%;
  transition:background-size 1s cubic-bezier(.6,.1,.2,1) .2s;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
.hl.is-on{background-size:100% 100%;}

/* ---------- reveal on scroll ---------- */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);}
.reveal.is-in{opacity:1;transform:none;}

/* ---------- custom cursor (fine pointers only) ----------
   The cursor's (0,0) is the tip of the tab's finger-hole end: that is
   both the click point and the pivot. Clicking swaps to the open tab. */
.cursor{display:none;}
@media (hover:hover) and (pointer:fine){
  html.has-cursor, html.has-cursor *{cursor:none !important;}
  html.has-cursor .cursor{
    display:block;position:fixed;left:0;top:0;width:0;height:0;z-index:9999;pointer-events:none;
    filter:drop-shadow(0 3px 3px rgba(0,0,0,.28));
  }
  .cursor img{position:absolute;top:0;max-width:none;user-select:none;}
  .cursor img{rotate:-38deg;} /* tilted like an arrow: the finger-hole tip is the hotspot */
  .cursor .tab-rest{left:-15px;width:30px;height:50px;transform-origin:15px 0;}
  .cursor .tab-open{left:-26.5px;width:41px;height:47.5px;transform-origin:26.5px 0;opacity:0;}
  .cursor.is-down .tab-rest{opacity:0;}
  .cursor.is-down .tab-open{opacity:1;animation:tabOpen .45s cubic-bezier(.3,1.7,.5,1);}
  .cursor.is-hidden{opacity:0;}
}
@keyframes tabOpen{from{transform:rotate(-22deg) scale(.9);}}
.fizz{
  position:fixed;z-index:9998;pointer-events:none;border-radius:50%;
  border:1.5px solid rgba(17,17,17,.45);background:rgba(255,255,255,.5);
  animation:fizz .9s ease-out forwards;
}
@keyframes fizz{
  from{transform:translate(-50%,-50%) scale(.4);opacity:1;}
  to{transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1);opacity:0;}
}

/* ---------- top bits ---------- */
.progress{position:fixed;left:0;right:0;top:0;height:4px;z-index:60;pointer-events:none;}
.progress span{display:block;height:100%;width:0;background:var(--ink);}
/* "Vytříděno X %": a pill that fills with mustard as you scroll the page */
.sorted{
  position:fixed;z-index:70;pointer-events:none;
  right:calc(16px + env(safe-area-inset-right, 0px));top:calc(14px + env(safe-area-inset-top, 0px));
  display:flex;align-items:center;gap:9px;overflow:hidden;
  padding:11px 18px;border-radius:999px;
  background:var(--white);color:var(--ink);border:2px solid var(--ink);
  box-shadow:0 10px 24px -8px rgba(17,17,17,.35);
  font:600 15px/1 var(--font);letter-spacing:-.01em;font-variant-numeric:tabular-nums;
  opacity:0;transform:translateY(-12px);transition:opacity .4s ease, transform .45s cubic-bezier(.2,1.3,.4,1);
}
.sorted.is-on{opacity:1;transform:none;}
.sorted-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--mustard);z-index:0;transition:width .15s linear;}
.sorted-label{position:relative;z-index:1;}
.sorted-label b{font-weight:800;}
.sorted.is-full{animation:sortedPop .5s cubic-bezier(.2,1.6,.4,1);}
@keyframes sortedPop{40%{transform:scale(1.12);}}

.topbar{
  position:absolute;top:0;left:0;right:0;z-index:20;
  display:flex;align-items:center;gap:12px;padding:22px var(--gutter);
}
.topbar-logo{height:20px;width:auto;}
.topbar-pro{font-size:15px;font-weight:400;color:var(--ink-soft);margin:0 2px;}
/* the EKO-KOM letters are half the logo's height, so 40px tall = 20px letters, same as VCCP */
.topbar-ekokom{height:40px;width:auto;}
@media (max-width:640px){ .topbar-logo{height:17px;} .topbar-ekokom{height:34px;} .topbar-pro{font-size:13px;} }

.scroll-cue{ /* subtle "there's more below" hint */
  position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom, 0px));z-index:65;
  width:44px;height:44px;margin-left:-22px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;
  opacity:0;pointer-events:none;transition:opacity .4s ease;
}
.scroll-cue svg{width:28px;height:28px;margin:8px;animation:cueBob 2.2s ease-in-out infinite;}
.scroll-cue.is-on{opacity:.45;pointer-events:auto;}
.scroll-cue.is-on:hover,.scroll-cue:focus-visible{opacity:.9;}
.scroll-cue:focus-visible{outline:2px solid var(--ink);outline-offset:-4px;border-radius:50%;}
@keyframes cueBob{0%,100%{transform:translateY(-3px);opacity:.75;}50%{transform:translateY(4px);opacity:1;}}
@media (prefers-reduced-motion:reduce){.scroll-cue svg{animation:none;}}
.sound-toggle{
  position:fixed;right:16px;bottom:16px;z-index:70;
  font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;
  background:var(--ink);color:var(--white);border:0;border-radius:999px;padding:11px 14px;cursor:pointer;
}
.sound-toggle .sound-off{display:none;}
.sound-toggle[aria-pressed="false"]{background:var(--white);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink);}
.sound-toggle[aria-pressed="false"] .sound-on{display:none;}
.sound-toggle[aria-pressed="false"] .sound-off{display:inline;}

/* =========================================================
   1 · HERO
   ========================================================= */
.hero{
  position:relative;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:110px var(--gutter) 70px;text-align:center;overflow:hidden;background:var(--white);
}
.hero-bg{ /* Prague skyline + Charles Bridge, recoloured to EKO-KOM green */
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:var(--eko-green);opacity:.09;
  -webkit-mask:url(assets/prague-bridge.svg) center bottom / cover no-repeat;
          mask:url(assets/prague-bridge.svg) center bottom / cover no-repeat;
}
.hero > *:not(.hero-bg){position:relative;z-index:1;}
.hero > .stage{z-index:auto;} /* no own layer, so the video can multiply onto the page */

/* --- the stage: shares the 16:9 frame of papir.mp4 and papir-start.webp ---
   All positions below are percentages of that frame, measured from the footage. */
.stage{
  position:relative;aspect-ratio:16/9;flex:none;
  /* sheet 40 % larger than before, but sized so sheet + button still fit the screen height.
     The frame's empty white margins (13.7 % above, 11.3 % below the sheet) are pulled in with negative margins. */
  --stage-w:min(1652px, calc((100svh - 300px) * 2.37), 140%);   /* leaves room for the scroll cue under the button */
  width:var(--stage-w);
  margin-top:calc(var(--stage-w) * -.077 - 20px);
  margin-bottom:calc(var(--stage-w) * -.0636 + 22px);
}
/* --- entrance: a loose sheet drifting in from the upper left (once per page load) --- */
.stage-sheet{position:absolute;inset:0;}
.stage-sheet.is-entering{
  /* while flying, clip to the sheet (+ its shadow) so the white video frame doesn't cover the skyline */
  clip-path:inset(12% 19.5% 9.5% 18.5%);
  animation:sheetIn .65s linear both;
}
@keyframes sheetIn{
  0%{transform:translate(-58vw,-48vh) rotate(-17deg) scale(.94);opacity:0;animation-timing-function:cubic-bezier(.12,.75,.3,1);}
  12%{opacity:1;}
  82%{transform:translate(.5vw,.4vh) rotate(1.1deg) scale(1);animation-timing-function:cubic-bezier(.4,0,.4,1);}
  100%{transform:none;opacity:1;}
}
.stage-sheet.is-entering .sheet-text h1{animation:textIn .34s ease .44s both;}
.stage-sheet.is-entering .sheet-text p{animation:textIn .34s ease .58s both;}
.toss-btn.is-entering{animation:textIn .34s ease .72s both;}
@keyframes textIn{from{opacity:0;transform:translateY(8px);}}
@media (prefers-reduced-motion:reduce){
  .stage-sheet.is-entering{animation:none;clip-path:none;}
  .stage-sheet.is-entering .sheet-text h1,.stage-sheet.is-entering .sheet-text p,.toss-btn.is-entering{animation:none;}
}
.stage-glow{
  position:absolute;left:49.5%;top:51%;width:88%;height:128%;translate:-50% -50%;z-index:0;pointer-events:none;
  background:radial-gradient(closest-side, #fff 0, #fff 58%, rgba(255,255,255,.85) 72%, rgba(255,255,255,0) 100%);
}
.stage-backing{ /* opaque white under the flat sheet so the skyline doesn't show through the paper */
  position:absolute;left:20.4%;top:13.7%;width:58.1%;height:75%;z-index:1;
  background:#fff;transition:opacity .9s ease;
}
.stage-shape{
  position:absolute;inset:0;z-index:1;background:#fff;opacity:0;pointer-events:none;
  -webkit-mask:url(assets/papir-mask.png) 0 0 / 800% 800% no-repeat;mask:url(assets/papir-mask.png) 0 0 / 800% 800% no-repeat;
}
.stage.has-shape .stage-shape{opacity:1;}
/* from here the paper-shaped layer hides the skyline, so the rectangular backing (and its white glow) goes at once */
.stage.has-shape .stage-backing{opacity:0;transition:opacity .15s ease;}
.stage.has-ball .stage-shape{opacity:0;}
.stage-poster,.stage-video{
  position:absolute;inset:0;width:100%;height:100%;z-index:2;
  mix-blend-mode:multiply;pointer-events:none;
}
.stage-video{opacity:0;}
.stage.is-playing .stage-video{opacity:1;}
.stage.is-playing .stage-poster{opacity:0;}
.stage.is-crumpling .stage-backing{opacity:0;}

.sheet-text{ /* live HTML laid exactly over the flat sheet (x 392–1508, y 148–958 of 1920×1080) */
  position:absolute;left:20.42%;top:13.7%;width:58.13%;height:75%;z-index:3;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  padding:4% 8%;container-type:inline-size;
  transition:opacity .4s ease, transform .5s ease;
}
.sheet-text h1{font-size:18.36cqw;line-height:.95;letter-spacing:-.045em;margin-bottom:5.94cqw;}   /* 35 % larger */
.sheet-text h1 em{letter-spacing:-.03em;}
.sheet-text p{font-size:max(17.5px,4.185cqw);line-height:1.45;color:var(--ink);text-wrap:balance;}   /* 35 % larger */
.stage.is-folding .sheet-text{opacity:0;transform:translateY(-1.5%) rotate(-1.2deg);}

.stage-ball{ /* matches the ball in the video's last frame */
  position:absolute;left:36.59%;top:25.46%;width:26.15%;height:auto;z-index:4;
  opacity:0;pointer-events:none;will-change:transform;
}
.stage.has-ball .stage-ball{opacity:1;}
.stage.has-ball .stage-video{opacity:0;}

.hbin{
  /* Three spots, all in stage %:
     catch (no transform): left 64 %, right of the static ball (ends at 62.7 %);
     wait  (--wait-x):     left ≥ 83 %, right of everything the crumpling paper covers (max 81.7 %);
     peek  (--peek-x):     about 45 % of the bin showing at the screen edge.
     The bin's left edge is 14 % of the stage right of centre and the bin is 22 % wide (= 0.636 bin widths),
     so 50vw − (0.45 + 0.636) × its width puts it at the screen edge. */
  --peek-x:calc(50vw - 109%);
  --wait-x:86%;
  position:absolute;left:64%;bottom:11.5%;width:22%;height:auto;pointer-events:none;z-index:0;
  transform:translateX(var(--peek-x)) rotate(-8deg);transform-origin:50% 100%;
  transition:transform .7s cubic-bezier(.2,1.3,.4,1), opacity .3s ease;
  animation:binPeekIn .8s cubic-bezier(.2,1.3,.4,1) 1.15s both, binPeek 4.2s ease-in-out 2.4s infinite;
}
@keyframes binPeekIn{from{translate:70% 0;}}   /* rolls in from off-screen */
@keyframes binPeek{0%,62%,100%{translate:0 0;rotate:0deg;}72%{translate:-9% -2%;rotate:-4deg;}80%{translate:-4% 0;rotate:1deg;}88%{translate:-7% -1%;rotate:-2deg;}}
.hbin-front{
  clip-path:polygon(-23.49% 20.84%, 0.29% 20.84%, 64.55% 24.46%, 67.44% 18.33%, 72.33% 12.40%, 78.82% 8.57%, 84.58% 6.83%, 120.61% 4.39%, 120.61% 101.46%, -23.49% 101.46%);
}
/* toss: during the crumple the bin waits clear of the paper; it rolls up to the catch spot only once
   the paper is a static ball (has-ball), and the ball is thrown after it has arrived (see lobBall) */
.stage.bin-out .hbin{
  transform:translateX(var(--wait-x));translate:0 0;rotate:0deg;animation:none;
  transition:transform 1.4s cubic-bezier(.45,0,.25,1) .9s, translate .6s ease, rotate .6s ease;
}
.stage.bin-out.has-ball .hbin{transform:none;transition:transform .5s cubic-bezier(.25,1.2,.45,1), translate .3s, rotate .3s;}
.stage.has-ball .hbin-back{z-index:3;}
.stage.has-ball .hbin-front{z-index:5;}
@media (prefers-reduced-motion:reduce){ .hbin{animation:none;} }
.stage.bin-bump .hbin{animation:hbinBump .55s cubic-bezier(.3,1.4,.5,1);}
@keyframes hbinBump{0%{transform:none;}30%{transform:translateY(3%) scale(1.04,.92);}65%{transform:translateY(-3%) scale(.98,1.03);}100%{transform:none;}}

/* --- the one call to action --- */
.toss-btn{
  margin-top:clamp(28px,4vw,44px);
  display:inline-flex;align-items:center;gap:12px;
  font:600 17px/1 var(--font);letter-spacing:-.01em;color:var(--white);
  background:var(--ink);border:0;border-radius:999px;padding:18px 30px 18px 24px;
  box-shadow:0 12px 26px -10px rgba(17,17,17,.5);
  transition:transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
}
.toss-btn:hover{transform:translateY(-2px);box-shadow:0 16px 30px -10px rgba(17,17,17,.55);}
.toss-btn:active{transform:translateY(1px) scale(.98);}
.toss-btn:focus-visible{outline:3px solid var(--ink);outline-offset:4px;}
.toss-bin{width:19px;height:22px;color:var(--bin-papir);flex:none;}

@media (max-width:640px){
  .hero{padding-top:84px;}
  /* small screens: the larger copy still has to fit on the sheet */
  .sheet-text{padding:2% 5%;}
  .sheet-text h1{margin-bottom:4cqw;}
  .sheet-text p{font-size:max(14px,4.185cqw);line-height:1.38;}
  /* the sheet fills ~92% of the screen width; the rest of the frame runs off the sides */
  .stage{--stage-w:150vw;width:150vw;margin:0;}
  /* phones: the paper reaches almost the screen edge, so the bin is 18 % wide (left edge 21vw right of
     centre = 0.778 widths); it peeks below the paper's corner beside the button, rolls off-screen while
     the paper crumples, and comes back to catch the static ball */
  .hbin{width:18%;z-index:5;--peek-x:calc(50vw - 123%);--wait-x:130%;}
  .stage:not(.bin-out) .hbin{transform:translate(var(--peek-x), 58%) rotate(-8deg);}
  .stage.bin-out .hbin{transition:transform .5s cubic-bezier(.5,0,.75,0) 0s, translate .3s ease, rotate .3s ease;}   /* off-screen at once, before the paper moves */
}

/* =========================================================
   1b · 92 m walk
   ========================================================= */
.walk{padding:clamp(64px,8vw,110px) var(--gutter) clamp(72px,9vw,120px);background:var(--egg);}   /* Eggshell block: the game stands apart */
.walk-inner{max-width:1100px;margin:0 auto;text-align:center;}
.walk-big number-flow{font-variant-numeric:tabular-nums;--number-flow-char-height:.9em;}
.walk-big{font-weight:500;font-size:clamp(64px,10vw,150px);line-height:.95;letter-spacing:-0.05em;font-variant-numeric:tabular-nums;margin-top:clamp(28px,4vw,48px);}
.walk-text{font-size:clamp(22px,2.8vw,36px);max-width:820px;margin:0 auto;line-height:1.3;}


/* --- the guess --- */
.guess-num{display:inline-block;width:calc(4ch + .3em);text-align:right;}   /* fixed slot: 'm' never moves */
.guess-unit{display:inline-block;}
.guess-hint{font-size:16px;color:var(--ink-soft);margin-top:10px;transition:opacity .3s;}
.walk.is-revealed .guess-hint,.walk.is-revealed .guess-question{display:none;}
.guess-fact{margin-bottom:clamp(22px,3vw,40px);}            /* visible gap between the fact and the question */
.guess-fact b{font-weight:700;}
.guess-lead{display:none;}
.walk.is-revealed .guess-lead{display:block;}                /* replaces the question once the answer is shown */
.walk.is-revealed .walk-big{margin-top:6px;}
.walk-text{text-wrap:balance;}

/* the whole track takes the gesture, so a touch never turns into page scroll mid-drag */
.guess-track{
  touch-action:none;
  --hw:clamp(84px,10vw,128px);    /* handle (bear) width */
  --dw:clamp(110px,15vw,190px);   /* destination (EKO-KOM building) width */
  position:relative;max-width:1100px;margin:28px auto 0;height:calc(var(--hw) * .68 + 34px);
  cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.guess-track .walk-line{position:absolute;left:0;right:0;bottom:28px;border-bottom:2px dashed rgba(17,17,17,.3);}
.guess-scale{position:absolute;bottom:0;font-size:12px;font-weight:600;color:var(--ink-soft);}
.guess-scale-0{left:calc(var(--hw) / 2);translate:-50% 0;}
.guess-scale-max{right:calc(var(--dw) + var(--hw) / 2);translate:50% 0;}
.guess-mine{ /* pin left at the spot of the guess; its tip touches the line */
  position:absolute;bottom:28px;z-index:3;translate:-50% 0;display:flex;flex-direction:column;align-items:center;pointer-events:none;   /* above the bear and girl */
}
.guess-mine-tag{
  background:var(--ink);color:var(--white);font-size:11px;font-weight:600;letter-spacing:.02em;white-space:nowrap;
  padding:4px 8px;border-radius:999px;margin-bottom:5px;animation:tagIn .3s ease .35s both;
}
.guess-mine-pin{width:clamp(22px,2.4vw,30px);height:auto;display:block;transform-origin:50% 100%;animation:pinDrop .55s cubic-bezier(.3,1.5,.5,1) both;}
.guess-mine-shadow{position:absolute;bottom:-3px;width:16px;height:5px;border-radius:50%;background:rgba(17,17,17,.25);animation:tagIn .3s ease .25s both;}
@keyframes pinDrop{0%{transform:translateY(-40px) scale(.9);opacity:0;}60%{transform:translateY(2px) scale(1.05,.93);opacity:1;}100%{transform:none;}}
@keyframes tagIn{from{opacity:0;transform:translateY(4px);}}
@keyframes mineIn{from{opacity:0;transform:translateY(-14px) scale(.7);}}
.guess-dest{position:absolute;right:0;bottom:22px;width:var(--dw);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;}
.guess-dest-logo{width:78%;height:auto;}
.guess-dest-bld{width:100%;height:auto;}
.guess-bear{
  position:absolute;left:0;bottom:29px;z-index:2;display:flex;align-items:flex-end;gap:calc(var(--hw) * .13);
  cursor:grab;touch-action:none;outline:none;will-change:transform;
}
.guess-bear img{display:block;height:auto;pointer-events:none;transition:rotate .2s;transform-origin:50% 100%;}
.guess-bear-b{width:var(--hw);}
.guess-bear-g{width:auto !important;height:calc(var(--hw) * .3363) !important;}   /* same scale as in the VCCP logo */
.guess-bear.is-grabbed{cursor:grabbing;}
.guess-bear.is-grabbed img{rotate:-4deg;}
.guess-bear:focus-visible{outline:2px solid var(--ink);outline-offset:6px;border-radius:8px;}
.guess-bear[aria-disabled="true"]{cursor:default;}
.walk.is-revealed .guess-track{cursor:default;}

@keyframes pinIn{from{opacity:0;transform:translateY(-24px) scale(.8);}}

.guess-result{margin-top:22px;font-size:clamp(24px,3vw,38px);font-weight:700;letter-spacing:-.02em;animation:pinIn .6s ease both .2s;}

/* =========================================================
   2 · TEAM
   ========================================================= */
.team{padding:0 var(--gutter) clamp(90px,12vw,160px);background:var(--white);}
.bridge{display:flex;flex-direction:column;align-items:center;}
.bridge-line{width:0;height:clamp(56px,7vw,96px);border-left:2px dashed rgba(17,17,17,.3);}
.bridge-dot{width:12px;height:12px;border-radius:50%;background:var(--ink);margin-top:2px;}
.bridge + .section-head{margin-top:clamp(28px,4vw,48px);}
.team .section-head{max-width:1280px;padding:0;}   /* same width as the row of avatars */
.team .lede{max-width:none;}
.team .lede + .lede{margin-top:14px;}
.team-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(18px,2vw,28px);
  max-width:1280px;margin:clamp(48px,6vw,80px) auto 0;align-items:start;
}
/* below 5 columns: wrap and centre, so the last row never hangs on the left */
@media (max-width:1180px){.team-grid{display:flex;flex-wrap:wrap;justify-content:center;}.team-grid .card{width:calc((100% - 2 * clamp(18px,2vw,28px)) / 3);}}
@media (max-width:820px){.team-grid .card{width:calc((100% - clamp(18px,2vw,28px)) / 2);}}
@media (max-width:600px){.team-grid{max-width:440px;gap:44px;}.team-grid .card{width:100%;}}

.card{
  --acc:#8E949A;
  position:relative;transform-style:preserve-3d;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .8s ease;
}
.card.reveal.is-in{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));}
.card:nth-child(2){transition-delay:.06s;} .card:nth-child(3){transition-delay:.12s;} .card:nth-child(4){transition-delay:.18s;} .card:nth-child(5){transition-delay:.24s;}
.card[data-accent="blue"]{--acc:var(--bin-papir);}
.card[data-accent="green"]{--acc:var(--bin-sklo);}
.card[data-accent="yellow"]{--acc:var(--bin-plast);}
.card[data-accent="orange"]{--acc:#F28C28;}   /* nápojové kartony */

.card-photo{
  position:relative;aspect-ratio:1/1;border-radius:18px;overflow:hidden;background:var(--white);
}
.card-photo::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(17,17,17,.1);pointer-events:none;}
.card-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s;}
.card:hover .card-photo img{transform:scale(1.03);}
/* department sticker: a nod to the EKO-KOM bin labels */
.dept{
  position:absolute;top:14px;left:14px;z-index:1;
  background:#111;color:#fff;border:3px solid var(--acc);border-radius:3px;
  font:800 12px/1 var(--font);letter-spacing:.08em;text-transform:uppercase;
  padding:7px 10px 6px;
}
.portrait-ph{
  width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:var(--white);color:rgba(17,17,17,.14);
}
.portrait-ph span{font:300 clamp(80px,9vw,128px)/1 var(--font);}
.portrait-ph small{font:500 12px/1 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);}
.card-name{font-size:26px;font-weight:600;letter-spacing:-.02em;margin-top:20px;}
.card-role{font-size:15px;font-weight:400;color:var(--ink-soft);margin-top:4px;}
.card-quote{margin:14px 0 0;font-size:16px;line-height:1.5;}
.card-quote p{margin:0;}
.card-quote.is-pending{
  font-size:14px;color:var(--ink-soft);border:1.5px dashed rgba(17,17,17,.2);border-radius:10px;padding:12px 14px;
}

/* =========================================================
   4 · REEL (Mustard, full bleed)
   ========================================================= */
.reel{background:var(--mustard);padding:clamp(80px,10vw,130px) var(--gutter);}
.reel-frame{
  position:relative;max-width:1200px;margin:clamp(40px,5vw,64px) auto 0;aspect-ratio:16/9;
  border-radius:var(--radius);overflow:hidden;container-type:inline-size;
  background:transparent;box-shadow:none;               /* nothing but the bottle until it's opened */
  transition:background .35s ease, box-shadow .35s ease;
}
.reel-frame.is-playing{background:var(--ink);box-shadow:0 30px 70px rgba(17,17,17,.25);}
.reel-sound{
  position:absolute;right:clamp(12px,2.2cqw,28px);bottom:clamp(12px,2.2cqw,28px);z-index:7;
  width:clamp(52px,6.5cqw,76px);height:clamp(52px,6.5cqw,76px);border:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;color:#fff;background:rgba(17,17,17,.55);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  opacity:0;pointer-events:none;transition:opacity .3s ease, transform .2s cubic-bezier(.3,1.6,.5,1), background .2s;
}
.reel-sound svg{width:52%;height:52%;}
.reel-sound .ico-off{display:none;}
.reel-sound[aria-pressed="true"] .ico-on{display:none;}
.reel-sound[aria-pressed="true"] .ico-off{display:block;}
.reel-sound:hover{background:rgba(17,17,17,.75);transform:scale(1.06);}
.reel-sound:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.reel-frame.is-playing .reel-sound{opacity:1;pointer-events:auto;}
.reel-close{
  position:absolute;right:clamp(10px,1.6cqw,20px);top:clamp(10px,1.6cqw,20px);z-index:7;
  width:clamp(34px,3.6cqw,42px);height:clamp(34px,3.6cqw,42px);padding:0;border:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;color:#fff;background:rgba(17,17,17,.5);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  opacity:0;pointer-events:none;transition:opacity .3s ease, background .2s;
}
.reel-close svg{width:55%;height:55%;}
.reel-close:hover{background:rgba(17,17,17,.75);}
.reel-close:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.reel-frame.is-playing .reel-close{opacity:1;pointer-events:auto;}
.reel-resume{ /* shown when the reel is paused, e.g. after scrolling away and back */
  position:absolute;left:50%;top:50%;z-index:7;translate:-50% -50%;
  width:clamp(64px,9cqw,104px);height:clamp(64px,9cqw,104px);border:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;color:var(--ink);background:var(--white);box-shadow:0 14px 34px rgba(0,0,0,.35);
  opacity:0;pointer-events:none;scale:.85;transition:opacity .25s ease, scale .3s cubic-bezier(.3,1.6,.5,1);
}
.reel-resume svg{width:44%;height:44%;margin-left:6%;}
.reel-resume:hover{scale:1.06;}
.reel-resume:focus-visible{outline:3px solid #fff;outline-offset:4px;}
.reel-frame.is-playing.is-paused .reel-resume{opacity:1;pointer-events:auto;scale:1;}
.reel-frame.is-playing video{cursor:pointer;}
.section-head h2.reel-title{white-space:nowrap;font-size:clamp(24px,7.2vw,88px);}   /* one line, also on phones */
.reel-frame video{opacity:0;transition:opacity .25s ease;}
.reel-frame.is-playing video{opacity:1;}
.reel-frame video,.reel-pop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
.reel-pop{z-index:5;opacity:0;pointer-events:none;will-change:transform;}

.reel-ui{
  position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;
  gap:clamp(14px,5cqw,64px);transition:opacity .3s ease;
}
.cap-ctrl{display:flex;flex-direction:column;align-items:center;gap:clamp(2px,.9cqw,12px);}
.bottle{position:relative;width:clamp(100px,34cqw,410px);aspect-ratio:1;filter:drop-shadow(0 18px 24px rgba(80,60,0,.18));}
.bottle-img{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;}
.bottle-mouth{ /* the open neck: threads and a dark way down into the bottle */
  position:absolute;left:50%;top:50%;width:52.6%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;z-index:0;
  background:radial-gradient(circle,
    rgba(6,12,28,.92) 0 47%, rgba(6,12,28,.7) 54%,
    rgba(255,255,255,.8) 57%, rgba(185,205,230,.45) 62%, rgba(255,255,255,.55) 68%,
    rgba(170,192,220,.4) 76%, rgba(255,255,255,.6) 84%, rgba(200,214,234,.35) 100%);
}
.tether{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:2;pointer-events:none;}
.tether path{fill:none;stroke:#3a6cc0;stroke-width:34;stroke-linecap:round;filter:drop-shadow(0 6px 6px rgba(0,0,0,.3));}
.cap{
  --lift:0;position:absolute;left:50%;top:50%;width:53.3%;aspect-ratio:1;translate:-50% -50%;z-index:3;
  border-radius:50%;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;
  filter:drop-shadow(0 calc(3px + var(--lift) * 14px) calc(5px + var(--lift) * 14px) rgba(0,0,0,.38));
}
.cap img{display:block;width:100%;height:100%;pointer-events:none;}
.cap .cap-mark{position:absolute;left:50%;top:50%;width:46%;height:auto;translate:-50% -50%;filter:invert(1);opacity:.3;mix-blend-mode:screen;}
.cap.is-grabbed{cursor:grabbing;}
.cap:focus-visible{outline:3px solid var(--ink);outline-offset:5px;}
.cap-hint{
  display:flex;align-items:center;gap:.45em;margin:0;color:var(--ink);
  font:600 clamp(13px,1.6cqw,18px)/1.2 var(--font);transition:opacity .25s;
}
.cap-hint svg{width:1.25em;height:1.25em;flex:none;animation:hintTurn 2.4s ease-in-out infinite;}   /* counter-clockwise */
@keyframes hintTurn{0%,60%,100%{transform:rotate(0);}30%{transform:rotate(-50deg);}}
.reel-play-btn{ /* small text link, no chip */
  display:inline-flex;align-items:center;gap:.4em;border:0;background:none;cursor:pointer;color:var(--ink);
  font:600 clamp(12px,1.3cqw,15px)/1 var(--font);padding:6px 4px;
  text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;
  transition:opacity .25s, text-underline-offset .2s;
}
.reel-play-btn span{font-size:.8em;text-decoration:none;}
.reel-play-btn:hover{text-underline-offset:6px;}
.reel-play-btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px;}
.reel-frame.is-open .cap-hint,.reel-frame.is-open .reel-play-btn,.reel-frame.is-popping .cap-hint,.reel-frame.is-popping .reel-play-btn{opacity:0;pointer-events:none;}
/* end of the reel: the video sits on top and shrinks back into the bottle */
.reel-frame.is-closing video{opacity:1;z-index:6;transition:none;}
.reel-frame.is-closing .cap-hint,.reel-frame.is-closing .reel-play-btn{opacity:0;pointer-events:none;}
.reel-frame.is-popping .reel-ui{opacity:0;transition:opacity .3s ease .3s;}
.reel-frame.is-playing .reel-ui,.reel-frame.is-playing .reel-pop{opacity:0;pointer-events:none;transition:opacity .25s ease;}
@container (max-width:520px){ .reel-ui{gap:12px;} }

/* =========================================================
   5 · COUNTDOWN (Eggshell) — made from recycled stuff
   ========================================================= */
.countdown{background:var(--egg);padding:clamp(80px,10vw,130px) var(--gutter) 40px;overflow:hidden;}
.cd{
  /* always one row: 8 digits (≈ .64 h each) + digit gaps + 3 unit gaps (.45 h) ≈ 6.7 h must fit the content width */
  --cd-h:min(190px, calc((100vw - 2 * var(--gutter)) / 6.8));
  display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-end;
  gap:calc(var(--cd-h) * .45);max-width:1400px;margin:clamp(40px,6vw,80px) auto 0;
}
.cd-unit{display:flex;flex-direction:column;align-items:center;}
.cd-face{height:var(--cd-h);display:flex;align-items:center;justify-content:center;gap:calc(var(--cd-h) * .04);}
.cd-label{margin-top:calc(var(--cd-h) * .12);font-weight:500;font-size:clamp(12px,calc(var(--cd-h) * .11),18px);}

/* --- photo digits: one slot per digit, image swapped on every change --- */
.pd{position:relative;display:block;height:100%;width:calc(var(--cd-h) * .64);}
.pd img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  rotate:var(--r,0deg);translate:0 var(--dy,0);scale:var(--sc,1);filter:drop-shadow(0 6px 8px rgba(60,40,10,.12));
}
.pd img.is-new{animation:pdIn .42s cubic-bezier(.2,1.5,.4,1);}
.pd img.is-old{animation:pdOut .4s ease forwards;}
@keyframes pdIn{from{opacity:0;transform:translateY(-14%) scale(1.12);}}
@keyframes pdOut{to{opacity:0;transform:translateY(10%) scale(.92);}}

.cd-sign{text-align:center;margin-top:clamp(60px,8vw,100px);font-size:clamp(30px,4vw,52px);font-weight:500;letter-spacing:-.02em;}
.cd-sign em{font-weight:300;}
.cd.is-over .cd-face{opacity:.35;}

.footer{text-align:center;padding:clamp(70px,10vw,120px) 0 30px;font:400 13px/1.6 var(--mono);color:var(--ink-soft);}
.footer-logo{width:140px;height:auto;margin:0 auto 22px;color:var(--ink);}
.footer-small{font-size:11px;opacity:.7;}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important;}
}


@media (max-width:640px){
  .sound-toggle{right:10px;bottom:10px;padding:9px 11px;font-size:10px;}
}
@media (max-width:640px){
  .sound-toggle{top:12px;bottom:auto;left:10px;right:auto;}
}
@media (max-width:640px){
  .sound-toggle{left:auto;right:10px;top:auto;bottom:calc(10px + env(safe-area-inset-bottom, 0px));}
  .sorted.is-on:not(.is-past){opacity:0;transform:translateY(-12px);}   /* phones: wait until the header has scrolled away */
  .sorted{font-size:13px;padding:9px 14px;top:calc(12px + env(safe-area-inset-top, 0px));right:calc(12px + env(safe-area-inset-right, 0px));}
}
@media (max-width:640px){
  .hero-bg{-webkit-mask-size:250% auto;mask-size:250% auto;-webkit-mask-position:8% 100%;mask-position:8% 100%;opacity:.11;}
}
.toss-btn.is-gulp .toss-bin{animation:binGulp .45s cubic-bezier(.3,1.6,.5,1);}
@keyframes binGulp{0%{transform:scale(1);}35%{transform:scale(1.35,.8);}100%{transform:scale(1);}}
.toss-btn .replay-label,.toss-btn .toss-refresh{display:none;}
.toss-refresh{width:19px;height:19px;flex:none;}
.toss-btn.is-replay .toss-bin{display:none;}
.toss-btn.is-replay .toss-refresh{display:block;}
.toss-btn.is-replay .toss-label{display:none;}
.toss-btn.is-replay .replay-label{display:inline;}
.toss-btn.is-replay{animation:replayIn .45s cubic-bezier(.2,1.5,.4,1);}
@keyframes replayIn{from{transform:scale(.9);opacity:.4;}}
.toss-btn:disabled{opacity:.55;transform:none;box-shadow:none;}

/* phones: tip section */
@media (max-width:640px){
  .walk-text{font-size:20px;line-height:1.35;}
  .walk-big{font-size:64px;margin-top:24px;}
  .guess-track{--hw:64px;--dw:78px;margin-top:20px;}
  .guess-dest-logo{width:90%;}
}
/* phones: the closed bottle may spill beyond the (still invisible) player, so it can be much bigger */
@media (max-width:640px){
  .reel-frame{overflow:visible;margin-top:72px;margin-bottom:72px;}
  .reel-frame.is-playing,.reel-frame.is-closing{overflow:hidden;}
  .bottle{width:62cqw;}
  .cap-hint,.reel-play-btn{font-size:15px;}
}
