/* O mně / About redesign — loaded only on template-about.
   All selectors are scoped so .hero, .facts, .books, .close, .sec, .ico, .story-intro
   cannot leak onto SIOMA book cards or footer close bands on other pages. */
html:has(body.page-template-template-about),
body.page-template-template-about{
  --line:rgba(201,158,72,.28);
  --hair:rgba(242,217,155,.12);
  --r:6px;
  overflow-x:clip;
}
body.page-template-template-about main{overflow-x:clip}
body.page-template-template-about .wp-block-group{margin:0}
body.page-template-template-about main + .close,
body.page-template-template-about > .close{display:none}

/* typography helpers used by this page */
body.page-template-template-about .kicker{font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
body.page-template-template-about .sec{padding:clamp(4rem,9vw,7.5rem) 0;position:relative}
/* Same horizontal container as header .wrap (min(--max, 100% - 40px)).
   Padding keeps the petrol background full-bleed; content lines up with the logo. */
body.page-template-template-about .sec{padding-inline:max(20px,calc((100% - 1280px)/2))}
body.page-template-template-about .sec-head{max-width:40rem;margin-bottom:clamp(2rem,4vw,3.25rem)}
body.page-template-template-about .sec-head h2{font-size:clamp(2.1rem,4.2vw,3.25rem);margin-top:.6rem}
body.page-template-template-about .sec-head p{color:var(--text2);margin-top:1rem;max-width:56ch}
body.page-template-template-about .center{text-align:center;margin-inline:auto}
body.page-template-template-about .more{font-weight:600;font-size:.9rem;text-decoration:none;display:inline-flex;gap:.35rem;align-items:center;min-height:44px}
body.page-template-template-about .more:hover{text-decoration:underline}
body.page-template-template-about .btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}

