/* janhummel.com, Fruitisimo identity, minimal edition (Pravidla korporátní identity 1.2).
   Shared by / and /cs/. Tokens follow the brand skill's css-tokens.md. */

:root {
  --fr-orange: #ff7900;
  --fr-white: #ffffff;
  --fr-anthracite: #28323c;
  --fr-band: #fff0e0;
  --fr-rule: #d6dbe0;
  --fr-soft: #5a646e;   /* secondary text on white, derived from anthracite (6:1) */
  --fr-dim: #c9d0d6;    /* secondary text on anthracite */
  --fr-font-head: 'Montserrat', Calibri, Arial, sans-serif;
  --fr-font-body: Calibri, Carlito, Arial, sans-serif;
  --fr-radius: 10px;
  --nav: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fr-white);
  color: var(--fr-anthracite);
  font-family: var(--fr-font-body);
  font-size: 19px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--fr-font-head); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
a { color: inherit; text-decoration-color: var(--fr-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--fr-anthracite); outline-offset: 3px; border-radius: 4px; }
.orange :focus-visible, .dark :focus-visible { outline-color: #fff; }
section[id], main[id] { scroll-margin-top: var(--nav); }
.nw { white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec { position: relative; padding: 140px 0; }
.orange { background: var(--fr-orange); color: var(--fr-anthracite); }
.dark { background: var(--fr-anthracite); color: #fff; }
.orange .wrap, .dark .wrap { position: relative; z-index: 2; }

/* ── Brand pattern: symbol filling the area, 3–5 % darker (manuál 5.8) ── */
.pattern { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pattern::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: url(../images/brand/pattern_orange.webp) center / cover no-repeat;
  translate: 0 calc((.5 - var(--p, .5)) * 90px);
  animation: drift 40s ease-in-out infinite alternate;
}
.dark .pattern::before { background-image: url(../images/brand/pattern_anthracite.webp); }
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.08) translate(1.5%, -1%); }
}

/* ── Pictograms: official files, colour via CSS mask only ── */
.pict { display: block; background: var(--fr-orange); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.orange .pict, .dark .pict, .card-orange .pict, .card-dark .pict { background: #fff; }
.card-tint .pict, .card-neutral .pict { background: var(--fr-orange); }

.float {
  position: absolute;
  z-index: var(--zi, 1);
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  pointer-events: none;
  opacity: var(--op, 1);
  filter: blur(var(--bl, 0px));
  translate: 0 calc((.5 - var(--p, .5)) * var(--z, 1) * 220px);
}
.float > .pict { width: 100%; height: 100%; animation: bob var(--b, 6s) ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-12px); } to { transform: translateY(12px); } }

