/* ====== DH portfolio v2 — jedna dlhá stránka s bočným menu ====== */
:root {
  --ink: #1b1b1b;
  --paper: #f4f2ee;
  --green: #19e219;
  --blue: #2b17d9;
  --red: #dc3832;
  --font: "cofo-gothic-variable", "Helvetica Neue", Arial, sans-serif;
  --side: 28.5vw;          /* šírka bočného pásu */
  --pad: 3.6vw;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: #a9a797; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ====== Pozadia — prelievanie zdola ====== */
.bgs { position: fixed; inset: 0; z-index: -1; }
.bg {
  position: absolute; inset: 0; background-size: cover; background-position: center bottom; --p: 0;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--p) * 145% - 45%), transparent calc(var(--p) * 145%));
          mask-image: linear-gradient(to top, #000 calc(var(--p) * 145% - 45%), transparent calc(var(--p) * 145%));
}
.bg--zelena   { background-image: url("../assets/bg/zelena.jpg"); }
.bg--modra    { background-image: url("../assets/bg/modra.jpg"); }
.bg--oranzova { background-image: url("../assets/bg/oranzova.jpg"); }
.bg--ruzova   { background-image: url("../assets/bg/ruzova.jpg"); }
/* sivá zatiaľ vzniká odfarbením zelenej — keď pošleš sivé pozadie, vymeníme */
.bg--seda     { background-image: url("../assets/bg/zelena.jpg"); filter: grayscale(1) sepia(.24) brightness(.86); }

/* ====== Bočné menu ====== */
.side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--side); pointer-events: none; }
.side > * { pointer-events: auto; }
.side::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.17); transition: opacity .6s; }
.side__logo { position: absolute; left: 3.2vw; top: 7vh; width: 11.4vw; transition: opacity .5s; }
.side__toggle { display: none; }
.side__menu { position: absolute; left: 2.4vw; top: 50%; transform: translateY(-50%); transition: top .7s cubic-bezier(.2,.8,.2,1); }
.side__menu a {
  --d: 0; --b: 0px;
  display: block; white-space: nowrap; text-decoration: none;
  font-size: clamp(22px, 3.05vw, 60px); font-weight: 560; line-height: 1.24; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 0 .28em rgba(255,255,255,.55), 0 0 .6em rgba(0,0,0,.10);
  transform: translateX(calc(var(--d) * .42em)); filter: blur(var(--b));
  max-height: 1.3em; overflow: visible;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s, color .3s, max-height .5s, opacity .4s;
}
.side__menu a:hover, .side__menu a:focus-visible { filter: blur(0); outline: none; }
.side__menu a.is-active { color: var(--green); font-weight: 640; text-shadow: 0 0 .16em rgba(25,226,25,.85); filter: blur(.4px); }
.side__menu a.is-title-only { max-height: 0; opacity: 0; pointer-events: none; }
body.at-title .side__menu a.is-title-only { max-height: 1.3em; opacity: 1; pointer-events: auto; }
body.at-title .side::before, body.at-title .side__logo { opacity: 0; pointer-events: none; }
body.at-title .side__menu { top: 71%; }

/* ====== Kostra ====== */
main { margin-left: var(--side); }
.sec { position: relative; }
.sub { position: relative; min-height: 80vh; padding: 5vh 3vw 0 var(--pad); }
.sub--last { min-height: 100vh; }
.sub h2, .peek {
  margin: 0 0 3.2vh; font-size: clamp(34px, 4.7vw, 90px); font-weight: 500; line-height: 1.06; letter-spacing: -.015em; color: var(--ink);
}
.sub h2.is-ghost { opacity: 0; }       /* jeho miesto drží „peek“ z pripnutej sekcie nad ním */
.cols { display: grid; grid-template-columns: minmax(0, 21.5vw) minmax(0, 1fr); gap: 4vw; align-items: start; }
.txt { font-size: clamp(15px, 1.55vw, 27px); line-height: 1.36; text-align: justify; hyphens: auto; }
.txt p { margin: 0 0 1em; }
.txt--wide { max-width: 34em; text-align: left; }
.hint { font-size: .62em; text-align: left; opacity: .8; }
.chip { border: 1.5px solid currentColor; background: transparent; border-radius: 99px; padding: .25em .8em; margin-right: .5em; cursor: pointer; }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
#graphics .txt { color: #fff; }
#graphics .txt a { color: var(--blue); }
.sec--about .txt { color: var(--blue); }