/* 1 HERO */
body.page-template-template-about .hero{position:relative;overflow:hidden;min-height:0;display:block;padding:clamp(2.5rem,6vw,5rem) 0 clamp(3rem,7vw,6rem);background:radial-gradient(ellipse 70% 80% at 80% 30%,#0E333D 0,transparent 70%),var(--void)}
/* Neutralize homepage .hero-visual (absolute, full-bleed) inside the About portrait. */
body.page-template-template-about .portrait .hero-visual{position:relative;inset:auto;z-index:auto;width:100%;height:100%;display:block}
body.page-template-template-about .hero::before{content:"";position:absolute;inset:auto -12% -30% auto;width:min(60vw,760px);aspect-ratio:1;background:url("../img/fol.svg") center/contain no-repeat;opacity:.55;pointer-events:none}
body.page-template-template-about .hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,5rem);align-items:center}
body.page-template-template-about .hero h1{font-size:clamp(2.6rem,5.4vw,4.6rem);line-height:1.04;margin-top:.9rem;max-width:12ch}
body.page-template-template-about .hero .lead{color:var(--text2);font-size:1.06rem;margin-top:1.3rem;max-width:42ch}
body.page-template-template-about .facts{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:2.4rem;border-top:1px solid var(--line);max-width:34rem}
body.page-template-template-about .facts div{padding:1rem 1rem 0 0}
body.page-template-template-about .facts div+div{padding-left:1rem;border-left:1px solid var(--line)}
body.page-template-template-about .facts b{display:block;font:500 1.7rem/1 var(--serif);color:var(--gold-l)}
body.page-template-template-about .facts span{display:block;font-size:.8rem;color:var(--text2);margin-top:.35rem;line-height:1.35}
body.page-template-template-about .portrait{position:relative;justify-self:end;width:min(100%,460px)}
/* Calm rectangle (Marek t84u): no 999px arch tops. Hairline + inset line + shadow live on .arch / .hero-visual. */
body.page-template-template-about .portrait .arch,
body.page-template-template-about .portrait .hero-visual{
  border-radius:var(--r);overflow:hidden;border:1px solid rgba(201,158,72,.28);
  box-shadow:0 30px 80px rgba(0,0,0,.45);aspect-ratio:4/5;background:var(--sanc);position:relative
}
body.page-template-template-about .portrait .arch .hero-visual{border:0;box-shadow:none;aspect-ratio:auto;height:100%}
body.page-template-template-about .portrait .arch::after,
body.page-template-template-about .portrait .hero-visual::after{
  content:"";position:absolute;inset:9px;border:1px solid rgba(201,158,72,.12);border-radius:3px;pointer-events:none;z-index:2
}
body.page-template-template-about .portrait .arch img,
body.page-template-template-about .portrait .hero-visual img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;border:0;border-radius:0;display:block}
body.page-template-template-about .motto{position:absolute;left:-2.2rem;bottom:2.2rem;background:rgba(5,19,23,.9);border:1px solid var(--line);padding:1rem 1.3rem 1.05rem;backdrop-filter:blur(6px);z-index:3}
body.page-template-template-about .motto small{display:block;font-size:.75rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
body.page-template-template-about .motto b{display:block;font:italic 500 clamp(1.7rem,2.6vw,2.3rem)/1.05 var(--serif);color:var(--gold-l);margin-top:.25rem}
body.page-template-template-about .hanko{position:absolute;right:-12px;top:14%;width:58px;height:58px;transform:rotate(-6deg);z-index:3}
body.page-template-template-about .side-note{font-size:.86rem;color:var(--mut);margin-top:1.4rem;max-width:46ch}
body.page-template-template-about .side-note a{color:var(--text2)}

/* 2 ROLES — rectangular cards, not arched */
body.page-template-template-about .roles{background:linear-gradient(180deg,var(--void),var(--petrol))}
body.page-template-template-about .pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.2rem,2.4vw,2rem)}
body.page-template-template-about .pillar{position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--hair);border-radius:var(--r);padding:12px 12px 1.6rem;text-decoration:none;color:inherit;transition:transform .35s,border-color .35s}
body.page-template-template-about .pillar:hover{transform:translateY(-4px);border-color:var(--line)}
body.page-template-template-about .pillar figure{margin:0;border:0;box-shadow:none;background:transparent;overflow:visible;aspect-ratio:auto;border-radius:0}
body.page-template-template-about .pillar .arch-frame{margin:0}
body.page-template-template-about .pillar img{width:100%;height:100%;object-fit:cover;object-position:center 15%;transition:transform .8s}
body.page-template-template-about .pillar:hover img{transform:scale(1.04)}
body.page-template-template-about .pillar .no{position:absolute;top:1.1rem;left:50%;transform:translateX(-50%);font:italic 500 1rem var(--serif);color:var(--gold-l);background:rgba(5,19,23,.75);border:1px solid var(--line);width:2.3rem;height:2.3rem;border-radius:50%;display:grid;place-items:center;z-index:3}
body.page-template-template-about .pillar .body{padding:1.3rem .9rem 0;text-align:center;display:flex;flex-direction:column;flex:1}
body.page-template-template-about .pillar .tag{font-size:.75rem;letter-spacing:.14em;color:var(--gold);font-weight:600}
body.page-template-template-about .pillar h3{font-size:2rem;margin:.35rem 0 .6rem}
body.page-template-template-about .pillar p{color:var(--text2);font-size:.95rem}
body.page-template-template-about .pillar .more{margin-top:auto;padding-top:.8rem;justify-content:center;color:var(--gold-l)}