/* ── Type ─────────────────────────────── */
.kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--fr-font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fr-orange);
}
.orange .kicker { color: var(--fr-anthracite); }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.orange h2, .dark h2 { color: #fff; }
.rule { display: block; width: 56px; height: 4px; margin-top: 22px; border-radius: 2px; background: var(--fr-orange); transform-origin: left; }
.orange .rule { background: #fff; }
.js .reveal .rule { transform: scaleX(0); transition: transform .9s var(--ease) .25s; }
.js .reveal.in .rule { transform: none; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; transform-origin: center; }
.lead { margin-top: 26px; max-width: 62ch; font-size: 22px; line-height: 1.45; color: var(--fr-soft); }
.lead + .lead { margin-top: 16px; }
.lead strong { color: var(--fr-anthracite); }
.dark .lead { color: var(--fr-dim); }
.dark .lead strong { color: #fff; }
.orange .lead { color: var(--fr-anthracite); }

.claim { font-family: var(--fr-font-head); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.claim b { font-weight: 800; }

.hl {
  padding: 0 .12em;
  background: linear-gradient(var(--fr-orange), var(--fr-orange)) 0 100% / calc(var(--m, 1) * 100%) 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .reveal .hl { background-size: 0 100%; transition: background-size 1.1s var(--ease) .45s; }
.js .reveal.in .hl { background-size: 100% 100%; }

/* ── Buttons & links ──────────────────── */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--fr-radius);
  font-family: var(--fr-font-head);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn-white { background: #fff; color: var(--fr-anthracite); }
.btn-dark { background: var(--fr-anthracite); color: #fff; }
.btn-orange { background: var(--fr-orange); color: var(--fr-anthracite); }
.tlink {
  font-family: var(--fr-font-head);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--fr-orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.orange .tlink, .card-orange .tlink { text-decoration-color: #fff; }

/* ── Nav with scroll progress line ────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.nav::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--fr-orange); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.nav-in { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--fr-font-head); font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.nav-r { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 26px; font-family: var(--fr-font-head); font-size: 14px; font-weight: 600; }
.nav-links a, .lang { position: relative; text-decoration: none; }
.lang { font-family: var(--fr-font-head); font-size: 14px; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; border-radius: 2px; background: var(--fr-orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Load-in ──────────────────────────── */
.in-up { animation: inUp 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes inUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav));
  min-height: calc(100svh - var(--nav));
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; width: 100%; }
.hero-copy { transform: translateY(calc(var(--p, 0) * -60px)); opacity: calc(1 - var(--p, 0) * 1.4); }
.hero h1 { color: var(--fr-anthracite); font-size: clamp(56px, 8.4vw, 124px); line-height: .95; letter-spacing: -.03em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; animation: lineUp 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 28px;
  font-family: var(--fr-font-head);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.roles { color: var(--fr-soft); }
.roles .sep { color: var(--fr-orange); }
.roles .grp { display: inline-flex; gap: 12px; white-space: nowrap; }
.hero .claim { display: block; margin-top: 16px; color: var(--fr-anthracite); font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }

.stage { width: min(470px, 80vw); margin: 0 auto; transform: translateY(calc(var(--p, 0) * 80px)); }
.sketch { display: block; width: 100%; height: auto; overflow: visible; }
/* the sketch draws itself: pencil outlines hatch in first, then the finished drawing with shading */
.draw { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw-a { stroke-width: 150; animation: draw 2.6s cubic-bezier(.45, .1, .4, 1) .25s backwards; }
.draw-b { stroke-width: 165; animation: draw 2.3s cubic-bezier(.45, .1, .4, 1) 2.2s backwards; }
.sk-lines { animation: fadeOut .9s ease 4.3s forwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ── Scroll-lit statement ─────────────── */
.statement { position: relative; height: 230vh; }
.statement .pin { position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); display: flex; align-items: center; }
.words {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: var(--fr-font-head);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
}
.words .w, .words .gp { opacity: .14; transition: opacity .15s linear; }
.words .claim { letter-spacing: 0; }
.words .gp .hl { background-size: calc(var(--m, 0) * 100%) 100%; }

/* ── Book ─────────────────────────────── */
.book-sec { overflow: clip; }
.book-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.author { display: inline-block; margin-top: 28px; padding: 10px 16px; border-radius: var(--fr-radius); background: var(--fr-band); font-family: var(--fr-font-head); font-size: 14px; font-weight: 700; }
.book-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.book-float { animation: float 5s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(8px); } to { transform: translateY(-14px); } }
.book-cover {
  width: min(560px, 100%);
  transform: rotate(calc((var(--p, .55) - .55) * -8deg)) scale(calc(.94 + var(--p, .55) * .1));
  /* the photo's near-white ground fades out at the edges; the book itself sits inside 7-93 % */
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}

/* ── Cards (orange, anthracite, tint, neutral · never shadow or outline glow) ── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { position: relative; overflow: hidden; border-radius: var(--fr-radius); padding: 34px 30px 36px; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card-orange { background: var(--fr-orange); color: var(--fr-anthracite); }
.card-dark { background: var(--fr-anthracite); color: #fff; }
.card-tint { background: var(--fr-band); color: var(--fr-anthracite); }
.card-neutral, .card-white { background: #fff; color: var(--fr-anthracite); }
.card-neutral { border: 1px solid var(--fr-rule); transition: transform .45s var(--ease), border-color .45s; }
.card-neutral:hover { border-color: var(--fr-orange); }
.card h3 { font-size: 24px; line-height: 1.15; }
.card p { margin-top: 12px; font-size: 18px; }
.card-dark p { color: var(--fr-dim); }
.card .ic { width: 58px; height: 58px; margin-bottom: 24px; }
.card .ic .pict { width: 100%; height: 100%; }
.card:hover .ic .pict { animation: wiggle .8s var(--ease); }
@keyframes wiggle { 30% { transform: translateY(-6px) scale(1.06); } 60% { transform: translateY(2px); } }
.card .kicker { font-size: 12px; }
.card-orange .kicker, .card-tint .kicker { color: var(--fr-anthracite); }
.card-dark .kicker, .card-white .kicker, .card-neutral .kicker { color: var(--fr-orange); }
.card-dark h3 { color: #fff; }
.card .tlink { display: inline-block; margin-top: 20px; }

.subclaim { margin-top: 90px; font-family: var(--fr-font-head); font-size: clamp(32px, 4.8vw, 64px); font-weight: 800; line-height: 1.12; text-transform: uppercase; }

/* ── Roots bento ──────────────────────── */
.bento { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 56px; }
.bento .card { padding: 44px 40px; }
.bento .card h3 { font-size: clamp(26px, 2.8vw, 36px); }
.bento .card p { font-size: 19px; }
.bento .card p strong { font-weight: 700; }
.big8 { display: block; margin: -8px 0 10px; font-family: var(--fr-font-head); font-size: clamp(110px, 13vw, 190px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--fr-anthracite); }

/* ── Family ───────────────────────────── */
.person { padding: 36px 30px 34px; }
.person::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--fr-orange); transform: scaleX(.16); transform-origin: left; transition: transform .6s var(--ease); }
.person:hover::before { transform: none; }
.person .role { font-family: var(--fr-font-head); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--fr-orange); }
.person h3 { margin-top: 10px; }
.person .yrs { margin-top: 4px; font-family: var(--fr-font-head); font-size: 14px; font-weight: 700; color: var(--fr-soft); font-variant-numeric: tabular-nums; }
.person .desc { color: var(--fr-soft); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.pair .card { padding: 40px 36px; }
.pair .card h3 { font-size: 28px; }

/* ── Mentoring + carousel ─────────────── */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; margin-top: 30px; }
.cols2 .lead { margin-top: 0; font-size: 20px; }
.gallery { margin-top: 64px; }
.track {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(7vw, calc((100vw - 1152px) / 2));
}
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 min(1000px, 86vw); height: clamp(400px, 50vw, 600px); margin: 0; overflow: hidden; border-radius: var(--fr-radius); background: #1e252c; scroll-snap-align: center; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.slide.on img { transform: none; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 100px 36px 30px; background: linear-gradient(transparent, rgba(40, 50, 60, .8)); color: #fff; font-family: var(--fr-font-head); font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; }
.slide figcaption::before { content: ""; display: block; width: 44px; height: 5px; margin-bottom: 14px; border-radius: 3px; background: var(--fr-orange); }
.track.cards { align-items: stretch; padding-block: 12px; }
.track.cards .slide { flex: 0 0 min(360px, 80vw); height: auto; overflow: hidden; background: #fff; }
.gal-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.dots { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; border-radius: 26px; background: rgba(255, 255, 255, .1); }
.dot { position: relative; width: 9px; height: 9px; padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .5s var(--ease); }
.dot.on { width: 52px; background: rgba(255, 255, 255, .2); }
.dot span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--fr-orange); }
.dot.on span { width: 100%; }
.dot.on.run span { width: 0; animation: fill var(--dur, 5s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.play { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--fr-anthracite); cursor: pointer; }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-play, .play.paused .i-pause { display: none; }
.gallery.light .dots { background: rgba(40, 50, 60, .07); }
.gallery.light .dot { background: rgba(40, 50, 60, .32); }
.gallery.light .dot.on { background: rgba(40, 50, 60, .12); }
.gallery.light .play { background: var(--fr-anthracite); color: #fff; }
.play.paused .i-play { display: block; }

/* ── Podcasts ─────────────────────────── */
.wave { display: flex; align-items: center; justify-content: flex-start; gap: 6px; height: 88px; margin-top: 56px; }
.wave i { display: block; flex: 0 0 3px; height: calc(var(--h) * 100%); border-radius: 3px; background: var(--fr-anthracite); transform: scaleY(.2); animation: eq 1.1s ease-in-out infinite alternate; }
@keyframes eq { to { transform: scaleY(1); } }
.pods { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 44px; }
.pod { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding: 18px 0; border-bottom: 1px solid var(--fr-rule); }
.pod .t { display: block; font-family: var(--fr-font-head); font-size: 17px; font-weight: 700; }
.pod .m { display: block; margin-top: 3px; font-size: 16px; color: var(--fr-soft); }
.pod .go { display: flex; gap: 16px; font-family: var(--fr-font-head); font-size: 13px; font-weight: 700; }

/* ── Closing + footer ─────────────────── */
.cta .claim { display: block; color: var(--fr-anthracite); font-size: clamp(48px, 8.4vw, 124px); line-height: 1; letter-spacing: -.01em; }
.cta .claim span { display: block; }
.cta .lead { margin: 30px auto 0; }
.foot { position: relative; padding: 36px 0 46px; border-top: 1px solid var(--fr-rule); color: var(--fr-soft); font-size: 15px; }
.foot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--fr-orange); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--fr-font-head); font-size: 14px; font-weight: 700; }
.foot a { color: var(--fr-anthracite); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--fr-orange); }

/* ── Scroll reveal ────────────────────── */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────── */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .stage { width: min(420px, 80vw); }
  .book-grid { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 18px; }
  .sec { padding: 84px 0; }
  .hero { padding: 40px 0 70px; }
  .lead { font-size: 19px; }
  .statement { height: 200vh; }
  .cards3, .bento, .pair, .cols2, .pods { grid-template-columns: 1fr; }
  .roles { flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .12em; }
  .roles .mid { display: none; }
  .roles .grp { gap: 9px; }
  .float { width: calc(var(--s) * .65); height: calc(var(--s) * .65); }
  .float.opt { display: none; }
  .bento .card { padding: 34px 26px; }
  .slide figcaption { padding: 80px 22px 22px; }
  .wave { gap: 4px; height: 90px; }
  .wave i { flex-basis: 4px; }
  .subclaim { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .rule { transform: none; }
  .js .reveal .hl { background-size: 100% 100%; }
  .wave i { transform: scaleY(var(--h)); }
  .sk-lines { display: none; }
  .statement { height: auto; }
  .statement .pin { position: static; height: auto; padding: 120px 0; }
}
