/* Juicy Story – portfólio: aktívne obsahové weby (karty s fotkou), Centrum.cz, archív ako dlaždice. */
.jc-now, .jc-archive { padding-top: clamp(60px, 9vw, 120px); }
.jc-archive { padding-bottom: clamp(70px, 10vw, 140px); }
.jc-active h2, .jc-archive h2 { margin-bottom: clamp(26px, 4vw, 50px); }
.jc-archive h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); }

/* interaktívna prehliadka aktívnych webov: vľavo názvy, vpravo detail; na mobile harmonika; bez JS všetko pod sebou */
.jc-show { border-top: 2px solid var(--ink); }
.jc-show-tab { display: none; }
.jc-show-item { padding: clamp(24px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.jc-show-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.jc-show-img { display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--cream); }
.jc-show-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.jc-show-img:hover img { transform: scale(1.04); }
.jc-show-text { display: grid; gap: 16px; justify-items: start; }
.jc-show-text h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-style: italic; font-weight: 300; }
.jc-show-text p { font-size: clamp(1rem, .96rem + .25vw, 1.15rem); line-height: 1.6; }
.jc-show-text .jc-btn { font-size: .92rem; padding: .8em 1.3em; }
.jc-show-text .jc-btn:hover span { transform: translate(3px, -3px); }
@media (max-width: 760px) { .jc-show-panel { grid-template-columns: 1fr; } }

.js .jc-show-tab { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 14px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--mute); font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem)/1.1 var(--serif); letter-spacing: -.02em; text-align: left; cursor: pointer; transition: color .25s, padding .3s; }
.js .jc-show-tab span { font: 600 .74rem var(--sans); letter-spacing: .08em; color: var(--juice-deep); min-width: 1.6em; }
.js .jc-show-tab:hover { color: var(--ink); }
.js .jc-show-item.is-on .jc-show-tab { color: var(--ink); font-style: italic; }
.js .jc-show-item { padding: 0; border: 0; }
.js .jc-show-item:not(.is-on) .jc-show-panel { display: none; }
@media (min-width: 900px) {
  .js .jc-show { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(30px, 5vw, 80px); align-items: start; border-top: 2px solid var(--ink); }
  .js .jc-show-item { display: contents; }
  .js .jc-show-tab { grid-column: 1; }
  .js .jc-show-item.is-on .jc-show-tab { padding-left: 16px; background: linear-gradient(var(--juice), var(--juice)) 0 50% / 5px 60% no-repeat; }
  .js .jc-show-panel { grid-column: 2; grid-row: 1 / span 8; grid-template-columns: 1fr; gap: 22px; padding-top: 26px; position: sticky; top: 96px; }
  .js .jc-show-text h3 { display: none; }
  .js .jc-show-item.is-on .jc-show-panel { animation: jc-show-in .45s cubic-bezier(.2, .7, .2, 1); }
}
@media (max-width: 899px) {
  .js .jc-show-tab::after { content: '+'; margin-left: auto; font: 400 1.5rem/1 var(--sans); color: var(--ink); transition: transform .3s; }
  .js .jc-show-item.is-on .jc-show-tab::after { transform: rotate(45deg); }
  .js .jc-show-panel { padding: 18px 0 30px; border-bottom: 1px solid var(--line); }
  .js .jc-show-text h3 { display: none; }
}
@keyframes jc-show-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .js .jc-show-item.is-on .jc-show-panel { animation: none; } }

.jc-feat { position: relative; display: block; background: var(--night); color: var(--paper); border-radius: 32px; padding: clamp(30px, 5vw, 70px); text-decoration: none; overflow: hidden; }
.jc-feat::before { content: ''; position: absolute; right: -8%; top: -30%; width: 50%; aspect-ratio: 1; background: var(--juice); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; transition: transform .6s; }
.jc-feat:hover::before { transform: rotate(25deg) scale(1.08); }
.jc-feat-body { position: relative; display: grid; gap: 6px; }
.jc-feat .jc-kicker { color: var(--lime); }
.jc-feat strong { font: 300 clamp(3rem, 1.4rem + 8vw, 8rem)/.95 var(--serif); letter-spacing: -.035em; }
.jc-feat-role { font: 400 italic clamp(1.3rem, 1rem + 1.4vw, 2.2rem)/1.2 var(--serif); margin-top: .3em; }
.jc-feat-text { max-width: 30em; margin-top: 1em; color: #d8cdb9; }
.jc-feat-shot { position: relative; display: block; margin-top: clamp(28px, 4vw, 54px); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(-1.2deg); transition: transform .5s; }
.jc-feat:hover .jc-feat-shot { transform: rotate(0); }
.jc-feat-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #ece6da; }
.jc-feat-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9bfae; }
.jc-feat-bar b { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: #fff; color: #6d6456; font: 500 .72rem var(--sans); }
.jc-feat-shot img { width: 100%; }
.jc-feat-go { position: absolute; right: clamp(22px, 4vw, 50px); top: clamp(18px, 3vw, 40px); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); transition: transform .3s; }
.jc-feat:hover .jc-feat-go { transform: translate(6px, -6px); }
@media (max-width: 640px) { .jc-feat-shot img { height: 46px; object-fit: cover; object-position: left; } .jc-feat::before { width: 70%; top: -12%; right: -30%; } .jc-feat-go { color: var(--ink); } }

/* archív ako vodorovný posuvný pás */
.jc-rail-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); }
.jc-archive .jc-rail-head h2 { margin: 0; }
.jc-rail-nav { display: flex; gap: 8px; flex: none; }
.jc-rail-nav[hidden] { display: none; }
.jc-rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 400 1.2rem/1 var(--sans); cursor: pointer; transition: background .25s, color .25s, opacity .25s; }
.jc-rail-nav button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.jc-rail-nav button:disabled { opacity: .25; cursor: default; }
.jc-tiles { display: flex; gap: 18px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 22px; scrollbar-width: thin; scrollbar-color: var(--juice) transparent; }
.jc-tiles .jc-tile { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
.jc-tile { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line); font-size: .9rem; line-height: 1.5; scroll-margin-top: 100px; }
.jc-tile img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.jc-tile > div { padding: 18px 20px 22px; display: grid; gap: 6px; }
.jc-tile h3 { font-size: 1.45rem; font-variation-settings: 'opsz' 30; letter-spacing: -.01em; }
.jc-tile-meta { font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--juice-deep); }
.jc-tile-role { font-weight: 600; }
.jc-tile-did { color: var(--mute); font-size: .84rem; }
.jc-tile:target { outline: 3px solid var(--juice); }

/* dlaždice archívu: popis až po rozkliknutí */
.jc-tile details, .jc-tile details:first-child, .jc-tile details:last-child { border: 0; margin-top: 6px; }
.jc-tile summary { display: inline-flex; justify-content: flex-start; gap: 8px; padding: 0; font: 600 .8rem/1 var(--sans); letter-spacing: .04em; color: var(--juice-deep); }
.jc-tile summary::after { width: 20px; height: 20px; font-size: 1rem; background: var(--cream); }
.jc-tile details[open] summary::after { background: var(--juice); }
.jc-tile details p { margin-top: 10px; }
.jc-tile img { aspect-ratio: 16 / 9; }
