/*
========================================================================
    Story: jump links
========================================================================
*/
a.jump, span.jump {
	color: #000277;
	font-weight: bold;
	border-bottom: 3px dotted #000277;
	cursor: pointer;
}
a.jump:hover, span.jump:hover {
	background: #FFF3B0;
	text-decoration: none;
}
.story-claim {
	display: block;
	float: left;
	width: 100%;
	margin: 4px 0 18px;
	padding: 14px 20px;
	background: #00202F;
	color: #fff;
	font-size: 26px;
	line-height: 36px;
	border: 4px solid #000;
	box-shadow: 6px 6px 0 #8a8a8a;
}

/*
========================================================================
    Story video
========================================================================
*/
.story-video {
	float: left;
	width: 100%;
	margin: 6px 0 22px;
	padding: 16px 18px 14px;
	background: #fff;
	border: 4px solid #000;
	box-shadow: 6px 6px 0 #8a8a8a;
}
.sv-head {
	font-family: "LCALLIG";
	font-size: 30px;
	line-height: 36px;
	margin-bottom: 10px;
}
.sv-kicker {
	display: inline-block;
	margin-right: 12px;
	padding: 1px 10px;
	background: #FFE27A;
	border: 2px solid #000;
	font-family: "SCRIPTBL";
	font-size: 17px;
	line-height: 24px;
	vertical-align: 4px;
}
.sv-frame {
	position: relative;
	width: 100%;
	background: #0b1324;
	border: 3px solid #000;
}
.sv-frame video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: #0b1324;
}
.sv-chapters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.sv-chap {
	padding: 4px 10px;
	background: #f4f4f4;
	color: #111;
	font-family: "SCRIPTBL";
	font-size: 17px;
	line-height: 22px;
	border: 2px solid #222;
	border-left-width: 8px;
	cursor: pointer;
}
.sv-chap .t { color: #777; margin-right: 6px; }
.sv-chap:hover { background: #FFF3B0; }
.sv-chap.now { background: #00202F; color: #fff; }
.sv-chap.now .t { color: #FFE27A; }
.sv-note {
	margin-top: 10px;
	font-size: 18px;
	line-height: 26px;
	color: #555;
}
.watch-btn { background: #B3122E; }
.watch-btn:hover { background: #E0243F; }

/*
========================================================================
    Problem Map
========================================================================
*/
.pmap {
	clear: both;
	max-width: 1560px;
	margin: 0 auto;
	padding: 0 2% 10px;
}
.pmap-lead {
	font-size: 26px;
	line-height: 36px;
	text-align: center;
	max-width: 1150px;
	margin: 0 auto 30px;
}
.pmap-root {
	position: relative;
	max-width: 960px;
	margin: 0 auto 40px;
	padding: 18px 26px;
	background: #00202F;
	color: #fff;
	font-family: "LCALLIG";
	font-size: 34px;
	line-height: 42px;
	text-align: center;
	border: 4px solid #000;
	box-shadow: 8px 8px 0 #8a8a8a;
}
.pmap-root small {
	display: block;
	font-family: "SCRIPTBL";
	font-size: 18px;
	color: #9fd3ff;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.pmap-root::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -44px;
	height: 40px;
	border-left: 6px dashed #333;
}
.pmap-layers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	padding-top: 30px;
	border-top: 6px dashed #333;
}
.pmap-layer {
	display: flex;
	flex-direction: column;
	background: #EEE;
	border: 4px solid #222;
	box-shadow: 8px 8px 0 #999;
}
.pmap-layer-head {
	padding: 10px 14px;
	color: #fff;
	font-family: "LCALLIG";
	font-size: 25px;
	line-height: 30px;
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
	border-bottom: 4px solid #222;
}
.pmap-layer-head .ln {
	display: block;
	font-family: "SCRIPTBL";
	font-size: 16px;
	letter-spacing: 1px;
	opacity: 0.9;
}
.pmap-layer.l1 .pmap-layer-head { background: #2C5BDB; }
.pmap-layer.l2 .pmap-layer-head { background: #23A845; }
.pmap-layer.l3 .pmap-layer-head { background: #EE8600; }
.pmap-layer.l4 .pmap-layer-head { background: #D42F4A; }
.pmap-nodes {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 12px 16px;
}
.pnode {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 9px 11px;
	text-align: left;
	background: #fff;
	color: #111;
	font-family: "SCRIPTBL";
	font-size: 20px;
	line-height: 24px;
	border: 3px solid #222;
	box-shadow: 4px 4px 0 #bbb;
	cursor: pointer;
	transition: transform 0.08s, box-shadow 0.08s;
}
.pnode:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 #999;
}
.pnode.active {
	background: #FFF3B0;
	box-shadow: 6px 6px 0 #222;
}
.pnode .nid {
	margin-right: 4px;
	color: #666;
}
.st {
	flex: none;
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #222;
}
.st-test   { background: #1AC93A; }
.st-design { background: #3FA9FF; }
.st-open   { background: #BDBDBD; }
.st-future { background: #B98CFF; }
.key { color: #E8A200; }
.pmap-legend {
	margin: 22px 0 0;
	text-align: center;
	font-size: 18px;
	color: #444;
}
.pmap-legend span { margin: 0 14px; white-space: nowrap; }
.pmap-legend .st { margin-right: 6px; vertical-align: -1px; }

.pmap-detail {
	max-width: 1300px;
	margin: 26px auto 0;
	padding: 22px 30px 26px;
	background: #fff;
	border: 4px solid #222;
	box-shadow: 8px 8px 0 #999;
}
.pd-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-family: "LCALLIG";
	font-size: 30px;
	line-height: 36px;
}
.pd-chip {
	display: inline-block;
	padding: 2px 10px;
	color: #fff;
	font-family: "SCRIPTBL";
	font-size: 17px;
	line-height: 24px;
	border: 2px solid #222;
}
.pd-chip.status { color: #111; }
.pd-label {
	margin-top: 14px;
	font-size: 17px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #777;
}
.pd-symptom {
	font-size: 23px;
	line-height: 32px;
	font-style: italic;
}
.pd-take {
	font-size: 22px;
	line-height: 32px;
}
.jump-btn {
	margin: 8px 12px 0 0;
	padding: 6px 14px;
	background: #00202F;
	color: #fff;
	font-family: "SCRIPTBL";
	font-size: 19px;
	border: 3px solid #000;
	box-shadow: 4px 4px 0 #888;
	cursor: pointer;
}
.jump-btn:hover { background: #0084FF; }
.pd-none { font-size: 20px; color: #777; }

.pmap-why {
	max-width: 1300px;
	margin: 40px auto 0;
}
.pmap-why .t_title { float: none; text-align: center; }
.pmap-why p {
	font-size: 22px;
	line-height: 32px;
	margin: 0 0 14px;
}
.goals {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 18px;
}
.goal {
	padding: 14px 16px;
	background: #EEE;
	border: 4px solid #222;
	box-shadow: 6px 6px 0 #999;
	font-size: 19px;
	line-height: 26px;
}
.goal b {
	display: block;
	font-family: "LCALLIG";
	font-size: 24px;
	line-height: 30px;
	margin-bottom: 4px;
}
@media (max-width: 1250px) {
	.pmap-layers, .goals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.pmap-layers, .goals { grid-template-columns: 1fr; }
	.pmap-root { font-size: 26px; line-height: 32px; }
}

/*
========================================================================
    Work cards: slow zoom drift for still thumbnails, jump highlight
========================================================================
*/
.grid-item.still::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transform-origin: 60% 40%;
}
.grid-item.still:hover::before {
	animation: stillDrift 9s ease-in-out infinite alternate;
}
.grid-item.still .grid-item-cover {
	position: relative;
	z-index: 1;
}
.grid-item.still .grid-item-content { z-index: 2; }
@keyframes stillDrift {
	0%   { transform: scale(1)    translate(0, 0); }
	100% { transform: scale(1.14) translate(-3%, -2%); }
}

.grid-item.flash::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 20;
	pointer-events: none;
	border: 9px solid transparent;
	border-image: linear-gradient(135deg, #FFE600, #FF7A00, #00E5FF, #FFE600) 1;
	box-shadow: inset 0 0 45px rgba(255, 230, 0, 0.75);
	animation: flashBlink 0.55s ease-in-out 6 alternate forwards;
}
@keyframes flashBlink {
	from { opacity: 1; }
	to   { opacity: 0.1; }
}

/*
========================================================================
    Publications
========================================================================
*/
.pubs { background: #FFE; display: block; width: 100%; padding: 2% 4%; overflow: hidden; }
.pub-list { max-width: 1300px; margin: 0 auto; padding: 0; list-style: none; }
.pub-list li {
	margin: 0 0 18px;
	padding: 14px 20px;
	background: #fff;
	border: 4px solid #222;
	box-shadow: 6px 6px 0 #999;
	font-size: 21px;
	line-height: 30px;
}
.pub-list .venue { color: #555; }
.pub-list .tag {
	display: inline-block;
	margin-left: 8px;
	padding: 0 8px;
	font-size: 16px;
	line-height: 22px;
	border: 2px solid #222;
	background: #FFF3B0;
}

/*
========================================================================
    Problem Map: mind-map graph (desktop)
========================================================================
*/
.pgraph {
	position: relative;
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	aspect-ratio: 1400 / 1000;
	container-type: inline-size;
	background-image: radial-gradient(#E9DFB8 1.5px, transparent 1.5px);
	background-size: 22px 22px;
}
.pg-lines {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	shape-rendering: crispEdges;
}
.pg-trunk  { stroke-width: 10; stroke-dasharray: 18 10; opacity: 0.85; }
.pg-branch { stroke-width: 4; opacity: 0.7; transition: stroke-width 0.15s, opacity 0.15s; }
.pg-branch.active { stroke-width: 9; opacity: 1; }
.pg-root, .pg-hub, .pg-leaf {
	position: absolute;
	transform: translate(-50%, -50%);
}
.pg-root {
	z-index: 3;
	width: 25cqw;
	padding: 1.3cqw 1.5cqw;
	background: #00202F;
	color: #fff;
	font-family: "LCALLIG";
	font-size: 2cqw;
	line-height: 1.25;
	text-align: center;
	border: 4px solid #000;
	box-shadow: 8px 8px 0 #8a8a8a;
}
.pg-root small {
	display: block;
	margin-bottom: 0.4cqw;
	font-family: "SCRIPTBL";
	font-size: 1cqw;
	letter-spacing: 0.15cqw;
	text-transform: uppercase;
	color: #9fd3ff;
}
.pg-hub {
	z-index: 2;
	width: 17cqw;
	padding: 0.8cqw 1cqw;
	color: #fff;
	font-family: "LCALLIG";
	font-size: 1.6cqw;
	line-height: 1.2;
	text-align: left;
	border: 4px solid #222;
	box-shadow: 6px 6px 0 #999;
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.pg-hub .ln {
	display: block;
	font-family: "SCRIPTBL";
	font-size: 0.95cqw;
	letter-spacing: 0.1cqw;
	text-transform: uppercase;
	opacity: 0.9;
}
.pg-hub .lq {
	display: block;
	margin-top: 0.4cqw;
	font-family: "SCRIPTBL";
	font-size: 1.05cqw;
	line-height: 1.3;
	text-shadow: none;
}
.pnode.pg-leaf {
	z-index: 2;
	width: 17.5cqw;
	padding: 0.6cqw 0.8cqw;
	font-size: 1.32cqw;
	line-height: 1.3;
	border-left: 0.7cqw solid var(--lc);
}
.pnode.pg-leaf:hover {
	transform: translate(-50%, -50%) translate(-2px, -2px);
}
.pnode.pg-leaf.active {
	transform: translate(-50%, -50%) scale(1.06);
}
/* desktop shows the graph; narrow screens show the columns */
.pmap-layers, .pmap-root { display: none; }
@media (max-width: 899px) {
	.pgraph { display: none; }
	.pmap-root { display: block; }
	.pmap-layers { display: grid; }
}

/* pixel icons */
.pnode .pi, .pg-hub .hi, .pg-root .ri, .pmap-layer-head .hi, .pd-icon { image-rendering: pixelated; image-rendering: crisp-edges; }
.pnode .pi { flex: none; width: 28px; height: 28px; margin-right: 2px; }
.pnode .nt { flex: 1; }
.pnode.pg-leaf { gap: 0.6cqw; }
.pnode.pg-leaf .pi { width: 2.5cqw; height: 2.5cqw; }
.pg-hub { padding-right: 5cqw; }
.pg-hub .hi {
	position: absolute;
	top: 0.7cqw;
	right: 0.7cqw;
	width: 3.6cqw;
	height: 3.6cqw;
	filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.35));
}
.pg-root .ri { display: block; width: 4.4cqw; height: 4.4cqw; margin: 0 auto 0.5cqw; }
.pmap-layer-head { position: relative; padding-right: 54px; }
.pmap-layer-head .hi { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; }
.pd-icon { width: 44px; height: 44px; }

.pg-root .rnote {
	display: block;
	margin-top: 0.6cqw;
	font-family: "SCRIPTBL";
	font-size: 1.05cqw;
	line-height: 1.3;
	color: #FFE27A;
}
.pmap-root .rnote { display: block; margin-top: 6px; font-family: "SCRIPTBL"; font-size: 18px; color: #FFE27A; }

@media (max-width: 599px) {
	.sv-head { font-size: 24px; line-height: 30px; }
	.sv-chapters { gap: 6px; }
	.sv-chap { font-size: 15px; line-height: 20px; padding: 3px 8px; border-left-width: 6px; }
	.sv-note { font-size: 16px; line-height: 22px; }
}