/* ====== 00 Title (dočasné) ====== */
.sec--title { height: 100vh; height: 100svh; margin-left: calc(var(--side) * -1); }
.title__name { position: absolute; left: 6vw; top: 12vh; width: 88vw; margin: 0; }
.title__name canvas { display: block; width: 100%; image-rendering: pixelated; cursor: pointer; }
.title__name img.glitch { animation: glitch .55s steps(1, end); }
@keyframes glitch {
  0%  { transform: translate(-1.2%, 0) skewX(-8deg); clip-path: inset(0 0 55% 0); }
  20% { transform: translate(1.5%, 2%) skewX(6deg);  clip-path: inset(40% 0 0 0); }
  40% { transform: translate(-.8%, -2%) scaleY(1.15); clip-path: inset(20% 0 30% 0); }
  60% { transform: translate(1%, 1%) skewX(-3deg);   clip-path: inset(0); }
  80% { transform: translate(-.4%, 0) scaleX(1.03); }
  100%{ transform: none; clip-path: inset(0); }
}
.title__site { position: absolute; right: 3.6vw; top: 5.4vh; margin: 0; font-family: "scatterplot-vf", var(--font); font-style: italic; font-weight: 800; font-size: clamp(18px, 2.7vw, 50px); letter-spacing: -.03em; transform: skewX(-12deg); }
.title__what, .title__where { position: absolute; margin: 0; font-size: clamp(16px, 2.35vw, 44px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.title__what  { left: 6.1vw; top: 35vh; }
.title__where { right: 4.2vw; top: 33vh; }

/* ====== 01 Photography / 02 Projects (zatiaľ náhrada) ====== */
.fotky img { box-shadow: 0 10px 40px rgba(0,0,0,.14); }
.foto-a { width: 70%; margin-left: auto; }
.foto-b { width: 52%; margin: -9vh 0 0 4%; }
.proj-list { margin: 0; padding: 0; list-style: none; counter-reset: p; font-size: clamp(20px, 2.6vw, 48px); font-weight: 500; line-height: 1.3; }
.proj-list li { counter-increment: p; }
.proj-list li::before { content: counter(p, decimal-leading-zero) " "; opacity: .45; font-size: .6em; margin-right: .5em; }

/* ====== 02 Projects — index iniciatív ====== */
.idx { --nw: 4.2vw; --cg: 1.2vw; border-bottom: 1.5px solid rgba(27,27,27,.3); margin-top: 1vh; }
.idx__row { border-top: 1.5px solid rgba(27,27,27,.3); }
.idx__head {
  display: grid; grid-template-columns: var(--nw) minmax(0, 1fr) minmax(0, 5.5em) minmax(0, 15em) 1.4em;
  grid-template-areas: "n name y t pm"; align-items: baseline; column-gap: var(--cg);
  width: 100%; padding: 1.5vh 0; margin: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
  font-size: clamp(12px, 1.05vw, 17px); transition: opacity .4s;
}
.idx__n { grid-area: n; font-variant-numeric: tabular-nums; opacity: .6; }
.idx__name { grid-area: name; font-size: clamp(24px, 3.1vw, 58px); font-weight: 520; line-height: 1.05; letter-spacing: -.015em; transition: transform .4s cubic-bezier(.2,.8,.2,1), color .3s; }
.idx__y { grid-area: y; font-variant-numeric: tabular-nums; }
.idx__t { grid-area: t; }
.idx__pm { grid-area: pm; justify-self: end; font-size: clamp(22px, 2.3vw, 42px); line-height: .8; font-weight: 300; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.idx__head:hover .idx__name, .idx__head:focus-visible .idx__name { transform: translateX(.3em); }
.idx__head:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.is-open .idx__pm { transform: rotate(45deg); }
.is-open .idx__name { color: #fff; text-shadow: 0 0 .3em rgba(255,255,255,.45); }
.idx.has-open .idx__row:not(.is-open) .idx__head { opacity: .38; }
.idx.has-open .idx__row:not(.is-open) .idx__head:hover { opacity: 1; }

.idx__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1); }
.is-open .idx__body { grid-template-rows: 1fr; }
.idx__inner { overflow: hidden; min-height: 0; }
.case {
  display: grid; grid-template-columns: minmax(0, 21.5vw) minmax(0, 1fr); grid-template-areas: "txt strip" "nav nav";
  column-gap: 3vw; row-gap: 3vh; padding: 1vh 0 3.5vh calc(var(--nw) + var(--cg));
  opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.is-open .case { opacity: 1; transform: none; transition-delay: .12s; }
.case__txt { grid-area: txt; }
.case__line { margin: 0 0 1em; font-size: clamp(17px, 1.65vw, 30px); font-weight: 520; line-height: 1.2; letter-spacing: -.01em; }
.case__story { font-size: clamp(13px, 1.1vw, 18px); }
.case__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35em 1.1em; margin: 1.2em 0 0; font-size: clamp(12px, 1.05vw, 17px); }
.case__facts dt { opacity: .55; }
.case__facts dd { margin: 0; }
.case__facts a { font-weight: 600; }
.case__dot { display: inline-block; width: .62em; height: .62em; margin-right: .45em; border-radius: 50%; background: var(--green); box-shadow: 0 0 .5em var(--green); vertical-align: .02em; animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 50% { box-shadow: 0 0 1.1em var(--green); transform: scale(1.15); } }
.case__strip {
  grid-area: strip; display: flex; gap: 1.1vw; overflow-x: auto; padding: 0 0 1.2vh; cursor: grab;
  -webkit-user-select: none; user-select: none; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(27,27,27,.4) transparent;
}
.case__strip.is-drag { cursor: grabbing; }
.case__strip.is-drag img { pointer-events: none; }
.case__strip img { flex: none; height: min(46vh, 29vw); width: auto; box-shadow: 0 10px 26px rgba(0,0,0,.16); cursor: zoom-in; }
.case__strip:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.case__nav { grid-area: nav; display: flex; justify-content: space-between; gap: 1em; font-size: clamp(13px, 1.1vw, 18px); }
.case__nav button { border: 0; background: none; padding: .3em 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.case__nav button:hover { color: #fff; }
.case__close { opacity: .7; }

.idx-peek { position: fixed; left: 0; top: 0; z-index: 35; pointer-events: none; opacity: 0; transition: opacity .18s; filter: drop-shadow(0 14px 22px rgba(0,0,0,.28)); will-change: transform; }
.idx-peek.is-on { opacity: 1; }
.idx-peek canvas { display: block; }

/* ====== 01 Photography — karty sérií ====== */
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3vw; align-items: start; }
.scard { display: block; text-decoration: none; }
.scard:nth-child(2n) { margin-top: 14vh; }
.scard__img { display: block; overflow: hidden; box-shadow: 0 12px 34px rgba(0,0,0,.16); }
.scard__img img { width: 100%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.scard:hover .scard__img img { transform: scale(1.045); }
.scard__cap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .8em; align-items: baseline; margin-top: .8em; }
.scard__n { font-size: clamp(12px, 1vw, 16px); opacity: .6; font-variant-numeric: tabular-nums; }
.scard strong { font-size: clamp(18px, 1.9vw, 34px); font-weight: 520; letter-spacing: -.01em; transition: color .3s; }
.scard em { grid-column: 2; font-style: normal; font-size: clamp(12px, 1vw, 16px); }
.scard:hover strong { color: #fff; text-shadow: 0 0 .3em rgba(255,255,255,.45); }
.case__full { display: inline-block; margin-top: 1.4em; font-size: clamp(15px, 1.35vw, 24px); font-weight: 600; text-underline-offset: 4px; }
.case__full:hover { color: #fff; }

/* ====== Podstránky: projekt / séria ====== */
.pg { margin-left: var(--side); padding: 7vh 3vw 10vh var(--pad); }
.pg__back { font-size: clamp(13px, 1.1vw, 18px); text-decoration: none; opacity: .75; }
.pg__back:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.pg__h { margin: 2.5vh 0 1.2vh; font-size: clamp(44px, 7vw, 136px); font-weight: 520; line-height: .98; letter-spacing: -.025em; }
.pg__meta { display: flex; flex-wrap: wrap; gap: .3em 1.6em; margin: 0 0 6vh; font-size: clamp(13px, 1.15vw, 19px); }
.pg__top { display: grid; grid-template-columns: minmax(0, 21.5vw) minmax(0, 1fr); gap: 4vw; align-items: start; margin-bottom: 10vh; }
.pg__hero { justify-self: end; width: auto; max-width: 100%; max-height: 80vh; cursor: zoom-in; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.pg__txt .txt { font-size: clamp(14px, 1.2vw, 20px); }
.pg__sec { margin: 0 0 12vh; }
.pg__h2 { margin: 0 0 3vh; font-size: clamp(26px, 3vw, 56px); font-weight: 500; letter-spacing: -.015em; }
.pg__grid { columns: 3 220px; column-gap: 1.4vw; }
.pg__grid img { width: 100%; margin: 0 0 1.4vw; break-inside: avoid; cursor: zoom-in; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.pg__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4vw; align-items: start; }
.pg__videos figure { margin: 0; }
.pg__videos video { display: block; width: 100%; background: #111; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.pg__videos figcaption { margin-top: .6em; font-size: clamp(12px, 1vw, 16px); }
.pg__next { display: flex; justify-content: space-between; gap: 2em; padding-top: 3vh; border-top: 1.5px solid rgba(27,27,27,.3); }
.pg__next a { text-decoration: none; font-size: clamp(20px, 2.6vw, 48px); font-weight: 520; letter-spacing: -.015em; line-height: 1.1; transition: color .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.pg__next small { display: block; margin-bottom: .3em; font-size: clamp(12px, 1vw, 16px); font-weight: 400; opacity: .6; letter-spacing: 0; }
.pg__nx { text-align: right; }
.pg__next a:hover { color: #fff; }
.pg__prev:hover { transform: translateX(-.25em); } .pg__nx:hover { transform: translateX(.25em); }

/* séria: fotky jedna po druhej */
.seq { display: grid; gap: 16vh; margin: 0 0 14vh; }
.seq__f { margin: 0; width: min(100%, 44vw); opacity: 0; transform: translateY(30px); transition: opacity .9s, transform 1s cubic-bezier(.2,.8,.2,1); }
.seq__f.in { opacity: 1; transform: none; }
.seq__f.l { justify-self: start; } .seq__f.r { justify-self: end; } .seq__f.c { justify-self: center; width: min(100%, 58vw); }
.seq__f img { width: 100%; cursor: zoom-in; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.seq__f figcaption { display: flex; justify-content: space-between; margin-top: .7em; font-size: clamp(12px, 1vw, 16px); font-variant-numeric: tabular-nums; }

/* ====== 03 Graphics — 01 Posters: stĺp ====== */
.pillar-wrap { position: relative; height: 62vh; }
.pillar { position: absolute; right: 4vw; top: -15vh; width: min(30vw, 52vh); height: 84vh; perspective: 1700px; perspective-origin: 50% -35%; touch-action: pan-y; cursor: grab; }
.pillar:active { cursor: grabbing; }
.pillar__tilt, .pillar__spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.pillar__tilt { transform: rotateZ(11deg) rotateX(-15deg); }
.strip { position: absolute; left: 50%; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.strip__p { position: absolute; left: 0; right: 0; background-repeat: no-repeat; cursor: pointer; }
.strip__sh { position: absolute; inset: 0; background: #0c0d10; opacity: .3; pointer-events: none; }
.pillar__cap { position: absolute; left: 50%; top: 0; transform: rotateX(90deg); }
/* betónový stĺp: zrno + fľaky + stopy po debnení */
.strip, .pillar__cap {
  --zrno: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 -.16'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  --flaky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .02' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 -.38'/%3E%3C/filter%3E%3Crect width='700' height='700' filter='url(%23n)'/%3E%3C/svg%3E");
  background-color: #a9a8a2;
}
.strip {
  background-image:
    linear-gradient(to bottom, transparent 33.1%, rgba(0,0,0,.22) 33.1% 33.3%, rgba(255,255,255,.14) 33.3% 33.5%, transparent 33.5% 66.4%, rgba(0,0,0,.22) 66.4% 66.6%, rgba(255,255,255,.14) 66.6% 66.8%, transparent 66.8%),
    var(--zrno), var(--flaky);
  background-position: 0 0, var(--bx, 0) 0, var(--bx, 0) 0;
}
.pillar__cap { background-color: #c4c3bc; background-image: var(--zrno), var(--flaky); }
.strip__p { box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }

/* ====== 03 Graphics — 02 Identity: koleso ====== */
.sub--pin { padding: 0; min-height: 0; }
.sub__stage { position: sticky; top: 0; height: 80vh; padding: 5vh 3vw 0 var(--pad); }
.peek { position: absolute; left: var(--pad); top: calc(100% + 5vh); margin: 0; pointer-events: none; }
.wheel-wrap { position: relative; height: 60vh; perspective: 1200px; }
.wheel { position: absolute; inset: 0; transform-style: preserve-3d; }
.wcard {
  position: absolute; left: 0; top: 50%; width: 100%; height: 44vh; margin-top: -22vh;
  border: 0; background: var(--red); color: #fff; text-align: left; cursor: pointer;
  padding: 2.2vw; display: flex; flex-direction: column; gap: .3em;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform;
  background-size: cover; background-position: center;
}
.wcard__n { font-size: clamp(13px, 1.1vw, 18px); opacity: .8; }
.wcard strong { font-size: clamp(26px, 4vw, 76px); font-weight: 560; line-height: 1; letter-spacing: -.02em; }
.wcard em { font-style: normal; font-size: clamp(14px, 1.4vw, 24px); }
.wcard__go { margin-top: auto; font-size: clamp(14px, 1.4vw, 24px); text-decoration: underline; text-underline-offset: 4px; }
.wcard:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }

/* ====== 03 Graphics — 03 Misc.: bubliny ====== */
.blobs { position: relative; height: 70vh; margin-top: -9vh; }
.blob {
  position: absolute; border: 0; cursor: pointer; color: #063b06; padding: 0;
  background: radial-gradient(ellipse at 38% 32%, #8dff8d 0%, #2cf52c 38%, #12dc12 70%, #0aa80a 100%);
  box-shadow: inset -1.2vw -1.8vw 3vw rgba(0,70,0,.38), inset 1vw 1vw 2.4vw rgba(210,255,210,.5), 0 2.2vh 3.5vh rgba(0,0,0,.2);
  animation: blobMorph 11s ease-in-out infinite alternate; will-change: transform;
  display: grid; place-items: center; text-align: center;
}
.blob:nth-child(2n) { animation-duration: 14s; animation-direction: alternate-reverse; }
.blob:nth-child(3n) { animation-duration: 17s; }
@keyframes blobMorph {
  0%   { border-radius: 52% 48% 46% 54% / 58% 54% 46% 42%; }
  50%  { border-radius: 40% 60% 52% 48% / 46% 40% 60% 54%; }
  100% { border-radius: 58% 42% 40% 60% / 50% 60% 40% 50%; }
}
.blob__in { display: grid; gap: .15em; padding: 8%; }
.blob__in img { width: 62%; margin: 0 auto .4em; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,60,0,.35); transform: rotate(-4deg); }
.blob strong { font-size: clamp(15px, 1.9vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.blob em { font-style: normal; font-size: clamp(11px, 1vw, 17px); }
.blob:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ====== 04 About ====== */
.portret { width: min(100%, 34vw); margin: -9vh 0 0 auto; filter: drop-shadow(0 14px 24px rgba(60,0,60,.18)); }
.mapa { width: min(100%, 27vw); margin-left: auto; }

/* ====== 04 About — 02 CV: časová os ====== */
.sub--cv { padding-bottom: 8vh; }
.cv-intro { max-width: 30em; text-align: left; }
.tl { --who: minmax(130px, 17vw); margin: 4vh 0 5vh; max-width: 62vw; color: var(--ink); }
.tl__axis, .tl__row { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); column-gap: 2vw; }
.tl__years { position: relative; height: 1.6em; font-size: clamp(12px, 1.05vw, 17px); font-variant-numeric: tabular-nums; }
.tl__years span { position: absolute; top: 0; transform: translateX(-50%); }
.tl__years span:first-child { transform: none; }
.tl__row { padding: 1.5vh 0; border-top: 1.5px solid rgba(27,27,27,.25); opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.tl__row.in { opacity: 1; transform: none; }
.tl__who strong { display: block; font-size: clamp(16px, 1.75vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.tl__who span { font-size: clamp(12px, 1.05vw, 17px); color: var(--blue); }
.tl__track {
  position: relative; height: clamp(12px, 1.5vw, 22px); margin-top: .35em;
  background: repeating-linear-gradient(to right, rgba(27,27,27,.28) 0 1.5px, transparent 1.5px calc(100% / var(--years)));
}
.tl__bar { position: absolute; top: 0; bottom: 0; background: var(--blue); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .15s; }
.tl__row.in .tl__bar { transform: none; }
.tl__bar.is-open { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.tl__bar.is-guess { background: transparent; border: 2px dashed var(--blue); }
.tl__bar.is-dotted { background: radial-gradient(circle, var(--blue) 0 38%, transparent 42%) left center / 1.4vw 100% repeat-x; -webkit-mask-image: none; mask-image: none; }
.tl__what { list-style: none; margin: .7em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3em .5em; font-size: clamp(12px, 1.05vw, 17px); }
.tl__what li { border: 1.2px solid rgba(27,27,27,.55); border-radius: 99px; padding: .12em .7em; }
.cv-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; max-width: 62vw; font-size: clamp(13px, 1.15vw, 19px); line-height: 1.4; }
.cv-extra h3 { margin: 0 0 .4em; font-size: 1em; font-weight: 600; color: var(--blue); }
.cv-extra ul { margin: 0 0 1.2em; padding: 0; list-style: none; }

/* ====== 05 Collaborate ====== */
.big-link { font-size: clamp(20px, 3vw, 56px); font-weight: 500; letter-spacing: -.015em; text-underline-offset: .14em; }

/* ====== Detail (plagát / projekt) ====== */
.detail { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 4vmin; background: rgba(20,20,20,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.detail[hidden] { display: none; }
.detail__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3vmin; width: min(980px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); padding: 3vmin; animation: detIn .25s cubic-bezier(.2,.8,.2,1); }
@keyframes detIn { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.detail__img { aspect-ratio: 300 / 424; background: #ddd center / contain no-repeat; }
.detail__img img { width: 100%; height: 100%; object-fit: contain; }
.detail__txt h3 { margin: 0 0 .2em; font-size: clamp(26px, 3.4vw, 54px); font-weight: 560; letter-spacing: -.02em; line-height: 1.05; padding-right: 1.2em; }
.detail__meta { color: var(--blue); margin: 0 0 1.2em; }
.detail__txt p { font-size: clamp(15px, 1.25vw, 19px); line-height: 1.45; }
.detail__x { position: absolute; right: 1.2vmin; top: .6vmin; border: 0; background: transparent; font-size: 44px; line-height: 1; cursor: pointer; padding: 0 .2em; }

/* ====== Popup — presne podľa dodaného obrázka ====== */
.popup-zaclona { position: fixed; inset: 0; z-index: 90; }
.popup {
  position: fixed; z-index: 100; left: 50%; top: 50%;
  width: min(560px, 90vw); aspect-ratio: 1342 / 837;
  transform: translate(-50%, -50%);
  filter: drop-shadow(6px 10px 18px rgba(0,0,0,.28));
  user-select: none; -webkit-user-select: none;
}
.popup.is-in { animation: popIn .16s steps(3, end); }
@keyframes popIn { from { transform: translate(-50%, -50%) scale(.92); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.popup__img { width: 100%; height: 100%; display: block; pointer-events: none; }
/* neviditeľné tlačidlá presne nad tlačidlami v obrázku */
.popup__hot {
  position: absolute; padding: 0; margin: 0; border: 0; background: transparent;
  cursor: pointer; color: transparent; font-size: 0;
}
.popup__hot:active { background: rgba(0,0,0,.06); box-shadow: inset 3px 3px 0 rgba(0,0,0,.28); }
.popup__hot:focus-visible { outline: 2px dotted #000; outline-offset: -6px; }
.popup__x       { left: 88.5%; top: 8.9%;  width: 6.8%;  height: 10%; }
.popup__refresh { left: 15.3%; top: 78.2%; width: 35.5%; height: 13.9%; }
.popup__ignore  { left: 55.1%; top: 78.2%; width: 35.5%; height: 13.9%; }
.popup__bar     { position: absolute; left: 3.2%; top: 6.9%; width: 84%; height: 13.2%; cursor: move; }

/* ====== Mobil ====== */
@media (max-width: 820px) {
  :root { --side: 0px; --pad: 18px; }
  .side { width: 100%; bottom: auto; height: 62px; }
  .side::before { background: rgba(255,255,255,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .side__logo { left: 16px; top: 14px; width: 84px; }
  .side__toggle { display: block; position: absolute; right: 14px; top: 12px; border: 0; background: transparent; font-size: 20px; font-weight: 600; padding: 8px; cursor: pointer; }
  body.at-title .side::before, body.at-title .side__logo { opacity: 1; pointer-events: auto; }
  .side__menu, body.at-title .side__menu { position: fixed; inset: 62px 0 0 0; top: 62px; transform: none; display: none; padding: 8vh 22px; background: rgba(40,40,40,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  body.menu-open .side__menu { display: block; }
  .side__menu a { font-size: 9.5vw; line-height: 1.35; }
  .side__menu a.is-title-only { max-height: 1.4em; opacity: 1; pointer-events: auto; }
  .sec--title { margin-left: 0; }
  .title__name { top: 17vh; left: 4vw; width: 92vw; }
  .title__site { top: 84px; right: 18px; }
  .title__what { top: 34vh; left: 18px; }
  .title__where { top: auto; bottom: 8vh; right: 18px; }
  .sub { padding-top: 84px; padding-right: 18px; }
  .sub__stage { padding: 84px 18px 0 18px; height: 88vh; }
  .peek { top: calc(100% + 84px); }
  .cols { grid-template-columns: 1fr; gap: 3vh; }
  .hint { display: none; }
  .pillar-wrap { height: 66vh; }
  .pillar { position: relative; right: auto; top: 0; margin: 0 auto; width: 62vw; height: 64vh; }
  .sub--pin .txt p:first-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .wheel-wrap { height: 30vh; margin-top: 15vh; }
  .wcard { height: 22vh; margin-top: -11vh; padding: 14px; }
  .blobs { height: 92vw; margin-top: 0; }
  .portret, .mapa { width: 78%; margin: 0 auto; }
  .tl, .cv-extra { max-width: none; }
  .tl { --who: 1fr; }
  .tl__axis, .tl__row { grid-template-columns: 1fr; }
  .tl__axis > :first-child { display: none; }
  .cv-extra { grid-template-columns: 1fr; }
  .detail__card { grid-template-columns: 1fr; }
  .idx { --nw: 2.2em; --cg: 10px; }
  .idx__head { grid-template-columns: var(--nw) minmax(0, 1fr) 1.4em; grid-template-areas: "n name pm" ". y pm" ". t pm"; row-gap: 2px; padding: 14px 0; }
  .case { grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt" "strip" "nav"; padding-left: 0; }
  .case__strip img { height: 58vw; }
  .case__close { display: none; }
  .series { grid-template-columns: 1fr; gap: 6vh; }
  .scard:nth-child(2n) { margin-top: 0; }
  .pg { padding: 84px 18px 10vh; }
  .pg__top { grid-template-columns: 1fr; gap: 4vh; }
  .pg__hero { justify-self: stretch; width: 100%; max-height: none; order: -1; }
  .seq { gap: 8vh; }
  .seq__f, .seq__f.c { width: 100%; }
  .pg__next { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .seq__f { opacity: 1; transform: none; transition: none; }
  .tl__row, .tl__bar { transition: none; }
}

/* ====== 01 Posters — 3D sken stĺpa (WebGL) ====== */
.pillar--3d { perspective: none; width: min(44vw, 84vh); height: 98vh; top: -17vh; right: 0; }
.sub--posters .pillar-wrap { height: 80vh; }
.pillar--3d::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3.5%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.34), rgba(0,0,0,0)); z-index: -1; opacity: 0; transition: opacity .8s; }
.pillar--3d.is-ready::after { opacity: 1; }
.col3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity .8s; }
.pillar--3d.is-ready .col3d { opacity: 1; }
.col3d__load { position: absolute; left: 0; right: 0; top: 45%; margin: 0; text-align: center; color: #fff; font-size: clamp(13px, 1vw, 17px); opacity: .8; }

/* ====== 01 Photography — 01 Series: koliesko uzávierky ====== */
/* tvar podľa návrhu (stred pri pravom okraji), vzhľad podľa kolieska na Canone AE-1 */
.sub--pin.is-past .peek { visibility: hidden; }        /* nadpis pod ním už prevzal jeho miesto */
.cols--dial { grid-template-columns: minmax(0, 16vw) minmax(0, 1fr); }
.sub--series .txt { font-size: clamp(14px, 1.2vw, 21px); }
.dial-wrap { --dr: min(14.5vw, 29vh); position: relative; height: 64vh; }
.dial-prev { position: absolute; top: 50%; right: calc(var(--dr) + 5vw); transform: translateY(-56%); display: block; width: min(24vw, 37vh); aspect-ratio: 4 / 5; text-decoration: none; color: var(--ink); }
.dial-prev img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 14px 38px rgba(0,0,0,.2);
  clip-path: circle(75% at 50% 50%); transition: clip-path .34s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.dial-prev.is-shut img { clip-path: circle(0% at 50% 50%); transition-duration: .16s; transition-timing-function: ease-in; }
.dial-prev:hover img { transform: scale(1.02); }
.dial-prev__cap { position: absolute; left: 0; width: 130%; top: 100%; padding-top: .7em; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .8em; font-size: clamp(12px, 1vw, 16px); }
.dial-prev__cap strong { font-size: clamp(18px, 1.7vw, 30px); font-weight: 520; letter-spacing: -.01em; }
.dial-prev__cap em { font-style: normal; }
.dial-prev__go { text-decoration: underline; text-underline-offset: 3px; }
.dial-prev:hover strong { color: #fff; text-shadow: 0 0 .3em rgba(255,255,255,.45); }
.dial { position: absolute; top: 50%; right: calc(-1 * var(--dr)); width: calc(2 * var(--dr)); aspect-ratio: 1; transform: translateY(-50%);
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.dial:active { cursor: grabbing; }
.dial__disc { position: absolute; inset: 0; border-radius: 50%; will-change: transform;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.07), transparent 55%),
    radial-gradient(closest-side, #121212 94.5%, #050505 95%, transparent 95.4%),
    repeating-conic-gradient(#e9e9e6 0 .75deg, #8b8b88 .75deg 1.5deg, #4a4a48 1.5deg 2.2deg);   /* strieborné vrúbky */
  box-shadow: 0 2.2vh 4.5vh rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.35); }
.dial__groove { position: absolute; inset: 9%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dial__mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); color: #3fbf6b; font-weight: 640; letter-spacing: .08em; font-size: clamp(11px, 1.15vw, 21px); }
.dial__dot { position: absolute; left: 11%; top: 50%; width: 39%; height: 0; transform-origin: 100% 50%; transform: rotate(var(--a)); }
.dial__dot::before { content: ""; position: absolute; left: 0; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.75); }
.dial__lb { position: absolute; left: 9%; top: 50%; width: 41%; transform-origin: 100% 50%; transform: translateY(-50%) rotate(var(--a));
  border: 0; background: none; padding: .35em 0; text-align: left; white-space: nowrap; cursor: pointer;
  color: rgba(255,255,255,.88); font-size: clamp(13px, 1.4vw, 26px); font-weight: 560; letter-spacing: -.005em; transition: color .3s; }
.dial__lb:hover { color: #fff; }
.dial__lb.is-on { color: #f39a33; }
.dial__lb:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dial-mark { position: absolute; right: 100%; top: 50%; width: 2.4vw; height: 1vw; margin: -.5vw 1vw 0 0; border-radius: 99px; background: #1b1b1b; }

/* ====== 01 Photography — 02 Commercial: 120 film ====== */
.sub--film .sub__stage { height: 100vh; overflow: clip; }
.film { position: relative; height: 48vh; margin: 0 -3vw 0 calc(-1 * var(--pad)); perspective: 1150px; perspective-origin: 50% 40%; }
.film__ribbon { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.film__s { position: absolute; left: 0; top: 0; background-color: #0e0d0c; background-repeat: no-repeat; cursor: pointer; will-change: transform; }
.film__s:not([data-f]) { cursor: default; }
.film__s i { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.film-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 1em; margin-top: 1vh; text-align: center; }
.film-cap strong { font-size: clamp(30px, 4.3vw, 82px); font-weight: 520; letter-spacing: -.02em; line-height: 1.05; }
.film-cap span { font-size: clamp(13px, 1.1vw, 19px); }
.film-hint { text-align: center; font-size: clamp(12px, .95vw, 16px); margin-top: 1.4vh; }

/* ====== 02 Projects — krúžky ====== */
.sub--dots { min-height: 84vh; }
.dots-wrap { display: flex; align-items: center; gap: 4.5vw; min-height: 58vh; }
.dots { --rows: 4; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); gap: 4.6vh 5.6vw; flex: none; }
.dot { position: relative; display: grid; place-items: center; width: min(6.6vw, 12vh); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #1b1b1b; color: #fff; text-decoration: none; font-size: clamp(18px, 2.4vw, 46px); font-weight: 500; scroll-margin-top: 35vh;
  transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.dot__img { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; transform: scale(0); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.dot__n { position: relative; font-variant-numeric: tabular-nums; transition: text-shadow .3s; }
.dot__name { display: none; }
.dot:hover, .dot:focus-visible { transform: scale(1.14); outline: none; }
.dot:hover .dot__img, .dot:focus-visible .dot__img { transform: scale(1); }
.dot:hover .dot__n, .dot:focus-visible .dot__n { text-shadow: 0 0 .3em rgba(0,0,0,.7); }
.dot:focus-visible { box-shadow: 0 0 0 3px #fff; }
.dots__read { flex: 1; min-width: 0; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
.dots__read.is-on { opacity: 1; transform: none; }
.dots__read strong { display: block; font-size: clamp(26px, 3.4vw, 64px); font-weight: 520; line-height: 1.04; letter-spacing: -.015em; color: #fff; text-shadow: 0 0 .3em rgba(255,255,255,.45); }
.dots__meta { display: block; margin-top: .5em; font-size: clamp(13px, 1.05vw, 18px); }
.dots__line { display: block; margin-top: .6em; max-width: 26em; font-size: clamp(14px, 1.2vw, 21px); line-height: 1.35; }

@media (max-width: 820px) {
  .cols--dial { grid-template-columns: minmax(0, 1fr); }
  .dial-wrap { --dr: 44vw; height: 56vh; }
  .dial-prev { right: auto; left: 0; top: 0; transform: none; width: 44vw; }
  .dial { top: auto; bottom: 0; transform: none; }
  .dial-mark { width: 7vw; height: 3vw; margin: -1.5vw 2vw 0 0; }
  .sub--series .txt p:not(.hint) { display: none; }
  .film { height: 44vh; margin: 0 -18px; }
  .dots-wrap { display: block; min-height: 0; padding-bottom: 6vh; }
  .dots { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; gap: 14px; }
  .dot { width: auto; aspect-ratio: auto; border-radius: 0; overflow: visible; background: none; color: var(--ink); display: flex; align-items: center; gap: 14px; place-items: initial; font-size: 20px; }
  .dot:hover, .dot:focus-visible { transform: none; }
  .dot__img { display: none; }
  .dot__n { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #1b1b1b; color: #fff; display: grid; place-items: center; }
  .sub--dots .cols { grid-template-columns: minmax(0, 1fr); }
  .dot__name { display: block; font-size: 22px; font-weight: 520; line-height: 1.15; align-self: center; }
  .dots__read { display: none; }
}
@media (max-width: 820px) {
  .pillar--3d { position: relative; right: auto; top: 0; margin: 0 auto; width: 86vw; height: 66vh; }
  .sub--posters .pillar-wrap { height: 68vh; }
}

/* ====== podstránky — príspevky z Instagramu ====== */
.pg__ig { display: flex; gap: 24px; align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-right: -3vw; padding: 4px 3vw 18px 4px; margin-left: -4px; scrollbar-width: thin; scrollbar-color: rgba(27,27,27,.45) transparent; }
.pg__ig::-webkit-scrollbar { height: 6px; }
.pg__ig::-webkit-scrollbar-thumb { background: rgba(27,27,27,.45); border-radius: 3px; }
.pg__ig .instagram-media { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; margin: 0 !important; width: min(340px, 78vw) !important; max-width: none !important; min-width: 0 !important; background: #fff; border: 0; border-radius: 4px; padding: 1.4em; box-shadow: 0 12px 34px rgba(0,0,0,.16); }
.pg__ig iframe.instagram-media { padding: 0; }
.pg__iglink { font-size: clamp(14px, 1.1vw, 18px); color: var(--ink); }
.pg__pods { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3vw; align-items: start; max-width: 1100px; }
.pg__pods iframe { width: 100%; border: 0; border-radius: 12px; background: rgba(255,255,255,.15); }
.pg__podlink { display: flex; flex-direction: column; justify-content: center; gap: .5em; min-height: 352px; padding: 2em; border-radius: 12px; background: #1b1b1b; color: #fff; text-decoration: none; }
.pg__podlink strong { font-size: clamp(22px, 2.2vw, 40px); font-weight: 520; }
.pg__podlink span { opacity: .6; font-size: clamp(13px, 1vw, 16px); }
.pg__podlink:hover strong { color: #c86cf0; }
.pg__ignav { display: flex; gap: 10px; margin: -1.2vh 0 2.4vh; }
.pg__ignav button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #1b1b1b; color: #fff; font-size: 20px; cursor: pointer; transition: opacity .2s, transform .3s; }
.pg__ignav button:hover:not(:disabled) { transform: scale(1.08); }
.pg__ignav button:disabled { opacity: .25; cursor: default; }
.pg__ignav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ====== 04 About — 04 References ====== */
.sub--refs { padding-bottom: 10vh; }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3.2vw; max-width: 64vw; }
.ref { margin: 0; display: flex; flex-direction: column; gap: 1.4em; padding-top: 1.1em; border-top: 1.5px solid var(--blue); color: var(--blue); }
.ref__n { font-size: clamp(12px, 1vw, 16px); font-variant-numeric: tabular-nums; opacity: .7; }
.ref__q { margin: 0; }
.ref__q p { margin: 0; font-size: clamp(18px, 1.7vw, 30px); line-height: 1.25; letter-spacing: -.01em; text-indent: -.42em; }
.ref__q p::before { content: "“"; }
.ref__q p::after { content: "”"; }
.ref__who { display: flex; flex-direction: column; gap: .2em; margin-top: auto; font-size: clamp(13px, 1.05vw, 18px); }
.ref__who strong { font-size: clamp(16px, 1.3vw, 22px); font-weight: 560; color: var(--ink); }
.ref__c { opacity: .7; }
a.ref__c { opacity: 1; }
@media (max-width: 820px) {
  .refs { max-width: none; gap: 6vh; }
}

/* ====== 03 Graphics — 04 Sketches: skicár ====== */
.sub--sketch { padding-bottom: 10vh; }
.book-wrap { --pw: min(19vw, 36vh); display: flex; flex-direction: column; align-items: center; gap: 3vh; padding-top: 2vh; perspective: 2400px; }
.book { position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1.414); transition: transform .8s cubic-bezier(.3,.7,.2,1); cursor: pointer; touch-action: pan-y; outline: none; -webkit-user-select: none; user-select: none; }
.book.is-closed { transform: translateX(-25%); }
.book.is-end { transform: translateX(25%); }
.book:focus-visible { outline: 3px solid var(--blue); outline-offset: 10px; border-radius: 4px; }
/* špirála v chrbte */
.book::after {
  content: ""; position: absolute; z-index: 999; left: 50%; top: 2.5%; bottom: 2.5%; width: calc(var(--pw) * .085); margin-left: calc(var(--pw) * -.0425); pointer-events: none;
  background: radial-gradient(ellipse 50% 32% at 50% 50%, transparent 52%, #2a2a2a 56%, #8a8a8a 70%, #2a2a2a 80%, transparent 84%) center top / 100% calc(var(--pw) * .07) repeat-y;
}
.book__sheet { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45,.05,.25,1); }
.book__sheet.is-flipped { transform: rotateY(-180deg); }
.book__sheet.is-turning { z-index: 900 !important; }
.book__pg {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle, rgba(0,0,0,.13) .7px, transparent 1.1px) 0 0 / calc(var(--pw) / 18) calc(var(--pw) / 18), #f3f0e7;
  box-shadow: 0 1.4vh 3vh rgba(0,0,0,.18);
  display: grid; place-items: center;
}
.book__pg--front { border-radius: 0 6px 6px 0; }
.book__pg--back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.book__pg--front::before, .book__pg--back::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.book__pg--front::before { background: linear-gradient(to right, rgba(0,0,0,.16), transparent 12%); }
.book__pg--back::before  { background: linear-gradient(to left,  rgba(0,0,0,.16), transparent 12%); }
.book__pg img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.book__num { position: absolute; bottom: 3.5%; font-size: clamp(10px, .75vw, 13px); color: #6d6a62; }
.book__pg--front .book__num { right: 7%; }
.book__pg--back .book__num { left: 7%; }
.book__pg.is-cover, .book__pg.is-back { background: linear-gradient(135deg, #2b2b2b, #151515); }
.book__pg.is-cover::before, .book__pg.is-back::before { background: linear-gradient(to right, rgba(255,255,255,.06), transparent 14%); }
.book__label { background: #f3f0e7; padding: 1em 1.4em; transform: rotate(-3deg); display: grid; gap: .2em; text-align: left; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.book__label strong { font-size: clamp(18px, 1.9vw, 34px); font-weight: 560; letter-spacing: -.01em; color: var(--ink); }
.book__label span { font-size: clamp(11px, .85vw, 15px); color: var(--blue); }
.book__note { margin: 0; padding: 12%; font-size: clamp(12px, .95vw, 16px); font-style: italic; color: #5d5a52; align-self: end; }
.book-bar { display: flex; align-items: center; gap: 1.4vw; width: calc(var(--pw) * 2); }
.book-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 20px; cursor: pointer; }
.book-btn:disabled { opacity: .25; cursor: default; }
.book-cap { flex: 1; margin: 0; display: flex; justify-content: space-between; gap: 1em; min-height: 2.6em; align-items: center; }
.book-cap__it { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); display: grid; font-size: clamp(13px, 1vw, 17px); }
.book-cap__it:last-child:not(:first-child) { text-align: right; }
.book-cap__it strong { font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }
.book-cap__it span { color: var(--blue); }
.book-cap__hint { flex: 1; text-align: center; color: var(--ink); opacity: .7; font-size: clamp(13px, 1vw, 17px); }
@media (max-width: 820px) {
  .book-wrap { --pw: 44vw; padding-top: 0; }
  .book-bar { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .book, .book__sheet { transition: none; }
}

/* ====== 01 Photography — 02 Commercial: text ====== */
.film-txt { position: absolute; top: 5vh; right: 3vw; width: min(31vw, 34em); margin: 0; font-size: clamp(13px, 1vw, 18px); line-height: 1.36; }

/* ====== 04 About — playlist ====== */
.playlist { margin-top: .2em; }
.playlist iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.playlist__ph { display: block; padding: 1.1em; border: 1.5px dashed currentColor; border-radius: 12px; text-align: center; font-size: .7em; opacity: .8; }
@media (max-width: 820px) {
  .film-txt { position: static; width: auto; margin: -1vh 0 1vh; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
