/*
 * TippyTaps v2 — "O nás" (design/Onas.dc.html). Loaded only where tt_v2() is on,
 * for this page only (inc/enqueue.php, v2-{context}.css). The markup is the
 * tt_v2() branch of page-o-nas.php; the old branch keeps page-o-nas.css.
 *
 * Every rule starts with `body.tt-v2` — see the header of v2.css for why.
 * Hover only inside @media (hover:hover); tt.js drives the data-fx hovers.
 */

/* ---------- shell ---------- */
body.tt-v2 .v2-on-hero,
body.tt-v2 .v2-on-sec{ max-width:1360px; margin:0 auto; padding:clamp(48px,7vw,96px) clamp(16px,3vw,40px) 0; box-sizing:border-box; }

/* ---------- shared bits (pills, kicker, headings) ---------- */
body.tt-v2 .v2-pills{ display:flex; gap:10px; flex-wrap:wrap; }
body.tt-v2 .v2-pill{ padding:8px 16px; border:1px solid var(--green); border-radius:999px; color:var(--green-ink);
  font-size:14px; font-weight:600; line-height:1.3; }
body.tt-v2 .v2-pill--lime{ padding:8px 14px; border-color:var(--lime); background:var(--lime); color:var(--ink); font-size:13px; font-weight:700; }
body.tt-v2 .v2-lead{ margin:0; font-size:18px; line-height:1.6; color:var(--ink-2); max-width:560px; text-wrap:pretty; }
body.tt-v2 .v2-kick{ display:block; font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--green-ink); }
body.tt-v2 .v2-kick--lime{ color:var(--lime); }
body.tt-v2 .v2-h2{ margin:10px 0 0; font-family:var(--disp); font-weight:500; font-size:clamp(40px,5.4vw,80px);
  line-height:.95; letter-spacing:-.05em; color:var(--ink); }
body.tt-v2 .v2-shead{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px 40px; margin-bottom:36px; }
body.tt-v2 .v2-shead > p{ margin:0; max-width:380px; font-size:17px; line-height:1.55; color:var(--ink-2); }

/* ---------- hero ---------- */
body.tt-v2 .v2-on-hero{ padding-top:clamp(28px,5vw,64px); display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,500px),1fr)); gap:clamp(28px,4vw,56px); align-items:center; }
body.tt-v2 .v2-on-hero__text{ display:flex; flex-direction:column; gap:24px; min-width:0; }
body.tt-v2 .v2-on-h1{ margin:0; font-family:var(--disp); font-weight:500; font-size:clamp(42px,5.6vw,84px); line-height:.94;
  letter-spacing:-.05em; text-wrap:balance; color:var(--ink); max-width:none; }
body.tt-v2 .v2-on-h1 span{ color:var(--green); }

body.tt-v2 .v2-on-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
body.tt-v2 .v2-on-stat{ background:var(--surface); border-radius:var(--tt-r); padding:18px; }
body.tt-v2 .v2-on-stat__n{ font-family:var(--disp); font-size:42px; font-weight:700; letter-spacing:-.04em; line-height:1; color:var(--ink); }
body.tt-v2 .v2-on-stat__n.is-green{ color:var(--green); }
body.tt-v2 .v2-on-stat__n.is-pop{ color:var(--pop); }
body.tt-v2 .v2-on-stat__l{ font-size:14px; line-height:1.35; color:var(--ink-2); margin-top:6px; }

/* Three arched photos; tt.js shifts each with the cursor (data-par). */
body.tt-v2 .v2-on-collage{ position:relative; height:clamp(420px,46vw,600px); min-width:0; }
body.tt-v2 .v2-on-collage > div{ position:absolute; overflow:hidden; transition:translate .4s; box-shadow:0 30px 60px -30px rgba(21,52,39,.5); background:var(--surface); }
body.tt-v2 .v2-on-collage img{ width:100%; height:100%; object-fit:cover; display:block; }
body.tt-v2 .v2-on-collage__a{ left:0; top:8%; width:56%; height:84%; border-radius:220px 220px var(--tt-r) var(--tt-r); }
body.tt-v2 .v2-on-collage__b{ right:0; top:0; width:44%; height:52%; border-radius:var(--tt-r); }
body.tt-v2 .v2-on-collage__c{ right:4%; bottom:0; width:38%; height:40%; border-radius:200px 200px var(--tt-r) var(--tt-r); }