/* 3 STORY — gold path */
body.page-template-template-about .story{background:var(--petrol)}
body.page-template-template-about .story-intro{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,5rem);align-items:end;margin-bottom:clamp(2.5rem,5vw,4rem)}
body.page-template-template-about .story-intro h2{font-size:clamp(2.6rem,6vw,5rem);font-style:italic;color:var(--gold-l);margin-top:.6rem}
body.page-template-template-about .story-intro p{color:var(--text2);font-size:1.06rem;max-width:52ch}
body.page-template-template-about .chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 3rem;padding:0;list-style:none}
body.page-template-template-about .chips a{display:inline-flex;align-items:center;min-height:40px;padding:.35rem .9rem;border:1px solid var(--line);border-radius:999px;font-size:.8rem;color:var(--text2);text-decoration:none;white-space:nowrap}
body.page-template-template-about .chips a:hover,
body.page-template-template-about .chips a.on{background:rgba(201,158,72,.14);color:var(--gold-l);border-color:var(--gold)}
body.page-template-template-about .tl{position:relative;list-style:none;margin:0;padding:0}
body.page-template-template-about .tl::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:linear-gradient(var(--gold) 0,var(--gold) var(--prog,0%),var(--line) var(--prog,0%));transform:translateX(-.5px)}
body.page-template-template-about .ms{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(3rem,7vw,6.5rem);align-items:center;padding:2.2rem 0;scroll-margin-top:calc(var(--hdr) + 1rem)}
body.page-template-template-about .ms::before{content:"";position:absolute;left:50%;top:50%;width:15px;height:15px;transform:translate(-50%,-50%) rotate(45deg);background:var(--void);border:1px solid var(--gold);z-index:1;transition:background .5s}
body.page-template-template-about .ms.in::before{background:var(--gold)}
body.page-template-template-about .ms .txt{grid-column:1;text-align:right}
body.page-template-template-about .ms .pic{grid-column:2}
body.page-template-template-about .ms:nth-child(even) .txt{grid-column:2;text-align:left}
body.page-template-template-about .ms:nth-child(even) .pic{grid-column:1;grid-row:1}
body.page-template-template-about .ms .yr{font:500 clamp(1.9rem,3.4vw,2.8rem)/1 var(--serif);color:var(--gold-l)}
body.page-template-template-about .ms h3{font:600 .82rem/1.3 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin:.6rem 0 .8rem}
body.page-template-template-about .ms p{color:var(--text2);max-width:46ch}
body.page-template-template-about .ms .txt p{margin-left:auto}
body.page-template-template-about .ms:nth-child(even) .txt p{margin-left:0}
body.page-template-template-about .ms p+p{margin-top:.6rem}
body.page-template-template-about .ms em{color:var(--text)}
body.page-template-template-about .pic{position:relative}
body.page-template-template-about .pic figure{
  margin:0;position:relative;border-radius:var(--r);overflow:hidden;
  border:1px solid var(--hair);box-shadow:0 22px 60px rgba(0,0,0,.4);background:var(--sanc)
}
body.page-template-template-about .pic img,
body.page-template-template-about .pic picture{width:100%;height:auto;display:block}
body.page-template-template-about .pic img{aspect-ratio:4/3;object-fit:cover}
body.page-template-template-about .pic figcaption{position:absolute;left:0;right:0;bottom:0;padding:1.6rem .9rem .6rem;font-size:.76rem;color:var(--text);background:linear-gradient(transparent,rgba(5,19,23,.9));z-index:2}
body.page-template-template-about .ms.wide .pic img{aspect-ratio:16/9}
body.page-template-template-about .ms.key .pic figure{border-color:rgba(242,217,155,.4)}
body.page-template-template-about .ms.key .pic::after{content:"„Dream came true.“";position:absolute;right:-.6rem;top:-1.1rem;font:italic 500 1.3rem var(--serif);color:var(--gold-l);background:var(--petrol);padding:.15rem .7rem;border:1px solid var(--line);z-index:3}
body.page-template-template-about .books{display:flex;gap:.8rem;justify-content:flex-start;align-items:flex-end;grid-template-columns:unset}
body.page-template-template-about .books .book{width:31%;margin:0;background:none;border:0;padding:0;box-shadow:none}
body.page-template-template-about .books .book:nth-child(2),
body.page-template-template-about .books img:nth-child(2){transform:translateY(-14px)}
body.page-template-template-about .books img,
body.page-template-template-about .books .book-cover{width:100%;height:auto;border-radius:3px;border:1px solid var(--hair);box-shadow:0 14px 36px rgba(0,0,0,.45);aspect-ratio:3/4;object-fit:cover;display:block}
body.page-template-template-about .books .book figcaption,
body.page-template-template-about .books .kicker,
body.page-template-template-about .books h3{display:none}
body.page-template-template-about .emblem{aspect-ratio:4/3;border:1px solid var(--line);border-radius:var(--r);display:grid;place-items:center;background:radial-gradient(circle at 50% 50%,#0E333D,var(--petrol) 70%);position:relative;overflow:hidden}
body.page-template-template-about .emblem::before{content:"";position:absolute;inset:8%;background:url("../img/seed.svg") center/contain no-repeat;opacity:.55}
body.page-template-template-about .emblem span{position:relative;font:italic 500 clamp(1.4rem,2.4vw,2rem)/1.15 var(--serif);color:var(--gold-l);text-align:center;padding:0 1rem}
body.page-template-template-about .jump{display:inline-flex;margin-top:.9rem}

/* reveal — only when JS is on and motion is allowed */
html.js body.page-template-template-about .rv{opacity:0;transform:translateY(26px);transition:opacity .8s ease,transform .8s ease}
html.js body.page-template-template-about .rv.in{opacity:1;transform:none}

/* 4 NUMBERS */
body.page-template-template-about .nums{background:radial-gradient(ellipse 60% 70% at 50% 0,#0E333D 0,transparent 70%),var(--void);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
body.page-template-template-about .nums .since{display:inline-block;margin-top:1rem;padding:.35rem .9rem;border:1px solid var(--line);border-radius:999px;color:var(--gold-l);font-size:.82rem;letter-spacing:.06em}
body.page-template-template-about .big{text-align:center;margin:0 auto clamp(2.5rem,5vw,3.5rem)}
body.page-template-template-about .big b{display:block;font:500 clamp(4.5rem,13vw,9.5rem)/.9 var(--serif);background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:lining-nums}
body.page-template-template-about .big span{display:block;color:var(--text2);margin-top:.6rem;letter-spacing:.14em;text-transform:uppercase;font-size:.8rem}
body.page-template-template-about .ngrid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
body.page-template-template-about .ngrid div{background:var(--petrol);padding:1.6rem 1.2rem;text-align:center}
body.page-template-template-about .ngrid b{display:block;font:500 clamp(2.2rem,4vw,3.1rem)/1 var(--serif);color:var(--gold-l);font-variant-numeric:tabular-nums lining-nums}
body.page-template-template-about .ngrid span{display:block;color:var(--text2);font-size:.86rem;margin-top:.5rem}
body.page-template-template-about .nums .foot{color:var(--mut);font-size:.82rem;margin-top:1.2rem;text-align:center}

/* 5 QUOTE BAND */
body.page-template-template-about .band{position:relative;padding:clamp(5rem,11vw,8.5rem) 0;overflow:hidden;isolation:isolate}
body.page-template-template-about .band picture,
body.page-template-template-about .band > img,
body.page-template-template-about .band .photo-band,
body.page-template-template-about .band .photo-band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;filter:saturate(.7);border:0;box-shadow:none;border-radius:0}
body.page-template-template-about .band .photo-band,
body.page-template-template-about .band .photo-band figure{position:absolute;inset:0;margin:0;z-index:-2}
body.page-template-template-about .band::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,19,23,.94),rgba(5,19,23,.82) 50%,rgba(5,19,23,.94))}
body.page-template-template-about .band blockquote{margin:0 auto;max-width:22ch;text-align:center;font:italic 500 clamp(2rem,4.6vw,3.6rem)/1.15 var(--serif);color:var(--text)}
body.page-template-template-about .band blockquote::before{content:"“";display:block;font-size:5rem;line-height:.5;color:var(--gold);margin-bottom:.6rem}
body.page-template-template-about .band cite{display:block;text-align:center;margin-top:1.4rem;font:600 .78rem var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-style:normal}
body.page-template-template-about .band cite small{display:block;font-size:.75rem;letter-spacing:.04em;text-transform:none;color:var(--mut);font-weight:400;margin-top:.3rem}