/* ---------- mission ---------- */
body.tt-v2 .v2-on-mission{ background:var(--forest); color:var(--bg); border-radius:var(--tt-r); padding:clamp(28px,5vw,72px);
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:40px; align-items:center; position:relative; overflow:hidden; }
body.tt-v2 .v2-on-mission__text{ display:flex; flex-direction:column; gap:20px; position:relative; z-index:1; }
body.tt-v2 .v2-on-mission__h{ margin:0; font-family:var(--disp); font-weight:500; font-size:clamp(38px,4.8vw,70px); line-height:.95;
  letter-spacing:-.05em; text-wrap:balance; color:var(--bg); }
body.tt-v2 .v2-on-mission__text p{ margin:0; font-size:18px; line-height:1.65; color:rgba(242,238,228,.8); text-wrap:pretty; }
body.tt-v2 .v2-on-mission__art{ position:relative; display:flex; justify-content:center; align-items:flex-end; min-height:320px; }
body.tt-v2 .v2-on-mission__word{ position:absolute; inset:auto 0 30% 0; text-align:center; font-family:var(--disp); font-weight:650;
  font-size:clamp(100px,13vw,200px); letter-spacing:-.07em; line-height:.8; color:transparent;
  -webkit-text-stroke:1.5px rgba(207,224,90,.45); user-select:none; pointer-events:none; }
body.tt-v2 .v2-on-mission .v2-tapko{ --s:1.3; --tk:var(--lime); --tk-ink:var(--forest); }

/* ---------- Ťapko (design/Tapko.dc.html) ----------
   A 200px stage scaled by --s, as in the design, so the toe offsets stay in the
   design's own pixels. The toes hop with a stagger on hover (data-fx). */
body.tt-v2 .v2-tapko{ --s:1; --tk:var(--green); --tk-ink:var(--surface); position:relative; flex:none;
  width:calc(200px * var(--s)); height:calc(200px * var(--s)); }
body.tt-v2 .v2-tapko__in{ position:absolute; left:0; top:0; width:200px; height:200px; transform:scale(var(--s)); transform-origin:0 0;
  display:grid; place-items:center; cursor:pointer; }
body.tt-v2 .v2-tapko__look{ transition:transform .5s cubic-bezier(.2,.8,.2,1); }
body.tt-v2 .v2-tapko__tile{ position:relative; width:170px; height:170px; border-radius:48px; background:var(--tk);
  box-shadow:0 30px 40px -24px rgba(21,52,39,.55), inset 0 -8px 0 rgba(0,0,0,.1);
  transition:scale .4s cubic-bezier(.3,1.8,.5,1), border-radius .4s; }
body.tt-v2 .v2-tapko__toe,
body.tt-v2 .v2-tapko__pad{ position:absolute; border-radius:50%; background:var(--tk-ink); }
body.tt-v2 .v2-tapko__toe{ transition:translate .4s cubic-bezier(.3,1.9,.5,1); }
body.tt-v2 .v2-tapko__toe--1{ left:23px; top:62px; width:29px; height:29px; }
body.tt-v2 .v2-tapko__toe--2{ left:48px; top:32px; width:32px; height:32px; transition-delay:.05s; }
body.tt-v2 .v2-tapko__toe--3{ left:90px; top:32px; width:32px; height:32px; transition-delay:.1s; }
body.tt-v2 .v2-tapko__toe--4{ left:118px; top:62px; width:29px; height:29px; transition-delay:.15s; }
body.tt-v2 .v2-tapko__pad{ left:50px; top:79px; width:70px; height:58px; }

/* ---------- values ---------- */
body.tt-v2 .v2-on-vals{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:20px; }
body.tt-v2 .v2-on-val{ position:relative; min-height:380px; border-radius:var(--tt-r); background:var(--surface); overflow:hidden; padding:30px;
  display:flex; flex-direction:column; gap:12px; border:1px solid rgba(47,158,112,.28); box-sizing:border-box; }
body.tt-v2 .v2-on-val:nth-child(2){ background:var(--lime); border-color:var(--lime); }
body.tt-v2 .v2-on-val:nth-child(3){ background:var(--tt-pink); border-color:var(--tt-pink); }
body.tt-v2 .v2-on-val__n{ font-family:var(--disp); font-weight:500; font-size:20px; color:var(--green); }
body.tt-v2 .v2-on-val:nth-child(n+2) .v2-on-val__n{ color:var(--forest); }
body.tt-v2 .v2-on-val h3{ margin:0; font-family:var(--disp); font-weight:500; font-size:34px; letter-spacing:-.04em; line-height:1; color:var(--ink); }
body.tt-v2 .v2-on-val p{ margin:0; font-size:16px; line-height:1.55; color:var(--ink-2); max-width:300px; position:relative; z-index:1; }
body.tt-v2 .v2-on-val:nth-child(2) p{ color:#24331a; }
body.tt-v2 .v2-on-val:nth-child(3) p{ color:#3a2a2d; }
body.tt-v2 .v2-on-val__pic{ position:absolute; right:-20px; bottom:-30px; width:220px; height:220px; border-radius:50%; object-fit:cover;
  border:8px solid var(--surface); translate:0 70px; rotate:8deg; transition:translate .7s cubic-bezier(.3,1.5,.5,1), rotate .7s; }
body.tt-v2 .v2-on-val:first-child .v2-on-val__pic{ border-color:var(--bg); }

/* ---------- steps ---------- */
body.tt-v2 .v2-on-sec .v2-shead{ margin-bottom:32px; }
body.tt-v2 .v2-on-steps{ border-top:1.5px solid var(--ink); }
body.tt-v2 .v2-on-step{ display:flex; flex-wrap:wrap; align-items:baseline; gap:12px 40px; padding:26px 0; border-bottom:1.5px solid var(--ink); }
body.tt-v2 .v2-on-step__n{ font-family:var(--disp); font-weight:500; font-size:22px; color:#8a968e; transition:color .3s; width:40px; }
body.tt-v2 .v2-on-step h3{ margin:0; flex:1 1 380px; font-family:var(--disp); font-weight:500; font-size:clamp(28px,3.6vw,52px);
  letter-spacing:-.045em; line-height:1; color:var(--ink); transition:color .3s, translate .4s; }
body.tt-v2 .v2-on-step p{ margin:0; flex:1 1 300px; font-size:17px; line-height:1.5; color:var(--ink-2); }

/* ---------- partner CTA ---------- */
body.tt-v2 .v2-on-cta{ position:relative; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px;
  background:var(--green); color:var(--surface); border-radius:var(--tt-r); padding:clamp(28px,5vw,64px); overflow:hidden;
  text-decoration:none; }
body.tt-v2 .v2-on-cta__text{ display:flex; flex-direction:column; gap:12px; max-width:620px; position:relative; z-index:1; }
body.tt-v2 .v2-on-cta h2{ margin:0; font-family:var(--disp); font-weight:500; font-size:clamp(36px,4.6vw,64px); line-height:.95;
  letter-spacing:-.05em; color:var(--surface); }
body.tt-v2 .v2-on-cta p{ margin:0; font-size:18px; line-height:1.55; color:rgba(251,249,243,.85); }
body.tt-v2 .v2-on-cta__btn{ position:relative; z-index:1; display:inline-flex; align-items:center; gap:12px; padding:20px 30px;
  border-radius:var(--tt-r-btn); background:var(--surface); color:var(--forest); font-weight:700; font-size:18px;
  transition:all .3s cubic-bezier(.3,1.5,.5,1); }
body.tt-v2 .v2-on-cta__pic{ position:absolute; right:30%; bottom:-90px; width:180px; height:180px; border-radius:50%; object-fit:cover;
  border:6px solid var(--surface); transition:translate .6s cubic-bezier(.3,1.5,.5,1), rotate .6s; }
body.tt-v2 .v2-on-cta:focus-visible{ outline-offset:4px; }

/* The photo peeks from the bottom edge between text and button; on a narrow
   card those stack and the photo would sit on the text. */
@media (max-width:900px){
  body.tt-v2 .v2-on-cta__pic{ display:none; }
}
@media (max-width:640px){
  body.tt-v2 .v2-on-mission .v2-tapko{ --s:1; }
  body.tt-v2 .v2-on-mission__art{ min-height:240px; }
}