/* 6 WHY */
body.page-template-template-about .why{background:var(--void)}
body.page-template-template-about .why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,2vw,1.6rem)}
body.page-template-template-about .why-b{position:relative;padding:2rem 1.6rem 1.8rem;border-top:2px solid var(--gold);background:linear-gradient(180deg,rgba(13,44,53,.7),rgba(13,44,53,.2))}
body.page-template-template-about .why-b .n{font:italic 500 3.2rem/1 var(--serif);color:rgba(201,158,72,.35);position:absolute;right:1.2rem;top:1rem}
body.page-template-template-about .why-b h3{font-size:1.55rem;margin-bottom:.9rem;padding-right:2.5rem}
body.page-template-template-about .why-b p{color:var(--text2);font-size:.96rem}
body.page-template-template-about .why-b q{display:block;font:italic 500 1.35rem/1.3 var(--serif);color:var(--gold-l);quotes:"„" "“"}
body.page-template-template-about .why-b q+p{margin-top:.8rem}

/* 7 GAIN */
body.page-template-template-about .gain{background:linear-gradient(180deg,var(--void),var(--petrol))}
body.page-template-template-about .gain-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(1rem,2vw,1.6rem)}
body.page-template-template-about .gain-grid.one{grid-template-columns:1fr}
body.page-template-template-about .gc{display:flex;gap:1.3rem;align-items:flex-start;padding:2rem 1.8rem;background:var(--card);border:1px solid var(--hair);border-radius:var(--r)}
body.page-template-template-about .ico{flex:none;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:radial-gradient(circle,#0E333D,transparent 70%);margin-bottom:0}
body.page-template-template-about .ico svg{width:30px;height:30px;stroke:var(--gold-l);fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
body.page-template-template-about .gc h3{font-size:1.65rem;margin-bottom:.5rem}
body.page-template-template-about .gc p{color:var(--text2)}
body.page-template-template-about .gc .more{margin-top:.6rem}
body.page-template-template-about .paths{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,2vw,1.6rem);margin-top:clamp(1rem,2vw,1.6rem)}
body.page-template-template-about .paths .p{display:flex;flex-direction:column;gap:.55rem;padding:1.6rem 1.5rem;border:1px solid var(--hair);border-radius:var(--r);text-decoration:none;color:inherit;background:rgba(5,19,23,.35);transition:border-color .3s,background .3s}
body.page-template-template-about .paths .p:hover{border-color:var(--gold);background:rgba(201,158,72,.06)}
body.page-template-template-about .paths .ico{width:48px;height:48px}
body.page-template-template-about .paths .ico svg{width:24px;height:24px}
body.page-template-template-about .paths h3{font-size:1.4rem}
body.page-template-template-about .paths p{color:var(--text2);font-size:.92rem}
body.page-template-template-about .paths .go{margin-top:auto;padding-top:.4rem;display:flex;flex-wrap:wrap;gap:0 1.2rem}
body.page-template-template-about .paths .go a{font-weight:600;font-size:.88rem;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
body.page-template-template-about .paths .go a:hover{text-decoration:underline}

/* 8 CLOSE (in-page; footer close band is hidden on this template) */
body.page-template-template-about .sec.close{position:relative;text-align:center;overflow:hidden;background:radial-gradient(ellipse 60% 90% at 50% 100%,#0E333D,transparent 70%),var(--petrol);border-top:1px solid var(--hair);padding-block:clamp(4rem,9vw,7.5rem);padding-inline:max(20px,calc((100% - 1280px)/2))}
body.page-template-template-about .sec.close .seal{width:64px;margin:0 auto 1.4rem;opacity:.95}
body.page-template-template-about .sec.close h2{font-family:var(--serif);font-weight:500;line-height:1.15;font-size:clamp(2rem,4.4vw,3.3rem);max-width:22ch;margin:0 auto}
body.page-template-template-about .sec.close .close-claim{font-family:var(--serif);font-weight:500;line-height:1.22;font-size:clamp(1.65rem,3vw,2.45rem);max-width:32ch;margin:0 auto;text-wrap:pretty}
body.page-template-template-about .sec.close .btn-row{justify-content:center}
body.page-template-template-about .sec.close .side-note{margin:1.6rem auto 0}
body.page-template-template-about .social{display:flex;justify-content:center;flex-wrap:wrap;gap:.6rem;margin-top:1.6rem}
body.page-template-template-about .social a{display:inline-flex;align-items:center;min-height:44px;padding:.4rem 1rem;border:1px solid var(--hair);border-radius:999px;color:var(--text2);text-decoration:none;font-size:.85rem}
body.page-template-template-about .social a:hover{border-color:var(--gold);color:var(--gold-l)}

@media (max-width:860px){
  body.page-template-template-about .hero-grid,
  body.page-template-template-about .story-intro{grid-template-columns:1fr}
  body.page-template-template-about .portrait{justify-self:center;width:min(86%,380px);margin-top:1rem}
  body.page-template-template-about .hero .portrait{order:-1}
  body.page-template-template-about .motto{left:-1rem;bottom:1.2rem}
  body.page-template-template-about .facts{grid-template-columns:repeat(3,1fr)}
  body.page-template-template-about .facts b{font-size:1.35rem}
  body.page-template-template-about .tl::before{left:7px}
  body.page-template-template-about .ms{grid-template-columns:1fr;padding:1.6rem 0 1.6rem 2.2rem;gap:1rem}
  body.page-template-template-about .ms::before{left:7px;top:2.3rem}
  body.page-template-template-about .ms .txt,
  body.page-template-template-about .ms:nth-child(even) .txt{grid-column:1;text-align:left;grid-row:1}
  body.page-template-template-about .ms .pic,
  body.page-template-template-about .ms:nth-child(even) .pic{grid-column:1;grid-row:2}
  body.page-template-template-about .ms .txt p{margin-left:0}
  body.page-template-template-about .ms.key .pic::after{right:.5rem;top:-.9rem;font-size:1.1rem}
  body.page-template-template-about .chips{flex-wrap:nowrap;overflow-x:auto;margin-inline:-14px;padding:0 14px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  body.page-template-template-about .ngrid{grid-template-columns:repeat(2,1fr)}
  body.page-template-template-about .why-grid,
  body.page-template-template-about .gain-grid,
  body.page-template-template-about .paths{grid-template-columns:1fr}
  body.page-template-template-about .gc{padding:1.5rem 1.3rem}
  body.page-template-template-about .ico{width:54px;height:54px}
  body.page-template-template-about .pillars{grid-template-columns:1fr;grid-auto-flow:row;grid-auto-columns:auto;max-width:100%;overflow:visible;margin-inline:0;padding:0;gap:1.2rem}
  body.page-template-template-about .pillar{scroll-snap-align:unset;width:100%;max-width:420px;margin-inline:auto;left:auto!important;right:auto!important;transform:none}
  html.js body.page-template-template-about .pillars .rv{opacity:1;transform:none;left:auto}
  body.page-template-template-about .emblem{aspect-ratio:2/1}
  body.page-template-template-about .emblem::before{inset:4%}
}
@media (max-width:420px){
  body.page-template-template-about .facts span{font-size:.75rem}
  body.page-template-template-about .hero h1{font-size:2.45rem}
}
@media (prefers-reduced-motion:reduce){
  html.js body.page-template-template-about .rv{opacity:1;transform:none}
}
